/* =====================================================================
   Maestro teaser (stealth release, 2026-11-03)

   Look is lifted from the teaser film itself: near-black vignette,
   SF Pro (the film's face; Inter is the off-Apple fallback), white type,
   the film's link blue. No logo: the wordmark is the word, set in
   SF Pro Display Bold, title case.

   The pre-stealth design system (assets/css/site.css) is untouched and
   still styles the hidden pages (/full/, /docs/).
   ===================================================================== */

:root {
  --bg: #0b0c0f;
  --bg-2: #101115;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --accent: #4c9cf8;          /* the film's "Select here to fill out the form" blue */
  --accent-soft: rgba(76, 156, 248, 0.16);
  --accent-ring: rgba(76, 156, 248, 0.42);
  --err: #ff6b63;
  --stage-bg: radial-gradient(ellipse 85% 75% at 50% 50%, #16181c 0%, #0f1013 55%, #08090b 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(16px, 4vw, 44px);
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --mark-ls: -0.008em;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must never un-hide */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
::selection { background: rgba(76, 156, 248, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ---------- Wordmark: the word is the brand ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--mark-ls);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--ink); color: #0b0c0f;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35); }
.btn:active { transform: none; }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}
.bar.is-solid {
  background: rgba(11, 12, 15, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border-bottom-color: var(--line);
}
.bar-mark { font-size: 23px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s; }
.js .bar:not(.show-mark) .bar-mark { opacity: 0; transform: translateY(4px); pointer-events: none; visibility: hidden; }

/* =====================================================================
   STAGE
   Default (no JS / reduced motion): wordmark over a framed player.
   .is-cinematic (set in <head>): pinned stage, the "o" is a portal.
   ===================================================================== */
.stage {
  --mark-fs: clamp(80px, 21vw, 210px);
  --frame-radius: 22px;
  position: relative;
  background: var(--stage-bg);
}
.stage-pin {
  display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 7vh, 72px);
  padding: clamp(120px, 18vh, 180px) var(--pad) clamp(72px, 10vh, 120px);
}
.stage-title { text-align: center; }
.stage-mark { font-size: var(--mark-fs); }
.mark-baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.stage-copy { margin-top: clamp(18px, 3vh, 30px); }
.stage-line {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 26px); font-weight: 500; letter-spacing: -0.012em;
  color: var(--ink); text-wrap: balance;
}
/* "Step inside": a button, because a click is what earns the film its sound. */
.stage-cue {
  display: none;
  align-items: center; gap: 8px; margin-top: 24px;
  padding: 10px 15px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 1;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; pointer-events: auto;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.stage-cue:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.07); }
.stage-cue .cue-down { animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(3px); opacity: 1; } }

