/* ==========================================================================
   Kiril Kirilov — personal homepage
   The Claude Creator Studio design system, unchanged, plus a page layer at the
   bottom for the story, the year log, the scar ledger, the track card and the
   private retainer panel. Accent: Laser Emerald Mint.
   ========================================================================== */

:root {
  /* ---- Ground ---- */
  --bg-ground: #151517;            /* main film-set dark background */
  --bg-letterbox: #0A0A0C;         /* deep black: top bar, tcbar, gates, phones */
  --bg-elevated: #1C1C20;          /* subtle dark card surface */
  --cream: #F4EDE0;                /* warm typography + call-sheet surface */
  --cream-muted: rgba(244, 237, 224, 0.84);   /* body copy on the dark set */
  --cream-soft: rgba(244, 237, 224, 0.6);     /* tertiary labels, still AA on ground */
  --cream-dim: rgba(244, 237, 224, 0.14);   /* hairline borders — never text */
  --ink-on-cream: #151517;         /* dark text inside cream cards */

  /* ---- Theme slots. Dark is the default set; the light block at the end of
     this file swaps these without touching a single component rule. ---- */
  --card: var(--cream);            /* call-sheet / note / guarantee surface */
  --card-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.75);
  --thumb-bg: linear-gradient(160deg, #23232a 0%, #16161a 60%, #101013 100%);
  --frame-bg: radial-gradient(90% 65% at 50% 6%, #2b2b31 0%, #191a1d 45%, #0a0a0c 100%);
  --frame-img-bg: linear-gradient(170deg, #26262c 0%, #16161a 55%, #0d0d0f 100%);
  --still-bg: radial-gradient(60% 160% at 82% 10%, #2f2f36 0%, #16161a 60%, #0d0d0f 100%);
  --plate-bg: radial-gradient(90% 70% at 68% 18%, #2a2a30 0%, #1a1a1e 42%, #101012 72%, #0a0a0c 100%);
  --phone-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 0 2px #000;
  --dock-bg: rgba(10, 10, 12, 0.92);
  --bar-text: #F4EDE0;
  --bar-muted: rgba(244, 237, 224, 0.84);
  --bar-soft: rgba(244, 237, 224, 0.6);
  --bar-line: rgba(244, 237, 224, 0.14);
  --on-media: #F4EDE0;
  --clap-line: rgba(244, 237, 224, 0.4);

  /* ---- Accent: Laser Emerald Mint (active) — reads as light on the dark set ---- */
  --accent: #00F59B;               /* price, buttons, status LEDs, ambient glows */
  --accent-hover: #38FFAE;
  --accent-ink: #0A0A0C;           /* crisp black inside the bright green */
  --accent-glow: rgba(0, 245, 155, 0.24);
  --accent-on-cream: #007A4C;      /* deep emerald for accent type ON the cream cards */

  /*  Alternative presets — swap the five lines above for one of these:
      Electric Acid Lime-Green (warmer, more signal-green)
        --accent: #B8FF01; --accent-hover: #C9FF3D; --accent-ink: #0A0A0C; --accent-glow: rgba(184, 255, 1, 0.22); --accent-on-cream: #5C7A00;
      Hyper Cobalt (cooler, high-trust)
        --accent: #2E5BFF; --accent-hover: #4D73FF; --accent-ink: #F4EDE0; --accent-glow: rgba(46, 91, 255, 0.28); --accent-on-cream: #1F3FB8;
      Neon Crimson Coral (warm, not orange)
        --accent: #FF2A5F; --accent-hover: #FF4D79; --accent-ink: #F4EDE0; --accent-glow: rgba(255, 42, 95, 0.25); --accent-on-cream: #B3003C;
  */

  /* ---- Type ---- */
  --font-display: 'League Gothic', Impact, 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- Rhythm ---- */
  --wrap: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-ground);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

img, video, svg, picture { max-width: 100%; }
img, video { display: block; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* League Gothic headline voice. Uppercase, tight, cinematic. */
.t {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
  color: var(--cream);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.h2 {
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  margin: 0 0 1.25rem;
}
.h2 span { display: block; }
.h2 .no { color: var(--accent); }

.lede {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--cream);
  max-width: 46rem;
  margin: 0 0 1.75rem;
}
.lede strong { color: var(--cream); font-weight: 600; }

.sec {
  position: relative;
  padding-block: clamp(3.5rem, 9vh, 7rem);
}

/* Unfilled placeholders (only when VEP_CONFIG has no value). */
.ph { color: var(--accent); opacity: 0.85; }

/* ==========================================================================
   Status lamps + LEDs
   ========================================================================== */

.lamp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.lamp::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--cream-dim);
}
.lamp.ready { color: var(--accent); }
.lamp.ready::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}
.lamp.soon { color: var(--cream-muted); }
.lamp.soon::before { background: var(--cream-dim); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1;
  padding: 0.95rem 2.2rem 0.8rem;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn:active { transform: translateY(0); }

.btn-note {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.cta { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ==========================================================================
   Letterbox strips: founders bar + timecode bar
   ========================================================================== */

.fbar,
.tcbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-letterbox);
  color: var(--bar-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem max(var(--pad-x), calc((100% - var(--wrap)) / 2));
  border-bottom: 1px solid var(--bar-line);
}

.fbar p,
.tcbar p { margin: 0; }

.fbar-t {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.fbar-t i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
  animation: pulse 2.6s var(--ease) infinite;
}
.fbar-t b { font-weight: 700; }
.fbar-c { color: var(--bar-muted); }
.fbar-r {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.cdx { font-weight: 700; letter-spacing: 0.08em; }

.tcbar {
  border-bottom: 0;
  border-top: 1px solid var(--bar-line);
  color: var(--bar-muted);
}
.tcbar b { color: var(--bar-text); font-weight: 700; }
.tc-l {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.tc-mid { color: var(--bar-muted); }
.tc-k { color: var(--bar-soft); }

.bgbtn {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--bar-line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--bar-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.bgbtn:hover { color: var(--bar-text); border-color: var(--bar-text); }
.bgbtn svg { width: 0.65rem; height: 0.65rem; }
.bgbtn .i-off { display: none; }
.bgbtn .i-on { display: block; }
.bgbtn[aria-pressed='false'] .i-off { display: block; }
.bgbtn[aria-pressed='false'] .i-on { display: none; }

/* Theme switch: moon while the set is dark, sun once it turns to paper. */
.themebtn {
  width: auto;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.themebtn svg { width: 0.8rem; height: 0.8rem; }
.themebtn .i-moon { display: block; }
.themebtn .i-sun { display: none; }
html[data-theme='light'] .themebtn .i-moon { display: none; }
html[data-theme='light'] .themebtn .i-sun { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-ground);
  isolation: isolate;
}

/* The set plate: looping background, with a heavy editorial scrim so the
   cream type always wins. */
.plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--plate-bg);
}
.plate picture,
.plate img,
.plate video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate video {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.plate video.on { opacity: 1; }
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.72) 0%, rgba(21, 21, 23, 0) 26%),
    linear-gradient(180deg, rgba(21, 21, 23, 0) 55%, var(--bg-ground) 100%),
    linear-gradient(100deg, rgba(21, 21, 23, 0.96) 0%, rgba(21, 21, 23, 0.82) 34%, rgba(21, 21, 23, 0.45) 66%, rgba(10, 10, 12, 0.68) 100%);
}

/* Letterbox bars that open on load. */
.gate {
  position: absolute;
  left: 0;
  right: 0;
  height: 15vh;
  background: var(--bg-letterbox);
  z-index: 4;
  pointer-events: none;
  animation: gate-open 0.95s var(--ease) 0.08s both;
}
.gate-t { top: 0; transform-origin: top; }
.gate-b { bottom: 0; transform-origin: bottom; }

@keyframes gate-open {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

.hero-in {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  padding-block: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 4vh, 3rem);
  padding-inline: max(var(--pad-x), calc((100% - var(--wrap)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.top { grid-column: 1; grid-row: 1; }
.brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.hero .title {
  grid-column: 1;
  grid-row: 2;
  margin: clamp(1.5rem, 4vh, 3rem) 0 clamp(1.25rem, 3vh, 2rem);
  font-size: clamp(3.5rem, 8.6vw, 8.2rem);
  line-height: 0.86;
  animation: rack 1.15s var(--ease) 0.15s both;
}
.hero .title span { display: block; }

@keyframes rack {
  from { opacity: 0; filter: blur(16px); letter-spacing: 0.06em; transform: translateY(0.06em); }
  60% { opacity: 1; }
  to { opacity: 1; filter: blur(0); letter-spacing: 0.005em; transform: none; }
}

.pitch {
  grid-column: 1;
  grid-row: 3;
  max-width: 36rem;
}
.pitch-t { margin-bottom: clamp(1rem, 2.5vh, 1.75rem); }

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.6rem;
}

.hero-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  color: var(--cream);
}
.hero-sub b { font-weight: 600; }

.pricerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.amt {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.4vw, 5.2rem);
  line-height: 0.82;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.lbl {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 9rem;
}
.lbl-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.lbl-left {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.hero-cta {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  padding-top: clamp(1.5rem, 3vh, 2.5rem);
}
.hero-cta .btn { font-size: clamp(1.35rem, 1.9vw, 1.75rem); padding: 1rem 2.5rem 0.85rem; }

/* ---- The phone ---- */

.stage {
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: end;
  align-self: start;
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.burn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.62);
  border: 1px solid var(--cream-dim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.35;
}
.burn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}
.burn span { text-align: left; }

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2c2c32 0%, #101012 42%, #08080a 100%);
  box-shadow: var(--phone-shadow);
}
.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(85% 60% at 50% 8%, #34343c 0%, #1c1c21 45%, #0b0b0d 100%);
}
.phone .screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(10, 10, 12, 0.55);
}
.prog i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.vbtn {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(244, 237, 224, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-media);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.vbtn:hover { border-color: var(--on-media); }
.vbtn svg { width: 0.85rem; height: 0.85rem; flex: none; }
.vbtn--sound { left: 0.85rem; bottom: 0.85rem; }
.vbtn--play {
  right: 0.85rem;
  bottom: 0.85rem;
  width: 2.35rem;
  height: 2.35rem;
  justify-content: center;
  padding: 0;
}
.vbtn .i-on,
.vbtn[aria-pressed='false'] .i-off { display: none; }
.vbtn[aria-pressed='true'] .i-on { display: block; }
.vbtn--play .i-off,
.vbtn--sound[aria-pressed='false'] .i-off { display: block; }
.vbtn--sound[aria-pressed='false'] .i-on { display: none; }
.vbtn--sound[aria-pressed='true'] .i-off { display: none; }
.vbtn--sound[aria-pressed='true'] .i-on { display: block; }

.cap {
  margin: 0;
  max-width: 20rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Scene slates (clapperboard headers)
   ========================================================================== */

.slate {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
}
.clap {
  position: relative;
  display: inline-block;
  width: clamp(2.5rem, 4.5vw, 3.6rem);
  height: clamp(1.1rem, 1.8vw, 1.5rem);
  flex: none;
}
.clap i {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  border: 1px solid var(--clap-line);
  background: repeating-linear-gradient(
    45deg,
    var(--on-media) 0 0.55rem,
    var(--bg-letterbox) 0.55rem 1.1rem
  );
  transform-origin: left bottom;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.slate.armed .clap i { transform: rotate(-20deg) translateY(-1px); opacity: 0.55; }
.slate.clapped .clap i { animation: clap 0.55s var(--ease) both; }

@keyframes clap {
  0% { transform: rotate(-20deg); }
  55% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}

.slate-f {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--cream);
}
.slate-f span { display: inline-flex; gap: 0.45rem; }
.slate-f b { color: var(--accent); font-weight: 700; }

/* ==========================================================================
   Scene 02 — What you get
   ========================================================================== */

.pack-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pack-top .h2 { margin-bottom: 0; }
.pack-intro .lede { margin-bottom: 0.9rem; }
.legend { margin: 0; }

.sheet {
  background: var(--card);
  color: var(--ink-on-cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--card-shadow);
}
.sheet .sheet-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(21, 21, 23, 0.2);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(21, 21, 23, 0.72);
}
.sheet-h b { font-weight: 700; }

.sheet ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}
.sheet li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(21, 21, 23, 0.3);
}
.sheet-n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-on-cream);
  padding-top: 0.15rem;
}
.sheet h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--ink-on-cream);
}
.sheet p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(21, 21, 23, 0.92);
}
.sheet p b { color: var(--ink-on-cream); font-weight: 700; }

