/* ARCFlows · portal build. Theme tokens first, then the stage, then each scene.
   Engine selectors (.sc-*, [data-sc-*]) are never restyled here. */

:root {
  --paper: #F4F3EF;
  --paper-2: #FBFAF7;
  --ink: #0E1014;
  --ink-2: #171A20;
  --ink-soft: #5B606B;
  --paper-soft: #A9AEB9;
  --cobalt: #2240C4;
  --cobalt-l: #6E8AF5;

  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-2);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--cobalt);
  --sc-accent-ink: var(--paper);
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text: "Inter", system-ui, sans-serif;
  --sc-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --sc-r-sm: 8px; --sc-r-md: 14px; --sc-r-lg: 22px;
  --sc-shadow-color: 222 20% 6%;

  --bar-h: 4rem;
  --cw: 236px;   /* the job card, base size */
  --ch: 330px;
  --bar-c: var(--paper);
  --bar-btn-bg: var(--paper);
  --bar-btn-c: var(--ink);
}
html { background: var(--paper); scroll-behavior: auto; }
html.intro { overscroll-behavior: none; }
body { margin: 0; display: block; width: auto; min-height: 100svh; background: var(--paper); color: var(--ink); font-family: var(--sc-font-text); }
body[data-theme="paper"] { --bar-c: var(--ink); --bar-btn-bg: var(--ink); --bar-btn-c: var(--paper); }
body[data-theme="ink"] { --bar-c: var(--paper); --bar-btn-bg: var(--paper); --bar-btn-c: var(--ink); }
body[data-theme="photo"] { --bar-c: var(--paper); --bar-btn-bg: var(--paper); --bar-btn-c: var(--ink); }