.stage-frame {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  border-radius: var(--frame-radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stage-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; transition: opacity 0.7s var(--ease); }
/* The film rolls from 0:00 out of black: cut to black, fade up as it plays. */
.stage-frame.is-cut .stage-video { opacity: 0; transition: none; }
/* The world still over the film until it rolls (clicks pass through to the film). */
.stage-still {
  position: absolute; inset: 0; z-index: 1;
  display: block; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.stage.is-rolling .stage-still { display: none; }
/* Muted, the film itself is a "sound on" button. */
.stage.is-open[data-mode="ambient"] .stage-video,
html:not(.is-cinematic) .stage[data-mode="ambient"] .stage-video,
.stage[data-mode="idle"] .stage-video { cursor: pointer; }

/* Intro: the wordmark closes up out of a blur, like the film's titles. */
.js .stage-mark > span[aria-hidden] { display: inline-block; animation: mark-in 1.6s cubic-bezier(0.16, 0.84, 0.3, 1) 0.1s both; }
.js .stage-copy > * { animation: rise 1s var(--ease) both; }
.js .stage-line { animation-delay: 1s !important; }
.js .stage-cue { animation-delay: 1.5s !important; }
@keyframes mark-in {
  from { opacity: 0; letter-spacing: 0.14em; filter: blur(12px); }
  to   { opacity: 1; letter-spacing: var(--mark-ls); filter: blur(0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- cinematic ---------- */
.is-cinematic .stage { height: 250vh; height: 250svh; }
.is-cinematic .stage-pin {
  position: sticky; top: 0;
  display: block; height: 100vh; height: 100svh;
  padding: 0; overflow: hidden;
}
.is-cinematic .stage-frame {
  position: absolute; left: 50%; top: 50%;
  width: max(240px, min(1120px, calc(100vw - 2 * var(--pad)), calc((100svh - 190px) * 16 / 9)));
  transform: translate(-50%, -50%);
  border-radius: 0;
  box-shadow: none;
  clip-path: inset(50% 50% 50% 50%);
  will-change: clip-path;
}
.is-cinematic .stage-title {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
.is-cinematic .stage-mark {
  position: absolute; left: 0; right: 0; top: 50%;
  margin-top: calc(var(--mark-fs) * -0.5);
  will-change: transform, opacity;
}
.is-cinematic .stage-copy {
  position: absolute; left: var(--pad); right: var(--pad);
  top: calc(50% + var(--mark-fs) * 0.5);
  margin-top: clamp(14px, 2.6vh, 28px);
}
.is-cinematic .stage-cue { display: inline-flex; }

/* ---------- frame UI ---------- */
.frame-ui {
  position: absolute; inset: auto 0 0; z-index: 3;
  padding: clamp(10px, 2vw, 18px);
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.is-cinematic .stage:not(.is-open) .frame-ui { opacity: 0; transform: translateY(8px); pointer-events: none; }
.fui { display: none; align-items: center; gap: 8px; }
.stage[data-mode="ambient"] .fui-ambient,
.stage[data-mode="idle"] .fui-ambient,
.stage[data-mode="watch"] .fui-watch,
.stage[data-mode="ended"] .fui-ended { display: flex; }
.fui-ambient, .fui-ended { justify-content: space-between; }
.stage[data-mode="idle"] #btn-ambient { display: none; }
.stage[data-mode="ended"] .frame-ui { background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35)); }

.fbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(22, 23, 27, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; flex: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.fbtn:hover { background: rgba(40, 42, 48, 0.7); border-color: rgba(255, 255, 255, 0.32); }
.fbtn:active { transform: scale(0.97); }
.fbtn-icon { width: 38px; padding: 0; }
.fbtn-light { background: var(--ink); color: #0b0c0f; border-color: transparent; }
.fbtn-light:hover { background: #fff; border-color: transparent; }
.fbtn-meta { color: rgba(255, 255, 255, 0.6); font-weight: 500; font-variant-numeric: tabular-nums; }
/* Rolling muted: invite the sound in. */
.fbtn-watch.nudge { animation: nudge 1.8s var(--ease) 0.5s 3; }
@keyframes nudge {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.fbtn .i-play, .stage.is-paused #btn-play .i-pause, #btn-ambient[aria-pressed="true"] .i-pause { display: none; }
.stage.is-paused #btn-play .i-play, #btn-ambient[aria-pressed="true"] .i-play { display: block; }
#btn-mute .i-muted, #btn-mute[aria-pressed="true"] .i-sound { display: none; }
#btn-mute[aria-pressed="true"] .i-muted { display: block; }

.fseek {
  --p: 0%;
  flex: 1; min-width: 60px; height: 38px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.fseek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, 0.28) var(--p));
}
.fseek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.fseek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
.fseek::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.fseek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.fseek:focus-visible { outline: none; }
.fseek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-ring); }
.fseek:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent-ring); }
.ftime {
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums; min-width: 78px; text-align: center;
}

.frame-hotspot {
  position: absolute; inset: 0 0 72px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.frame-hotspot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.frame-hotspot:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; border-radius: 16px; }

/* =====================================================================
   THE ROLL: Worlds. Paths. Objects. Moments.
   ===================================================================== */
.roll {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  --roll-gap: clamp(32px, 6vw, 96px);
  column-gap: var(--roll-gap);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.roll-words {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  /* Reach into the empty column gap so the widest word ("Moments" in Inter,
     the off-Apple fallback) is never clipped at the column edge. */
  margin-right: calc(var(--roll-gap) * -1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 34%, #000 66%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 6%, #000 34%, #000 66%, transparent 94%);
}
.roll-track {
  --lh: 1.12em;
  position: absolute; left: 0; right: 0; top: 50%;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.4vw, 108px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh);
  transform: translateY(calc(var(--lh) * -0.5 - var(--i, 0) * var(--lh)));
  transition: transform 0.9s var(--ease);
}
.roll-word {
  display: block;
  opacity: 0.14;
  filter: blur(3px);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease);
}
.roll-word.is-active { opacity: 1; filter: none; }

.roll-beats { padding: 10vh 0; }
.beat {
  min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: 6vh 0;
}
.beat-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.beat-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; line-height: 1.28; letter-spacing: -0.016em;
  max-width: 26ch; text-wrap: balance;
}
.beat-aside { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.beat-aside span { color: var(--accent); }

.shot {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}

/* =====================================================================
   CREATE / STEP INSIDE
   ===================================================================== */
.duo {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad);
}
.sec-head h2 { font-size: clamp(32px, 4.6vw, 58px); max-width: 22ch; }
.duo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(40px, 7vh, 72px);
}
.app-say {
  margin-top: 28px;
  font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
}
.lower-third {
  display: inline-flex; flex-direction: column; gap: 1px;
  margin-top: 18px; padding-top: 12px; min-width: 190px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  line-height: 1.3;
}
.lower-third b { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.lower-third span { font-size: 15px; color: var(--ink-2); }
.app-line { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }

/* =====================================================================
   CHAPTERSCRIPT
   ===================================================================== */
.open {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(76, 156, 248, 0.07), transparent 70%),
    var(--bg-2);
}
.open-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 80px); align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 13vh, 150px) var(--pad);
}
.cs-word { font-size: clamp(44px, 5.4vw, 74px); letter-spacing: -0.03em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills li {
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
}
.pills a { text-decoration: none; }
.pills a:hover { text-decoration: underline; text-underline-offset: 3px; }
.open-line {
  margin-top: 30px;
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); font-weight: 600; line-height: 1.32; letter-spacing: -0.014em;
  max-width: 28ch; text-wrap: balance;
}
.link-arrow {
  display: inline-flex; gap: 6px; margin-top: 22px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.json {
  position: relative;
  border-radius: 18px;
  background: #0a0b0d;
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 30px) 16px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.json pre {
  position: relative;
  margin: 0;
  font-family: var(--mono); font-size: clamp(12px, 1.1vw, 14px); line-height: 1.8;
  color: var(--ink-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.json .k { color: var(--ink); }
.json .s { color: #7db6ff; }
.ann {
  position: absolute; right: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--ink);
  background: #0a0b0d; padding-left: 6px;
}
.ann::before { content: ""; width: 26px; height: 1px; background: rgba(76, 156, 248, 0.7); }
.json figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* =====================================================================
   EARLY ACCESS
   ===================================================================== */
.access {
  padding: clamp(96px, 15vh, 170px) var(--pad);
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(76, 156, 248, 0.09), transparent 70%);
  scroll-margin-top: 0;
}
.access-inner { max-width: 880px; margin: 0 auto; }
.access-head { text-align: center; margin-bottom: clamp(36px, 6vh, 60px); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.access-head h2 { margin-top: 12px; font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.03em; }
.access-lede { margin: 18px auto 0; max-width: 46ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); text-wrap: balance; }

.form {
  position: relative;
  padding: clamp(22px, 4.4vw, 52px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.8);
}
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs + .fs { margin-top: 52px; }
.fs-legend {
  display: flex; align-items: baseline; gap: 12px;
  width: 100%; padding: 0; margin-bottom: 26px;
  font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.018em;
}
.fs-legend::after { content: ""; flex: 1; align-self: center; height: 1px; margin-left: 6px; background: var(--line); }
.fs-no { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.grid-2 + .field, .field + .field, .grid-2 + .check, .field + .check, .field + .grid-2, .grid-2 + .grid-2 { margin-top: 26px; }
.form .grid-2 > .field { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { padding: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.field > legend { margin-bottom: 9px; }
.field label i, .field legend i { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 13.5px; }

.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form input:hover, .form textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(76, 156, 248, 0.2);
}
.form [aria-invalid="true"] { border-color: var(--err); }
.form [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(255, 107, 99, 0.2); border-color: var(--err); }
.err { font-size: 14px; color: var(--err); }
.field-foot { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.count { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px; line-height: 1.2; color: var(--ink-2);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  -webkit-user-select: none; user-select: none;
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.34); color: var(--ink); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.chip input[type="checkbox"]:checked + span::before {
  content: ""; width: 9px; height: 5px; margin: -3px 1px 0 0;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }

.check { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.check input { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; opacity: 0; cursor: pointer; }
.check-box {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--line-strong);
  transition: background 0.18s, border-color 0.18s;
}
.check:hover .check-box { border-color: rgba(255, 255, 255, 0.34); }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after {
  content: ""; width: 10px; height: 5px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px var(--accent-ring); }

.submit-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
}
.fine { font-size: 14px; color: var(--ink-3); }
.btn-submit { min-width: 230px; }
.btn-submit[disabled] { cursor: progress; opacity: 0.75; transform: none; box-shadow: none; }
.btn-submit.is-sending svg { display: none; }
.btn-submit.is-sending::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(11, 12, 15, 0.25); border-top-color: #0b0c0f;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin-top: 22px; padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 99, 0.38);
  background: rgba(255, 107, 99, 0.07);
  font-size: 15px; color: var(--ink);
}
.form-error b { color: var(--err); }
.form-error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.sent {
  padding: clamp(56px, 10vh, 96px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(76, 156, 248, 0.12), transparent 70%), var(--surface);
  text-align: center;
}
.sent:not([hidden]) { animation: rise 0.9s var(--ease) both; }
.sent:focus { outline: none; }
.sent-mark { font-size: 26px; color: var(--ink-3); }
.sent h3 { margin-top: 26px; font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.03em; }
.sent p:last-child { margin: 16px auto 0; max-width: 40ch; color: var(--ink-2); font-size: 18px; }
.sent b { color: var(--ink); font-weight: 600; word-break: break-all; }

/* =====================================================================
   END CARD (footer): the film's last frame
   ===================================================================== */
.end {
  padding: clamp(96px, 16vh, 180px) var(--pad) max(36px, env(safe-area-inset-bottom));
  text-align: center;
  background: radial-gradient(ellipse 60% 45% at 50% 32%, #16181c 0%, transparent 70%);
  border-top: 1px solid var(--line);
}
.end-card { display: inline-flex; flex-direction: column; align-items: center; }
.end-mark {
  font-size: clamp(68px, 12vw, 150px);
  padding: 0 0.04em 0.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}
.from { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; text-decoration: none; }
.from-label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.from-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; letter-spacing: -0.01em; color: var(--ink); transition: opacity 0.2s; }
.from-name b { font-weight: 700; }
.from:hover .from-name { opacity: 0.8; }
/* Founding apps: round icons under the Step Into Vision credit */
.fapps { margin-top: clamp(52px, 8vh, 76px); }
.fapps-label {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 22px;
  font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.fapps-label::before, .fapps-label::after {
  content: ""; flex: 0 1 96px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.fapps-label::after { background: linear-gradient(270deg, transparent, var(--line-strong)); }
.fapps-row { display: flex; justify-content: center; gap: clamp(4px, 2.4vw, 28px); }
.fapps-row li { flex: 0 1 172px; min-width: 0; }
.fapp {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 16px 10px 14px; border-radius: 22px;
  color: var(--ink); text-decoration: none; text-align: center;
  transition: background 0.3s, transform 0.4s var(--ease);
}
a.fapp:hover { background: rgba(255, 255, 255, 0.045); transform: translateY(-4px); }
.fapp img {
  width: 76px; height: 76px; margin-bottom: 12px; border-radius: 50%;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease);
}
a.fapp:hover img { transform: scale(1.06); }
.fapp b { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.fapp-tag { font-size: 12.5px; color: var(--accent); line-height: 1.3; }
.fapp-tag-soon { color: var(--ink-3); }
@media (max-width: 480px) {
  .fapp img { width: 64px; height: 64px; }
  .fapp b { font-size: 14px; }
  .fapp-tag { font-size: 12px; }
  .fapp-on { display: none; }
}

.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(56px, 9vh, 88px); }
.end-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.end-links a:hover { color: var(--ink); }
.legal { max-width: 72ch; margin: 30px auto 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); text-wrap: balance; }
.legal + .legal { margin-top: 6px; }

/* ---------- scroll reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .roll { grid-template-columns: 1fr; }
  .roll-words { display: none; }
  .roll-beats { padding: 4vh 0 0; }
  .beat { min-height: 0; padding: clamp(48px, 9vh, 80px) 0; gap: 20px; }
  .beat + .beat { border-top: 1px solid var(--line); }
  .beat-word {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    font-size: clamp(48px, 13vw, 76px); letter-spacing: -0.03em;
  }
  .duo-grid, .open-grid { grid-template-columns: 1fr; }
  .open-grid { gap: 40px; }
}
@media (max-width: 640px) {
  .stage { --frame-radius: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .ann { display: none; }
  .ftime { min-width: 0; font-size: 12px; }
  .fbtn-meta { display: none; }
  #btn-full { display: none; }
  .btn-submit { width: 100%; }
  .bar .btn-small { padding: 0 14px; }
  .form { border-radius: 22px; }
}
.bar .sm { display: none; }
@media (max-width: 420px) {
  .bar .lg { display: none; }
  .bar .sm { display: inline; }
}

/* =====================================================================
   Reduced motion: no intro, no reveals, no roll travel. (The cinematic
   stage is never enabled; see the inline script in <head>.)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .roll-word { filter: none; }
}