/* ==========================================================================
   Scene 03 — The screening
   ========================================================================== */

.scr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* The heading is the grid's first child, so it has to claim the full row.
   Without this the dailies land in column 2 and the steps get pushed under them. */
.scr-top > .dailies-h {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.dailies-h {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  max-width: 22ch;
}

.dailies {
  --dg: clamp(0.9rem, 3vw, 2.25rem);
  position: relative;
  display: flex;
  align-items: start;
  gap: var(--dg);
}
/* The badge box is exactly the size of one frame, so the badge lands on the
   frames' true centre no matter how the captions below wrap. */
.cutmark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: calc(50% - var(--dg) / 2);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cutmark::before {
  content: '';
  position: absolute;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg-ground), 0 10px 26px rgba(0, 0, 0, 0.6);
}
.cutmark svg {
  position: relative;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent-ink);
}

.take { flex: 1 1 0; min-width: 0; margin: 0; }
.take .frame { aspect-ratio: 9 / 16; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--frame-bg);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(244, 237, 224, 0.1);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -70px 70px -50px rgba(0, 0, 0, 0.9);
}
.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;         /* hides alt text if the file is missing */
  background: var(--frame-img-bg);
}
.frame video { z-index: 1; background: transparent; }

.tgl {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  z-index: 4;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(244, 237, 224, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-media);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tgl:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tgl svg { width: 0.9rem; height: 0.9rem; }
.tgl .i-pause { display: none; }
[data-clip].is-playing .tgl .i-play { display: none; }
[data-clip].is-playing .tgl .i-pause { display: block; }

.take figcaption {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.2rem;
}
.take figcaption b {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.take figcaption span {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cream-muted);
}
.take--cut figcaption b { color: var(--accent); }

.proof {
  margin: 0.9rem 0 clamp(2rem, 4vw, 3rem);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-muted);
}
.dailies:last-of-type .proof,
.proof:last-child { margin-bottom: 0; }

