/* ==========================================================================
   HOUSE INFINITE — house.css
   Anchor: brand-design/BRAND-DESIGN.md (Harmonic base adopted, Direction A
   defaults on the four open dials). A gate cross-pick is a token swap in
   :root below — components never hard-code dial values.
   ========================================================================== */

/* ---- Fonts (self-hosted, woff2 only — no runtime font CDN) ---- */
/* Display stand-in for PP Neue Montreal: Instrument Sans variable (OFL,
   converted from scripts/fonts cache). Mono: IBM Plex Mono (OFL, cached).
   UI/body: Inter variable (OFL, rsms/inter release). */

@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/InstrumentSans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---- Tokens — BRAND-DESIGN §1.1 verbatim ---- */
:root {
  /* ADOPTED (Harmonic base, gated 2026-07-30 — not open) */
  --surface:        #FFFFFF;
  --ink:            #1F2022;
  --ink-muted:      rgba(0,0,0,0.30);
  --ink-tertiary:   #82858C;
  --hairline:       #C4C6CC;
  --cta-bg:         #090A0D;
  --cta-text:       #F1F1F1;
  --btn2-bg:        #E4E5EB;
  --btn2-text:      #040508;
  --theater:        #121214;
  --theater-alt:    #16171A;

  /* DIALS — GATED (Direction A "Brass House", Chris 2026-07-30; see brand-design/BRAND-DESIGN.md changelog) */
  --field:          #F6F5F1;  /* warmth: 1 step warm */
  --accent:         #BFA138;  /* brass — the one accent */
  --accent-deep:    #9E8530;  /* hover/pressed */
  --close:          #171D15;  /* deep olive — footer card ONLY */
  --motif-ink:      var(--ink);
  --motif-opacity:  0.05;     /* DIAL 2 strength — whisper only */

  /* Derived / system */
  --font-display: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --ease-house: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-card: rgba(0,0,0,0.08) 0 4px 20px;
  --container: 1152px;
  --container-wide: 1440px;
  --container-grid: 1265px;
  --pad-x: clamp(20px, 3.4vw, 48px);
  --section-y: clamp(80px, 9vw, 130px);
}

::selection { background: var(--accent); color: #fff; }

/* ---- Reset / base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* clip, never hidden — hidden would break position:sticky in the theater */
body {
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font: inherit; border: none; background: none; color: inherit; outline: none; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(30px, 3.3vw, 40px); line-height: 1.3; font-weight: 400; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 400; letter-spacing: 0.015em; }

.mono { font-family: var(--font-mono); font-weight: 400; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink-tertiary); text-transform: uppercase;
}
.eyebrow .tick { color: var(--accent); font-style: normal; }
.tone { color: var(--ink-muted); }
.lead { font-size: 20px; line-height: 1.4; color: var(--ink-muted); }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---- Global atmosphere: one fixed field + grain, whole page one world ---- */
.atmo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 68% 46% at 50% 12%,
    color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Pills (radius law: 99px every interactive) ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 99px; font-family: var(--font-ui);
  font-size: 14px; font-weight: 500; padding: 10px 22px;
  border: 0; cursor: pointer; appearance: none; line-height: 1.3;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.pill.black { background: var(--cta-bg); color: var(--cta-text); }
