/* ============================================================
   COLUMEN | Midnight Monument
   Single-theme committed design: the hall at night.
   Near-black stone ground, ivory inscription, gold current; the
   lit monument stands in the dark. Chapters cut from lifted,
   veined stone bands; screens stay dark glass. Carve, don't
   card: nothing on the ground gets a fill except the bands,
   the moonlit diptych, and literal screens.
   ============================================================ */

@font-face {
  font-family: "Marcellus";
  src: url(../assets/fonts/marcellus.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url(../assets/fonts/cormorant-italic.woff2) format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: block;
}

:root {
  /* the night world */
  --ground: #0A111C;          /* the hall at night */
  --ground-hi: #111B2A;       /* lifted stone */
  --panel: #14202F;           /* raised stone panel */
  --ink: #EDE7D9;             /* ivory inscription (text) */
  --ink-soft: #9FAEC2;        /* secondary text */
  --ink-mid: #C9D1DC;         /* hero sub-lines: brighter than soft, dimmer than ink */
  /* dark vignette lifting hero text off the lit monument */
  --hero-halo: 0 0 6px rgba(4, 9, 16, 0.95), 0 0 16px rgba(4, 9, 16, 0.9), 0 0 34px rgba(4, 9, 16, 0.8), 0 0 60px rgba(4, 9, 16, 0.6);
  --faint: #64748C;           /* dim labels */
  --edge: rgba(233, 228, 216, 0.14);
  --gold: #B08D57;            /* brand gold (fills) */
  --gold-deep: #D9B87A;       /* gold as text on the night ground */
  --gold-bright: #E8C687;     /* gold at its brightest */
  /* dark slabs (the machines) */
  --slab-deep: #0C1420;
  --slab-edge: #22303F;
  --slab-text: #E9E4D8;
  --slab-dim: #8FA0B8;
  --slab-faint: #5C6B82;
  --display: "Marcellus", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --accent-face: "Cormorant Garamond", "Didot", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  /* procedural ink washes + stone grain (turbulence SVGs) */
  /* band textures: ivory veining (level-set of fbm noise, the same
     marble language as the hero column, inverted) and a dark rugged
     mottle for rough-hewn stone. Both stitch-tiled for repeat. */
  --veins: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22900%22%20height%3D%22900%22%3E%3Cfilter%20id%3D%22f%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.0035%200.006%22%20numOctaves%3D%222%22%20seed%3D%2217%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.92%200%200%200%200%200.9%200%200%200%200%200.85%200.33%200.33%200.33%200%200%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D%22table%22%20tableValues%3D%220%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.22%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeGaussianBlur%20stdDeviation%3D%220.5%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22900%22%20height%3D%22900%22%20filter%3D%22url%28%23f%29%22%2F%3E%3C%2Fsvg%3E");
  --rugged: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22460%22%20height%3D%22460%22%3E%3Cfilter%20id%3D%22f%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.02%22%20numOctaves%3D%223%22%20seed%3D%227%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.02%200%200%200%200%200.05%200%200%200%200%200.1%200.33%200.33%200.33%200%20-0.1%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D%22gamma%22%20amplitude%3D%220.55%22%20exponent%3D%221.6%22%20offset%3D%220%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Crect%20width%3D%22460%22%20height%3D%22460%22%20filter%3D%22url%28%23f%29%22%2F%3E%3C%2Fsvg%3E");
  --veins-ink: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22900%22%20height%3D%22900%22%3E%3Cfilter%20id%3D%22f%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.0035%200.006%22%20numOctaves%3D%222%22%20seed%3D%2229%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.34%200%200%200%200%200.42%200%200%200%200%200.52%200.33%200.33%200.33%200%200%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D%22table%22%20tableValues%3D%220%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.28%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeGaussianBlur%20stdDeviation%3D%220.7%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22900%22%20height%3D%22900%22%20filter%3D%22url%28%23f%29%22%2F%3E%3C%2Fsvg%3E");
  --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%223%22%20seed%3D%225%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.10%200%200%200%200%200.14%200%200%200%200%200.19%200%200%200%200.5%200%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22180%22%20height%3D%22180%22%20filter%3D%22url%28%23n%29%22%2F%3E%3C%2Fsvg%3E");
}
* { box-sizing: border-box; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(232, 198, 135, 0.05), transparent 60%),
    radial-gradient(80% 70% at 90% 100%, rgba(176, 141, 87, 0.07), transparent 55%),
    var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ---------- fixed cinematic layers ---------- */
#glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 60% at 50% 55%, rgba(176, 141, 87, 0.30), transparent 70%);
  opacity: 0;
}
#bigword { /* sits in front of the column: the name reads, the stone backs it */
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  display: grid; place-items: center;
}
#bigword span {
  font-family: var(--display);
  font-weight: 400;
  font-size: min(15vw, 12rem);
  letter-spacing: 0.13em;
  margin-right: -0.13em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: var(--hero-halo);
}
#column {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%;
}
.no-webgl #column { display: none; }
#captions { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.cap {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(92vw, 780px);
  text-align: center;
  opacity: 0;
}
.cap .eyebrow { margin-bottom: 0.9rem; }
.cap h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  text-shadow: var(--hero-halo);
}
.cap h2 em, .accent-em {
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 1.06em;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
}
.cap p {
  color: var(--ink-mid);
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  max-width: 46ch;
  margin: 1rem auto 0;
  text-shadow: var(--hero-halo);
}
#captions .eyebrow { text-shadow: var(--hero-halo); }
#cap-0 { top: 12vh; }
.cap-mid { top: 50%; transform: translate(-50%, -50%); }
#scrollcue {
  position: fixed; bottom: 4.5vh; left: 50%; transform: translateX(-50%);
  z-index: 4;
  font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
  text-align: center;
  text-shadow: var(--hero-halo);
}
#scrollcue .cue-t { display: block; }
#scrollcue .cue-t::after {
  content: "";
  display: block; width: 1px; height: 30px;
  margin: 0.7rem auto 0.6rem;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}
#scrollcue a {
  display: inline-block;
  font-size: 0.56rem; letter-spacing: 0.26em;
  color: var(--faint);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
}
#scrollcue a:hover, #scrollcue a:focus-visible { color: var(--gold-deep); }
@keyframes drip { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.4rem;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(rgba(7, 12, 21, 0.92), rgba(7, 12, 21, 0));
}
.lockup { display: flex; align-items: center; gap: 0.65rem; }
.lockup svg { display: block; height: 34px; width: auto; }
/* the mark's flutes were inked navy for the daylight page; at night
   they carve in ivory. Applies to every inline column glyph. */
.lockup svg line, .rule svg line, .finale-mark line { stroke: #E9E4D8; }
.wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.wordmark small {
  display: block;
  font-family: var(--ui);
  font-size: 0.48rem;
  letter-spacing: 0.48em;
  color: var(--gold-deep);
  margin-top: 0.1rem;
}
.nav-cta {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border: 1px solid rgba(176, 141, 87, 0.65);
  background: rgba(10, 17, 28, 0.55);
  padding: 0.5rem 0.95rem;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--ground-hi); }
.nav-cta:focus-visible, .swatch:focus-visible, .plaque input:focus-visible,
.cta-block a:focus-visible, .faq summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- scroll track for the cinematic ---------- */
/* svh, not vh: mobile browser chrome (Instagram's especially) shows on
   scroll-up and would resize a vh-based spacer by 3px per 1px of chrome */
#cinema { height: 380vh; height: 380svh; position: relative; z-index: 1; }

