/* ==========================================================================
   Stenreign Group
   House lights down. One lamp on.
   Type: Sofia Sans Extra Condensed (billing), Sofia Sans (text),
         Newsreader (editorial voice), Geist Mono (ledger details).
   ========================================================================== */

:root {
  --ink: #0a0908;
  --coal: #100e0c;
  --char: #1a1714;
  --bone: #ece6da;
  --bone-2: #c2baac;
  --ash: #9c9488;
  --paper: #e8e1d3;
  --paper-2: #dcd4c4;
  --paper-ink: #14110e;
  --paper-ash: #574f45;
  --signal: #ff4d1f;
  --signal-deep: #b42a07;
  --tungsten: #f0a650;
  --rule: rgba(236, 230, 218, .16);
  --rule-strong: rgba(236, 230, 218, .36);
  --paper-rule: rgba(20, 17, 14, .2);

  --f-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', Impact, sans-serif;
  --f-sans: 'Sofia Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(1.25rem, 4.4vw, 4.75rem);
  --header-h: 5.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + .5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--signal-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 200; padding: .9rem 1.2rem; background: var(--bone); color: var(--ink); font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.skip-link:focus { top: 1rem; }

/* ---------- Shared type ---------- */
.label {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ash);
}
.paper .label { color: var(--paper-ash); }
.label-no { color: var(--signal); margin-right: 1.1em; }
.paper .label-no { color: var(--signal-deep); }

/* The loud voice: poster-scale condensed capitals. Used where a section needs to land. */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.9rem, 11.4vw, 11.5rem);
  line-height: .84;
  letter-spacing: -.008em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display-mid { font-size: clamp(3.4rem, 7.4vw, 7.6rem); }
/* The quiet voice: a serif statement, set in sentence case. Used to change the pace. */
.statement {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.3vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.statement span { display: block; }
.lead {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.35vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -.014em;
  text-wrap: pretty;
}

.tally { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 77, 31, .5); }
@keyframes tally { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 31, .45); } 55% { box-shadow: 0 0 0 .45rem rgba(255, 77, 31, 0); } }
.hero-eyebrow .tally, .header-contact .tally { animation: tally 2.6s ease-out infinite; }

.arrow { flex: none; width: 1em; height: 1em; transition: transform .45s var(--ease-out); }
a:hover > .arrow, a:hover > span + .arrow, button:hover > .arrow, .room-link:hover .arrow { transform: translate(.18em, -.18em); }
a:hover > .arrow-down { transform: translateY(.22em); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem;
  min-height: 3.25rem; padding: .8rem 1.35rem .8rem 1.5rem;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 99rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { background: var(--signal); color: var(--ink); }
.btn-line { border-color: var(--rule-strong); }
.btn-line:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.btn-text {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 0; background: none; border: 0;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.btn-text:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--signal); }
.paper .btn-text:hover { color: var(--signal-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--gutter);
  transition: transform .55s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 9, 8, .86); border-bottom-color: var(--rule); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.site-header.hidden { transform: translateY(-101%); }
.brand { flex: none; width: 11.5rem; margin-right: auto; }
.brand img { width: 100%; }
.site-nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.site-nav a, .header-contact {
  position: relative; display: inline-flex; align-items: baseline; padding: .7rem 0;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
}
.nav-no { color: var(--ash); margin-right: .7em; font-size: .92em; transition: color .3s; }
.site-nav sup { font-size: .82em; color: var(--ash); margin-left: .35em; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:hover .nav-no { color: var(--signal); }
.header-contact { align-items: center; gap: .7rem; padding: .7rem 1.15rem; border: 1px solid var(--rule-strong); border-radius: 99rem; transition: background-color .3s, color .3s, border-color .3s; }
.header-contact:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.menu-toggle { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--ink);
  overflow-y: auto;
}
.mobile-nav nav { display: grid; }
.mobile-nav nav a { display: flex; align-items: baseline; gap: 1.1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.mobile-nav .nav-no { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; margin: 0; }
.mobile-nav-label { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, min(16vw, 11svh), 5.4rem); line-height: .95; text-transform: uppercase; }
.mobile-nav-foot { display: grid; gap: .4rem; margin-top: 2.5rem; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: var(--ash); }
.mobile-nav-foot a { color: var(--bone); font-size: .95rem; letter-spacing: .02em; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(100svh, 40rem);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: #050403; overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media picture { position: absolute; inset: 0; }
.hero-still, .hero-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
.hero-loop { opacity: 0; transition: opacity 1.6s ease; }
.hero-loop.playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, .72) 0%, rgba(5, 4, 3, .34) 36%, rgba(5, 4, 3, 0) 60%),
    linear-gradient(0deg, rgba(5, 4, 3, .96) 0%, rgba(5, 4, 3, .66) 16%, rgba(5, 4, 3, 0) 44%),
    linear-gradient(180deg, rgba(5, 4, 3, .66) 0%, rgba(5, 4, 3, 0) 20%);
}
.hero-inner {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(1rem, 1fr) auto;
  padding: calc(var(--header-h) + clamp(1rem, 3svh, 2.5rem)) var(--gutter) clamp(1.25rem, 3.4svh, 2.5rem);
}
.hero-eyebrow { grid-area: 1 / 1 / 2 / 3; justify-self: start; display: flex; align-items: center; gap: .9rem; color: var(--bone-2); }
.hero-note { position: absolute; top: calc(var(--header-h) + clamp(1rem, 3svh, 2.5rem)); right: var(--gutter); width: 16.5rem; }
.hero-note .label { padding-bottom: .55rem; margin-bottom: .6rem; border-bottom: 1px solid var(--rule-strong); color: var(--bone-2); }
.hero-note-text { font-family: var(--f-serif); font-size: 1.02rem; line-height: 1.36; color: var(--bone-2); }
.hero-note-text em { color: var(--bone); }
.hero-title {
  grid-area: 3 / 1; align-self: end;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(5.4rem, min(16.4vw, 25svh), 21rem);
  line-height: .8; letter-spacing: -.012em; text-transform: uppercase;
  margin-left: -.035em; margin-bottom: -.03em;
}
.hero-title .line { display: block; overflow: hidden; padding-top: .07em; margin-top: -.07em; white-space: nowrap; }
.hero-title .line > span { display: block; }
.hero-aside { grid-area: 3 / 2; align-self: end; justify-self: start; max-width: 17.5rem; padding: 0 0 .5rem clamp(1.75rem, 3.4vw, 3.5rem); }
.hero-intro { font-size: 1.06rem; line-height: 1.5; color: var(--bone-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: 1.4rem; }

.hero-billing { position: relative; margin: 0 var(--gutter); padding: 1rem 0 1.4rem; border-top: 1px solid var(--rule-strong); }
.billing-lead, .billing {
  display: inline;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.08rem, 1.42vw, 1.45rem); line-height: 1.22; letter-spacing: .012em; color: var(--bone-2);
}
.billing-lead { color: var(--bone); margin-right: 1.1em; }
/* Role labels sit over the brightest part of the stage floor, so they take the lighter tone. */
.billing-lead small, .billing-role { font-size: max(.6em, .75rem); font-weight: 500; letter-spacing: .09em; color: var(--bone-2); }
.billing-lead small { margin-left: .2em; vertical-align: .14em; }
.billing li { display: inline; }
.billing li + li::before { content: ''; display: inline-block; width: 1.1em; }
.billing-role { margin-right: .55em; vertical-align: .14em; }
.billing a { transition: color .25s; }
.billing a:hover { color: var(--signal); }
.billing-dot { display: inline-block; width: .16em; height: .16em; margin: 0 .42em; border-radius: 50%; background: var(--ash); vertical-align: .32em; }
.billing-count { display: none; }
.billing-founder a { color: var(--bone); }