.pill.black:hover { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.pill.gray {
  background: #EAE7DF; color: var(--ink);
  border: 1px solid rgba(23, 29, 21, 0.10);
  padding: 9px 21px; /* hairline border keeps outer size equal to .black */
}
.pill.gray:hover { background: #E2DED4; }

/* ---- Nav ---- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
  padding: 18px var(--pad-x);
  transition: max-width 0.45s var(--ease-house), margin 0.45s var(--ease-house),
              padding 0.45s var(--ease-house), background 0.3s ease,
              box-shadow 0.3s ease, border-color 0.3s ease, border-radius 0.45s var(--ease-house);
  border: 1px solid transparent; border-radius: 99px; background: transparent;
}
html.js .site-head.scrolled .nav {
  max-width: 840px; margin-top: 12px;
  padding: 9px 10px 9px 24px;
  background: var(--surface); border-color: var(--hairline);
  box-shadow: var(--shadow-card);
}
.wordmark { font-family: var(--font-display); font-weight: 560; font-size: 16px; letter-spacing: 0.01em; white-space: nowrap; }
.wordmark .lemn { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-right: auto; margin-left: 10px; font-size: 14px; color: var(--ink-tertiary); }
.nav-links > a:hover, .navdrop > button:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Dropdowns — CSS hover/focus so they work without JS; JS adds tap toggle */
.navdrop { position: relative; }
.navdrop > button { font-size: 14px; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; }
.navdrop > button .caret { font-size: 10px; color: var(--ink-tertiary); }
.navdrop .panel {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 320px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-house), visibility 0.2s;
}
.navdrop:hover .panel, .navdrop:focus-within .panel, .navdrop.open .panel {
  opacity: 1; visibility: visible; transform: none;
}
.navdrop.right .panel { left: auto; right: -6px; min-width: 250px; }
.panel a { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 10px; }
.panel a:hover { background: var(--field); }
.panel .idx { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.panel .p-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.panel .p-sub { font-size: 13px; color: var(--ink-tertiary); margin-left: auto; text-align: right; }

/* ---- Hero ---- */
.hero {
  position: relative; text-align: center;
  padding: clamp(150px, 16vw, 210px) var(--pad-x) clamp(90px, 9vw, 130px);
  overflow: hidden;
}
.hero-inner { position: relative; max-width: var(--container); margin: 0 auto; }
.glow {
  position: absolute; inset: -80px -220px auto; height: 130%;
  background: radial-gradient(ellipse 62% 50% at 50% 30%,
    color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.motif {
  position: absolute; top: clamp(70px, 8vw, 120px); left: 50%; transform: translateX(-50%);
  width: min(1000px, 130vw); opacity: var(--motif-opacity); pointer-events: none;
}
.motif path { stroke: var(--motif-ink); }
.hero h1 { position: relative; margin: 30px 0 26px; }
.hero .lead { position: relative; }
.hero .eyebrow { position: relative; }

/* Combined email + CTA pill — the one hero conversion control */
.ctapill {
  position: relative; margin: 42px auto 0; max-width: 460px; width: 100%;
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 99px; padding: 8px 8px 8px 24px;
}
.ctapill input { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink); }
.ctapill input::placeholder { color: var(--ink-tertiary); }
.ctapill .pill { flex: 0 0 auto; }

/* ---- Statement beats (frontier / counter-position) ---- */
.beat {
  min-height: 82vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--section-y) var(--pad-x);
}
.beat p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.3vw, 40px); line-height: 1.3;
  max-width: 21em;
}
.beat .mono-note { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-tertiary); margin-top: 26px; text-transform: uppercase; }