.say2-l {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1;
  margin: 0 0 1.25rem;
}

.note {
  background: var(--card);
  color: var(--ink-on-cream);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.6rem);
  box-shadow: var(--card-shadow);
}
.note-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-on-cream);
  margin-bottom: 0.4rem;
}
.note p {
  margin: 0.5rem 0 0;
  font-size: 0.975rem;
  line-height: 1.6;
  color: rgba(21, 21, 23, 0.92);
}

.steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.3rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(21, 21, 23, 0.28);
}
.steps li:first-child { padding-top: 0; border-top: 0; }
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 0.72;
  color: var(--accent-on-cream);
}
.steps li .note-k { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.steps li p { grid-column: 2; grid-row: 2; margin: 0; }
.steps.note { padding: clamp(1.25rem, 2vw, 1.6rem); }

.tweak {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-muted);
}
.tweak q { color: var(--cream); font-style: italic; }

.no3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.said {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.said blockquote { margin: 0; }
.said-q {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  color: var(--cream);
  font-weight: 400;
}
.said-q b { font-weight: 700; }
.said-by {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.said-by b { color: var(--cream); font-weight: 700; }
.said--big .said-q { font-size: clamp(1.25rem, 2.2vw, 1.9rem); }

/* ---- Styles menu ---- */

.shots-h {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0.7rem;
}
.shots-h + p,
.more-h + p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-muted);
  max-width: 48rem;
}
.more-h {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0.7rem;
}

.fxmenu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  align-items: start;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.fxg {
  background: var(--bg-elevated);
  border: 1px solid var(--cream-dim);
  border-radius: var(--radius);
  padding: clamp(1rem, 1.6vw, 1.35rem);
}
.fxg summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.fxg summary::-webkit-details-marker { display: none; }
.fxg .job {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.fxg summary b {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--cream);
  white-space: nowrap;
}
.fxg ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.fxg li {
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(244, 237, 224, 0.16);
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--cream-muted);
}
.fxg li b {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.own-h {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  margin: 0.35rem 0 0;
  color: var(--ink-on-cream);
}
.note.own p:not(.own-h) { font-size: 0.975rem; }

/* ---- Four effects on screen ---- */

.shots {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}
.shot { display: flex; flex-direction: column; }
.shot .frame { aspect-ratio: 9 / 16; }
.shot-b { display: flex; flex-direction: column; flex: 1; }
.shot-b h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1;
  margin: 0.9rem 0 0.6rem;
  color: var(--cream);
}
.shot-b .note { flex: 1; }
.shot-b .note p { font-size: 0.975rem; }

/* ---- All 26 effects ---- */

.fxflat {
  list-style: none;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.fxflat li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--cream-dim);
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--cream-muted);
}
.fxflat b {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   Replies
   ========================================================================== */

.replies .lede { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.replies-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  align-items: start;
}

.reply-wide {
  grid-column: 1;
  margin: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 45px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(244, 237, 224, 0.08);
}
.reply-wide img {
  width: 100%;
  height: auto;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f4f2ee 100%);
}
.reply-wide figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
  background: #fff;
  color: #151517;
  font-size: 0.975rem;
  line-height: 1.55;
}
.reply-wide figcaption .mono {
  display: block;
  margin-top: 0.35rem;
  color: rgba(21, 21, 23, 0.7);
}

.replies-short {
  grid-column: 2;
  grid-row: 1 / span 6;
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  align-content: start;
}
.replies-short figure {
  margin: 0;
  min-height: 5.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--thumb-bg);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(244, 237, 224, 0.1);
}
.replies-short img {
  width: 100%;
  height: auto;
  color: transparent;
  background: transparent;
}