/* ---------- the functional page scrolls over the art ---------- */
#content {
  position: relative; z-index: 4;
  background:
    radial-gradient(90% 40% at 50% 0%, rgba(232, 198, 135, 0.05), transparent 60%),
    var(--ground);
  border-top: 1px solid rgba(176, 141, 87, 0.7);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.65);
  padding-top: clamp(3rem, 7vh, 5rem); padding-top: clamp(3rem, 7svh, 5rem);
}
#content::before { /* the current feeds the page: a thread of gold from the column */
  content: "";
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 1px; height: clamp(3rem, 7vh, 5rem); height: clamp(3rem, 7svh, 5rem);
  background: linear-gradient(var(--gold), rgba(176, 141, 87, 0.2));
  z-index: 2;
}
#content::after { /* stone tooth: fine grain so the night ground reads as stone */
  content: "";
  position: absolute; inset: 0;
  background: var(--grain) repeat;
  background-size: 180px 180px;
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
#content > * { position: relative; z-index: 2; }

/* ---------- engraved chapter rules ---------- */
.rule {
  position: relative;
  display: flex; align-items: center; gap: 1.1rem;
  max-width: 940px;
  margin: clamp(3rem, 8vh, 5rem) auto 0; margin: clamp(3rem, 8svh, 5rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 3px;
  border-top: 1px solid rgba(233, 228, 216, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
}
.rule svg { width: 13px; height: 22px; flex: none; opacity: 0.75; }
.content-intro { text-align: center; max-width: 680px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.content-intro h2, .section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.6vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--ink);
  text-wrap: balance;
}
.content-intro p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.section {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(2.4rem, 6vh, 3.6rem) clamp(1rem, 4vw, 2rem) 0; padding: clamp(2.4rem, 6svh, 3.6rem) clamp(1rem, 4vw, 2rem) 0;
  text-align: center;
}

/* asymmetric sections break the centred march down the page */
.section--left { text-align: left; }
.section--left .section-title { margin-left: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
.split--flip { grid-template-columns: 260px minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; gap: 1px; background: var(--edge); border: 1px solid var(--edge); }
.rail div { background: var(--ground-hi); padding: 1rem 1.1rem; }
.rail strong {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  color: var(--gold-deep);
}
.rail span { display: block; margin-top: 0.3rem; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* sections settle into place as they enter view */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.seen { opacity: 1; transform: none; transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* ---------- the OS slab ----------
   Every dashboard value is a token on .slab. A tenant preset overrides the
   token set (surface, shape, type, density and layout) so two tenants
   don't share a look, which is the product claim. Presets live at the end
   of this block. */
.slab-zone {
  max-width: 880px;
  margin: clamp(2rem, 5vh, 3rem) auto 0; margin: clamp(2rem, 5svh, 3rem) auto 0;
  padding: 0 clamp(0.8rem, 3vw, 2rem);
}
.slab {
  /* --- monument: the default identity --- */
  --os-bg: linear-gradient(178deg, #1A2637 0%, #121C2B 60%, #0F1826 100%);
  --os-chrome: rgba(12, 20, 32, 0.6);
  --os-panel: rgba(0, 0, 0, 0.18);
  --os-tile: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  --os-well: rgba(255, 255, 255, 0.08);
  --os-line: #22303F;
  --os-line-w: 1px;
  --os-ink: #E9E4D8;
  --os-dim: #8FA0B8;
  --os-faint: #5C6B82;
  --os-accent: #B08D57;
  --os-accent-ink: #E8C687;
  --os-on-accent: #10131A;
  --os-radius: 0px;
  --os-radius-pill: 0px;
  --os-nav-w: 200px;
  --os-pad: 1.1rem;
  --os-gap: 1rem;
  --os-font: var(--ui);
  --os-num: var(--mono);
  --os-brand: var(--display);
  --os-label-tt: uppercase;
  --os-label-ls: 0.16em;
  --os-label-w: 400;
  --os-h-w: 600;
  --os-h-ls: 0.01em;
  --os-num-size: 1.32rem;
  --os-sweep: rgba(232, 198, 135, 0.22);
  --os-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(232, 198, 135, 0.06);

  position: relative;
  background: var(--os-bg);
  border: 1px solid var(--os-line);
  border-top-color: rgba(176, 141, 87, 0.6);
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow);
  overflow: hidden;
  transition: background 0.5s, border-color 0.5s, border-radius 0.5s;
}
.slab::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, var(--os-sweep) 48%, rgba(255, 255, 255, 0.12) 52%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 3;
}
.slab.shimmer::after { animation: sweep 0.9s ease-out; }
@keyframes sweep { to { transform: translateX(120%); } }

.chrome {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--os-line);
  background: var(--os-chrome);
}
.chrome .dots { display: flex; gap: 5px; }
.chrome .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--os-faint); opacity: 0.55; display: block; }
.chrome .url {
  font-family: var(--os-num);
  font-size: 0.68rem;
  color: var(--os-dim);
  background: var(--os-well);
  border: 1px solid var(--os-line);
  border-radius: var(--os-radius-pill);
  padding: 0.25rem 0.7rem;
  flex: 1; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chrome .url b { color: var(--os-accent-ink); font-weight: 500; }

/* view switch */
.viewtabs { display: flex; border-bottom: 1px solid var(--os-line); background: var(--os-panel); }
.viewtabs button {
  flex: 1;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem 0.7rem;
  font-family: var(--os-font);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--os-faint);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.viewtabs button.on { color: var(--os-ink); border-bottom-color: var(--os-accent); background: rgba(127, 127, 127, 0.06); }
.viewtabs .abbr { display: none; }
.viewtabs button:hover { color: var(--os-dim); }
.viewtabs button:focus-visible { outline: 2px solid var(--os-accent); outline-offset: -3px; }

.os {
  display: grid; grid-template-columns: var(--os-nav-w) 1fr;
  min-height: 430px; text-align: left;
  color: var(--os-ink);
  font-family: var(--os-font);
}
.os[hidden] { display: none; }

/* semantic states — reserved, never the tenant accent, always with a label */
/* doubled class outranks the .stats base template declared later in the file */
.stats.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat strong.ok { color: #7FD6B4; }
.stat strong.warn { color: #E8B454; }
.stat strong.crit { color: #E88B7D; }

.radar li { align-items: center; gap: 0.65rem; padding: 0.6rem 0.85rem; }
.radar .face {
  flex: none;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid currentColor;
  background: rgba(127, 127, 127, 0.08);
}
.face.ok, .chip.ok { color: #5FA98C; }
.face.warn { color: #C08A17; }
.face.crit { color: #C0503E; }
.radar .chip {
  flex: none;
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: var(--os-radius-pill);
}
.chip.warn { color: #C08A17; }
.chip.crit { color: #C0503E; }
.who { flex: 1; min-width: 0; }
.who b { display: block; color: var(--os-ink); font-weight: 500; }
.who em { font-style: normal; font-size: 0.67rem; color: var(--os-faint); }

/* the loop closed: the list detects, the flag diagnoses, the draft is the save */
.nudge {
  border: var(--os-line-w) solid var(--os-line);
  border-left: 2px solid var(--os-accent);
  background: var(--os-panel);
  border-radius: var(--os-radius);
  padding: 0.7rem 0.85rem 0.75rem;
  transition: border-radius 0.5s, border-color 0.5s;
}
.nudge label {
  display: block; font-size: 0.58rem;
  letter-spacing: var(--os-label-ls); text-transform: var(--os-label-tt);
  font-weight: var(--os-label-w);
  color: var(--os-faint); margin-bottom: 0.45rem;
}
.nudge p {
  margin: 0 0 0.65rem;
  font-size: 0.76rem; line-height: 1.55; color: var(--os-ink);
}
.nudge-actions { display: flex; gap: 0.5rem; }
.nudge-actions span {
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--os-line); border-radius: var(--os-radius-pill);
  color: var(--os-dim);
}
.nudge-actions .approve { border-color: var(--os-accent); color: var(--os-accent); transition: color 0.5s, border-color 0.5s; }

.side {
  border-right: 1px solid var(--os-line);
  padding: var(--os-pad) 0.9rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--os-panel);
}
.brand-row { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.monogram {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--os-accent);
  color: var(--os-on-accent);
  font-family: var(--os-brand);
  font-size: 0.95rem;
  border-radius: var(--os-radius);
  transition: background-color 0.5s, border-radius 0.5s;
}
.prog-name { font-size: 0.78rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.prog-name small {
  display: block; font-weight: 400; font-size: 0.62rem;
  color: var(--os-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px;
}
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.side li {
  font-size: 0.76rem; color: var(--os-dim);
  padding: 0.48rem 0.7rem;
  border-left: 2px solid transparent;
  border-radius: var(--os-radius);
  transition: color 0.2s, background-color 0.2s;
}
.side li.active {
  color: var(--os-ink);
  background: rgba(127, 127, 127, 0.09);
  border-left-color: var(--os-accent);
}
.side-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--os-faint);
  padding-top: 0.9rem;
  border-top: 1px solid var(--os-line);
}
.side-foot .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--os-accent); transition: background-color 0.5s; }

.main { padding: var(--os-pad) 1.2rem 1.3rem; display: flex; flex-direction: column; gap: var(--os-gap); min-width: 0; }
.greet { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.greet h2 {
  font-family: var(--os-brand-h, var(--os-font));
  font-size: 1.02rem; font-weight: var(--os-h-w); margin: 0;
  color: var(--os-ink); letter-spacing: var(--os-h-ls);
}
.greet .sub { margin: 0.18rem 0 0; font-size: 0.7rem; color: var(--os-faint); }
.greet .avatar {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem; letter-spacing: 0.04em; font-weight: 600;
  color: var(--os-ink);
  background: rgba(127, 127, 127, 0.10);
  border: 1px solid var(--os-line);
}

.stats { display: grid; grid-template-columns: 3fr 2fr; gap: 0.6rem; }
.stat {
  border: var(--os-line-w) solid var(--os-line);
  background: var(--os-tile);
  border-radius: var(--os-radius);
  padding: 0.7rem 0.8rem 0.75rem;
  display: flex; flex-direction: column;
  transition: border-radius 0.5s, background 0.5s;
}
.stat label {
  display: block; font-size: 0.58rem;
  letter-spacing: var(--os-label-ls); text-transform: var(--os-label-tt);
  font-weight: var(--os-label-w);
  color: var(--os-faint); margin-bottom: 0.4rem;
}
.stat-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.stat strong {
  font-family: var(--os-num);
  font-variant-numeric: tabular-nums;
  font-size: var(--os-num-size); font-weight: 600; line-height: 1;
  color: var(--os-accent-ink);
  transition: color 0.5s, font-size 0.4s;
}
.stat strong.flash { animation: statflash 0.7s ease-out; }
@keyframes statflash { 0% { text-shadow: 0 0 14px currentColor; } 100% { text-shadow: none; } }
.stat em { font-style: normal; font-size: 0.62rem; color: var(--os-faint); margin-left: 0.22rem; }
.stat strong em.pct { margin-left: 0.05rem; }
.stat .delta { font-size: 0.64rem; color: var(--os-dim); }
.stat-note { margin: 0.45rem 0 0; font-size: 0.64rem; color: var(--os-faint); }

/* one series, so no legend — the tile label names it; endpoint carries the eye */
.spark { width: 100%; height: 34px; display: block; margin-top: 0.55rem; overflow: visible; }
.spark-fill { fill: var(--os-accent); opacity: 0.16; transition: fill 0.5s; }
.spark-line {
  fill: none;
  stroke: var(--os-accent-ink);
  stroke-width: 1.7; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round;
  transition: stroke 0.5s;
}
.spark-dot { fill: var(--os-accent-ink); transition: fill 0.5s; }

.phases label {
  display: flex; justify-content: space-between;
  font-size: 0.6rem; letter-spacing: var(--os-label-ls); text-transform: var(--os-label-tt);
  color: var(--os-faint); margin-bottom: 0.55rem;
}
.phases label b { color: var(--os-dim); font-weight: 500; letter-spacing: 0.1em; }
.track { position: relative; height: 3px; background: var(--os-well); margin: 0 7px; border-radius: var(--os-radius-pill); }
/* the fill parks exactly on the current node: 33.3% = node two of four */
.track .fill { position: absolute; inset: 0 auto 0 0; width: 33.3%; background: var(--os-accent); border-radius: var(--os-radius-pill); transition: background-color 0.5s; }
.nodes { display: flex; justify-content: space-between; margin-top: -8.5px; }
.node {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--os-node, #16202F); border: 2px solid var(--os-line);
  display: grid; place-items: center;
  font-size: 7px; color: var(--os-faint);
}
.node.done { border-color: var(--os-accent); background: var(--os-accent); color: var(--os-on-accent); transition: background-color 0.5s, border-color 0.5s; }
.node.now { border-color: var(--os-accent); transition: border-color 0.5s; }
.phase-names { display: flex; justify-content: space-between; margin-top: 0.45rem; }
.phase-names span { font-size: 0.58rem; letter-spacing: 0.06em; color: var(--os-faint); text-transform: var(--os-label-tt); }
.phase-names span.on { color: var(--os-accent-ink); transition: color 0.5s; }

.feed { border: var(--os-line-w) solid var(--os-line); background: var(--os-panel); border-radius: var(--os-radius); transition: border-radius 0.5s; }
.feed h3 {
  margin: 0; padding: 0.5rem 0.85rem;
  font-size: 0.6rem; letter-spacing: var(--os-label-ls); text-transform: var(--os-label-tt);
  color: var(--os-faint); font-weight: 500;
  border-bottom: 1px solid var(--os-line);
  display: flex; align-items: center; gap: 0.5rem;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--os-accent); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.feed ol { list-style: none; margin: 0; padding: 0.35rem 0; }
.feed li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0.85rem; font-size: 0.74rem; color: var(--os-dim); }
.feed li b { color: var(--os-ink); font-weight: 500; }
.feed li time { font-family: var(--os-num); font-size: 0.62rem; color: var(--os-faint); flex: none; }
.feed li.enter { animation: slidein 0.5s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============ TENANT PRESETS ============ */

/* studio — light, rounded, airy, sans throughout */
.slab[data-preset="studio"] {
  --os-bg: #FBFAF9;
  --os-chrome: #F1EFEC;
  --os-panel: #F5F3F0;
  --os-tile: #FFFFFF;
  --os-well: rgba(20, 24, 32, 0.07);
  --os-line: #E4E0DA;
  --os-ink: #1F242C;
  --os-dim: #5A6473;
  --os-faint: #8A93A0;
  --os-accent: #3F7D6A;
  --os-accent-ink: #2F6355;
  --os-on-accent: #FFFFFF;
  --os-radius: 12px;
  --os-radius-pill: 999px;
  --os-nav-w: 214px;
  --os-pad: 1.3rem;
  --os-gap: 1.1rem;
  --os-brand: var(--ui);
  --os-num: var(--ui);
  --os-label-tt: none;
  --os-label-ls: 0.01em;
  --os-label-w: 500;
  --os-num-size: 1.5rem;
  --os-node: #FFFFFF;
  --os-sweep: rgba(20, 24, 32, 0.10);
  --os-shadow: 0 24px 44px -28px rgba(20, 24, 32, 0.4);
  border-top-color: #E4E0DA;
}
.slab[data-preset="studio"] .stat { box-shadow: 0 1px 2px rgba(20, 24, 32, 0.05); }
.slab[data-preset="studio"] .stat label { font-size: 0.66rem; }
.slab[data-preset="studio"] .side li { border-left: 0; padding-left: 0.8rem; }
.slab[data-preset="studio"] .side li.active { background: var(--os-accent); color: #fff; }

/* bureau — near-black, heavy rules, condensed uppercase, dense */
.slab[data-preset="bureau"] {
  --os-bg: #0B0C0E;
  --os-chrome: #141619;
  --os-panel: #101215;
  --os-tile: #131518;
  --os-well: rgba(255, 255, 255, 0.09);
  --os-line: #2A2E34;
  --os-line-w: 2px;
  --os-ink: #F2F2F0;
  --os-dim: #9AA0A8;
  --os-faint: #6B7178;
  --os-accent: #E4573D;
  --os-accent-ink: #FF8367;
  --os-on-accent: #0B0C0E;
  --os-radius: 0px;
  --os-radius-pill: 0px;
  --os-nav-w: 176px;
  --os-pad: 0.9rem;
  --os-gap: 0.75rem;
  --os-brand: var(--ui);
  --os-label-ls: 0.24em;
  --os-label-w: 600;
  --os-h-ls: 0.12em;
  --os-num-size: 1.7rem;
  --os-node: #131518;
  --os-sweep: rgba(255, 255, 255, 0.16);
  border-top-color: #E4573D;
}
.slab[data-preset="bureau"] .greet h2 { text-transform: uppercase; font-size: 0.9rem; }
.slab[data-preset="bureau"] .side li { text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.14em; }

/* atelier — warm paper, serif headings, hairline rules, nav across the top */
.slab[data-preset="atelier"] {
  --os-bg: #FAF6EE;
  --os-chrome: #F2EBDF;
  --os-panel: #F6F1E7;
  --os-tile: #FFFCF6;
  --os-well: rgba(60, 46, 30, 0.09);
  --os-line: #E3D9C7;
  --os-ink: #2A231A;
  --os-dim: #6A5C4A;
  --os-faint: #9A8B76;
  --os-accent: #7C4A32;
  --os-accent-ink: #5E3524;
  --os-on-accent: #FFFCF6;
  --os-radius: 2px;
  --os-radius-pill: 2px;
  --os-pad: 1.25rem;
  --os-gap: 1.15rem;
  --os-brand: var(--display);
  --os-brand-h: var(--display);
  --os-num: var(--display);
  --os-label-tt: uppercase;
  --os-label-ls: 0.2em;
  --os-h-w: 400;
  --os-h-ls: 0.06em;
  --os-num-size: 1.75rem;
  --os-node: #FFFCF6;
  --os-sweep: rgba(60, 46, 30, 0.10);
  --os-shadow: 0 22px 40px -26px rgba(60, 46, 30, 0.45);
  border-top-color: #7C4A32;
}
.slab[data-preset="atelier"] .os { grid-template-columns: 1fr; }
.slab[data-preset="atelier"] .side {
  border-right: 0; border-bottom: 1px solid var(--os-line);
  flex-direction: row; align-items: center; gap: 1.4rem;
  padding: 0.75rem 1.25rem;
}
.slab[data-preset="atelier"] .side ul { flex-direction: row; gap: 0.2rem; flex: 1; }
.slab[data-preset="atelier"] .side li { border-left: 0; border-bottom: 2px solid transparent; padding: 0.3rem 0.5rem; }
.slab[data-preset="atelier"] .side li.active { background: none; border-bottom-color: var(--os-accent); }
.slab[data-preset="atelier"] .side-foot { margin: 0; padding: 0; border: 0; }
.slab[data-preset="atelier"] .stat { border-width: 0 0 1px 0; border-radius: 0; background: none; }
.slab[data-preset="atelier"] .feed { border-width: 1px 0 0 0; background: none; }

.plinth { margin: 0 auto; width: min(560px, 82%); }
.plinth .neck {
  height: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(176, 141, 87, 0.4) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #1A2536, #131D2B);
  border-inline: 1px solid var(--edge);
}
.plinth .base {
  height: 14px;
  width: calc(100% + 48px);
  margin-left: -24px;
  background: linear-gradient(180deg, #1C2938, #141F2D);
  border-top: 1px solid rgba(176, 141, 87, 0.55);
}

/* ---------- reskin plaque ---------- */
/* dashboard + its controls are one rig, so changing the brand never scrolls
   the dashboard out of view (see the mobile block for the stacking order) */
.rig { display: flex; flex-direction: column; }
.rig-stage { order: 1; }
.rig-controls { order: 2; }

.plaque {
  max-width: 620px;
  margin: clamp(2.2rem, 5vh, 3.2rem) auto 0; margin: clamp(2.2rem, 5svh, 3.2rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.plaque h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--ink);
  text-wrap: balance;
}
.plaque h2 em, .content-intro h2 em, .section-title em {
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 1.06em;
  text-transform: none;
  color: var(--gold-deep);
}
.plaque > p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1.4rem; }
.plaque input {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--edge);
  border-bottom-color: var(--gold);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.05rem;
  text-align: center;
  padding: 0.85rem 1rem;
  letter-spacing: 0.03em;
}
.plaque input::placeholder { color: var(--faint); }
/* identity picker — each button previews the tenant look it applies */
.presets {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem; margin-top: 1.2rem;
}
.preset {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: none; border: 0; cursor: pointer; padding: 0.2rem 0;
  font-family: var(--ui);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s;
}
.preset:hover { color: var(--ink-soft); }
.preset[aria-pressed="true"] { color: var(--ink); }
.pv {
  display: flex; width: 100%; height: 46px;
  background: var(--pv-bg);
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-r);
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgba(28, 40, 54, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.preset:hover .pv { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(28, 40, 54, 0.5); }
.preset[aria-pressed="true"] .pv { outline: 2px solid var(--ink); outline-offset: 2px; }
.pv i { display: block; width: 30%; background: var(--pv-panel); border-right: 1px solid var(--pv-line); }
.pv b {
  display: block; flex: 1; margin: 8px;
  background: linear-gradient(var(--pv-acc), var(--pv-acc)) no-repeat left top / 60% 5px,
              linear-gradient(var(--pv-line), var(--pv-line)) no-repeat left 11px / 85% 4px,
              linear-gradient(var(--pv-line), var(--pv-line)) no-repeat left 19px / 45% 4px;
  border-radius: 1px;
}
.pv--top { flex-direction: column; }
.pv--top i { width: 100%; height: 26%; border-right: 0; border-bottom: 1px solid var(--pv-line); }
.swatch-label { margin-top: 0.7rem; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.cta-block { margin-top: 2rem; }
.cta-block a {
  display: inline-block;
  background: var(--gold);
  color: #10131A;
  text-decoration: none;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.95rem 2rem;
  transition: background-color 0.25s, color 0.25s;
}
.cta-block a:hover { background: var(--ink); color: var(--ground-hi); }
.cta-block p { font-size: 0.72rem; color: var(--faint); margin: 0.8rem 0 0; }

/* ---------- VSL plinth (a dark screen set in light stone) ---------- */
.vsl { max-width: 720px; margin-left: auto; margin-right: auto; }
.vsl .screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 50% 45%, rgba(176, 141, 87, 0.14), transparent 70%),
    linear-gradient(178deg, #141F2E, #0E1724);
  border: 1px solid var(--slab-edge);
  border-top-color: rgba(176, 141, 87, 0.6);
  box-shadow: 0 24px 44px -24px rgba(28, 40, 54, 0.5);
  display: grid; place-items: center;
  cursor: pointer;
}
.vsl .play {
  width: 66px; height: 66px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  background: rgba(12, 20, 32, 0.6);
  transition: background-color 0.25s;
}
.vsl .screen:hover .play { background: var(--gold); }
.vsl .play i {
  display: block; margin-left: 4px;
  border-left: 14px solid var(--gold-bright);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.vsl .screen:hover .play i { border-left-color: var(--slab-deep); }
.vsl figcaption { margin-top: 0.9rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.vsl figure { margin: 0; }

/* ---------- fast proof strip: credibility before the pitch ---------- */
.strip {
  max-width: 940px;
  margin: clamp(2rem, 5vh, 3rem) auto 0; margin: clamp(2rem, 5svh, 3rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.strip-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid rgba(176, 141, 87, 0.45);
}
.strip-in div {
  padding: 1.4rem 1rem 1.5rem;
  text-align: center;
}
.strip-in div + div { border-left: 1px solid var(--edge); }
.strip-in strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  font-weight: 400;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  line-height: 1;
}
/* gold-leaf glint: a light sweep across the numerals, over a warm bloom */
.glint {
  background-image: linear-gradient(105deg, #C9A75C 38%, #E8C687 47%, #FFF2CF 51%, #E8C687 55%, #C9A75C 64%);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* iOS: text-shadow paints OVER clipped-gradient text; drop-shadow applies
     after rasterisation, so the bloom and the sweep can coexist */
  filter: drop-shadow(0 0 16px rgba(232, 198, 135, 0.35));
  will-change: background-position;
}
/* the sweep waits for .fire, added the moment a counter finishes its
   count-up, so the shine follows the number instead of a page-load clock */
.glint.fire {
  animation: goldglint 4.8s ease-in-out infinite;
}
.glint--dark {
  background-image: linear-gradient(105deg, #C9A75C 38%, #E8C687 47%, #FFF2CF 51%, #E8C687 55%, #C9A75C 64%);
  filter: drop-shadow(0 0 16px rgba(232, 198, 135, 0.35));
}
@keyframes goldglint {
  0% { background-position: 120% 0; }
  16% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}
@supports not (-webkit-background-clip: text) {
  .glint { background-image: none; -webkit-text-fill-color: currentColor; }
}

.strip-in span {
  display: block;
  margin: 0.55rem auto 0;
  max-width: 17ch;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}


/* ---------- payment terms: trust, stated plainly ---------- */
.terms {
  margin-top: 2.4rem;
  border-top: 1px solid var(--edge);
  padding-top: 1.3rem;
}
.terms-h {
  margin: 0 0 0.9rem;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
}
.milestones {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  counter-reset: ms;
}
.milestones li {
  counter-increment: ms;
  font-size: 0.82rem; color: var(--ink-soft);
  padding-top: 0.7rem;
  border-top: 2px solid var(--gold);
  position: relative;
}
.milestones li::before {
  content: counter(ms, upper-roman);
  display: block;
  font-family: var(--display);
  font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}
.cta-left { text-align: left; }

/* ---------- engine room story ---------- */
.story { max-width: 620px; text-align: left; }
.story p { color: var(--ink-soft); font-size: clamp(0.95rem, 2.4vw, 1.05rem); margin: 0 0 1.2rem; }
.story p strong { color: var(--ink); font-weight: 600; }
.statrow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--edge); border: 1px solid var(--edge);
  margin-top: 2rem;
}
.statrow div { background: var(--ground-hi); padding: 1.1rem 0.8rem; text-align: center; }
.statrow strong {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--gold-deep);
}
.statrow span { display: block; margin-top: 0.35rem; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ---------- chapter bands: slabs of veined stone ----------
   Full-bleed sections cut from different stone than the night ground,
   so chapters separate physically: lifted tone, ivory veining, rugged
   mottle, grain, and bevelled gold edges that read as a raised slab. */
.band {
  position: relative;
  border-block: 1px solid rgba(176, 141, 87, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(233, 228, 216, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 -26px 50px -26px rgba(0, 0, 0, 0.6),
    0 26px 50px -26px rgba(0, 0, 0, 0.6);
}

/* the trophy hall: lifted and heavily veined */
.proof {
  margin-top: clamp(4rem, 10vh, 6.5rem); margin-top: clamp(4rem, 10svh, 6.5rem);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(232, 198, 135, 0.09), transparent 50%),
    linear-gradient(rgba(16, 27, 46, 0.38), rgba(16, 27, 46, 0.38)),
    var(--veins) left top / 1100px 1100px,
    var(--rugged) left top / 460px 460px,
    var(--grain) left top / 180px 180px,
    linear-gradient(178deg, #182740, #101B2E);
  color: var(--slab-text);
  padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 3rem) clamp(3.4rem, 8vh, 5.4rem); padding: clamp(3rem, 8svh, 5rem) clamp(1rem, 4vw, 3rem) clamp(3.4rem, 8svh, 5.4rem);
}

/* the lit chamber: the radar's room is white marble, the one daylight
   moment on the night page — dark glass set back into light stone */
.band--app {
  margin-top: clamp(2.5rem, 6vh, 4rem); margin-top: clamp(2.5rem, 6svh, 4rem);
  padding: clamp(3rem, 7vh, 4.5rem) 0 clamp(3.2rem, 7vh, 5rem); padding: clamp(3rem, 7svh, 4.5rem) 0 clamp(3.2rem, 7svh, 5rem);
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(176, 141, 87, 0.1), transparent 55%),
    linear-gradient(rgba(242, 238, 230, 0.3), rgba(242, 238, 230, 0.3)),
    var(--veins-ink) left top / 1400px 1400px,
    linear-gradient(178deg, #F5F1E9, #E7E1D2);
}
/* daylight text and pedestal inside the lit chamber */
.band--app .eyebrow, .band--app .try, .band--app .content-intro h2 em { color: #8A6B26; }
.band--app .content-intro h2 { color: #1C2836; }
.band--app .content-intro p { color: #4E5D72; }
.band--app .plinth .neck {
  background:
    repeating-linear-gradient(90deg, rgba(176, 141, 87, 0.4) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #E6E0D2, #DDD5C4);
  border-inline-color: rgba(28, 40, 54, 0.16);
}
.band--app .plinth .base {
  background: linear-gradient(180deg, #E0D9C9, #D3CAB6);
}
/* the forge: one input, no visible options; the name decides the build */
.forge {
  max-width: 440px;
  margin: 2.2rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.forge-l {
  display: block;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: #8A6B26;
  margin-bottom: 0.7rem;
}
.forge input {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 40, 54, 0.25);
  border-bottom: 2px solid var(--gold);
  color: #1C2836;
  font-family: var(--ui);
  font-size: 1.05rem;
  text-align: center;
  padding: 0.8rem 1rem;
  letter-spacing: 0.03em;
}
.forge input::placeholder { color: rgba(28, 40, 54, 0.35); }
.forge input:focus-visible { outline: 2px solid #8A6B26; outline-offset: 3px; }
.forge-note {
  margin: 0.8rem 0 0;
  font-family: var(--accent-face); font-style: italic;
  font-size: 1rem;
  color: #8A6B26;
}

/* detect, diagnose, draft: the loop only the home can close */
.loop {
  max-width: 940px;
  margin: clamp(2.4rem, 6vh, 3.4rem) auto 0; margin: clamp(2.4rem, 6svh, 3.4rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.loop-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-top: 1.6rem; text-align: left;
}
.lstep { border-top: 1px solid rgba(176, 141, 87, 0.5); padding-top: 1rem; }
.lstep i {
  font-style: normal;
  font-family: var(--display);
  color: #8A6B26;
  font-size: 0.95rem; letter-spacing: 0.2em;
  display: block; margin-bottom: 0.45rem;
}
.lstep h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: #1C2836;
}
.lstep p { color: #4E5D72; font-size: 0.84rem; line-height: 1.55; margin: 0; }
.loop-close {
  margin: 1.8rem auto 0; max-width: 52ch;
  font-family: var(--accent-face); font-style: italic;
  font-size: 1.12rem;
  color: #8A6B26;
}

/* the at-risk signal breathing on the radar tab */
.viewtabs .tab-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #E88B7D;
  margin-left: 0.5rem;
  animation: breathe 2.4s ease-in-out infinite;
}

/* both sidebars are real navigation; each room is a pane */
.pane { display: flex; flex-direction: column; gap: var(--os-gap); min-width: 0; }
.pane[hidden] { display: none; }
.side li[data-pane] { cursor: pointer; }
.side li[data-pane]:hover { color: var(--os-ink); }
.side li[data-pane]:focus-visible { outline: 2px solid var(--os-accent); outline-offset: -2px; }

/* the coda under the map: the buckets are common, not a qualifier */
.duo-coda {
  margin: 2.2rem auto 0; max-width: 58ch;
  text-align: center;
  font-size: 0.9rem; line-height: 1.6;
  color: var(--ink-soft);
}
.duo-coda em {
  font-family: var(--accent-face); font-style: italic;
  font-size: 1.14em;
  color: var(--gold-deep);
}

/* the story's payoff, lifted out so three same-length paragraphs stop
   reading as one block */
.story p.story-pull { /* outranks the .story p body rule above */
  margin: 1.8rem 0 0;
  font-family: var(--accent-face); font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.65rem);
  line-height: 1.35;
  color: var(--gold-deep);
  text-wrap: balance;
}

/* chapter handoffs: one italic line walking the reader to the next build */
.handoff {
  margin: 2.6rem auto 0; max-width: 52ch;
  text-align: center;
  font-family: var(--accent-face); font-style: italic;
  font-size: 1.12rem;
  color: var(--gold-deep);
}

/* the save-money line carved under the pedestal */
.stack-line {
  max-width: 56ch;
  margin: 2.2rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.9rem; line-height: 1.6;
  color: #4E5D72;
}
.stack-line strong { color: #1C2836; font-weight: 600; }
.proof .inner { max-width: 940px; margin: 0 auto; text-align: center; }
.proof .eyebrow { color: var(--gold); }
.proof h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 2.6rem;
  color: var(--slab-text);
  text-wrap: balance;
}
/* case rows: one client per row, media beside the story */
.cases {
  display: flex; flex-direction: column;
  gap: clamp(2.4rem, 6vh, 3.8rem); gap: clamp(2.4rem, 6svh, 3.8rem);
  margin-top: 2.6rem;
  text-align: left;
}
.case {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
}
.case--flip { grid-template-columns: 1fr minmax(0, 320px); }
.case--flip .case-media { order: 2; }
.case-media {
  background: #0A111B;
  border: 1px solid rgba(233, 228, 216, 0.18);
  border-top-color: rgba(176, 141, 87, 0.5);
}
.case-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.case-media--tall { aspect-ratio: 9 / 16; width: min(100%, 250px); margin: 0 auto; }
.case-media--wide { aspect-ratio: 16 / 9; width: 100%; }
.case-media--ig { min-height: 380px; }
.case-body .eyebrow { margin-bottom: 0.7rem; font-size: 0.6rem; color: var(--gold); }
.case-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slab-text);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.case-facts { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.case-facts li { font-size: 0.86rem; line-height: 1.45; color: var(--slab-dim); }
.case-body blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.42;
  color: var(--slab-text);
}
.case-body blockquote::before {
  content: "\201C";
  color: var(--gold);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1rem;
}
.case-name { margin: 0; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slab-faint); }
/* charity plaque: the band's one grand gold moment */
.charity {
  max-width: 580px;
  margin: clamp(2.8rem, 7vh, 4rem) auto 0; margin: clamp(2.8rem, 7svh, 4rem) auto 0;
  padding: clamp(1.8rem, 4vh, 2.6rem) 1.5rem; padding: clamp(1.8rem, 4svh, 2.6rem) 1.5rem;
  border-top: 1px solid rgba(176, 141, 87, 0.55);
  border-bottom: 1px solid rgba(176, 141, 87, 0.55);
  text-align: center;
}
.charity .eyebrow { color: var(--gold); font-size: 0.6rem; margin-bottom: 1.1rem; }
.charity strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}
.charity-sub {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slab-dim);
}
.charity-copy { margin: 1.2rem auto 0; max-width: 46ch; font-size: 0.86rem; line-height: 1.6; color: var(--slab-dim); }
.charity-copy em {
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 1.08em;
  color: var(--slab-text);
}
.instagram-media {
  margin: 0 !important;
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #0A111B !important;
}
.instagram-media a {
  display: grid; place-items: center;
  min-height: 380px; padding: 1rem;
  color: var(--gold-bright); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.08em; text-align: center;
}

.proof .footnote { margin: 2rem auto 0; max-width: 52ch; font-size: 0.85rem; color: var(--slab-dim); }

/* why-you-can-trust-it mechanics, on the dark band */
.trustbar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 860px;
  margin: 2.4rem auto 0;
  text-align: left;
}
.trustbar div { border-top: 1px solid rgba(176, 141, 87, 0.55); padding-top: 0.8rem; }
.trustbar b {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slab-text);
  margin-bottom: 0.3rem;
}
.trustbar span { font-size: 0.8rem; line-height: 1.5; color: var(--slab-dim); }
.cta-inline { margin-top: 2.2rem; }
.proof .cta-block a:hover { background: var(--gold-bright); color: var(--slab-deep); }
.proof .cta-block p { color: var(--slab-faint); }

/* ---------- video placeholder screens ---------- */
.vslph { max-width: 720px; margin-left: auto; margin-right: auto; }
.screenph figure, .screenph { margin: 0; }
.ph-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  background:
    radial-gradient(60% 80% at 50% 42%, rgba(176, 141, 87, 0.14), transparent 70%),
    linear-gradient(178deg, #141F2E, #0E1724);
  border: 1px solid var(--slab-edge);
  border-top-color: rgba(176, 141, 87, 0.6);
  box-shadow: 0 24px 44px -24px rgba(28, 40, 54, 0.5);
}
.ph-tag {
  position: absolute; top: 0.7rem; right: 0.7rem;
  font-family: var(--mono);
  font-size: 0.52rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(176, 141, 87, 0.55);
  padding: 0.22rem 0.5rem;
}
.ph-frame .play {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  background: rgba(12, 20, 32, 0.6);
  transition: background-color 0.25s;
}
.ph-frame .play i {
  display: block; margin-left: 4px;
  border-left: 13px solid var(--gold-bright);
  border-top: 8.5px solid transparent;
  border-bottom: 8.5px solid transparent;
}
.ph-title {
  font-family: var(--display);
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slab-text);
}
.screenph figcaption { margin-top: 0.8rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); text-align: center; }
/* a recorded video in the frame: poster fills it, play floats on top */
.ph-video { padding: 0; overflow: hidden; cursor: pointer; text-decoration: none; }
.ph-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-video .play { position: relative; z-index: 1; }
.ph-video:hover .play { background: var(--gold); }
.ph-video:hover .play i { border-left-color: var(--slab-deep); }
.yt-embed iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  outline: 1px solid var(--slab-edge);
  box-shadow: 0 24px 44px -24px rgba(28, 40, 54, 0.5);
}
.screenph--mini .ph-frame { gap: 0.6rem; }
.screenph--mini .ph-frame .play { width: 44px; height: 44px; }
.screenph--mini .ph-title { font-size: 0.72rem; letter-spacing: 0.12em; }
.screenph--mini figcaption { font-size: 0.58rem; }
.story-side { display: flex; flex-direction: column; gap: 1rem; }


/* ---------- the filter, carved open on the ground ---------- */
.tablet { margin-top: clamp(3rem, 8vh, 5rem); margin-top: clamp(3rem, 8svh, 5rem); }

/* ---------- finale ---------- */
.finale { max-width: 720px; }
.finale-mark { height: 54px; width: auto; margin-bottom: 1.1rem; opacity: 0.92; }
.finale h2 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); }
.finale .cta-block { margin-top: 1.6rem; }
.finale .cta-block a { font-size: 0.85rem; padding: 1.05rem 2.4rem; }

/* ---------- filter: two fates, visibly exclusive ----------
   No boxes: two open columns divided by a hairline spine, one crowned
   gold, one crowned grey. The refusal reads through restraint. */
.fit-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 2.2rem; text-align: left;
}
.fit-grid::before { /* the spine the fork sits on */
  content: "";
  position: absolute; left: 50%; top: 0.4rem; bottom: 0.4rem;
  width: 1px;
  background: var(--edge);
}
.fit-grid::after { /* the fork in the road */
  content: "or";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ground-hi);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px -4px rgba(28, 40, 54, 0.35);
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 46px; text-align: center;
  color: var(--gold-deep);
}
.fit-col { padding-top: 1.1rem; }
.fit-col h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
}
.fit-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.fit-col li { font-size: 0.88rem; padding-left: 1.4rem; position: relative; }
.fit-col li::before { position: absolute; left: 0; font-family: var(--mono); }

/* the door in: crowned gold */
.fit-yes { border-top: 2px solid var(--gold); }
.fit-yes h3 { color: var(--ink); border-bottom: 1px solid rgba(176, 141, 87, 0.45); }
.fit-yes li { color: var(--ink-soft); }
.fit-yes li::before { content: "+"; color: var(--gold-deep); }

/* the door closed: crowned grey, said quietly */
.fit-no { border-top: 2px solid rgba(233, 228, 216, 0.3); }
.fit-no h3 { color: var(--ink-soft); border-bottom: 1px solid var(--edge); }
.fit-no li { color: var(--ink-soft); }
.fit-no li::before { content: "\00d7"; color: #C0796B; }

.fit-close { margin: 2.2rem auto 0; max-width: 52ch; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- method ---------- */
.method {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-top: 2.2rem; text-align: left;
}
.step { border-top: 1px solid var(--edge); padding-top: 1.1rem; }
.step i {
  font-style: normal;
  font-family: var(--display);
  color: var(--gold-deep);
  font-size: 1rem;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.step p { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.method-note { margin-top: 1.8rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 680px; margin: 0; text-align: left; }
.faq-aside {
  margin: 0.4rem 0 0;
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--gold-deep);
}
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0;
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold-deep); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; padding: 0 0 1.2rem; max-width: 58ch; }

footer {
  padding: 2.2rem clamp(1rem, 4vw, 3rem) 1.8rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  border-top: 1px solid var(--edge);
  margin-top: clamp(3rem, 7vh, 5rem); margin-top: clamp(3rem, 7svh, 5rem);
}
footer b { color: var(--gold-deep); font-weight: 500; }

/* ---------- the two builds: a carved diptych ----------
   No cards. Two inscriptions carved side by side into the page itself,
   framed by gold hairlines like the proof strip, divided by one gold
   spine, standing together on one plinth: two builds, one machine.
   The only fill in the section is the slim chrome strip on build II,
   the single piece of dark glass. */
.duo-sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0 auto; max-width: 52ch; }
.diptych {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 2.4rem;
  text-align: left;
  /* moonlit slab: the one lifted stone fill outside the chapter bands,
     so the products stand physical at the decision moment */
  background:
    linear-gradient(rgba(15, 25, 42, 0.72), rgba(15, 25, 42, 0.72)),
    var(--veins) left top / 1200px 1200px,
    linear-gradient(180deg, #131F30, #0E1828);
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-top-color: rgba(176, 141, 87, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(233, 228, 216, 0.06),
    0 32px 56px -30px rgba(0, 0, 0, 0.75);
}
.diptych::before { /* the shared spine */
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(rgba(176, 141, 87, 0.65), rgba(176, 141, 87, 0.12));
}
.inscr {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0 clamp(1.2rem, 3.5vw, 2.4rem) 1.8rem;
}
/* the caps, inlaid full-bleed under the top rule: carved fluting on
   build I, a strip of dark glass on build II */
.inscr-flute, .inscr-chrome {
  height: 30px; flex: none;
  margin: 0 calc(-1 * clamp(1.2rem, 3.5vw, 2.4rem));
}
.inscr-flute {
  background: repeating-linear-gradient(90deg, rgba(176, 141, 87, 0.35) 0 2px, transparent 2px 14px);
  border-bottom: 1px solid var(--edge);
}
.inscr-chrome {
  display: flex; align-items: center; gap: 5px;
  padding: 0 0.9rem;
  background: linear-gradient(180deg, #0C1420, #090F19);
  border-bottom: 1px solid rgba(176, 141, 87, 0.35);
}
.inscr-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--slab-faint); opacity: 0.55; flex: none; }
.inscr-chrome span {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--slab-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inscr-chrome b { color: var(--gold-bright); font-weight: 500; }
/* the numeral, carved big and faint behind the content */
.build-no {
  position: absolute; top: 2.6rem; right: clamp(1.2rem, 3.5vw, 2.4rem);
  font-family: var(--display);
  font-size: 6rem; line-height: 1;
  color: rgba(232, 198, 135, 0.14);
  pointer-events: none;
}
.inscr h3 {
  position: relative;
  font-family: var(--display); font-weight: 400;
  font-size: 1.3rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  margin: 1.6rem 0 0.35rem;
}
.build-tag {
  position: relative;
  font-family: var(--accent-face); font-style: italic;
  font-size: 1.08rem;
  color: var(--gold-deep);
  margin: 0 0 1.2rem;
}
.build-copy { position: relative; font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1.2rem; }
.inscr ul { position: relative; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.inscr li {
  font-size: 0.82rem; line-height: 1.5;
  color: var(--ink-soft);
  padding: 0.6rem 0;
  border-top: 1px solid var(--edge);
}
.inscr li:last-child { border-bottom: 1px solid var(--edge); }
.build-link {
  position: relative;
  margin-top: auto; align-self: flex-start;
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(176, 141, 87, 0.5);
  padding-bottom: 3px;
}
.build-link::after { content: " \2193"; }
.build-link:hover, .build-link:focus-visible { border-bottom-color: currentColor; }

/* one pedestal under both inscriptions */
.plinth--duo { width: min(720px, 86%); margin-top: 0; }
.plinth--duo .neck { height: 26px; }
.plinth--duo .base { height: 12px; }

/* ---------- "this one's alive": interaction hints ---------- */
.try {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  margin: 1.4rem auto 0;
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-deep);
}
.try::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--gold);
  animation: breathe 2.4s ease-in-out infinite;
}
.slab-zone .try { margin: 0 0 1.2rem; }

/* ---------- retention maths: an instrument carved into the ground ---------- */
.calc {
  max-width: 720px;
  margin: 2.4rem auto 0;
  text-align: left;
}
.calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 2.4rem); }
.calc-ctl { display: block; }
.calc-l {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.8rem;
}
.calc-l output {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 0.85rem; letter-spacing: 0.02em;
  color: var(--gold-deep);
}
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 18px;
  margin: 0; padding: 0; cursor: pointer;
  --fill: 50%;
  background: linear-gradient(to right, var(--gold) var(--fill), rgba(233, 228, 216, 0.2) var(--fill)) no-repeat center / 100% 2px;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ground-hi);
  box-shadow: 0 1px 5px rgba(28, 40, 54, 0.45);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ground-hi);
  box-shadow: 0 1px 5px rgba(28, 40, 54, 0.45);
}
.calc input[type="range"]:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
/* the outputs read like the proof strip: numbers between gold rules */
.calc-out {
  display: grid; grid-template-columns: 1fr 1fr;
  border-block: 1px solid rgba(176, 141, 87, 0.45);
  margin-top: 1.8rem;
}
.calc-out div { padding: 1.2rem 1rem 1.3rem; text-align: center; }
.calc-out div + div { border-left: 1px solid var(--edge); }
.calc-out strong {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  line-height: 1;
  color: var(--gold-deep);
}
.calc-out span { display: block; margin: 0.55rem auto 0; max-width: 24ch; font-size: 0.74rem; line-height: 1.45; color: var(--ink-soft); }
.calc-note {
  margin: 1.6rem 0 0; text-align: center;
  font-family: var(--accent-face); font-style: italic;
  font-size: 1.08rem; color: var(--gold-deep);
}