/* ---- Dark theater ---- */
.theater { position: relative; background: var(--theater); color: #fff; }
.veil { height: clamp(120px, 16vw, 220px); pointer-events: none; }
.veil.top { background: linear-gradient(var(--field), var(--theater)); margin-top: -1px; }
.veil.bottom {
  background:
    radial-gradient(ellipse 90% 120% at 50% 120%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(var(--theater), var(--field));
}
.theater-track { position: relative; }
.theater-stage { padding: clamp(30px, 4vw, 70px) var(--pad-x) clamp(60px, 6vw, 100px); max-width: var(--container); margin: 0 auto; }
.theater .eyebrow { color: rgba(255,255,255,0.45); }
.theater h2 { color: #fff; font-weight: 500; margin: 22px 0 8px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12; }
.theater h2 .tone { color: rgba(255,255,255,0.45); }
.theater .sub { color: rgba(255,255,255,0.45); font-size: 18px; max-width: 560px; }

.trail { display: flex; gap: 22px; margin: 40px 0 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }
.trail span.on { color: #fff; }

.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tcard {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px; padding: 26px 24px;
  min-height: 340px;
}
.tcard .t-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: color-mix(in srgb, var(--accent) 85%, #fff); margin-bottom: 18px; }
.tcard h3 { color: rgba(255,255,255,0.9); font-size: 19px; font-weight: 500; margin-bottom: 16px; }
.tline {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
}
.tline:last-child { border-bottom: none; }
.tline .k { color: rgba(255,255,255,0.9); }
.tline .v { color: rgba(255,255,255,0.45); text-align: right; }
.tline .live { color: color-mix(in srgb, var(--accent) 85%, #fff); }
.tcard .t-foot { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); }

/* JS-gated theater choreography (desktop): stage pins, cards take the scroll.
   Reveal-safe: without html.js everything above renders stacked + static. */
@media (min-width: 960px) {
  html.js .theater-track { height: 240vh; }
  html.js .theater-stage {
    position: sticky; top: 0; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
  }
  html.js .tcard {
    opacity: 0.25; transform: translateY(26px) scale(0.985);
    transition: opacity 0.5s var(--ease-house), transform 0.6s var(--ease-house);
  }
  html.js .tcard.lit { opacity: 1; transform: none; }
}

/* ---- Ecosystem grid ---- */
.eco { padding: var(--section-y) var(--pad-x); }
.eco-inner { max-width: var(--container-grid); margin: 0 auto; }
.eco-head { max-width: var(--container); margin: 0 auto 46px; }
.chapter { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.chapter h2 { font-size: clamp(40px, 4.8vw, 64px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.chapter .sub { font-size: 20px; color: var(--ink-muted); }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 34px 26px 24px; display: flex; flex-direction: column; gap: 26px;
  min-height: 168px; transition: box-shadow 0.2s ease, transform 0.3s var(--ease-house);
}
.tile:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.tile .lockup {
  font-family: var(--font-display); font-size: 21px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--ink); filter: grayscale(1);
}
.tile .lockup.serifish { letter-spacing: 0.06em; font-weight: 400; }
.tile .tile-head { display: flex; align-items: center; gap: 12px; }
.tile .mark {
  width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto;
  filter: grayscale(1); opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.tile:hover .mark { filter: none; opacity: 1; }
.tile .essence {
  font-family: var(--font-ui); font-size: 14.5px; line-height: 1.55;
  color: var(--ink-muted); margin-top: -12px; max-width: 34ch;
}
.chapter .eyebrow { flex-basis: 100%; }
.tile .cap {
  margin-top: auto; padding-top: 14px; border-top: 1px solid #E9EAEE;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink-tertiary); display: flex; justify-content: space-between; gap: 10px;
}
.eco-grid.forming { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.tile.forming { border-style: dashed; background: transparent; }
.tile.forming .lockup { color: var(--ink-muted); }
.tile.forming:hover { box-shadow: none; transform: none; }

/* ---- Three doors ---- */
.doors { padding: var(--section-y) var(--pad-x); }
.doors-inner { max-width: var(--container); margin: 0 auto; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 30px 28px 26px; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.3s var(--ease-house);
}
a.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card .idx { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.05em; }
.card h3 { font-size: 25px; font-weight: 500; margin: 16px 0 10px; letter-spacing: 0.005em; }
.card .body { font-size: 14.5px; line-height: 1.5; color: var(--ink-tertiary); }
.card .tag {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid #E6E7EB;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-tertiary);
}
.card .tag .go { color: var(--ink); }

/* ---- Ships strip ---- */
.ships { padding: var(--section-y) var(--pad-x); }
.ships-inner { max-width: var(--container); margin: 0 auto; }
.receipts { margin-top: 40px; border-top: 1px solid var(--hairline); }
.receipt {
  display: grid; grid-template-columns: 90px 1.2fr 1fr auto; gap: 20px; align-items: baseline;
  padding: 24px 4px; border-bottom: 1px solid var(--hairline);
}
.receipt .r-idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.receipt .r-name { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.receipt .r-what { font-size: 14.5px; color: var(--ink-tertiary); }
.receipt .r-mark { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--ink); text-align: right; }

/* ---- Footer close card ---- */
.footwrap { position: relative; max-width: var(--container-wide); margin: clamp(40px, 5vw, 80px) auto clamp(36px, 4vw, 60px); padding: 0 clamp(16px, 2vw, 24px); }
.foot {
  position: relative; overflow: hidden;
  background: var(--close); border-radius: 24px;
  padding: clamp(90px, 10vw, 140px) var(--pad-x) 56px;
  text-align: center; color: #fff;
}
.fglow { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; }
.fglow::before, .fglow::after {
  content: ""; position: absolute; border-radius: 50%;
}
.fglow::before {
  left: -12%; bottom: -46%; width: 70%; height: 90%;
  background: radial-gradient(ellipse closest-side, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%);
  animation: drift-a 52s ease-in-out infinite alternate;
}
.fglow::after {
  right: -8%; top: -30%; width: 52%; height: 70%;
  background: radial-gradient(ellipse closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
  animation: drift-b 64s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(6%, -7%) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-5%, 8%) scale(1.05); } }
.foot .eyebrow { color: rgba(255,255,255,0.45); position: relative; }
.foot h2 {
  position: relative; font-size: clamp(36px, 4.4vw, 54px); font-weight: 500;
  line-height: 1.12; margin: 28px auto 38px; letter-spacing: -0.01em; max-width: 15em;
}
.foot h2 .tone { color: rgba(255,255,255,0.45); }
.foot .ctapill { background: rgba(255,255,255,0.97); border: none; }
.foot-nav {
  position: relative; margin-top: clamp(60px, 7vw, 96px);
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.foot-nav a:hover { color: #fff; }
.liturgy {
  position: relative; margin-top: 30px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

/* ---- Sticky conversion pill ---- */
.stickycall {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 45;
  background: var(--cta-bg); color: var(--cta-text);
  border-radius: 99px; padding: 12px 24px; font-size: 14px; font-weight: 500;
  box-shadow: rgba(0,0,0,0.25) 0 8px 30px;
  display: inline-flex; gap: 10px; align-items: center; white-space: nowrap;
}
.stickycall .glyph {
  width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex: 0 0 auto;
}
.stickycall:hover { box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 40%, rgba(0,0,0,0.3)); }

/* ==========================================================================
   FOCUS PAGES (/solutions/*, /ships, /about) — no theater, no pinning
   ========================================================================== */
.page-head { padding: clamp(150px, 15vw, 200px) var(--pad-x) clamp(40px, 5vw, 70px); }
.page-head-inner { max-width: var(--container); margin: 0 auto; }
.page-head h1 { margin: 24px 0 18px; max-width: 15em; }
.page-head .lead { max-width: 34em; }
.section { padding: clamp(48px, 6vw, 90px) var(--pad-x); }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section .rule { border-top: 1px solid var(--hairline); padding-top: clamp(40px, 5vw, 64px); }

/* Protocol block */
.protocol {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  padding: clamp(28px, 3.5vw, 46px); margin-top: 40px;
}
.protocol ol { list-style: none; counter-reset: proto; }
.protocol li {
  counter-increment: proto; display: flex; gap: 22px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid #ECEDF0;
  font-size: 16px; line-height: 1.5;
}
.protocol li:last-child { border-bottom: none; }
.protocol li::before {
  content: counter(proto, decimal-leading-zero) ".";
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.05em; flex: 0 0 40px;
}
.protocol li b { font-weight: 600; }

/* Work cards (stacked, full width) */
.work {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  padding: clamp(28px, 3.5vw, 46px); margin-top: 26px;
}
.work .idx { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.05em; }
.work h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; margin: 14px 0 8px; }
.work .w-sub { font-size: 16px; color: var(--ink-tertiary); max-width: 44em; }
.work .w-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-tertiary); margin-top: 6px; text-transform: uppercase; }
.work h4 {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-tertiary); margin: 34px 0 12px;
}
.work ul { list-style: none; }
.work ul li { padding: 8px 0 8px 22px; position: relative; font-size: 15px; line-height: 1.5; border-bottom: 1px solid #F0F1F3; }
.work ul li:last-child { border-bottom: none; }
.work ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* Tables (inputs table, spectrum table) — scroll inside their own container */
.tablewrap { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-tertiary); text-align: left;
  padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hairline);
}
table.data td { padding: 13px 14px 13px 0; border-bottom: 1px solid #EEEFF2; font-size: 14.5px; line-height: 1.45; vertical-align: top; }
table.data td.n { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); white-space: nowrap; }
table.data td b { font-weight: 600; }
table.data tr:last-child td { border-bottom: none; }

/* Gate plan strip */
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; }
.gate { border: 1px solid var(--hairline); border-radius: 16px; padding: 18px; background: var(--field); }
.gate .g-idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent); }
.gate .g-name { font-weight: 600; font-size: 14.5px; margin-top: 8px; }
.gate .g-sub { font-size: 13px; color: var(--ink-tertiary); margin-top: 4px; line-height: 1.45; }

/* Price line */
.priceline {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline);
}
.priceline .p { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.priceline .p-sub { font-size: 14px; color: var(--ink-tertiary); }

/* About — reading page */
.reading { max-width: 640px; margin: 0 auto; padding: 0 var(--pad-x); }
.reading p { font-size: 18px; line-height: 1.65; margin-bottom: 26px; color: var(--ink); }
.reading p.muted { color: var(--ink-tertiary); }
.reading h2 { font-size: 28px; margin: 54px 0 20px; font-weight: 500; }
.reading .marker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-tertiary); text-transform: uppercase; margin: 40px 0 14px; }
.reading a.textlink { border-bottom: 1px solid var(--accent); transition: color 0.15s ease; }
.reading a.textlink:hover { color: var(--accent-deep); }