.replies-note {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  text-align: center;
  color: var(--cream-muted);
}

/* ==========================================================================
   Scene 04 — Price + guarantee
   ========================================================================== */

.price { overflow: hidden; }
.price-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.price-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  opacity: 0.5;
  background: var(--still-bg);
}
.price::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 76% 28%, var(--accent-glow), transparent 58%),
    linear-gradient(180deg, var(--bg-ground) 0%, rgba(21, 21, 23, 0.86) 40%, rgba(10, 10, 12, 0.94) 100%);
}
.price .wrap { position: relative; z-index: 2; }

.deal {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.deal-a { grid-column: 1; grid-row: 1; }
.deal-a .h2 { max-width: 16ch; }

.figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin: clamp(0.5rem, 2vw, 1rem) 0 1rem;
}
.now {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.78;
  color: var(--accent);
}
.side {
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--cream-muted);
}
.terms {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-muted);
}

.deal-g {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  align-content: start;
}
.guar {
  background: var(--card);
  color: var(--ink-on-cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  box-shadow: var(--card-shadow);
}
.guar h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--ink-on-cream);
}
.guar p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(21, 21, 23, 0.92);
}
.guar b { color: var(--ink-on-cream); font-weight: 700; }
.guar a {
  color: var(--ink-on-cream);
  text-decoration-color: var(--accent-on-cream);
  font-weight: 600;
}
.guar-s {
  margin: 0 !important;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 21, 23, 0.72) !important;
}

.timer {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0.5rem;
}
.timer-l {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cream-muted);
}
.timer-l b { color: var(--cream); font-weight: 700; }
.cells {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.4rem, 1.2vw, 0.9rem);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.cells span { display: grid; justify-items: center; gap: 0.25rem; }
.cells b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.8;
  color: var(--cream);
}
.cells i {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.cells em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--accent);
  padding-top: 0.1rem;
}