.motion-toggle {
  position: absolute; right: 0; bottom: 100%; margin-bottom: .9rem;
  padding: .5rem 0; background: none; border: 0; border-bottom: 1px solid var(--rule-strong);
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2); white-space: nowrap;
  transition: color .3s, border-color .3s;
}
.motion-toggle:hover { color: var(--bone); border-color: var(--bone); }

/* Hero entrance */
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes lights-up { from { opacity: 0; } to { opacity: 1; } }
.js .hero-media { animation: lights-up 2.2s ease both; }
.js .hero-title .line > span { animation: rise 1.15s var(--ease-out) both; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .09s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .18s; }
.js .hero-eyebrow, .js .hero-note, .js .hero-aside, .js .hero-billing { animation: fade-up 1s var(--ease-out) both; animation-delay: .55s; }
.js .hero-note { animation-delay: .75s; }
.js .hero-billing { animation-delay: .9s; }

/* ---------- Sections ---------- */
/* Everything below the first screen is laid out when it comes near the viewport, not at page load.
   On a phone that cuts the first layout to a fraction. The size is a placeholder until then. */
.group, .selected-head, .chapter, .directory, .founder, .contact, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 62rem; }
.section { padding: clamp(4.5rem, 9.5vw, 9.5rem) var(--gutter); }
.paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.section-head {
  display: flex; justify-content: space-between; gap: 2rem;
  padding-bottom: 1rem; margin-bottom: clamp(2.5rem, 5.5vw, 5.5rem);
  border-bottom: 1px solid var(--rule-strong);
}
.paper .section-head { border-bottom-color: var(--paper-ink); }
.section-head .label + .label { text-align: right; }

/* ---------- 01 The group ---------- */
.group-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.group-copy { max-width: 31rem; padding-bottom: .5rem; }
.group-copy .lead { margin-bottom: 1.6rem; }
.group-copy p + p { margin-top: 1rem; }
.group-copy p:not(.lead) { color: var(--paper-ash); }

.rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, 1.3vw, 1.4rem); margin-top: clamp(3rem, 6.5vw, 6.5rem); }
.room { min-width: 0; }
.room-link { display: block; height: 100%; }
.room-frame { position: relative; aspect-ratio: 3 / 4.3; overflow: hidden; background: var(--ink); color: var(--bone); }
.room-frame picture, .room-frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-frame img { object-fit: cover; object-position: 50% 72%; transform: scale(1.02); transition: transform 1.4s var(--ease-out), filter .8s; filter: brightness(.9); }
.room-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, 0) 42%); }
.room-link:hover .room-frame img, .room-link:focus-visible .room-frame img { transform: scale(1.075); filter: brightness(1.08); }
.room-no { position: absolute; top: .9rem; left: .95rem; z-index: 1; color: var(--bone-2); }
.room-word {
  position: absolute; left: .85rem; right: .85rem; bottom: .8rem; z-index: 1;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 3.5vw, 3.6rem); line-height: .86; letter-spacing: -.005em;
  padding-bottom: .5rem;
  background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-size: 0 3px; background-position: 0 100%;
  transition: background-size .6s var(--ease-out);
}
.room-link:hover .room-word, .room-link:focus-visible .room-word { background-size: 100% 3px; }
.room-sector { margin-top: 1.1rem; font-family: var(--f-sans); font-size: 1.18rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.room-note { margin-top: .4rem; font-size: .98rem; line-height: 1.42; color: var(--paper-ash); }
.room-more { display: inline-flex; align-items: center; gap: .55rem; margin-top: .9rem; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-deep); }
.room-more span { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; padding-bottom: .15rem; }
.group-foot { display: flex; justify-content: space-between; gap: 2rem; margin-top: clamp(3rem, 6vw, 6rem); padding-top: 1.1rem; border-top: 1px solid var(--paper-ink); }