/* ---- type ---------------------------------------------------------------- */
.disp {
  font-family: var(--sc-font-display);
  font-weight: 500;
  letter-spacing: var(--sc-track-tight);
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.disp--xl { font-size: clamp(2.4rem, 1.2rem + 3.9vw, 4.7rem); }
.disp--lg { font-size: clamp(2rem, 1.2rem + 3.3vw, 4.3rem); }
.w { display: inline-block; }
.ln { display: block; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.9rem; padding: 0 1.4rem; border-radius: 999px;
  font-family: var(--sc-font-text); font-weight: 500; font-size: var(--sc-t-sm);
  text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background var(--sc-d-fast), color var(--sc-d-fast), border-color var(--sc-d-fast);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #1c2028; }
.btn--ghost { background: transparent; color: inherit; border-color: color-mix(in oklab, currentColor 40%, transparent); }
.btn--ghost:hover { border-color: currentColor; }
.btn--big { height: 3.4rem; padding: 0 1.9rem; font-size: var(--sc-t-base); }
.btn--bar { height: 2.4rem; padding: 0 1.1rem; background: var(--bar-btn-bg); color: var(--bar-btn-c); }
.btn--bar:hover { opacity: .92; }

/* ---- preloader ----------------------------------------------------------- */
.pre { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; transition: opacity .45s var(--sc-ease-out); }
.pre__word {
  font-family: "Bebas Neue", var(--sc-font-display); font-size: clamp(3rem, 9vw, 9rem); line-height: 1;
  letter-spacing: .32em; padding-left: .32em; color: var(--ink);
  opacity: 0; transform: translateY(.08em) scaleX(1.12);
  transition: opacity .9s var(--sc-ease-out), transform 1.3s var(--sc-ease-out);
}
.pre.is-on .pre__word { opacity: 1; transform: none; }
.pre.is-gone { opacity: 0; }
html.instant .pre { display: none; }

/* ---- bar ----------------------------------------------------------------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 60;
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--sc-gutter);
  color: var(--bar-c); opacity: 0; transition: color .4s, opacity .6s var(--sc-ease-out);
}
.bar.is-in, html.instant .bar { opacity: 1; }
.bar__brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.mark__ink { fill: currentColor; }
.wordmark { font-family: "Bebas Neue", var(--sc-font-display); font-size: 1.3rem; letter-spacing: .14em; line-height: 1; padding-top: .15em; }
.bar__nav { margin-left: auto; display: flex; gap: 1.7rem; font-size: var(--sc-t-sm); font-weight: 500; }
.bar__nav a { color: inherit; text-decoration: none; opacity: .78; transition: opacity var(--sc-d-fast); }
.bar__nav a:hover, .bar__nav a:focus-visible { opacity: 1; }
.bar__nav a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; border-radius: 2px; }

/* ---- scene rail ---------------------------------------------------------- */
.rail-nav {
  position: fixed; right: calc(var(--sc-gutter) * .45); top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; margin: 0; padding: 0;
  color: var(--bar-c); opacity: 0; transition: color .4s, opacity .6s var(--sc-ease-out);
}
.rail-nav.is-in, html.instant .rail-nav { opacity: 1; }
.rail-nav button { display: flex; align-items: center; justify-content: flex-end; width: 30px; height: 14px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.rail-nav button::before { content: ""; width: 12px; height: 2px; border-radius: 1px; background: currentColor; opacity: .32; transition: width .3s var(--sc-ease-out), opacity .3s, background .3s; }
.rail-nav button:hover::before { opacity: .7; }
.rail-nav button[aria-current="true"]::before { width: 24px; opacity: 1; background: var(--sc-accent); }
.rail-nav button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-radius: 3px; }

/* ---- stage & scenes ------------------------------------------------------ */
.stage {
  position: fixed; inset: 0; height: 100svh; overflow: hidden; z-index: 1;
  background: var(--paper); perspective: 1400px;
}
.track { position: relative; z-index: 0; }
.mk { height: 220svh; }
.mk[data-mk="results"] { height: 260svh; }
.mk[data-mk="how"] { height: 420svh; }
.mk[data-mk="why"] { height: 280svh; }
.mk[data-mk="book"] { height: 180svh; }

.scene { position: absolute; inset: 0; visibility: hidden; isolation: isolate; contain: paint; }
.sc-grain::before { inset: 0; }
.scene.is-on { visibility: visible; }
.scene--paper { background: var(--paper); color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-soft); }
.scene--ink { background: var(--ink); color: var(--paper); --sc-ink: var(--paper); --sc-ink-soft: var(--paper-soft); --sc-accent: var(--cobalt-l); }
body[data-theme="ink"], body[data-theme="photo"] { --sc-accent: var(--cobalt-l); }

/* scroll reveals: --u is set on the scene by the page; --from/--len/--out/--olen per element */
.rv {
  --a: clamp(0, calc((var(--u, 0) - var(--from, 0)) / var(--len, .1)), 1);
  --b: clamp(0, calc((var(--u, 0) - var(--out, 5)) / var(--olen, .1)), 1);
  --v: calc(var(--a) * (1 - var(--b)));
  opacity: var(--v);
  transform: translate3d(0, calc((1 - var(--v)) * 14px), 0);
}
.rv--words { opacity: calc(1 - var(--b)); transform: none; }
.rv--words .w {
  --wa: clamp(0, calc((var(--u, 0) - var(--from, 0) - var(--i, 0) * .012) / var(--len, .1)), 1);
  opacity: var(--wa);
  transform: translate3d(0, calc((1 - var(--wa)) * .28em), 0);
}
/* the blur is the expensive part of the reveal: only while the page moves, and only with a fine pointer */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .stage.is-moving .rv { filter: blur(calc((1 - var(--v)) * 10px)); }
  .stage.is-moving .rv--words { filter: none; }
  .stage.is-moving .rv--words .w { filter: blur(calc((1 - var(--wa)) * 12px)); }
  .stage.is-moving .copy--hero { filter: blur(calc(var(--o, 0) * 8px)); }
}

.copy { position: absolute; z-index: 3; }
.copy--lead { left: var(--sc-gutter); top: calc(var(--bar-h) + 6vh); max-width: min(56vw, 38rem); }
.copy--trail { right: var(--sc-gutter); bottom: 9vh; text-align: right; max-width: min(56vw, 38rem); }