.deal-b {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}
.why {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.need {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.need b { color: var(--cream); font-weight: 700; }

/* ==========================================================================
   Scene 05 — Enrollment closing
   ========================================================================== */

.ready .rig {
  display: block;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
}
.ready .rig img {
  width: 100%;
  height: auto;
  color: transparent;
  opacity: 0.75;
  background: var(--still-bg);
  border-radius: var(--radius);
}
.ready-p {
  margin: 0;
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.ready-p b { color: var(--cream); }

.board {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.75rem);
}
.board li {
  padding-top: 1rem;
  border-top: 1px dashed rgba(244, 237, 224, 0.24);
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}
.board li > b {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1;
  color: var(--cream);
}
.board li.later { opacity: 0.6; }

/* ==========================================================================
   Scene 06 — Who it is (not) for
   ========================================================================== */

.forwho-top {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.forwho-top .chair {
  display: block;
  position: relative;
}
.forwho-top .chair img {
  width: 100%;
  height: auto;
  color: transparent;
  border-radius: var(--radius);
  background: var(--still-bg);
  opacity: 0.8;
}
.forwho-top .h2 { margin-bottom: 0; }

.fits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.fit-l {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cream-muted);
}
.fit {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* The icon is absolutely positioned because a text node inside a grid container
   becomes its own anonymous grid item — with grid columns that text gets crushed
   into the 1.1rem icon track. Absolute + hanging indent keeps it in one block. */
.fit li {
  position: relative;
  display: block;
  padding: 0.9rem 0 0.9rem 1.9rem;
  border-top: 1px dashed rgba(244, 237, 224, 0.18);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.fit li b { color: var(--cream); font-weight: 700; margin-right: 0.35rem; }
.fit li svg {
  position: absolute;
  left: 0;
  top: 1.18rem;
  width: 1.05rem;
  height: 1.05rem;
}
.fit--yes svg { color: var(--accent); }

.fit-card {
  background: var(--card);
  color: var(--ink-on-cream);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.4vw, 2rem);
  box-shadow: var(--card-shadow);
}
.fit-card .fit-l { color: rgba(21, 21, 23, 0.72); }
.fit-card .fit li {
  border-top-color: rgba(21, 21, 23, 0.22);
  color: rgba(21, 21, 23, 0.92);
}
.fit-card .fit li b { color: var(--ink-on-cream); }
.fit-card .fit--no svg { color: rgba(21, 21, 23, 0.45); }
.fit-card .fit li:first-child { border-top: 0; padding-top: 0; }
.fit-card .fit li:first-child svg { top: 0.28rem; }

/* ==========================================================================
   Scene 07 — FAQ
   ========================================================================== */

.faq { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.faq details { border-bottom: 1px solid var(--cream-dim); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
}
.faq details[open] summary { color: var(--cream); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p {
  margin: 0;
  padding: 0 3rem 1.35rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.faq details p a { color: var(--cream); text-decoration-color: var(--accent); }

/* ==========================================================================
   Scene 08 — Last shot
   ========================================================================== */

.closer {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.set {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(60% 45% at 78% 20%, #112a22 0%, #1c1c21 52%, #0b0b0d 100%);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(244, 237, 224, 0.08);
}
.set-plate,
.set-cut {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}
.set-plate { opacity: 0.85; }
.set-cut { object-position: bottom right; opacity: 0.95; }
.set-words {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 0.9;
  color: var(--on-media);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.about p {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.7;
  color: var(--cream-muted);
}
.about p:first-child { color: var(--cream); }

.ask .h2 { max-width: 20ch; }
.ask-p {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.ask-p b { color: var(--cream); font-weight: 700; }

.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(244, 237, 224, 0.2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.credits b { color: var(--cream); font-weight: 400; }

/* ==========================================================================
   Footer + docked buy bar
   ========================================================================== */

#foot {
  padding-block: clamp(2rem, 4vw, 3rem);
  background: var(--bg-letterbox);
  border-top: 1px solid var(--bar-line);
}
#foot .wrap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bar-muted);
}
#foot a {
  color: var(--bar-text);
  text-decoration-color: var(--accent);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--dock-bg);
  border-top: 1px solid var(--bar-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(115%);
  transition: transform 0.42s var(--ease);
  pointer-events: none;
}
.dock.show {
  transform: translateY(0);
  pointer-events: auto;
}

.dock-in {
  max-width: calc(var(--wrap) + var(--pad-x) * 2);
  margin-inline: auto;
  padding: 0.7rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dock-p {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  min-width: 0;
}
.dock-p > b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 0.9;
  color: var(--accent);
}
.dock-f {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bar-muted);
}
.dock-k { color: var(--bar-soft); line-height: 1.35; }
.dock-cd { color: var(--bar-text); font-weight: 700; }
.dock .btn {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  padding: 0.75rem 1.5rem 0.65rem;
  white-space: nowrap;
}

/* ==========================================================================
   Focus-pull on the decorative stills
   ========================================================================== */

.rack.soft {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.015);
}
.rack {
  transition: opacity 0.85s var(--ease), filter 0.85s var(--ease), transform 0.85s var(--ease);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .gate { display: none; }
  .slate.armed .clap i { transform: none; opacity: 1; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .top { grid-column: 1; grid-row: auto; }
  .hero .title { grid-column: 1; grid-row: auto; font-size: clamp(3.2rem, 12vw, 6rem); }
  .pitch { grid-column: 1; grid-row: auto; max-width: none; }
  .hero-cta { grid-column: 1; grid-row: auto; align-self: start; }
  .stage {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
  }
  .cap { text-align: left; }
  .hero { min-height: 0; }
  .plate::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.75) 0%, rgba(21, 21, 23, 0) 22%),
      linear-gradient(180deg, rgba(21, 21, 23, 0.35) 40%, var(--bg-ground) 92%);
  }

  .scr-top { grid-template-columns: minmax(0, 1fr); }
  .dailies-h { max-width: 30ch; }
  .pack-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pack-top .h2 { margin-bottom: 1.25rem; }
  .replies-grid { grid-template-columns: minmax(0, 1fr); }
  .reply-wide { grid-column: 1; }
  .replies-short {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .deal { grid-template-columns: minmax(0, 1fr); }
  .deal-a, .deal-g, .timer, .deal-b { grid-column: 1; grid-row: auto; }
  .deal-a .h2 { max-width: none; }
  .forwho-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .forwho-top .chair { max-width: 22rem; }
  .closer { grid-template-columns: minmax(0, 1fr); }
  .set { max-width: 26rem; aspect-ratio: 4 / 5; }
}

@media (max-width: 900px) {
  .sheet ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fxflat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fits { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board li { grid-template-columns: minmax(0, 1fr); }
  .tc-mid { display: none; }
}

@media (max-width: 699px) {
  .fxmenu { grid-template-columns: minmax(0, 1fr); }
  .fxg summary { padding: 0.15rem 0; }
  .replies-short { grid-template-columns: minmax(0, 1fr); }
  .fxflat { grid-template-columns: minmax(0, 1fr); }
  .tcbar { font-size: 0.72rem; padding-block: 0.65rem; flex-wrap: wrap; row-gap: 0.35rem; }
  .fbar { flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.72rem; }
  .fbar-r { width: 100%; justify-content: space-between; }
}

@media (max-width: 620px) {
  .sheet ol { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .dailies { --dg: 0.75rem; }
  .cutmark::before { width: 2.1rem; height: 2.1rem; box-shadow: 0 0 0 4px var(--bg-ground), 0 8px 20px rgba(0, 0, 0, 0.6); }
  .cutmark svg { width: 0.9rem; height: 0.9rem; }
  .dock-p .dock-k br { display: none; }
  .dock-k { display: none; }
  .now { font-size: clamp(3.4rem, 18vw, 5rem); }
  .hero .title { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .btn { padding: 0.9rem 1.6rem 0.78rem; }
  .hero-cta .btn { padding: 0.95rem 1.8rem 0.8rem; }
  .dock .btn { padding: 0.7rem 1rem 0.6rem; font-size: 1rem; }
}

/* Print: no motion, no dock. */
@media print {
  .gate, .dock, .vbtn, .tgl, .bgbtn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Light theme — the call sheet
   The set turns to paper. The letterbox bars, the phone bezel and the footage
   stay dark, so the page still reads as cinema rather than a SaaS template.
   Toggle lives in the timecode bar; the inline head script restores it before
   first paint, so there is no flash.
   ========================================================================== */

html[data-theme='light'] {
  color-scheme: light;

  /* Ground + type */
  --bg-ground: #F4EDE0;
  --bg-elevated: #FFFDF8;
  --cream: #151517;                          /* body type is ink on paper */
  --cream-muted: rgba(21, 21, 23, 0.72);
  --cream-soft: rgba(21, 21, 23, 0.55);
  --cream-dim: rgba(21, 21, 23, 0.16);

  /* Accent: the same emerald, printed as ink */
  --accent: #007A4C;
  --accent-hover: #008F58;
  --accent-ink: #F4EDE0;
  --accent-glow: rgba(0, 122, 76, 0.18);
  --accent-on-cream: #007A4C;

  /* Surfaces */
  --card: #FFFDF8;
  --card-shadow: 0 30px 60px -34px rgba(21, 21, 23, 0.18), 0 0 0 1px rgba(21, 21, 23, 0.1);
  --thumb-bg: linear-gradient(160deg, #FFFDF8 0%, #F7F1E6 60%, #F0E8DA 100%);
  --frame-bg: radial-gradient(90% 65% at 50% 6%, #FBF7EF 0%, #F0E8DA 45%, #E9DFCF 100%);
  --frame-img-bg: linear-gradient(170deg, #FBF7EF 0%, #F0E8DA 55%, #E9DFCF 100%);
  --still-bg: radial-gradient(60% 160% at 82% 10%, #FBF7EF 0%, #F0E8DA 60%, #E9DFCF 100%);
  --plate-bg: radial-gradient(90% 70% at 68% 18%, #FFFDF8 0%, #F4EDE0 42%, #EFE6D6 72%, #E9DFCF 100%);
  --phone-shadow: 0 40px 90px -34px rgba(21, 21, 23, 0.35), 0 0 0 1px rgba(21, 21, 23, 0.18), 0 0 0 2px #151517;
  --dock-bg: rgba(21, 21, 23, 0.92);
  --clap-line: rgba(21, 21, 23, 0.4);
}

/* The set plate: a dark still, washed almost back to paper. */
html[data-theme='light'] .plate img,
html[data-theme='light'] .plate video {
  opacity: 0.16;
  filter: grayscale(1) contrast(0.85) brightness(1.6);
}
html[data-theme='light'] .plate video.on { opacity: 0.16; }
html[data-theme='light'] .plate::after {
  background:
    linear-gradient(180deg, rgba(244, 237, 224, 0.55) 0%, rgba(244, 237, 224, 0) 26%),
    linear-gradient(180deg, rgba(244, 237, 224, 0) 55%, var(--bg-ground) 100%),
    linear-gradient(100deg, rgba(244, 237, 224, 0.94) 0%, rgba(244, 237, 224, 0.82) 34%, rgba(244, 237, 224, 0.45) 66%, rgba(244, 237, 224, 0.68) 100%);
}

/* The "edited by Claude" chip becomes a frosted paper label. */
html[data-theme='light'] .burn {
  background: rgba(255, 253, 248, 0.72);
  border-color: rgba(21, 21, 23, 0.14);
  color: var(--cream);
}

/* The price plate: a faint emerald-tinted paper wash. */
html[data-theme='light'] .price-plate img {
  opacity: 0.22;
  filter: grayscale(1) contrast(0.85) brightness(1.6);
}
html[data-theme='light'] .price::before {
  background:
    radial-gradient(circle at 76% 28%, rgba(0, 122, 76, 0.1), transparent 58%),
    linear-gradient(180deg, var(--bg-ground) 0%, rgba(244, 237, 224, 0.86) 40%, rgba(244, 237, 224, 0.94) 100%);
}

/* Shadows and rings: ink instead of black, so cards sit on paper. */
html[data-theme='light'] .frame {
  box-shadow: 0 24px 50px -24px rgba(21, 21, 23, 0.22), 0 0 0 1px rgba(21, 21, 23, 0.12);
}
html[data-theme='light'] .reply-wide {
  box-shadow: 0 20px 45px -28px rgba(21, 21, 23, 0.2), 0 0 0 1px rgba(21, 21, 23, 0.12);
}
html[data-theme='light'] .replies-short figure {
  box-shadow: 0 18px 40px -26px rgba(21, 21, 23, 0.2), 0 0 0 1px rgba(21, 21, 23, 0.12);
}
html[data-theme='light'] .set {
  box-shadow: 0 30px 60px -34px rgba(21, 21, 23, 0.3), 0 0 0 1px rgba(21, 21, 23, 0.12);
}
html[data-theme='light'] .cutmark::before {
  box-shadow: 0 0 0 6px var(--bg-ground), 0 10px 26px rgba(21, 21, 23, 0.25);
}

/* Hardcoded hairlines that were cream-on-dark become ink-on-paper. */
html[data-theme='light'] .fxg li { border-top-color: rgba(21, 21, 23, 0.14); }
html[data-theme='light'] .board li { border-top-color: rgba(21, 21, 23, 0.2); }
html[data-theme='light'] .fit li { border-top-color: rgba(21, 21, 23, 0.14); }
html[data-theme='light'] .credits { border-top-color: rgba(21, 21, 23, 0.16); }

/* One green everywhere: the dark bars, the dock and the video controls use the
   same printed emerald as the buy button, not the night-set mint. */
html[data-theme='light'] .fbar-t i {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
html[data-theme='light'] .prog i {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
html[data-theme='light'] .tgl:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
html[data-theme='light'] .dock-p b { color: var(--accent); }
html[data-theme='light'] .dock .btn {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
html[data-theme='light'] .dock .btn:hover,
html[data-theme='light'] .dock .btn:focus-visible { background: var(--accent-hover); }
html[data-theme='light'] #foot a { text-decoration-color: var(--accent); }

/* Theme flips snap instead of cross-fading through a half-mint button. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after { transition: none !important; }

/* ==========================================================================
   KIRO HOMEPAGE LAYER
   The Studio system above stays the engine. This layer adds only the pieces a
   personal story needs: a three-line declaration, the number strip, the year
   log, the scar ledger, pull quotes, the reel slate, the track card and the
   private-retainer panel. Nothing here renames an existing component.
   ========================================================================== */

/* ---- Readability floor: the theme chip's label was 10.56px ---- */
.themebtn { font-size: 0.72rem; }

/* Tertiary ink on paper: 0.55 alpha only reached 3.7:1. 0.64 clears 4.5:1
   and still reads as the quietest tier of text. */
html[data-theme='light'] { --cream-soft: rgba(21, 21, 23, 0.64); }

/* ---- Small separators used in bars and slates ---- */
.brand-sep,
.fbar-sep { color: var(--accent); opacity: 0.8; }
/* The top bar and the phone slate stay dark in both themes, so their marks
   keep the night-set mint instead of the printed emerald. */
.fbar .brand-sep,
.fbar .fbar-sep,
.slatecard .brand-sep { color: #00F59B; opacity: 0.85; }

/* ---- The declaration. Three sentences, one line each, at every width. ---- */
.hero .title--long {
  font-size: clamp(2.45rem, 5.6vw, 4.45rem);
  line-height: 0.9;
}
.hero .title--long span:nth-child(2) { color: var(--cream-soft); }
.hero .title--long span:nth-child(3) { color: var(--accent); }

/* ---- The number strip, directly under the hero ---- */
.strip-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--cream-dim);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strip > div {
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.6rem) clamp(0.9rem, 2vw, 1.6rem);
  border-left: 1px solid var(--cream-dim);
}
.strip > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.strip > div:last-child { padding-right: 0; }

.strip .n {
  display: flex;
  align-items: baseline;
  gap: 0.05em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 0.82;
  color: var(--cream);
}
.strip .n b { font-weight: 400; }
.strip .n i {
  font-style: normal;
  color: var(--accent);
}

.strip .k {
  margin: 0.55rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

/* ---- Scenes ---- */
.sec--line { border-top: 1px solid var(--cream-dim); }

.h2--case { margin-bottom: clamp(1rem, 2vw, 1.35rem); }

/* ---- Body copy. The base sheet has no paragraph voice of its own. ---- */
.prose {
  max-width: 46rem;
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream-muted);
}
.prose b,
.prose strong { color: var(--cream); font-weight: 600; }
.prose + .prose { margin-top: 1.15rem; }
.lede--after { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* A marginal note that closes a scene without another card. */
.story-note {
  max-width: 46rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  padding-top: clamp(1rem, 2vw, 1.4rem);
  border-top: 1px dashed var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream-muted);
}
.story-note b { color: var(--cream); font-weight: 600; }

/* ---- The year log ---- */
.log {
  list-style: none;
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  position: relative;
}
.log::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 1.55rem;
  bottom: 1.55rem;
  width: 1px;
  background: var(--cream-dim);
}
.log li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1rem 0 1rem 2rem;
}
.log li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.42rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--bg-ground);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-ground);
}
.log-y {
  margin: 0;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.log-t {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.log-t b { color: var(--cream); font-weight: 600; }

/* ---- The scar ledger ---- */
.eq { margin: clamp(1.75rem, 3vw, 2.25rem) 0 0; }
.eq-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  margin: 0;
  padding: clamp(0.9rem, 2vw, 1.2rem) 0;
  border-top: 1px dashed var(--cream-dim);
}
.eq-line:last-child { border-bottom: 1px dashed var(--cream-dim); }
.eq-line span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.eq-line em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cream-soft);
}
.eq-line b {
  margin-left: auto;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1;
  text-align: right;
  color: var(--cream);
}
.eq-line--bad b { color: var(--cream-muted); }

/* ---- Pull quote ---- */
.quote {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: clamp(1rem, 2vw, 1.4rem) 0 clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2.5vw, 1.75rem);
  border-left: 2px solid var(--accent);
  max-width: 34ch;
}
.quote p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--cream);
}

/* ---- The set: one emerald pool behind the phone, under the scrim ---- */
.plate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(46% 42% at 74% 30%, var(--accent-glow), transparent 72%);
  opacity: 0.9;
}

/* ---- The reel slate (shown while HERO_VIDEO_URL is empty) ---- */
.slatecard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.15rem 1.2rem;
  color: #F4EDE0;
  background:
    repeating-linear-gradient(115deg, rgba(244, 237, 224, 0.035) 0 2px, transparent 2px 6px),
    radial-gradient(85% 60% at 50% 18%, rgba(0, 245, 155, 0.14), transparent 70%),
    linear-gradient(180deg, #1d1d22 0%, #131316 55%, #0a0a0c 100%);
}
.slatecard::after {
  content: '';
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(244, 237, 224, 0.16);
  border-radius: 24px;
  pointer-events: none;
}
.slatecard-k {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #00F59B;
}
.slatecard-t {
  position: relative;
  z-index: 1;
  margin: auto 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 0.94;
  color: #F4EDE0;
}
.slatecard-f {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(244, 237, 224, 0.62);
}

/* ---- The track card ---- */
.rack.rk {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--cream-dim);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 14% 0%, var(--accent-glow), transparent 62%),
    var(--bg-elevated);
}
.rk-in {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rk-k {
  margin: 0;
  color: var(--accent);
}
.rk-t {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 6.4rem);
  line-height: 0.85;
}
.rk-t span {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.16em, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.rk-f {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cream-soft);
}

/* ---- The private retainer panel ---- */
.work-note { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 46rem; }
.work-note p { font-size: 1.05rem; }

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.inquiry .steps { height: 100%; }

.inquiry-side { padding-top: 0.35rem; }
.inquiry-k {
  margin: 0 0 0.6rem;
  color: var(--accent);
}
.inquiry-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.12em;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 0.85;
  color: var(--cream);
}
.inquiry-price b { font-weight: 400; }
.inquiry-price span { color: var(--cream-soft); }
.inquiry-price em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.19em, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.inquiry-p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream-muted);
}
.inquiry-side .btn { margin-top: 0.25rem; }
.inquiry-side .btn-note { margin-top: 0.7rem; }
.inquiry-f {
  margin: 1.1rem 0 0;
  color: var(--cream-soft);
}

/* ---- Footer rows ---- */
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* ==========================================================================
   Homepage breakpoints
   ========================================================================== */

/* The declaration is a sentence, not a two-word title: give it a wider left
   column on desktop and let the phone keep its 320px frame on the right. */
@media (min-width: 1081px) {
  .hero-in { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
  .hero .title--long { font-size: clamp(2.45rem, 5.6vw, 4.9rem); }
}

@media (max-width: 1080px) {
  /* Below two columns the phone is a slate, not a product demo: the ask comes
     before it, so the first screen of scroll ends on a way in. */
  .hero-cta { grid-row: 4; }
  .stage { grid-row: 5; }
  .hero .title--long { font-size: clamp(2.4rem, 7.6vw, 5rem); }
}

@media (max-width: 900px) {
  .inquiry { grid-template-columns: minmax(0, 1fr); }
  .inquiry .steps { height: auto; }
  .inquiry-side { padding-top: 0; }
}

@media (max-width: 699px) {
  .fbar-sep { display: none; }
}

@media (max-width: 620px) {
  .hero .title--long { font-size: clamp(2.2rem, 10vw, 3.55rem); }

  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div { padding-inline: 1rem; }
  .strip > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--cream-dim); }

  .log li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    padding-block: 0.9rem;
  }
  .log li::before { top: 1.3rem; }
  .log-y { padding-top: 0; }

  .eq-line b {
    margin-left: 0;
    text-align: left;
  }

  .dock-p > b { font-size: 1.05rem; }
  .dock-in { gap: 0.6rem; }
  .dock .btn { font-size: 0.95rem; }

  .inquiry-price { font-size: clamp(2.4rem, 13vw, 3.4rem); }
}