/* ---------- 02 Selected companies ---------- */
.selected { background: var(--ink); }
.selected-head { padding-bottom: clamp(3rem, 6vw, 6rem); }
.selected-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.selected-note { max-width: 22rem; padding-bottom: .9rem; color: var(--bone-2); }
.selected-foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; padding: 1.75rem var(--gutter); border-top: 1px solid var(--rule); color: var(--bone-2); position: relative; z-index: 5; background: var(--ink); }

.chapter {
  --c-bg: var(--ink); --c-ink: var(--bone); --c-soft: var(--bone-2); --c-accent: var(--signal); --c-rule: var(--rule-strong); --c-rule-soft: var(--rule);
  position: relative; isolation: isolate;
  display: grid; min-height: 100svh;
  background: var(--c-bg); color: var(--c-ink);
  overflow: clip;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .1), 0 -2.5rem 5rem rgba(0, 0, 0, .55);
}
.chapter-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.chapter-media > picture { position: absolute; inset: 0; }
.chapter-media > picture img { width: 100%; height: 100%; object-fit: cover; }
.chapter-body {
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  padding: calc(var(--header-h) + .5rem) var(--gutter) clamp(2rem, 5svh, 4rem);
}
.chapter-top { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--c-rule); color: var(--c-soft); }
.chapter-main { align-self: end; max-width: 40rem; }
.chapter-logo { width: auto; }
.chapter-title { margin-top: 1.3rem; text-wrap: balance; }
.chapter-line { margin-top: 1rem; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.3; color: var(--c-ink); }
.chapter-desc { margin-top: .7rem; max-width: 33rem; color: var(--c-soft); }
/* Proof points: short statements each company publishes about itself. */
.chapter-facts { margin-top: 1.3rem; max-width: 31rem; border-top: 1px solid var(--c-rule); }
.chapter-facts li { position: relative; padding: .5rem 0 .5rem 1.5rem; border-bottom: 1px solid var(--c-rule-soft); font-size: 1rem; line-height: 1.35; }
.chapter-facts li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: .7rem; height: 2px; background: var(--c-accent); }
.chapter-source, .chapter-caption { margin-top: .65rem; font-family: var(--f-mono); font-size: .75rem; line-height: 1.5; letter-spacing: .04em; color: var(--c-soft); }
.chapter-link {
  display: inline-flex; align-items: center; gap: 1.5rem; margin-top: 1.6rem;
  min-height: 3.5rem; padding: .85rem 1.4rem .85rem 1.6rem;
  background: var(--c-accent); color: var(--c-on-accent, #0a0908);
  font-family: var(--f-mono); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border-radius: 99rem; transition: background-color .3s, color .3s;
}
.chapter-link:hover { background: var(--c-ink); color: var(--c-bg); }
.chapter :focus-visible { outline-color: var(--c-accent); }

/* Halo Touring: Archivo, night blue, the interchange */
.chapter-halo { --c-bg: #07090d; --c-ink: #f2f5fa; --c-soft: #b7c0cd; --c-accent: #4d8dff; --c-rule: rgba(172, 188, 212, .36); --c-rule-soft: rgba(172, 188, 212, .2); --c-on-accent: #07090d; }
.chapter-halo .chapter-media > picture img { object-position: 62% 50%; }
.chapter-halo .chapter-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, .94) 0%, rgba(7, 9, 13, .7) 34%, rgba(7, 9, 13, 0) 68%), linear-gradient(0deg, rgba(7, 9, 13, .9) 0%, rgba(7, 9, 13, 0) 46%), linear-gradient(180deg, rgba(7, 9, 13, .7), rgba(7, 9, 13, 0) 22%); }
.chapter-halo .chapter-logo { height: clamp(5rem, 11svh, 8.5rem); margin-left: -.5rem; }
.chapter-halo .chapter-title { font-family: 'Archivo', var(--f-sans); font-weight: 800; font-size: clamp(3.2rem, min(8.6vw, 14svh), 9rem); line-height: .9; letter-spacing: -.045em; }