/* ---- 1 · hero ------------------------------------------------------------ */
.room { position: absolute; inset: 0; z-index: 1; clip-path: inset(42% 44% 42% 44% round 16px); transition: clip-path 1.3s cubic-bezier(.72, 0, .18, 1); }
.room.is-open { clip-path: inset(0 0 0 0 round 0px); }
html.instant .room { transition: none; }
.room__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; transform: scale(1.14); transition: transform 1.6s cubic-bezier(.72, 0, .18, 1); }
.room.is-open .room__img { transform: none; }
.room .sc-scrim { z-index: 2; --sc-canvas: var(--ink); }
.room__cap { position: absolute; inset: 0 0 auto 0; height: 7rem; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, color-mix(in oklab, var(--ink) 40%, transparent), transparent); }
.copy--hero { left: var(--sc-gutter); bottom: clamp(2rem, 6.5vh, 4.5rem); max-width: min(66vw, 58rem); color: var(--paper); z-index: 3; }
.copy--hero .disp { font-weight: 500; }
.hero__trail { font-size: var(--sc-t-base); line-height: 1.5; max-width: 30rem; margin: 1.1rem 0 0; color: color-mix(in oklab, var(--paper) 86%, transparent); }
.hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
/* intro: words and later blocks arrive on load, not on scroll */
.scene--hero .w { opacity: 0; filter: blur(12px); transform: translateY(.35em); transition: opacity .8s var(--sc-ease-out), filter .8s var(--sc-ease-out), transform .8s var(--sc-ease-out); transition-delay: calc(var(--i, 0) * 85ms); }
.in-later { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--sc-ease-out), transform .7s var(--sc-ease-out); }
.hero__actions.in-later { transition-delay: .12s; }
.scene--hero.is-in .w, html.instant .scene--hero .w { opacity: 1; filter: blur(0); transform: none; }
.scene--hero.is-in .in-later, html.instant .scene--hero .in-later { opacity: 1; transform: none; }
/* scroll: the copy eases away before the wipe; --o set by the page */
.copy--hero { opacity: calc(1 - var(--o, 0)); transform: translate3d(0, calc(var(--o, 0) * -18px), 0); }

/* ---- 2 · results --------------------------------------------------------- */
.watermark {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-family: "Bebas Neue", var(--sc-font-display); font-size: min(21vw, 19rem); line-height: 1; letter-spacing: .12em;
  color: color-mix(in oklab, var(--ink) 2.6%, transparent); pointer-events: none; user-select: none; white-space: nowrap;
}
.scene--results .copy--lead { top: calc(var(--bar-h) + 6vh); }
.figs { position: absolute; left: var(--sc-gutter); top: 44%; display: flex; gap: clamp(2rem, 5.5vw, 5.5rem); list-style: none; margin: 0; padding: 0; z-index: 3; }
.fig { max-width: 12rem; }
.fig__n { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.8rem); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.approx { font-weight: 400; opacity: .55; margin-right: .06em; }
.fig__l { display: block; font-size: var(--sc-t-base); margin-top: .45rem; line-height: 1.35; }
.fig__s { display: block; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: .55rem; }
.foot { position: absolute; left: var(--sc-gutter); bottom: 9vh; margin: 0; font-size: var(--sc-t-sm); color: var(--ink-soft); z-index: 3; }
.foot a { color: var(--cobalt); text-decoration: underline; text-underline-offset: .18em; }
.foot a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* ---- 3 · how it runs ----------------------------------------------------- */
.scene--how .copy--lead { max-width: min(66vw, 46rem); }
.how__note { margin: 1rem 0 0; font-size: var(--sc-t-base); color: var(--paper-soft); max-width: 26rem; }
.stations {
  position: absolute; left: var(--sc-gutter); right: var(--sc-gutter); bottom: 9vh; z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem);
  list-style: none; margin: 0; padding: 0;
}
.stations::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; background: var(--cobalt-l); z-index: 1; }
.station { position: relative; padding-top: 1.2rem; border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent); }
.station__k { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .1em; color: var(--paper-soft); transition: color .3s; }
.station__t { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug); margin: .5rem 0 .5rem; color: var(--paper-soft); transition: color .35s; }
.station__p { margin: 0; font-size: var(--sc-t-base); line-height: 1.5; color: color-mix(in oklab, var(--paper-soft) 70%, transparent); transition: color .35s; max-width: 24rem; }
.station.is-live .station__k { color: var(--cobalt-l); }
.station.is-live .station__t { color: var(--paper); }
.station.is-live .station__p { color: var(--paper-soft); }
.rail { display: none; }