/* ---------- the radar sweeps, contacts ping ---------- */
.feed--radar { position: relative; overflow: hidden; }
.feed--radar::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 170%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(232, 198, 135, 0.13), transparent 16%);
  animation: radarsweep 7s linear infinite;
  pointer-events: none;
}
@keyframes radarsweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.feed--radar h3, .feed--radar ol { position: relative; }
.face { position: relative; }
.face.crit::after {
  content: "";
  position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid currentColor;
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ---------- the nudge drafts itself ---------- */
.nudge .caret {
  display: inline-block; width: 1px; height: 0.9em;
  margin-left: 1px; vertical-align: -0.1em;
  background: var(--os-accent-ink);
  animation: caretblink 0.9s step-end infinite;
}
@keyframes caretblink { 50% { opacity: 0; } }
.nudge-actions .approve.go {
  color: var(--os-accent-ink); border-color: var(--os-accent-ink);
  animation: approvepulse 1.4s ease-out 3;
}
@keyframes approvepulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 198, 135, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(232, 198, 135, 0); }
}

/* ---------- the gold thread runs down the story ---------- */
.story { position: relative; --thread: 0; padding-left: 1.5rem; }
.story::before {
  content: "";
  position: absolute; left: 0; top: 0.35em; bottom: 0.3em;
  width: 2px;
  background: linear-gradient(var(--gold) 60%, rgba(176, 141, 87, 0.25));
  transform: scaleY(var(--thread));
  transform-origin: top;
}
.story::after {
  content: "";
  position: absolute; left: -2.5px;
  top: calc(0.35em - 3px + (100% - 0.65em) * var(--thread));
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(176, 141, 87, 0.9);
}

