/* ==========================================================================
   A guided walk through Qelay Hewlêr
   ========================================================================== */

:root {
  --paper: #efe9df;
  --paper-2: rgba(239, 233, 223, 0.72);
  --ink: #16130f;
  --ink-2: rgba(22, 19, 15, 0.7);
  --char: #2b2621;
  --sand: #cbb593;
  --clay: #9d725a;
  --teal: #2d5c56;
  --teal-l: #93bdb2;

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --ku: 'Noto Naskh Arabic', Tahoma, sans-serif;

  --gut: clamp(20px, 4.4vw, 76px);
  --top: clamp(84px, 11vh, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: #0f0d0b; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: #0f0d0b;
  color: var(--paper);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--teal); color: var(--paper); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }

.mono { font: 400 11px/1.6 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.ku { font-family: var(--ku); font-size: 1.28em; letter-spacing: 0; text-transform: none; margin-left: 0.6em; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 50; padding: 10px 14px; background: var(--paper); color: var(--ink); font: 400 12px var(--mono); text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- the world behind the words */

.world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(12, 10, 8, 0.32) 100%);
}
.veil::after {
  content: ''; position: absolute; inset: 0; background: #0b0a08;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.is-opening .veil::after { opacity: var(--dark, 1); transition: none; }
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

.no-world body { background: radial-gradient(90% 70% at 50% 35%, #d9ccb4, #a89272 60%, #3a3129); }
/* the name of the place is set in the 3D scene; without it, the page sets it itself */
.fallback-title { display: none; }
.no-world .fallback-title, html:not(.js) .fallback-title {
  display: block; position: absolute; left: 0; right: 0; top: calc(var(--top) - 1vh); text-align: center;
  font: 300 clamp(72px, 15vw, 250px)/0.8 var(--serif); letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); opacity: 0.9;
}

/* ---------------------------------------------------------------- bar */

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 22px var(--gut); padding-top: max(22px, env(safe-area-inset-top));
  color: var(--ink);
  transition: color .8s var(--ease), opacity 1.2s var(--ease);
}
.bar[data-tone='dark'] { color: var(--paper); }
/* the archive scrolls under the bar: a shade of its own ground keeps the two apart */
.bar::before { content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: linear-gradient(#12100d 55%, rgba(18, 16, 13, 0)); opacity: 0; transition: opacity .6s var(--ease); }
.bar[data-chapter='archive']::before { opacity: 1; }
.is-opening .bar { opacity: 0; pointer-events: none; }
.bar__name { font: 400 17px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; justify-self: start; }
.bar__chapter { display: flex; align-items: center; gap: 12px; opacity: 0.85; white-space: nowrap; }
.bar__chapter i { width: 26px; height: 1px; background: currentColor; opacity: 0.5; }
.bar__nav { justify-self: end; display: flex; align-items: center; gap: 26px; }
.bar__nav a, .bar__sound { text-decoration: none; opacity: 0.78; transition: opacity .3s; }
.bar__nav a:hover, .bar__sound:hover, .bar__sound[aria-pressed='true'] { opacity: 1; }
.bar__sound span { display: inline-block; min-width: 3ch; }

/* the chapter rail: one segment per chapter along the foot of the screen, each a way in */
.rail { position: fixed; left: var(--gut); right: var(--gut); bottom: 0; z-index: 20; display: flex; gap: 5px; height: 34px; align-items: flex-end; padding-bottom: 16px; transition: opacity 1s; }
.rail__seg { position: relative; flex: 1 1 0; min-width: 4px; height: 18px; display: flex; align-items: flex-end; text-decoration: none; color: var(--paper); }
.rail__seg::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: 0.2; transition: opacity .3s, height .3s; }
.rail__seg i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: 0.78; transform-origin: left; transform: scaleX(0); }
.rail__seg span { position: absolute; left: 0; bottom: 12px; white-space: nowrap; font-size: 10px; letter-spacing: 0.14em; opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; text-shadow: 0 0 2px rgba(10, 8, 6, 0.6), 0 0 14px rgba(10, 8, 6, 0.6); }
.rail__seg:last-child span { left: auto; right: 0; }
.rail__seg:hover::before, .rail__seg:focus-visible::before { opacity: 0.6; height: 3px; }
.rail__seg:hover span, .rail__seg:focus-visible span { opacity: 1; transform: none; }
.rail__seg:focus-visible { outline: none; }
.is-opening .rail { opacity: 0; pointer-events: none; }
/* a cut between distant chapters: dark for a breath while the page moves */
.cut { position: fixed; inset: 0; z-index: 15; background: #0b0a08; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.is-cut .cut { opacity: 1; transition: opacity .34s ease-in; }

/* ---------------------------------------------------------------- chapters */

main { position: relative; z-index: 3; }
.chapter { position: relative; height: calc(var(--len, 2) * 100svh); }
.frame {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  padding: var(--top) var(--gut) calc(56px + env(safe-area-inset-bottom));
  color: var(--paper);
}
/* with the walk running, all the chapters share one fixed stage: only the current one's words are up,
   so nothing ever slides across the screen between chapters */
.js .frame { position: fixed; inset: 0; height: auto; pointer-events: none; }
[data-tone='light'] .frame { color: var(--ink); }
[data-tone='dark'] .frame { text-shadow: 0 1px 22px rgba(10, 8, 6, 0.38); }

/* elements come and go with the walk. Hidden ones stay in the accessibility tree and can take focus
   (which walks the page to them), so nothing is only reachable by scrolling. */
.js [data-in] { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .9s var(--ease), transform 1.3s var(--ease); }
.js [data-in].is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
.reduced [data-in] { transition: none !important; transform: none !important; }
/* with every word of a chapter up at once, the small threshold names would sit on the house's own words */
.reduced .threshold { display: none; }

/* ---------------------------------------------------------------- 01 gate */

#gate .frame { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
.coords { grid-column: 1; grid-row: 1; letter-spacing: 0.22em; }
.place { position: absolute; left: var(--gut); top: calc(var(--top) + 46px); opacity: 0.8; }
.motto { position: absolute; right: var(--gut); top: var(--top); text-align: right; letter-spacing: 0.22em; }
.uptime { grid-column: 2; grid-row: 3; justify-self: end; display: flex; align-items: flex-end; gap: 14px; }
.uptime__n { font: 300 clamp(44px, 5vw, 76px)/0.8 var(--serif); letter-spacing: -0.04em; }
.uptime .mono { opacity: 0.8; }
.ident { grid-column: 1; grid-row: 3; align-self: end; }
.ident__name { font: 300 clamp(40px, 4.6vw, 72px)/0.9 var(--serif); letter-spacing: -0.035em; }
.ident__role { margin-top: 12px; opacity: 0.8; }
.ident__go { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 30px; margin-top: 26px; }
.enter {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .5s var(--ease), opacity .3s;
}
.enter:hover { gap: 22px; }
.enter--quiet { opacity: 0.72; border-bottom-color: color-mix(in srgb, currentColor 40%, transparent); }
.enter--quiet:hover { opacity: 1; }
.hint { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%); white-space: nowrap; }
.js .hint[data-in] { transform: translate(-50%, 16px); }
.js .hint[data-in].is-on { transform: translateX(-50%); opacity: 0.6; }

/* the opening: pieces arrive in sequence */
.is-opening #gate [data-in] { transition-duration: 1.6s; }

/* ---------------------------------------------------------------- 02 entering */

.epigraph {
  position: absolute; left: var(--gut); bottom: 18vh; max-width: 30ch;
  font: 300 clamp(22px, 2.2vw, 34px)/1.3 var(--serif); letter-spacing: -0.012em;
}
.epigraph .mono { display: block; margin-bottom: 18px; opacity: 0.7; }
.epigraph em { font-weight: 300; }

/* ---------------------------------------------------------------- 03 alley */

.chapter-intro { position: absolute; left: var(--gut); bottom: 16vh; max-width: 26ch; font: 300 clamp(22px, 2.1vw, 32px)/1.28 var(--serif); letter-spacing: -0.012em; }
.chapter-intro .mono { display: block; margin-bottom: 16px; opacity: 0.75; }

/* ---------------------------------------------------------------- the houses */

.threshold { position: absolute; left: var(--gut); bottom: 16vh; color: var(--paper); text-shadow: 0 1px 16px rgba(10, 8, 6, 0.55); }
.threshold span { opacity: 0.7; }

.house { position: absolute; top: var(--top); bottom: calc(56px + env(safe-area-inset-bottom)); width: min(460px, 40vw); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.house--nass { right: var(--gut); }
.house--card, .house--dev, .house--ledger { left: var(--gut); }
.house__meta { opacity: 0.72; max-width: 34ch; }
.house__title { font: 300 clamp(64px, 8.4vw, 148px)/0.84 var(--serif); letter-spacing: -0.05em; margin: 4px 0 2px -0.04em; }
.house__title em { font-weight: 250; }
.house__kind { font: 400 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.house__lede { font-size: 17px; line-height: 1.55; max-width: 38ch; }
.house__note { font-size: 15px; line-height: 1.55; max-width: 40ch; opacity: 0.82; }
.house__note b { font-weight: 500; }
.house__act { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 6px; }
.house__result { opacity: 0.85; min-height: 1.6em; }
.house__foot { opacity: 0.7; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.house__foot a { text-decoration: none; opacity: 1; }
.house__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.act {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 0 6px;
  border-bottom: 1px solid currentColor; letter-spacing: 0.16em;
  transition: gap .5s var(--ease), opacity .3s;
}
.act:hover { gap: 20px; }
.act[disabled] { opacity: 0.4; cursor: default; }
.act--quiet { border-bottom-color: transparent; opacity: 0.7; }

/* the Cardhouzz order log */
.orders { display: grid; gap: 4px; min-height: 0; }
.orders li { display: grid; grid-template-columns: 7ch 1fr; gap: 12px; opacity: 0.9; }
.orders li span:last-child { display: flex; gap: 8px; }
.orders .st { opacity: 0.35; transition: opacity .4s; }
.orders .st.on { opacity: 1; }
.orders .st.ok { color: var(--teal-l); opacity: 1; }

/* scrims keep the words legible over bright or busy parts of the scene. Each is up only while its
   chapter's words are (walk.js sets .is-lit), and fades with them. */
.chapter .frame::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.js .chapter.is-lit .frame::before, html:not(.js) .chapter .frame::before { opacity: 1; }
#cardhouzz .frame::before, #devfolio .frame::before, #alley .frame::before, #enter .frame::before, #ledger .frame::before {
  background: linear-gradient(90deg, rgba(14, 11, 8, 0.6), rgba(14, 11, 8, 0.14) 46%, transparent 68%);
}
#nass .frame::before { background: linear-gradient(270deg, rgba(239, 233, 223, 0.74), rgba(239, 233, 223, 0.22) 42%, transparent 60%); }
#wall .frame::before, #rooftop .frame::before { background: radial-gradient(70% 60% at 12% 100%, rgba(14, 11, 8, 0.5), rgba(14, 11, 8, 0.16) 55%, transparent 80%); }
#ascent .frame::before { background: radial-gradient(60% 42% at 50% 82%, rgba(14, 11, 8, 0.42), transparent 75%); }
.no-world .house__act, .no-world .house__result, .no-world .orders { display: none; }

/* ---------------------------------------------------------------- 07 the perimeter */

.wall { position: absolute; inset: var(--top) var(--gut) calc(56px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 24px 48px; }
.wall__head { grid-column: 1; grid-row: 3; align-self: end; max-width: 520px; color: var(--paper); text-shadow: 0 1px 22px rgba(10, 8, 6, 0.5); }
.wall__head .mono { opacity: 0.72; }
/* once a house is taken out, the headline gives way to the verdict */
.wall__swap { display: grid; margin: 14px 0 18px; }
.wall__swap > * { grid-area: 1 / 1; align-self: end; }
.wall__title { font: 300 clamp(58px, 8vw, 138px)/0.84 var(--serif); letter-spacing: -0.05em; margin-left: -0.04em; transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.wall__title em { font-weight: 250; }
.wall.is-failed .wall__title { opacity: 0; transform: translateY(-14px); }
.wall__copy { max-width: 40ch; font-size: 16px; }
.wall__panel { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: auto auto; gap: 14px 34px; align-items: start; justify-items: end; text-align: right; }
.wall__panel .ringplan { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.wall__panel .stats, .wall__panel .wall__actions { grid-column: 2; }
.stats { display: grid; gap: 10px; }
.stats div { display: grid; gap: 2px; }
.stats dt { opacity: 0.6; }
.stats dd { font: 300 34px/1 var(--serif); letter-spacing: -0.02em; text-transform: none; }
.stats dd b { font-weight: 300; }
.ringplan { width: 150px; height: auto; overflow: visible; }
.ringplan line { stroke: currentColor; stroke-width: 1.4; }
.ringplan line.off { stroke-opacity: 0.18; }
.ringplan line.load { stroke: var(--clay); }
.wall__actions { display: flex; gap: 20px; }
.verdict {
  font: 300 clamp(44px, 5.8vw, 100px)/0.9 var(--serif); letter-spacing: -0.045em; white-space: nowrap; margin-left: -0.03em;
  opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}
.verdict em { font-weight: 250; }
.verdict.is-shown { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 08 archive */

.archive { position: relative; z-index: 3; background: linear-gradient(rgba(16, 13, 10, 0.78), rgba(16, 13, 10, 0.9) 22vh, rgba(16, 13, 10, 0.93)); color: var(--paper); padding: 20vh var(--gut) 18vh; }
.archive__inner { max-width: 1180px; margin: 0 auto; }
.archive__head { display: grid; gap: 18px; margin-bottom: 9vh; }
.archive__head .mono { opacity: 0.6; }
.archive__head h2 { font: 300 clamp(48px, 6.4vw, 110px)/0.9 var(--serif); letter-spacing: -0.045em; }
.archive__head p:last-child { opacity: 0.7; max-width: 40ch; }
.catalog { border-top: 1px solid rgba(239, 233, 223, 0.16); }
.catalog li { border-bottom: 1px solid rgba(239, 233, 223, 0.16); }
.catalog summary {
  display: grid; grid-template-columns: 9ch minmax(0, 1fr) auto 18px; align-items: baseline; gap: 20px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.catalog summary::-webkit-details-marker { display: none; }
.catalog summary .mono { opacity: 0.6; }
.catalog summary b { font: 300 clamp(26px, 2.6vw, 40px)/1.05 var(--serif); letter-spacing: -0.025em; transition: transform .6s var(--ease); }
.catalog summary:hover b { transform: translateX(10px); }
.catalog summary i { width: 14px; height: 14px; position: relative; align-self: center; }
.catalog summary i::before, .catalog summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.catalog summary i::after { transform: rotate(90deg); }
.catalog details[open] summary i::after { transform: rotate(0); }
.entry { display: grid; grid-template-columns: 9ch minmax(0, 1fr); column-gap: 20px; row-gap: 12px; padding: 0 0 30px; }
.entry > * { grid-column: 2; max-width: 62ch; }
.entry p:first-child { font-size: 17px; opacity: 0.9; }
.entry .mono { opacity: 0.6; }
.entry a { justify-self: start; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ---------------------------------------------------------------- 09 ascent */

.ascent { position: absolute; left: var(--gut); right: var(--gut); bottom: 20vh; text-align: center; font: 300 clamp(38px, 5vw, 88px)/1 var(--serif); letter-spacing: -0.04em; }

/* ---------------------------------------------------------------- 10 rooftop */

.built { position: absolute; left: var(--gut); top: calc(var(--top) + 2vh); font: 300 clamp(72px, 12vw, 220px)/0.82 var(--serif); letter-spacing: -0.055em; color: var(--ink); }
.built em { font-weight: 250; }
.about { position: absolute; left: var(--gut); bottom: calc(64px + env(safe-area-inset-bottom)); max-width: 44ch; color: var(--paper); text-shadow: 0 1px 20px rgba(10, 8, 6, 0.5); display: grid; gap: 14px; }
.about__name { font: 300 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.about__name .mono { opacity: 0.75; }
.about p:last-child { font-size: 16px; line-height: 1.6; opacity: 0.9; }

/* ---------------------------------------------------------------- 11 contact */

.contact { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(96px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; }
.contact__id { font: 300 clamp(30px, 3vw, 46px)/1.08 var(--serif); letter-spacing: -0.025em; }
.contact__id span { opacity: 0.72; }
.contact__list { display: grid; gap: 14px; }
.contact__list div { display: grid; grid-template-columns: 11ch 1fr; gap: 12px; }
.contact__list dt { opacity: 0.55; }
.contact__list a { text-decoration: none; text-transform: none; letter-spacing: 0.04em; font-size: 13px; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.solid { justify-self: end; font: 300 clamp(26px, 2.6vw, 40px)/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; padding-bottom: 10px; border-bottom: 1px solid currentColor; display: inline-flex; gap: 16px; transition: gap .5s var(--ease); }
.solid:hover { gap: 26px; }
.colophon { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(34px + env(safe-area-inset-bottom)); opacity: 0.5; letter-spacing: 0.12em; }
#contact .frame::before { inset: 40% 0 0; background: linear-gradient(to top, rgba(10, 8, 6, 0.6), transparent); }

/* ---------------------------------------------------------------- labels anchored to the scene */

.lab {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 400 10.5px/1.35 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); text-shadow: 0 0 1px rgba(10, 8, 6, 0.8), 0 0 7px rgba(10, 8, 6, 0.55), 0 1px 18px rgba(10, 8, 6, 0.5);
  opacity: 0; transition: opacity .6s var(--ease);
  will-change: transform;
}
.lab.is-on { opacity: 1; }
.lab small { display: block; font-size: 10px; opacity: 0.7; letter-spacing: 0.1em; }
.lab--ink { color: var(--ink); text-shadow: 0 0 2px rgba(239, 233, 223, 0.7), 0 0 14px rgba(239, 233, 223, 0.8); }
.lab--node { transform-origin: left center; }
.lab--node::before { content: ''; position: absolute; left: -16px; top: 0.62em; width: 10px; height: 1px; background: currentColor; }
.lab--left { text-align: right; }
.lab--node.lab--left::before { left: auto; right: -16px; }
.lab--annot { padding-top: 26px; }
.lab--annot::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 20px; background: currentColor; opacity: 0.7; }
.lab--lit { color: var(--teal-l); }
.lab--ink.lab--lit { color: var(--ink); }
.lab--ink.lab--lit::before { background: var(--teal); height: 2px; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 420px) {
  .bar__nav a[href='#archive'] { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { grid-template-columns: 1fr auto; gap: 12px; padding-bottom: 12px; }
  .bar__chapter { display: none; }
  .bar__nav { gap: 16px; }
  #gate .frame { grid-template-columns: 1fr; }
  .uptime { grid-column: 1; grid-row: 2; justify-self: start; align-self: end; margin-bottom: 26px; }
  .motto { display: none; }
  .hint { display: none; }
  .house { left: var(--gut) !important; right: var(--gut) !important; width: auto; gap: 12px; }
  .house__title { font-size: clamp(56px, 17vw, 96px); }
  .house__lede { font-size: 15.5px; }
  .house__note { display: none; }
  #nass .frame::before { background: linear-gradient(to top, rgba(239, 233, 223, 0.86), rgba(239, 233, 223, 0.35) 50%, transparent 72%); }
  #cardhouzz .frame::before, #devfolio .frame::before, #alley .frame::before, #enter .frame::before { background: linear-gradient(to top, rgba(14, 11, 8, 0.7), rgba(14, 11, 8, 0.2) 55%, transparent 75%); }
  .wall { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .wall__panel { grid-column: 1; grid-row: 2; justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: center; }
  .ringplan { width: 120px; }
  .wall__actions { grid-column: 1 / -1; }
  .wall__copy { font-size: 15px; }
  .catalog summary { grid-template-columns: 1fr 18px; gap: 6px 12px; }
  .catalog summary .mono:first-child { grid-column: 1 / -1; }
  .catalog summary .mono:nth-of-type(2) { grid-column: 1; }
  .entry { grid-template-columns: 1fr; }
  .entry > * { grid-column: 1; }
  .contact { grid-template-columns: 1fr; gap: 26px; }
  .solid { justify-self: start; }
  .lab { font-size: 9.5px; }
  /* labels crowd on a narrow screen: node names wrap, the plan's note steps aside */
  .lab--node { white-space: normal; width: max-content; max-width: 76px; }
  .lab--note { display: none; }
  .rail { pointer-events: none; gap: 3px; }
  .ident__go { gap: 12px 22px; }
}

/* very large screens: the small type keeps its proportion to the big serif */
@media (min-width: 1800px) {
  body { font-size: 18.5px; }
  .mono { font-size: 12px; }
  .bar__name { font-size: 19px; }
  .house { width: min(540px, 30vw); }
  .house__lede { font-size: 19px; }
  .house__note { font-size: 16.5px; }
  .lab { font-size: 11.5px; }
  .lab small { font-size: 10.5px; }
  .wall__copy, .about p:last-child { font-size: 18px; }
  .contact__list a { font-size: 14.5px; }
  .rail__seg span { font-size: 11px; }
}
@media (min-width: 2300px) {
  body { font-size: 20px; }
  .mono { font-size: 13px; }
  .bar__name { font-size: 21px; }
  .house { width: min(620px, 28vw); }
  .house__lede { font-size: 21px; }
  .house__note { font-size: 18px; }
  .lab { font-size: 12.5px; }
  .lab small { font-size: 11.5px; }
  .wall__copy, .about p:last-child { font-size: 19.5px; }
  .contact__list a { font-size: 15.5px; }
  .epigraph, .chapter-intro { max-width: 32ch; }
}
.act { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .act, .enter, .solid, .catalog summary b { transition: none; }
}