/* ShowLedgers: Big Shoulders, carbon and amber, the ledger rules, the real application */
.chapter-showledgers { --c-bg: #0f1113; --c-ink: #efe6d3; --c-soft: #b9b09e; --c-accent: #f0a132; --c-rule: rgba(239, 230, 211, .3); --c-rule-soft: rgba(239, 230, 211, .16); --c-on-accent: #15171a; }
.chapter-showledgers::before { content: ''; position: absolute; inset: 0; z-index: -2; background: repeating-linear-gradient(180deg, transparent 0, transparent 2.9rem, rgba(239, 230, 211, .055) 2.9rem, rgba(239, 230, 211, .055) calc(2.9rem + 1px)); }
/* Sized from the viewport height so three windows and their caption always fit the card. */
.chapter-showledgers .chapter-media { inset: calc(var(--header-h) + 4rem) var(--gutter) auto auto; width: min(48%, calc((100svh - 18.5rem) * 1.06)); overflow: visible; }
.chapter-screens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; }
.chapter-screen { display: block; border: 1px solid rgba(239, 230, 211, .3); border-radius: .4rem; background: #0a0c0e; box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, .5); overflow: hidden; }
.chapter-screen-main { grid-column: 1 / -1; }
.chapter-screen-bar { display: flex; align-items: center; gap: .4rem; height: 2rem; padding: 0 .8rem; border-bottom: 1px solid rgba(239, 230, 211, .18); }
.chapter-screen-bar i { width: .45rem; height: .45rem; border-radius: 50%; background: rgba(239, 230, 211, .26); }
.chapter-screen-bar b { margin-left: .7rem; font-family: var(--f-mono); font-size: .75rem; font-weight: 400; letter-spacing: .05em; color: rgba(239, 230, 211, .72); }
.chapter-screen picture { display: block; }
.chapter-screen img { width: 100%; height: auto; }
.chapter-screens .chapter-caption { grid-column: 1 / -1; margin-top: 0; }
.chapter-showledgers .chapter-main { max-width: min(40%, 33rem); }
.chapter-mark { width: 3.6rem; height: 3.6rem; }
.chapter-showledgers .chapter-title { font-family: 'Big Shoulders Display', var(--f-display); font-weight: 800; font-size: clamp(3.4rem, min(7.4vw, 13svh), 8.4rem); line-height: .86; letter-spacing: .005em; text-transform: uppercase; color: var(--c-accent); }

/* Dreadwake Coffee: Bodoni Moda, ember and bone, steam, the bag itself */
.chapter-dreadwake { --c-bg: #0b0908; --c-ink: #ede4d3; --c-soft: #bdb19d; --c-accent: #d8933a; --c-rule: rgba(237, 228, 211, .32); --c-rule-soft: rgba(237, 228, 211, .16); --c-on-accent: #0b0908; }
.chapter-dreadwake .chapter-media > picture img { object-position: 22% 50%; }
.chapter-dreadwake .chapter-media::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(11, 9, 8, .92) 0%, rgba(11, 9, 8, .6) 38%, rgba(11, 9, 8, 0) 64%), linear-gradient(180deg, rgba(11, 9, 8, .72), rgba(11, 9, 8, 0) 24%); }
.chapter-dreadwake .chapter-media > picture { z-index: -2; }
.chapter-product { position: absolute; left: 39.5%; bottom: clamp(2rem, 8svh, 5rem); width: clamp(8.5rem, 12vw, 13.5rem); }
.chapter-product picture { display: block; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid rgba(237, 228, 211, .34); box-shadow: 0 2rem 4rem rgba(0, 0, 0, .65); }
.chapter-product img { width: 100%; height: 100%; object-fit: cover; }
.chapter-dreadwake .chapter-main { justify-self: end; max-width: min(39%, 34rem); }
.chapter-dreadwake .chapter-logo { height: clamp(5rem, 12svh, 9rem); }
.chapter-dreadwake .chapter-title { font-family: 'Bodoni Moda', 'Bodoni 72', Didot, serif; font-weight: 500; font-size: clamp(3rem, min(6.2vw, 11.5svh), 6.6rem); line-height: .96; letter-spacing: -.012em; }
.chapter-dreadwake .chapter-line { font-family: 'Bodoni Moda', 'Bodoni 72', Didot, serif; font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.7rem); color: var(--c-accent); }

/* So North West: Anybody, asphalt and safety orange, the rain, the actual pieces */
.chapter-sonorthwest { --c-bg: #0d0f11; --c-ink: #ebe9e4; --c-soft: #a9aeb6; --c-accent: #ff5a1f; --c-rule: rgba(235, 233, 228, .3); --c-rule-soft: rgba(235, 233, 228, .15); --c-on-accent: #0d0f11; }
.chapter-sonorthwest .chapter-media { inset: 0 auto 0 0; width: 58%; }
.chapter-sonorthwest .chapter-media > picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 15, 17, .72), rgba(13, 15, 17, 0) 26%), linear-gradient(0deg, rgba(13, 15, 17, .78), rgba(13, 15, 17, 0) 52%), linear-gradient(270deg, rgba(13, 15, 17, .5), rgba(13, 15, 17, 0) 30%); }
.chapter-products { position: absolute; left: var(--gutter); right: 9%; bottom: clamp(2rem, 6svh, 4rem); max-width: 35rem; }
.chapter-products ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.chapter-products li { aspect-ratio: 1; background: #15181c; border: 1px solid rgba(235, 233, 228, .28); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .55); }
.chapter-products img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.chapter-sonorthwest .chapter-main { justify-self: end; max-width: min(36%, 31rem); }
.chapter-sonorthwest .chapter-logo { height: clamp(4.75rem, 11svh, 7.25rem); }
.chapter-sonorthwest .chapter-title { font-family: 'Anybody', var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, min(4.2vw, 8svh), 4.8rem); line-height: .94; letter-spacing: -.01em; text-transform: uppercase; }
.chapter-sonorthwest .chapter-top span:first-child::after { content: '47.6\00B0N'; margin-left: 1.4em; color: #f3c41f; }

/* Chapters stack like cards on screens that can hold them. Shorter screens get normal flow,
   so a chapter is never taller than the card that would clip it. */
@media (min-width: 1001px) and (min-height: 800px) {
  .chapters .chapter { position: sticky; top: 0; height: 100svh; min-height: 0; }
}
@media (min-width: 1001px) and (min-height: 800px) and (max-height: 940px) {
  .chapter-desc { display: none; }
}

/* ---------- 03 Directory ---------- */
.directory { background: var(--coal); }
.directory-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.directory-intro .lead { color: var(--bone-2); max-width: 24rem; padding-bottom: .3rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule-strong); }
.filters button {
  display: inline-flex; align-items: baseline; gap: .7rem; min-height: 2.9rem; padding: .6rem 1.1rem;
  background: none; border: 1px solid var(--rule-strong); border-radius: 99rem;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2);
  transition: background-color .3s, color .3s, border-color .3s;
}
.filters button span { font-size: .92em; color: var(--ash); transition: color .3s; }
.filters button:hover { border-color: var(--bone); color: var(--bone); }
.filters button.active { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.filters button.active span { color: var(--signal-deep); }

.directory-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5.5vw, 6.5rem); align-items: start; }
.lineup-count { padding: 1.4rem 0 1.1rem; }
.entry { border-top: 1px solid var(--rule); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-toggle {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto 1.1rem; column-gap: 1rem; row-gap: .15rem; align-items: baseline;
  width: 100%; padding: 1.05rem 0 1rem; background: none; border: 0; text-align: left;
}
.entry-no { grid-area: 1 / 1; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; color: var(--ash); transition: color .3s; }
.entry-name {
  grid-area: 1 / 2;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 3.5vw, 3.6rem); line-height: .95; letter-spacing: .002em; color: var(--bone-2);
  transition: color .3s, transform .55s var(--ease-out);
}
.entry-line { grid-area: 2 / 2 / auto / 4; font-size: .98rem; line-height: 1.4; color: var(--ash); transition: color .3s, transform .55s var(--ease-out); }
.entry-sector { grid-area: 1 / 3; white-space: nowrap; }
.entry-mark { grid-area: 1 / 4; position: relative; width: .95rem; height: .95rem; align-self: center; }
.entry-mark::before, .entry-mark::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bone-2); transition: transform .45s var(--ease-out), background-color .3s; }
.entry-mark::after { transform: rotate(90deg); }
.entry-toggle:hover .entry-name, .entry.open .entry-name { color: var(--bone); }
.entry-toggle:hover .entry-name, .entry-toggle:hover .entry-line { transform: translateX(.6rem); }
.entry-toggle:hover .entry-no, .entry.open .entry-no { color: var(--signal); }
.entry.open .entry-line { color: var(--bone-2); }
.entry.open .entry-mark::after { transform: rotate(0deg); }
.entry.open .entry-mark::before, .entry.open .entry-mark::after { background: var(--signal); }