/* ---- 4 · why ------------------------------------------------------------- */
.why__grid { position: absolute; inset: calc(var(--bar-h) + 4vh) var(--sc-gutter) 8vh; display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; z-index: 3; }
.why__copy { max-width: 44rem; }
.tenets { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; max-width: 40rem; }
.tenets li { position: relative; padding: 1rem 0 0; border-top: 1px solid var(--sc-hairline); }
.tenets strong { display: block; font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); letter-spacing: var(--sc-track-snug); }
.tenets span { display: block; color: var(--ink-soft); font-size: var(--sc-t-base); line-height: 1.5; margin-top: .25rem; max-width: 36rem; }
.tenets li.tenet--data { padding-left: 2rem; }
.tenet--data svg { position: absolute; left: 0; top: 1.2rem; color: var(--cobalt); }
.founder { margin: 0; justify-self: end; width: min(100%, 24rem); display: grid; gap: .9rem; padding-top: 1.1rem; border-top: 1px solid var(--sc-hairline); }
.founder__q { margin: 0; }
.founder__q p { margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); line-height: 1.32; letter-spacing: var(--sc-track-snug); text-wrap: pretty; }
.founder__sig { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
body:not(.quote-on) .founder { display: none; }
body:not(.quote-on) .why__grid { grid-template-columns: 1fr; }

/* ---- 5 · book ------------------------------------------------------------ */
.scene--book {
  background:
    radial-gradient(84% 74% at 84% 88%, rgba(34, 64, 196, .28) 0%, rgba(34, 64, 196, .09) 42%, transparent 74%),
    var(--ink);
}
.book__inner { position: absolute; left: var(--sc-gutter); top: 50%; transform: translateY(-52%); max-width: 42rem; z-index: 3; }
.book__p { font-size: var(--sc-t-lg); line-height: 1.45; color: var(--paper-soft); max-width: 34rem; margin: 1.3rem 0 1.9rem; }
.book__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.foot-strip {
  position: absolute; left: var(--sc-gutter); right: var(--sc-gutter); bottom: 1.6rem; z-index: 3;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .04em; color: var(--paper-soft);
}
.foot-strip__brand { display: inline-flex; align-items: center; gap: .5rem; }
.foot-strip__links { display: flex; gap: 1.4rem; }
.foot-strip a { color: inherit; text-decoration: none; }
.foot-strip a:hover, .foot-strip a:focus-visible { color: var(--paper); }

/* ---- the lead card ------------------------------------------------------- */
.carda { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); z-index: 5; pointer-events: none; will-change: transform, opacity; transform-style: preserve-3d; opacity: 0; transition: opacity .6s var(--sc-ease-out); }
.carda.is-in, html.instant .carda { opacity: 1; }
html:not(.intro) .carda { transition: none; }
.bloom {
  position: absolute; left: 50%; top: 50%; width: 300%; height: 240%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--flare-c, #fff) 0%, color-mix(in oklab, var(--flare-c, #fff) 60%, transparent) 30%, transparent 72%);
  opacity: var(--bloom, 0); pointer-events: none;
}
.carda[data-state="call"] .bloom { width: 280%; height: 210%; top: 60%; }
.job--live {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background: rgba(12, 14, 18, .68); color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s;
}
.stage[data-theme="paper"] .job--live { background: var(--paper-2); color: var(--ink); border-color: var(--sc-hairline-strong); box-shadow: var(--sc-e3), inset 0 1px 0 #fff; }
.stage[data-theme="ink"] .job--live { background: rgba(255, 255, 255, .065); color: var(--paper); border-color: rgba(255, 255, 255, .18); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .22); }
.carda[data-state="call"] .job--live { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .24); box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.job--live::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--flare-c, var(--paper)); opacity: var(--flare, 0); }