/* ---- Reveal system — ALL hidden states live under html.js only ---- */
html.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease-house), transform 0.9s var(--ease-house);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-stagger > * {
  opacity: 0; transform: translateY(16px) scale(0.99);
  transition: opacity 0.7s var(--ease-house), transform 0.8s var(--ease-house);
}
html.js .reveal-stagger.in > * { opacity: 1; transform: none; }
html.js .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
html.js .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
html.js .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

/* ---- Reduced motion: full static site ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fglow::before, .fglow::after { animation: none; }
  html.js .reveal, html.js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html.js .tcard { opacity: 1; transform: none; transition: none; }
  html.js .theater-track { height: auto; }
  html.js .theater-stage { position: static; min-height: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .tcards, .eco-grid, .cards3 { grid-template-columns: 1fr 1fr; }
  .gates { grid-template-columns: 1fr 1fr; }
  .receipt { grid-template-columns: 60px 1fr auto; }
  .receipt .r-what { grid-column: 2 / 4; grid-row: 2; }
}
@media (max-width: 680px) {
  /* Two-tone headlines wrap naturally on small screens — hard breaks off */
  .hero h1 br, .hero .lead br, .beat p br, .theater h2 br, .foot h2 br, .page-head h1 br { display: none; }
  h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .theater h2 { font-size: clamp(28px, 7.6vw, 34px); }
  .foot h2 { font-size: clamp(26px, 7.2vw, 36px); }
  .beat p { font-size: clamp(22px, 6vw, 26px); }
  .nav { flex-wrap: wrap; gap: 12px 18px; padding: 14px 18px; }
  .nav-links { order: 3; flex-basis: 100%; margin-left: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-cta { margin-left: auto; }
  html.js .site-head.scrolled .nav { max-width: none; margin-top: 0; border-radius: 0 0 20px 20px; padding: 10px 18px; }
  .navdrop .panel { left: 0; min-width: 270px; }
  .navdrop.right .panel { left: auto; right: 0; }
  .hero { padding-top: 170px; }
  .tcards, .eco-grid, .cards3 { grid-template-columns: 1fr; }
  .eco-grid.forming { grid-template-columns: 1fr; } /* beats the base .forming 2-col at equal+ specificity */
  .tcard { min-height: 0; }
  .gates { grid-template-columns: 1fr; }
  .receipt { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .receipt .r-what { grid-column: auto; grid-row: auto; }
  .receipt .r-mark { text-align: left; }
  .chapter { gap: 10px; }
  .ctapill { max-width: 100%; }
  .stickycall { bottom: 12px; padding: 10px 18px; font-size: 13px; }
  .beat { min-height: 60vh; }
}

/* ---- Heading rhythm ----
   .chapter carries no intrinsic bottom margin, so the gap after a heading was inherited
   from whatever happened to follow it — and a .chapter with no .sub collapsed to 0px.
   This is a FLOOR at zero specificity (:where + universal): it fills the gap when nothing
   else sets one, and loses to any element that declares its own top margin. Placed last so
   it beats the `* { margin: 0 }` reset on source order at equal specificity. */
:where(.chapter) + * { margin-top: 30px; }