.entry-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease-out), visibility 0s; }
.entry-panel-inner { min-height: 0; overflow: hidden; padding-left: 3.6rem; }
.entry-panel-inner > :last-child { margin-bottom: 1.9rem; }
.js .entry:not(.open) .entry-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease-out), visibility 0s .5s; }
.entry-image { display: none; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--rule); margin: .35rem 0 1.25rem; }
.entry-desc { max-width: 35rem; color: var(--bone-2); padding-top: .15rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.entry-tags li { padding: .28rem .7rem; border: 1px solid var(--rule); border-radius: 99rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
.entry-link {
  display: inline-flex; align-items: center; gap: 1.4rem; margin-top: 1.4rem; min-height: 3.1rem; padding: .7rem 1.25rem .7rem 1.4rem;
  background: var(--bone); color: var(--ink); border-radius: 99rem;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  transition: background-color .3s;
}
.entry-link:hover { background: var(--signal); }
@keyframes entry-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.lineup.filtering .entry { animation: entry-in .55s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 28ms); }
.lineup-more {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 3.5rem; padding: 1rem 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule-strong);
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
}
.lineup-more::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--signal); }

.stage-frame { position: sticky; top: calc(var(--header-h) + 1.5rem); padding-top: 1.4rem; }
.frame-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border: 1px solid var(--rule-strong); }
.frame-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.035); transition: opacity .55s ease, transform 1.2s var(--ease-out); }
.frame-image img.show { opacity: 1; transform: none; }
.frame-tag { position: absolute; right: .7rem; bottom: .7rem; padding: .3rem .6rem; background: rgba(10, 9, 8, .86); border: 1px solid var(--rule); color: var(--bone-2); }
.frame-meta { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0 .8rem; border-bottom: 1px solid var(--rule); }
.frame-meta .label:first-child { color: var(--signal); }
.frame-name { margin-top: 1rem; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 5.6vw, 5.8rem); line-height: .86; text-wrap: balance; }
.frame-domain { margin-top: .9rem; color: var(--bone-2); }

/* ---------- 04 Founder ---------- */
.founder { background: var(--ink); overflow: clip; container-type: inline-size; }
.founder-name {
  display: flex; justify-content: space-between; column-gap: .2em; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  /* The name is about 5em wide; this sets it edge to edge inside the gutters. */
  font-size: calc((100vw - 2 * var(--gutter)) / 5.3); line-height: .8; letter-spacing: -.012em;
  margin: -.02em 0 0;
}
.founder-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); align-items: start; margin-top: clamp(2rem, 4.5vw, 4.5rem); }
.founder-portrait { grid-column: 1 / span 5; }
.founder-portrait picture { display: block; overflow: hidden; background: #120e0a; }
.founder-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.founder-portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; }
.founder-copy { grid-column: 7 / -1; max-width: 36rem; padding-top: .3rem; }
.founder-roles { color: var(--signal); }
.founder-copy .lead { margin: 1.2rem 0 1.7rem; font-size: clamp(1.9rem, 3.2vw, 3.2rem); }
.founder-copy > p:not(.label):not(.lead) { color: var(--bone-2); }
.founder-copy > p + p { margin-top: 1rem; }
.founder-copy p a { color: var(--bone); background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; padding-bottom: .08em; transition: color .3s; }
.founder-copy p a:hover { color: var(--signal); }
.founder-copy .btn { margin-top: 2.2rem; }
/* The record: figures Philip publishes about his own work, set large enough to carry the section. */
.founder-record { margin-top: clamp(3rem, 6.5vw, 6.5rem); padding-top: 1rem; border-top: 1px solid var(--rule-strong); }
.founder-record dl { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.5rem, 3vw, 2.75rem); }
.founder-record dt { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 4.3vw, 4.7rem); line-height: .86; letter-spacing: -.005em; }
.founder-record dd { margin-top: .7rem; max-width: 15rem; font-size: .98rem; line-height: 1.4; color: var(--bone-2); }
.founder-source { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-family: var(--f-mono); font-size: .75rem; line-height: 1.5; letter-spacing: .04em; color: var(--ash); }