/* ---------- proof band flourishes: facts stagger, quotes glow ---------- */
.case .case-facts li { opacity: 0; transform: translateY(8px); }
.case.seen .case-facts li {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.case.seen .case-facts li:nth-child(1) { transition-delay: 0.25s; }
.case.seen .case-facts li:nth-child(2) { transition-delay: 0.4s; }
.case.seen .case-facts li:nth-child(3) { transition-delay: 0.55s; }
.case.seen blockquote { animation: quoteglow 1.4s ease-out 0.7s backwards; }
@keyframes quoteglow {
  from { text-shadow: 0 0 22px rgba(232, 198, 135, 0.6); color: #F7F0DE; }
}

/* sticky book bar, phones only: the decision moment is mid-page */
#stickycta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(9, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(176, 141, 87, 0.5);
  transform: translateY(110%);
  transition: transform 0.35s ease-out;
}
#stickycta.on { transform: none; }
#stickycta a {
  display: block;
  text-align: center;
  background: var(--gold);
  color: #10131A;
  text-decoration: none;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.8rem 1rem;
}

/* ---------- mobile ---------- */
@media (max-width: 719px) {
  #stickycta { display: block; }
  #cinema { height: 300vh; height: 300svh; }
  /* wider gutters: 16px reads cramped, 20px reads intentional */
  .section, .content-intro { padding-left: 1.25rem; padding-right: 1.25rem; }
  .strip, .slab-zone { padding-left: 1.1rem; padding-right: 1.1rem; }

  /* desktop tracking is what makes small screens feel airless */
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.28em; }
  .cap h2 { letter-spacing: 0.03em; }
  .content-intro h2, .section-title { letter-spacing: 0.035em; }
  .case-body h3 { letter-spacing: 0.03em; }
  .proof h2 { letter-spacing: 0.035em; }

  /* nav: keep the lockup and CTA off each other */
  nav { padding: 0.8rem 1.1rem; gap: 0.6rem; }
  .lockup svg { height: 28px; }
  .wordmark { font-size: 0.9rem; }
  .wordmark small { font-size: 0.42rem; }
  .nav-cta { font-size: 0.6rem; padding: 0.45rem 0.7rem; letter-spacing: 0.1em; }

  /* proof strip cells: stop the three-line label wrap */

  /* stacked sections breathe a little closer on phones */
  .section { padding-top: clamp(2.2rem, 5vh, 3rem); padding-top: clamp(2.2rem, 5svh, 3rem); }
  .faq summary { font-size: 0.88rem; line-height: 1.4; }
  .radar li { padding: 0.55rem 0.7rem; }
  .who em { font-size: 0.64rem; }

  #bigword span { font-size: 13.5vw; letter-spacing: 0.09em; margin-right: -0.09em; }
  .os { grid-template-columns: 1fr; min-height: 0; }
  /* phones: brand on its own line, then all five rooms as an even tab
     row, since every one of them opens now */
  .side { border-right: 0; border-bottom: 1px solid var(--os-line); flex-direction: column; align-items: stretch; gap: 0.65rem; padding: 0.75rem 0.9rem 0; }
  .side ul { flex-direction: row; gap: 0; width: 100%; }
  .side li { flex: 1; text-align: center; font-size: 0.62rem; letter-spacing: 0.02em; padding: 0.45rem 0.1rem; border-left: 0; border-bottom: 2px solid transparent; }
  .side li .dot { display: none; }
  .side li.active { border-left: 0; background: none; border-bottom: 2px solid var(--os-accent); }
  .side-foot { display: none; }
  .viewtabs button { font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.55rem 0.3rem; }
  .viewtabs .full { display: none; }
  .viewtabs .abbr { display: inline; }
  .stats { grid-template-columns: 1fr; }
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
  .stats--3 .stat { padding: 0.6rem 0.5rem; align-items: center; }
  .stats--3 .stat label { text-align: center; }
  .presets { grid-template-columns: repeat(2, 1fr); gap: 0.6rem 0.8rem; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in div { padding: 1rem 0.6rem 1.1rem; }
  .strip-in div:nth-child(3) { border-left: 0; }
  .strip-in div:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .strip-in span { font-size: 0.72rem; }
  .trustbar { grid-template-columns: 1fr; gap: 1.1rem; }
  .case, .case--flip { grid-template-columns: 1fr; gap: 1.2rem; }
  .case--flip .case-media { order: 0; }
  .case-media--tall { width: min(100%, 220px); }
  .fit-grid::before, .fit-grid::after { display: none; }
  .milestones { grid-template-columns: repeat(2, 1fr); gap: 0.9rem 0.8rem; }
  .prog-name small { display: none; }
  .prog-name { font-size: 0.72rem; max-width: 34vw; }
  /* controls first on phones: the brand row and URL stay on screen while
     the keyboard is open, so you watch the OS take your name as you type */
  .rig-stage { order: 2; }
  .rig-controls { order: 1; margin: 0 0 1.4rem; }
  .rig-controls .swatches { margin-top: 0.9rem; }
  .rig-controls .swatch-label { margin-top: 0.5rem; }
  .doors, .fit-grid, .method, .statrow, .exhibits, .diptych, .calc-controls, .loop-steps { grid-template-columns: 1fr; }
  .calc-controls { gap: 1.5rem; }
  .calc-out span { font-size: 0.68rem; }
  .diptych::before { display: none; }
  .inscr + .inscr { border-top: 1px solid rgba(176, 141, 87, 0.45); margin-top: 0.4rem; }
  .build-no { font-size: 4.6rem; top: 2.3rem; }
  .try { letter-spacing: 0.18em; }
  .doors .door:last-child { margin-top: 0; }
  .split, .split--flip { grid-template-columns: 1fr; }
  /* phones: open the chapter with the video and the numbers, so the
     prose never stacks straight onto the diptych above it */
  #story .split { display: flex; flex-direction: column; }
  #story .story-side { order: -1; }
  #story .story-side .rail { order: -1; }
  .rail { flex-direction: row; }
  .rail div { flex: 1; padding: 0.8rem 0.7rem; text-align: center; }
  .rail strong { font-size: 1rem; }
  .feed li:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slab.shimmer::after, .stat strong.flash, .feed li.enter, .live-dot, .viewtabs .tab-dot, #scrollcue .cue-t::after { animation: none; }
  .glint, .glint.fire { animation: none; background-position: 50% 0; }
  .reveal { opacity: 1; transform: none; }
  .feed--radar::before, .face.crit::after, .nudge .caret,
  .nudge-actions .approve.go, .case.seen blockquote, .try::before { animation: none; }
  .case .case-facts li { opacity: 1; transform: none; }
  .story { --thread: 1; }
  html { scroll-behavior: auto; }
}