@media (max-width: 480px) {
  .fbar-r { justify-content: flex-end; }
  .fbar-r .fbar-c { display: none; }
  .slatecard-t { font-size: 1.55rem; }
}

/* ---- Light theme: hairlines that were cream-on-dark become ink-on-paper ---- */
html[data-theme='light'] .log-y { color: var(--accent); }
html[data-theme='light'] .eq-line { border-top-color: rgba(21, 21, 23, 0.18); }
html[data-theme='light'] .eq-line:last-child { border-bottom-color: rgba(21, 21, 23, 0.18); }
html[data-theme='light'] .story-note { border-top-color: rgba(21, 21, 23, 0.18); }
html[data-theme='light'] .strip { border-color: rgba(21, 21, 23, 0.14); }
html[data-theme='light'] .rack.rk { background: radial-gradient(70% 120% at 14% 0%, var(--accent-glow), transparent 62%), var(--bg-elevated); }
/* The dock is a dark letterbox in both themes, so its display line keeps the
   night-set mint rather than the printed emerald that would vanish on it. */
html[data-theme='light'] .dock-p > b { color: #00F59B; }
/* Same reason for the status LED in the top bar. */
html[data-theme='light'] .fbar-t i { background: #00F59B; box-shadow: 0 0 10px #00F59B; }

/* ==========================================================================
   ENGINE PAGE LAYER
   Everything above this line is the call-sheet system, unchanged. This block
   only serves engine.html: a one-column hero with a 16:9 screening, a 2x2
   deliverable sheet, and the three-package table. Every override is scoped to
   body.engine so the homepage can never inherit it.
   ========================================================================== */

/* ---- Hero: one column, and the phone becomes a screening room ---- */

.engine .hero--engine .hero-in {
  display: block;
  max-width: calc(var(--wrap) + var(--pad-x) * 2);
  margin-inline: auto;
}

/* Three long sentences need a smaller rack focus than "I'm 43." does.
   The clamp keeps one line per span from 360px up. */
.engine .hero .title--long {
  font-size: clamp(2.15rem, 7.2vw, 4.45rem);
}

.engine .hero--engine .pitch { max-width: 46rem; }
.engine .hero--engine .pricerow { margin-top: 0.25rem; }
.engine .hero--engine .lbl-left { font-size: 0.92rem; }

.engine .stage--wide {
  width: 100%;
  align-items: flex-start;
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
}
.engine .stage--wide .phone {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  padding: 10px;
}
.engine .stage--wide .phone .screen { border-radius: 14px; }
.engine .stage--wide .slatecard { padding: clamp(1.4rem, 3vw, 2.4rem); }
.engine .stage--wide .slatecard::after { inset: clamp(0.7rem, 1.6vw, 1.2rem); border-radius: 16px; }
.engine .stage--wide .slatecard-t { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.engine .stage--wide .cap { max-width: none; text-align: left; }

.engine .hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.engine .hero-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-muted);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.engine .hero-link:hover,
.engine .hero-link:focus-visible { color: var(--cream); border-bottom-color: var(--cream); }

/* ---- Scene 02: the ledger's one good line ---- */
.engine .eq-line--good b { color: var(--accent); }

/* ---- Scene 03: four deliverable lines read better as 2x2 than 3 + orphan ---- */
.engine .sheet--quad ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Scene 05: the package table ---- */

.engine .pack-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.engine .pack-intro { max-width: 48rem; }
.engine .pack-intro .h2 { margin-bottom: 1rem; }
.engine .pack-intro .lede { margin-bottom: 0; }
.engine .legend { color: var(--cream-soft); padding-bottom: 0.2rem; }

.engine .packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  align-items: stretch;
}

.engine .pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  background: var(--bg-elevated);
  color: var(--cream);
  border: 1px solid var(--cream-dim);
  border-radius: var(--radius);
}