/* ---------- 05 Contact ---------- */
.contact .display { font-size: clamp(3.9rem, 12.6vw, 13rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 8rem); margin-top: clamp(3rem, 6.5vw, 6.5rem); align-items: start; }
.contact-group { container-type: inline-size; }
.contact-group .lead { margin-top: 1.1rem; max-width: 27rem; }
.contact-email {
  display: inline-block; max-width: 100%; margin-top: 2rem; padding-bottom: .1em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  /* Sized from its own width (about 8.3em) so the address always holds one line. */
  font-size: clamp(1.5rem, calc((100vw - 2 * var(--gutter) - 7vw) / 17.2), 5.2rem); line-height: .95; letter-spacing: 0; white-space: nowrap;
  background-image: linear-gradient(var(--signal-deep), var(--signal-deep)); background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 100%;
  transition: color .3s, background-size .55s var(--ease-out);
}
.contact-email:hover { color: var(--signal-deep); background-size: 0 3px; background-position: 100% 100%; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.1rem; }
.copy-status { min-height: 1.5rem; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-ash); }
.contact-doors-intro { margin-top: 1.1rem; max-width: 27rem; color: var(--paper-ash); }
.doors { margin: 1.6rem 0 1.5rem; border-top: 1px solid var(--paper-ink); }
.doors a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 1rem; align-items: baseline; gap: 1.25rem;
  padding: .92rem .9rem .86rem 0; border-bottom: 1px solid var(--paper-rule);
  transition: background-color .35s, color .35s, padding .45s var(--ease-out);
}
.door-need { font-size: 1.04rem; line-height: 1.35; }
.door-name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-align: right; }
.doors .arrow { align-self: center; }
.doors a:hover { background: var(--paper-ink); color: var(--paper); padding-left: .9rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #050403; overflow: clip; }
.footer-stage { position: relative; height: clamp(17rem, 43vw, 40rem); }
.footer-stage picture { position: absolute; inset: 0; }
.footer-stage img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.footer-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 4, 3, .0) 55%, #050403 100%); }
.footer-inner { position: relative; padding: 0 var(--gutter) 1.6rem; margin-top: clamp(-7rem, -9vw, -3rem); container-type: inline-size; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 7rem); align-items: end; }
.footer-brand { display: block; width: 13.5rem; }
.footer-line { grid-column: 1; font-family: var(--f-serif); font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.16; letter-spacing: -.012em; color: var(--bone); }
.footer-nav { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 2rem clamp(3rem, 8vw, 8rem); }
.footer-nav .label { margin-bottom: .8rem; }
.footer-nav li a { display: inline-block; padding: .22rem 0; color: var(--bone-2); transition: color .3s; }
.footer-nav li a:hover { color: var(--signal); }
.footer-wordmark {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  /* The word is about 3.6em wide; this sets it edge to edge inside the gutters. */
  font-size: calc((100vw - 2 * var(--gutter)) / 3.72); line-height: .74; letter-spacing: -.012em; text-align: center; white-space: nowrap;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0; padding-bottom: .04em; color: var(--bone);
  -webkit-user-select: none; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: clamp(1.25rem, 2.5vw, 2rem); padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.credit strong { font-weight: 500; color: var(--bone); }
.credit:hover strong { color: var(--signal); }

/* Fit-to-width type measures its own container where the browser can, so a scrollbar
   or a narrow phone never pushes a letter past the edge. */
@supports (width: 1cqi) {
  .founder-name { font-size: calc(100cqi / 5.2); }
  .footer-wordmark { font-size: calc(100cqi / 3.68); }
  .contact-email { font-size: clamp(1.5rem, calc(100cqi / 8.5), 5.2rem); }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity 1s ease, transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Scroll-linked depth where the browser supports it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes drift { from { transform: translateY(-4%) scale(1.08); } to { transform: translateY(4%) scale(1.08); } }
    .chapter-halo .chapter-media > picture img, .chapter-dreadwake .chapter-media > picture img, .footer-stage img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes hero-sink { to { transform: translateY(7%) scale(1.04); } }
    .hero-still, .hero-loop { animation: hero-sink linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1800px) { :root { --gutter: max(4.75rem, calc((100vw - 1720px) / 2)); } }

@media (max-width: 1180px) {
  .site-nav { gap: 1.25rem; }
  .nav-no { display: none; }
  .brand { width: 10rem; }
  .entry-sector { display: none; }
  .chapter-showledgers .chapter-main { max-width: 42%; }
  .chapter-sonorthwest .chapter-main { max-width: 38%; }
  .founder-record dl { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
}

/* Tablet and below: navigation becomes a full-screen menu */
@media (max-width: 1000px) {
  :root { --header-h: 4.5rem; }
  .site-nav, .header-contact { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .8rem; min-height: 2.75rem; padding: .5rem .2rem .5rem .6rem;
    background: none; border: 0;
    font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--bone);
  }
  .menu-toggle-icon { position: relative; width: 1.5rem; height: .6rem; }
  .menu-toggle-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
  .menu-toggle-icon i:first-child { top: 0; }
  .menu-toggle-icon i:last-child { top: 100%; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon i { top: 50%; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { transform: rotate(-45deg); }

  /* The figure note takes its own cell beside the eyebrow, so the headline can never run into it. */
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(1rem, 1fr) auto auto; }
  .hero-eyebrow { grid-area: 1 / 1; align-self: start; }
  .hero-note { position: static; grid-area: 1 / 2; width: 13.5rem; }
  .hero-title { grid-area: 3 / 1 / 4 / 3; font-size: clamp(4.5rem, min(24vw, 22svh), 15rem); }
  .hero-aside { grid-area: 4 / 1 / 5 / 3; justify-self: stretch; max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 1.5rem; padding: 0; }
  .hero-actions { margin-top: 0; }
  .hero-intro { max-width: 21rem; }
  /* In flow under the bill, where it cannot collide with the hero actions. */
  .motion-toggle { position: static; display: block; margin: .9rem 0 0; }

  .group-intro, .selected-intro, .directory-intro { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; }
  .group-copy, .selected-note, .directory-intro .lead { max-width: 34rem; padding-bottom: 0; }

  /* Five rooms become a swipeable rail */
  .rooms {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .5rem;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .rooms::-webkit-scrollbar { display: none; }
  .room { flex: 0 0 min(72vw, 21rem); scroll-snap-align: start; }
  .room-word { font-size: clamp(2.9rem, 9.5vw, 4rem); }

  /* Chapters: image first, then the brand's own block */
  .chapter { min-height: 0; display: block; }
  .chapter .chapter-media, .chapter-showledgers .chapter-media, .chapter-sonorthwest .chapter-media { position: relative; inset: auto; width: auto; height: auto; aspect-ratio: 16 / 11; overflow: hidden; z-index: 0; }
  .chapter-showledgers .chapter-media { aspect-ratio: auto; overflow: visible; padding: 2rem var(--gutter) 0; }
  .chapter-halo .chapter-media::after { background: linear-gradient(0deg, #07090d 0%, rgba(7, 9, 13, 0) 55%); }
  .chapter-dreadwake .chapter-media::after { z-index: 0; background: linear-gradient(0deg, #0b0908 0%, rgba(11, 9, 8, 0) 55%); }
  .chapter-dreadwake .chapter-media > picture { z-index: 0; }
  .chapter-sonorthwest .chapter-media > picture::after { background: linear-gradient(0deg, #0d0f11 0%, rgba(13, 15, 17, 0) 60%); }
  .chapter-product { left: auto; right: var(--gutter); bottom: 1.25rem; width: clamp(7rem, 24vw, 11rem); z-index: 1; }
  .chapter-product .chapter-caption { display: none; }
  .chapter-products { left: var(--gutter); right: var(--gutter); bottom: 1.25rem; max-width: 30rem; }
  .chapter-body { padding: 1.5rem var(--gutter) clamp(3rem, 8vw, 5rem); position: relative; }
  .chapter .chapter-main, .chapter-showledgers .chapter-main, .chapter-dreadwake .chapter-main, .chapter-sonorthwest .chapter-main { justify-self: start; max-width: 38rem; margin-top: 2rem; }

  /* Directory: one column, previews open inside each row */
  .directory-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-frame { display: none; }
  .entry-image { display: block; }
  .entry-panel-inner { padding-left: 0; }

  .founder-portrait { grid-column: 1 / span 6; }
  .founder-copy { grid-column: 7 / -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-email { font-size: clamp(1.5rem, calc((100vw - 2 * var(--gutter)) / 8.6), 5.2rem); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}
@supports (width: 1cqi) {
  @media (max-width: 1000px) { .contact-email { font-size: clamp(1.5rem, calc(100cqi / 8.5), 5.2rem); } }
}

/* Phones */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .brand { width: 9.25rem; }
  .section { padding-top: 4.25rem; padding-bottom: 4.5rem; }
  .section-head { margin-bottom: 2.25rem; }
  .section-head .label + .label { display: none; }
  .display { font-size: clamp(3.4rem, 20vw, 6.5rem); }
  .display-mid { font-size: clamp(3.2rem, 17vw, 5.4rem); }
  .statement { font-size: clamp(2rem, 10.2vw, 3.6rem); }

  .hero { min-height: max(100svh, 34rem); }
  /* The picture fills the first screen only, so the lamp keeps its place however long the hero runs. */
  .hero-media { bottom: auto; height: max(100svh, 34rem); }
  .hero-shade { background: linear-gradient(180deg, rgba(5, 4, 3, .7) 0%, rgba(5, 4, 3, 0) 16%), linear-gradient(0deg, #050403 0%, rgba(5, 4, 3, .8) 28%, rgba(5, 4, 3, 0) 62%); }
  .hero-inner { padding-bottom: 1.5rem; grid-template-rows: auto minmax(.5rem, 1fr) auto auto; }
  .hero-note { display: none; }
  /* Sized from the measured width of the longest line (about 3.03em) so it always holds three lines. */
  .hero-title { font-size: clamp(3.4rem, min(29vw, 17svh), 9.5rem); }
  .hero-aside { display: block; margin-top: 1.1rem; }
  .hero-intro { font-size: 1rem; max-width: 21rem; }
  /* Stacked, so the row can never re-wrap (and shift the headline) when the label font arrives. */
  .hero-actions { margin-top: 1.1rem; flex-direction: column; align-items: flex-start; gap: .55rem; }
  .hero-actions .btn { min-height: 3rem; }
  .hero-billing { padding-top: .9rem; }
  .billing-lead, .billing { font-size: 1.12rem; line-height: 1.5; }
  .billing-lead { display: block; margin: 0 0 .15rem; }
  /* The short form of the bill: each sector and how many it holds. */
  .billing-names { display: none; }
  .billing-count { display: inline; margin-left: .1em; padding: .2em 0; color: var(--signal); }
  .billing-role { font-size: 1em; font-weight: 600; letter-spacing: .012em; color: var(--bone-2); vertical-align: 0; margin-right: .4em; }
  .billing-founder .billing-role { font-size: max(.6em, .75rem); font-weight: 500; letter-spacing: .09em; vertical-align: .14em; }
  .billing li + li::before { width: .9em; }

  .group-foot { flex-direction: column; gap: .2rem; }
  .selected-foot { align-items: flex-start; flex-direction: column; }

  .chapter .chapter-media, .chapter-sonorthwest .chapter-media { aspect-ratio: 4 / 4.4; }
  .chapter-showledgers .chapter-media { aspect-ratio: auto; }
  .chapter-halo .chapter-title { font-size: clamp(3.1rem, 16vw, 5rem); }
  .chapter-showledgers .chapter-title { font-size: clamp(3rem, 17.5vw, 5.4rem); }
  .chapter-dreadwake .chapter-title { font-size: clamp(2.8rem, 14.5vw, 4.6rem); }
  .chapter-sonorthwest .chapter-title { font-size: clamp(2.1rem, 11.4vw, 3.6rem); }
  .chapter-halo .chapter-logo { height: 6.5rem; }
  .chapter-link { width: 100%; justify-content: space-between; }

  /* Every sector stays on screen: the filters wrap instead of scrolling out of view. */
  .filters { gap: .45rem; }
  .filters button { min-height: 2.9rem; padding: .6rem .95rem; }
  .entry-toggle { grid-template-columns: 2rem minmax(0, 1fr) 1.1rem; column-gap: .7rem; padding: .95rem 0 .9rem; }
  .entry-mark { grid-area: 1 / 3; }
  .entry-line { grid-area: 2 / 2 / auto / 3; font-size: .94rem; }
  .entry-name { font-size: clamp(1.9rem, 9.6vw, 2.8rem); }
  .entry-link { width: 100%; justify-content: space-between; }

  .founder-name { font-size: calc((100vw - 2 * var(--gutter)) / 3.05); line-height: .82; display: block; }
  .founder-name span { display: block; }
  .founder-grid { display: block; margin-top: 2rem; }
  .founder-portrait { margin-right: 12%; }
  .founder-portrait figcaption { flex-direction: column; gap: .1rem; }
  .founder-copy { margin-top: 2.5rem; }
  .founder-record dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .founder-record dt { font-size: clamp(2.1rem, 11vw, 3.2rem); }

  .doors a { grid-template-columns: minmax(0, 1fr) 1rem; row-gap: .25rem; }
  .door-need { grid-column: 1; }
  .door-name { grid-column: 1; grid-row: 2; text-align: left; font-size: 1.5rem; }
  .doors .arrow { grid-column: 2; grid-row: 1 / span 2; }

  .footer-stage { height: 62vw; }
  .footer-brand { width: 11rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .35rem; }
}
@supports (width: 1cqi) {
  @media (max-width: 720px) {
    .hero-title { font-size: clamp(3.4rem, min(calc(100cqi / 3.14), 17svh), 9.5rem); }
    .founder-name { font-size: calc(100cqi / 3); }
  }
}
/* Upright phones: the portrait still. The lamp gets the top of the frame (its cage ends near 27% of
   the screen height) and the headline starts below it, on the stage floor. */
@media (max-width: 720px) and (orientation: portrait) {
  .hero-still, .hero-loop { object-position: 50% 0%; }
  .hero-inner { grid-template-rows: auto minmax(max(3rem, calc(29svh - 7rem)), 1fr) auto auto; }
  .hero-title { font-size: clamp(3.4rem, min(29vw, 19svh), 9.5rem); }
}
@supports (width: 1cqi) {
  @media (max-width: 720px) and (orientation: portrait) {
    .hero-title { font-size: clamp(3.4rem, min(calc(100cqi / 3.14), 19svh), 9.5rem); }
  }
}
/* Tablet layout in a short window: the note steps aside and the headline eases down a size. */
@media (min-width: 721px) and (max-width: 1000px) and (max-height: 820px) {
  .hero-note { display: none; }
}
@media (min-width: 721px) and (max-width: 1000px) and (max-height: 700px) {
  .hero-title { font-size: clamp(4rem, min(24vw, 19svh), 15rem); }
}
/* Very short screens (a laptop at 200% zoom, a phone on its side): a slimmer header buys back room. */
@media (max-width: 1000px) and (max-height: 520px) {
  :root { --header-h: 3.5rem; }
  .brand { width: 7.5rem; }
  .hero-actions .btn { min-height: 2.75rem; }
}
@media (max-width: 720px) and (max-height: 400px) {
  .hero-title { font-size: clamp(2.8rem, 15svh, 9.5rem); }
  .hero-aside, .hero-actions { margin-top: .7rem; }
}

/* Short desktop viewports: keep the poster inside the fold */
@media (min-width: 1001px) and (max-height: 760px) {
  .hero-note { display: none; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-loop, .motion-toggle { display: none; }
}

@media (forced-colors: active) {
  .tally { background: CanvasText; }
  .btn, .chapter-link, .entry-link, .filters button { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .mobile-nav, .hero-loop, .motion-toggle, .stage-frame, .lineup-more { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .entry:not(.open) .entry-panel { grid-template-rows: 1fr; visibility: visible; }
}