/* faces: one anatomy, five leads */
.job__face { position: absolute; inset: 0; padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; opacity: 0; transition: opacity .25s; }
.job--live[data-state="missed"] [data-face="missed"],
.job--live[data-state="form"] [data-face="form"],
.job--live[data-state="how"] [data-face="how"],
.job--live[data-state="sheet"] [data-face="sheet"],
.job--live[data-state="call"] [data-face="call"] { opacity: calc(1 - var(--flare, 0)); }
.job__k { display: flex; align-items: center; gap: .42rem; font-family: var(--sc-font-mono); font-size: .6rem; letter-spacing: .09em; white-space: nowrap; text-transform: uppercase; opacity: .74; padding-bottom: .5rem; border-bottom: 1px dotted color-mix(in oklab, currentColor 45%, transparent); }
.job__k svg { width: 13px; height: 13px; flex: none; }
.job__t { font-family: var(--sc-font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.12; margin-top: .4rem; }
.job__m { font-size: .77rem; opacity: .72; line-height: 1.35; }
.stage[data-theme="photo"] .job__m, .stage[data-theme="photo"] .job__k, .stage[data-theme="ink"] .job__m, .stage[data-theme="ink"] .job__k, .carda[data-state="call"] .job__m, .carda[data-state="call"] .job__k { opacity: 1; }
.chip {
  font-size: .76rem; margin-top: .5rem; padding: .3rem .55rem; border-radius: 6px; align-self: flex-start;
  background: color-mix(in oklab, currentColor 12%, transparent);
  --dim: clamp(0, calc((var(--u, 0) - var(--dimat, 9)) / .04), 1);
  opacity: calc(1 - .36 * var(--dim));
}
.stamps, .agenda { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.stamps li {
  font-family: var(--sc-font-mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .5rem; border: 1px solid currentColor; border-radius: 999px;
  --sa: clamp(0, calc((var(--u, 0) - var(--at, 0)) / .035), 1);
  opacity: var(--sa); transform: scale(calc(1.25 - .25 * var(--sa)));
}
.ledger { margin: .75rem 0 0; display: grid; gap: .38rem; }
.ledger div { display: flex; align-items: baseline; gap: .45rem; font-size: .76rem; }
.ledger dt { display: flex; flex: 1; align-items: baseline; gap: .45rem; opacity: .72; white-space: nowrap; }
.ledger dt::after { content: ""; flex: 1; min-width: .8rem; border-bottom: 1px dotted currentColor; opacity: .55; transform: translateY(-3px); }
.ledger dd { margin: 0; white-space: nowrap; font-weight: 500; }
.seal {
  position: absolute; right: .9rem; bottom: .9rem;
  font-family: var(--sc-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .32rem .55rem; border: 2px solid var(--cobalt); color: var(--cobalt); border-radius: 6px;
  --s: clamp(0, calc((var(--u, 0) - var(--sealat, 9)) / .05), 1);
  opacity: var(--s); transform: rotate(calc(-14deg + 6deg * var(--s))) scale(calc(1.15 - .15 * var(--s)));
}
.stage[data-theme="ink"] .seal, .stage[data-theme="photo"] .seal, .job--static .seal { border-color: var(--cobalt-l); color: var(--cobalt-l); }
.seal--on { --s: 1; }
/* landscape faces: the seal sits top-right, clear of the ledger */
[data-face="form"] .seal, [data-face="sheet"] .seal { top: .65rem; bottom: auto; right: .7rem; font-size: .56rem; letter-spacing: .12em; padding: .28rem .45rem; }
.seal--open { --s: 1; border-style: dotted; opacity: .82; transition: opacity .3s, background .3s, border-style .3s; }
.job--live.is-booked .seal--open { border-style: solid; opacity: 1; background: color-mix(in oklab, var(--cobalt-l) 18%, transparent); }
.agenda { flex-direction: column; gap: .38rem; margin-top: .9rem; }
.agenda li { font-size: .8rem; padding-left: 1rem; position: relative; }
.agenda li::before { content: ""; position: absolute; left: 0; top: .5em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cobalt-l); }
.job__spec { position: absolute; top: 0; bottom: 0; left: -80%; width: 260%; pointer-events: none; will-change: transform;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .10) 50%, transparent 62%); }
.job--live { isolation: isolate; }
.job--static { display: none; }

/* ---- survey -------------------------------------------------------------- */
[hidden] { display: none !important; }
.survey { position: fixed; inset: 0; z-index: 80; display: grid; place-items: safe center; background: rgba(14, 16, 20, .55); padding: 1rem; overflow-y: auto; overscroll-behavior: contain; }
html.svy-open { overflow: hidden; }
.survey__panel { position: relative; width: min(100%, 34rem); max-height: calc(100svh - 2rem); overflow-y: auto; background: var(--paper); color: var(--ink); border-radius: var(--sc-r-lg); padding: 2.2rem 2rem 1.8rem; box-shadow: var(--sc-e3); }
.survey__close { position: absolute; right: .9rem; top: .7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.survey__close:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.survey__k { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.survey__q { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug); margin: .6rem 0 1.2rem; line-height: 1.1; }
.survey__opts { display: grid; gap: .5rem; }
.survey__opts button { text-align: left; font: inherit; font-size: var(--sc-t-base); padding: .8rem 1rem; border-radius: var(--sc-r-md); border: 1px solid var(--sc-hairline-strong); background: var(--paper-2); color: var(--ink); cursor: pointer; transition: border-color var(--sc-d-fast), background var(--sc-d-fast); }
.survey__opts button:hover { border-color: var(--cobalt); }
.survey__opts button[aria-pressed="true"] { border-color: var(--cobalt); background: color-mix(in oklab, var(--cobalt) 8%, var(--paper-2)); }
.survey__opts button:focus-visible, .survey__close:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.survey__nav { margin-top: 1.2rem; display: flex; justify-content: flex-start; }
.survey__nav .btn { color: var(--ink); }
.survey__end { display: grid; gap: 1rem; justify-items: start; }
.survey__status { margin: 0 0 .6rem; font-size: var(--sc-t-sm); color: var(--ink-soft); min-height: 1.2em; }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* ---- survey contact step ------------------------------------------------- */
.survey__p { margin: 0 0 1.1rem; font-size: var(--sc-t-base); line-height: 1.5; color: var(--ink-soft); }
.fld { display: grid; gap: .35rem; margin-bottom: .8rem; }
.fld span { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fld small { text-transform: none; letter-spacing: 0; font-family: var(--sc-font-text); font-size: inherit; opacity: .8; }
.fld input { font: inherit; font-size: var(--sc-t-base); padding: .75rem .9rem; border-radius: var(--sc-r-md); border: 1px solid var(--sc-hairline-strong); background: var(--paper-2); color: var(--ink); width: 100%; box-sizing: border-box; }
.fld input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.fld input[aria-invalid="true"] { border-color: #b8322b; }
.fld__err { min-height: 1.2em; margin: 0 0 .6rem; font-size: var(--sc-t-sm); color: #b8322b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.survey__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.survey__actions .btn--ghost { color: var(--ink); }
.survey__end .survey__k { color: var(--cobalt); }

/* ---- phone --------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --cw: 168px; --ch: 236px; --bar-h: 3.5rem; }
  .bar { gap: 1rem; }
  .bar__nav { display: none; }
  .rail-nav { right: .55rem; gap: .3rem; }
  .rail-nav button { width: 22px; height: 12px; }
  .rail-nav button::before { width: 9px; }
  .rail-nav button[aria-current="true"]::before { width: 18px; }
  .disp--xl { font-size: clamp(2.2rem, 1.4rem + 5.6vw, 3.2rem); }
  .disp--lg { font-size: clamp(1.9rem, 1.2rem + 4.6vw, 2.8rem); }
  .copy--lead, .copy--trail { max-width: none; left: var(--sc-gutter); right: var(--sc-gutter); }
  .copy--trail { text-align: left; bottom: auto; top: calc(var(--bar-h) + 6vh + 5.2rem); }
  .copy--hero { max-width: none; right: var(--sc-gutter); bottom: 5vh; }
  .hero__trail { font-size: var(--sc-t-sm); max-width: 24rem; margin-top: .8rem; }
  .hero__actions { margin-top: 1rem; }
  .room__img { object-position: 50% 50%; }
  .watermark { font-size: 26vw; }
  .figs { top: auto; bottom: 12vh; flex-direction: column; gap: 1.1rem; right: var(--sc-gutter); }
  .fig { max-width: none; display: grid; grid-template-columns: 7.4rem 1fr; column-gap: .8rem; align-items: baseline; }
  .fig__n { font-size: 2.4rem; }
  .fig__l { margin-top: 0; }
  .fig__s { grid-column: 2; margin-top: .2rem; }
  .foot { bottom: 4vh; font-size: var(--sc-t-xs); right: var(--sc-gutter); }
  .scene--results .copy--lead { top: calc(var(--bar-h) + 4vh); }
  .how__note { display: none; }
  .stations { grid-template-columns: 1fr; gap: .9rem; bottom: 6vh; }
  .stations::before { display: none; }
  .station { padding-top: .7rem; }
  .station__t { font-size: var(--sc-t-lg); margin: .2rem 0 .2rem; }
  .station__p { font-size: var(--sc-t-sm); }
  .station:not(.is-live) .station__p { display: none; }
  .why__grid { grid-template-columns: 1fr; align-items: start; inset: calc(var(--bar-h) + 3vh) var(--sc-gutter) 4vh; overflow: hidden; }
  .tenets { margin-top: 1.2rem; gap: .6rem; }
  .tenets li { padding-top: .6rem; }
  .tenets strong { font-size: var(--sc-t-base); }
  .tenets span { font-size: var(--sc-t-sm); }
  .founder { justify-self: start; width: 100%; padding-top: .8rem; gap: .5rem; }
  .founder__q p { font-size: var(--sc-t-base); }
  .book__inner { top: auto; bottom: 20vh; transform: none; right: var(--sc-gutter); }
  .book__p { font-size: var(--sc-t-base); }
  .foot-strip { bottom: 1rem; font-size: .62rem; }
  .foot-strip__links { gap: .9rem; }
  .job--live { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 14, 18, .8); }
  .stage[data-theme="ink"] .job--live { background: #1a1d24; }
  .carda[data-state="call"] .job--live { background: #161a26; }
  .job__face { padding: .85rem .9rem; gap: .22rem; }
  .job__k { font-size: .56rem; padding-bottom: .38rem; white-space: normal; }
  .btn--big { padding: 0 1.2rem; }
  .job__t { font-size: .96rem; margin-top: .3rem; }
  .job__m { font-size: .7rem; }
  [data-face="how"] .job__m, [data-face="form"] .job__m, [data-face="sheet"] .job__m { display: none; }
  .ledger div:nth-child(2) { display: none; }
  .ledger div { font-size: .7rem; }
  .chip { font-size: .68rem; margin-top: .35rem; }
  .stamps li { font-size: .52rem; padding: .22rem .42rem; }
  .seal { font-size: .56rem; letter-spacing: .12em; right: .7rem; bottom: .7rem; }
  [data-face="form"] .seal, [data-face="sheet"] .seal { display: none; }
  .agenda li { font-size: .74rem; }
  .scene--book { background:
    radial-gradient(110% 44% at 50% 4%, rgba(34, 64, 196, .28) 0%, rgba(34, 64, 196, .09) 42%, transparent 74%),
    var(--ink); }
}
@media (max-width: 860px) and (max-height: 700px) {
  .figs { bottom: 9vh; gap: .6rem; }
  .fig__n { font-size: 2rem; }
}

/* ---- reduced motion: a plain stacked page that keeps every meaning -------- */
@media (prefers-reduced-motion: reduce) {
  .stage { position: relative; height: auto; perspective: none; overflow: visible; }
  .scene { position: relative; visibility: visible !important; min-height: 100svh; clip-path: none !important; overflow: hidden; }
  .track, .carda, .pre { display: none !important; }
  .rv, .rv--words, .rv .w, .rv--words .w { opacity: 1 !important; filter: none !important; transform: none !important; }
  .scene--hero .w, .in-later { opacity: 1; filter: none; transform: none; transition: none; }
  .copy--hero { opacity: 1; filter: none; transform: none; }
  .room { clip-path: none; transition: none; }
  .room__img { transform: none; transition: none; }
  .bar { opacity: 1; }
  .rail-nav { display: none !important; }
  .job--static {
    display: flex; flex-direction: column; gap: .3rem; position: absolute; right: var(--sc-gutter); top: calc(var(--bar-h) + 6vh); width: var(--cw);
    padding: 1.15rem 1.2rem 3.2rem; border-radius: 18px; background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .18); color: var(--paper);
  }
  .job--static .stamps li { --sa: 1; }
  .job--static .seal { --seal: 1; }
  .stations::before { display: none; }
  .station .station__k { color: var(--cobalt-l); }
  .station .station__t { color: var(--paper); }
  .station .station__p { color: var(--paper-soft); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .job--static { display: none; }
}

/* ---- no JavaScript: the same stacked page reduced motion gets ------------ */
html.no-js .stage { position: relative; height: auto; perspective: none; overflow: visible; }
html.no-js .scene { position: relative; visibility: visible !important; min-height: 100svh; clip-path: none !important; overflow: hidden; }
html.no-js .track, html.no-js .carda, html.no-js .pre, html.no-js .rail-nav { display: none !important; }
html.no-js .rv, html.no-js .rv--words, html.no-js .rv .w, html.no-js .rv--words .w, html.no-js .scene--hero .w, html.no-js .in-later, html.no-js .copy--hero { opacity: 1 !important; filter: none !important; transform: none !important; }
html.no-js .room { clip-path: none; } html.no-js .room__img { transform: none; }
html.no-js .bar { opacity: 1; color: var(--ink); --bar-btn-bg: var(--ink); --bar-btn-c: var(--paper); background: var(--paper); box-shadow: 0 1px 0 var(--sc-hairline); }
html.no-js .job--static { display: flex; flex-direction: column; gap: .3rem; position: absolute; right: var(--sc-gutter); top: calc(var(--bar-h) + 6vh); width: var(--cw); padding: 1.15rem 1.2rem 3.2rem; border-radius: 18px; background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .18); color: var(--paper); }
html.no-js .job--static .stamps li { --sa: 1; } html.no-js .job--static .seal { --seal: 1; --s: 1; }
html.no-js .stations::before { display: none; }
html.no-js .station .station__k { color: var(--cobalt-l); } html.no-js .station .station__t { color: var(--paper); } html.no-js .station .station__p { color: var(--paper-soft); }
html.no-js .num::before { content: attr(data-to); } html.no-js .num { font-size: 0; } html.no-js .num::before { font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.8rem); }

/* ---- fallbacks on phones: the How scene flows instead of stacking absolute blocks ---- */
@media (max-width: 860px) {
  html.no-js .scene--how, html.no-js .scene--why { display: flex; flex-direction: column; gap: 1.4rem; padding: calc(var(--bar-h) + 4vh) var(--sc-gutter) 8vh; min-height: 0; }
  html.no-js .scene--how .copy--lead, html.no-js .stations, html.no-js .job--static, html.no-js .why__grid { position: static; inset: auto; max-width: none; width: auto; margin: 0; }
  html.no-js .how__note, html.no-js .station__p, html.no-js .station:not(.is-live) .station__p { display: block; opacity: 1; }
  html.no-js .why__grid { display: grid; gap: 1.4rem; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .scene--how, .scene--why { display: flex; flex-direction: column; gap: 1.4rem; padding: calc(var(--bar-h) + 4vh) var(--sc-gutter) 8vh; min-height: 0; }
  .scene--how .copy--lead, .stations, .why__grid { position: static; inset: auto; max-width: none; width: auto; margin: 0; }
  .how__note, .station__p, .station:not(.is-live) .station__p { display: block; opacity: 1; }
  .why__grid { display: grid; gap: 1.4rem; overflow: visible; }
  .job--static { display: flex; position: static; width: auto; margin: 0; }
}