.engine .pack--featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, var(--accent-glow), transparent 46%),
    var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent), 0 34px 70px -40px var(--accent-glow);
}

.engine .pack-badge {
  position: absolute;
  top: 0;
  right: clamp(1.35rem, 2.2vw, 1.9rem);
  transform: translateY(-50%);
  margin: 0;
  padding: 0.32rem 0.62rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.engine .pack-k { margin: 0; color: var(--cream-soft); font-size: 0.68rem; letter-spacing: 0.16em; }
.engine .pack-name { margin: 0; font-size: clamp(1.55rem, 2.1vw, 1.95rem); line-height: 0.96; }

.engine .pack-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 4.2vw, 3.8rem);
  line-height: 0.85;
  color: var(--cream);
}
.engine .pack-price b { font-weight: 400; }
.engine .pack-price span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.engine .pack-list {
  list-style: none;
  margin: 0 0 auto;
  padding: 0.2rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.engine .pack-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cream-muted);
}
.engine .pack-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.85;
}

.engine .pack .btn { margin-top: 1rem; font-size: clamp(1.05rem, 1.3vw, 1.25rem); padding: 0.8rem 1.2rem 0.68rem; }

/* The two side packages get a hairline button so the middle one stays the buy. */
.engine .btn--line {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream-dim);
  box-shadow: none;
}
.engine .btn--line:hover,
.engine .btn--line:focus-visible {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  transform: none;
}

/* ---- Narrow: the featured package leads, the table stacks ---- */
@media (max-width: 980px) {
  .engine .packs { grid-template-columns: minmax(0, 1fr); }
  .engine .pack--featured { order: -1; }
  .engine .pack-badge {
    position: static;
    transform: none;
    align-self: flex-start;
  }
  .engine .pack { gap: 0.65rem; }
  .engine .pack-price { font-size: clamp(2.6rem, 9vw, 3.4rem); }
}

@media (max-width: 760px) {
  .engine .sheet--quad ol { grid-template-columns: minmax(0, 1fr); }
}

/* Four numbers, two per row: "25–30" is twice as wide as the base page's "18". */
@media (max-width: 620px) {
  .engine .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine .strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .engine .strip > div:nth-child(n + 3) { border-top: 1px solid var(--cream-dim); }
  .engine .stage--wide .slatecard-t { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
  .engine .hero-cta { gap: 0.9rem 1.2rem; }
}
