/* ==========================================================================
   live.yuv.ai — production page styles
   Direction: LIGHT (Apple-clean canvas, Rubik 900 editorial headlines,
   phoenix-gradient highlighter + hairlines) with one studio-ink sheet that
   carries the crystal phoenix. Builds ONLY on the tokens in /styles.
   Radii used: 6 · 10 · 14 · 20 · 28 · 38 · 58 · 999 (token scale).
   ========================================================================== */

/* Metric-matched fallbacks: until the web fonts arrive, local Arial is scaled to Assistant's / Rubik's
   Hebrew widths and vertical metrics (measured), so lines wrap the same and the swap doesn't shift layout. */
@font-face {
  font-family: "Assistant Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 92.5%; ascent-override: 110%; descent-override: 31.4%; line-gap-override: 0%;
}
@font-face {
  font-family: "Rubik Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 900;
  size-adjust: 106.3%; ascent-override: 88.4%; descent-override: 23.5%; line-gap-override: 0%;
}

:root {
  --gutter: var(--margin-phone);                 /* 16px phones */
  --wrap: var(--content-max);                    /* 1200px */
  --nav-h: 64px;

  --he-display: "Rubik", "Rubik Fallback", "Assistant", system-ui, sans-serif;
  --he-body: "Assistant", "Assistant Fallback", "Rubik", system-ui, sans-serif;
  --lat-head: "Fredoka", "Rubik", system-ui, sans-serif;

  --ink: #08080D;                                /* studio-ink (dark theme base) */
  --ink-2: #0E0E16;
  --fg-1: var(--text-primary);
  --fg-2: rgba(60, 60, 67, 0.80);                /* AA (≥5.6:1) on #FFF and #F5F5F7 */
  --fg-dark-2: rgba(235, 235, 245, 0.72);        /* AA on studio-ink */

  /* Phoenix spectrum laid out for RTL reading: cyan where the eye starts (right). */
  --phoenix-rtl: linear-gradient(to left, var(--phoenix-cyan) 0%, var(--phoenix-blue) 22%, var(--phoenix-purple) 44%, var(--phoenix-magenta) 64%, var(--phoenix-coral) 82%, var(--phoenix-orange) 100%);
  --marker-rtl: linear-gradient(to left,
      rgba(22,214,232,.55) 0%, rgba(46,155,240,.50) 22%, rgba(166,75,224,.50) 44%,
      rgba(255,46,160,.55) 64%, rgba(255,90,106,.52) 82%, rgba(255,158,61,.58) 100%);
  --marker-soft: linear-gradient(to left, rgba(22,214,232,.42), rgba(166,75,224,.36) 50%, rgba(255,46,160,.42));
  /* Gradient TYPE on the light canvas: the same spectrum, darkened at the ends so every stop is
     ≥ 3:1 on #FFF (large text). cyan-600 3.5 · purple 4.5 · magenta-600 4.4 · ends short of coral (3.0).
     The full --phoenix-rtl stays for hairlines and for type on the ink sheet (≥ 4.5:1 there). */
  --phoenix-rtl-ink: linear-gradient(to left, var(--cyan-600) 0%, var(--phoenix-purple) 40%, var(--magenta-600) 70%, var(--phoenix-coral) 115%);
  --aurora-ink: linear-gradient(135deg, var(--cyan-600) 0%, var(--phoenix-purple) 55%, var(--magenta-600) 100%);
  /* Focus: a white gap + a solid ring — ≥ 3:1 against the canvas AND against the control itself */
  --ring: 0 0 0 2px #fff, 0 0 0 4px var(--magenta-600);
  --ring-strong: 0 0 0 3px #fff, 0 0 0 6px var(--ink);
  /* Primary button: every stop keeps white label text ≥ 3:1 (large-text AA) */
  --btn-grad: linear-gradient(115deg, var(--phoenix-purple) 0%, var(--magenta-500) 55%, var(--magenta-600) 100%);

  /* Neutral lift only — no coloured bloom under cards */
  --lift-1: 0 1px 2px rgba(10,10,15,.06), 0 8px 20px -14px rgba(10,10,15,.20);
  --lift-2: 0 1px 2px rgba(10,10,15,.06), 0 30px 60px -34px rgba(10,10,15,.42);
}
@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 900px)  { :root { --nav-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--he-body);
  font-size: var(--text-body);
  color: var(--fg-1);
  background: var(--bg-base);
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, p, figcaption, .stat__desc, .tv__who > span { text-wrap: pretty; }
[hidden] { display: none !important; }
section[id], article[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.lat { font-family: var(--lat-head); font-weight: 600; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: one visible ring everywhere (magenta-600 is 4.4:1 on white; the white gap separates it from the control) */
:where(a, button, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

.skip {
  position: absolute; z-index: 100; top: 8px; right: 8px;
  padding: 12px 18px; border-radius: var(--radius-full);
  background: var(--ink); color: #fff; font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.skip:focus-visible { transform: none; border-radius: var(--radius-full); }

/* ---------- atoms ---------- */
.dot {
  display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: var(--radius-full);
  background: var(--phoenix-magenta);
}
.dot--live { animation: pulse 2.4s var(--ease-standard) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--glow-magenta), .55); }
  70%  { box-shadow: 0 0 0 8px rgba(var(--glow-magenta), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--glow-magenta), 0); }
}

/* Phoenix highlighter — a marker band under the lower half of the glyphs */
.marker {
  background-image: var(--marker-rtl);
  background-repeat: no-repeat;
  background-size: 100% 0.36em;
  background-position: 100% 76%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.marker--soft { background-image: var(--marker-soft); background-size: 100% 0.34em; }

.grad-rtl {
  background: var(--phoenix-rtl-ink);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.sheet--ink .grad-rtl { background-image: var(--phoenix-rtl); }   /* full spectrum on ink: passes there */

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--he-display); font-weight: 700; font-size: var(--text-footnote);
  line-height: 1.2;
}
.chip--glass {
  color: var(--fg-1);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--glass-shadow);
}
.chip--ink {
  color: #fff;
  background: rgba(8,8,13,.55);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--glass-shadow-dark);
}

.scribble {
  display: inline-flex; align-items: flex-end; gap: 4px;
  font-family: var(--font-script); font-weight: 700;
  font-size: 30px; line-height: 1;
  color: var(--magenta-600);
}
.scribble--dark { color: var(--magenta-300); font-size: 24px; }

/* ---------- type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 var(--space-4);
  font-family: var(--he-display); font-weight: 700; font-size: var(--text-subhead);
  color: var(--fg-2);
}
.kicker__num {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1;
  padding: 6px 10px; border-radius: var(--radius-full);
  color: var(--fg-1);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1px solid transparent;
}
.kicker--dark { color: var(--fg-dark-2); }
.kicker--dark .kicker__num { color: #fff; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-phoenix) border-box; }

.display {
  margin: 0;
  font-family: var(--he-display); font-weight: 900;
  font-size: clamp(46px, 15vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--fg-1);
}
.display__line { display: block; white-space: nowrap; }

.h2 {
  margin: 0;
  font-family: var(--he-display); font-weight: 900;
  font-size: clamp(38px, 10.2vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.h2__line { display: block; }
.h2--dark { color: #fff; }

.lede {
  margin: var(--space-5) 0 0;
  max-width: 38ch;
  font-size: clamp(18px, 4.7vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
}
.lede strong { color: var(--fg-1); }
.lede--tight { margin: 0; max-width: 32ch; }

.sec-head { display: grid; gap: var(--space-6); margin-bottom: var(--space-10); }
@media (min-width: 1000px) {
  .sec-head--split { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-10); margin-bottom: var(--space-11); }
}

/* ==========================================================================
   NAV — plain bar on phones (keeps the first fold for content),
   sticky liquid glass from 900px. CTA turns solid once the hero CTA is gone.
   ========================================================================== */
.nav {
  position: relative; z-index: 30;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner { display: flex; align-items: center; gap: var(--space-6); height: var(--nav-h); }
.nav__logo { flex: none; display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-sm); }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: none; gap: var(--space-2); margin-inline-start: auto; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  border-radius: var(--radius-full);
  color: var(--fg-2); font-weight: 600; font-size: var(--text-subhead);
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.nav__links a:hover { color: var(--fg-1); background: var(--fill-tertiary); }
.nav__cta {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding-inline: 16px;
  border-radius: var(--radius-full);
  font-family: var(--he-display); font-weight: 700; font-size: 14px;
  color: var(--fg-1);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--lift-1);
  transition: background var(--dur-normal) var(--ease-standard), color var(--dur-normal) var(--ease-standard), box-shadow var(--dur-normal) var(--ease-standard);
  white-space: nowrap;
}
.nav__cta svg { flex: none; color: var(--magenta-600); }
.nav__cta:hover { box-shadow: var(--lift-1), var(--glow-sm); }
.nav__cta:focus-visible { border-radius: var(--radius-full); box-shadow: var(--ring); }
.nav__links + .nav__cta { margin-inline-start: var(--space-2); }
/* phones: the same CTA words as everywhere else, the icon gives way first */
@media (max-width: 459px) {
  .nav__inner { gap: var(--space-4); }
  .nav__logo img { height: 34px; }
  .nav__cta { padding-inline: 14px; letter-spacing: -0.01em; }
  .nav__cta-icon { display: none; }
}
@media (max-width: 359px) {
  .nav__inner { gap: var(--space-3); }
  .nav__logo img { height: 28px; }
  .nav__cta { padding-inline: 12px; font-size: 12.5px; }
}
@media (max-width: 339px) {
  .nav__logo img { height: 26px; }
  .nav__cta { padding-inline: 10px; font-size: 12px; letter-spacing: -0.02em; }
}

@media (min-width: 900px) {
  .nav { position: sticky; top: 0; }
  .nav__logo img { height: 44px; }
  .nav__links { display: flex; }
  .nav__cta { font-size: var(--text-subhead); padding-inline: 18px; }
  /* the "sticky pill": solid once the hero CTA has scrolled away */
  .past-hero .nav__cta {
    color: #fff;
    background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-phoenix) border-box;
    box-shadow: 0 8px 24px -10px rgba(var(--glow-magenta), .55);
  }
  .past-hero .nav__cta svg { color: var(--magenta-300); }
}

/* CTA state switching (config.js → html[data-reg], set before first paint) */
[data-reg="soon"] .when-open { display: none !important; }
[data-reg="open"] .when-soon { display: none !important; }

/* ==========================================================================
   1 · HERO
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding: var(--space-6) 0 var(--space-10); overflow-x: clip; background: var(--bg-base); }
.hero::before {               /* soft aurora haze on the canvas — px-anchored: a font swap must not move it (CLS) */
  content: ""; position: absolute; z-index: -2; inset: -64px -20% auto; height: calc(100% + 128px);
  background:
    radial-gradient(40% 36% at 16% 30%, rgba(255,46,160,.10), transparent 70%),
    radial-gradient(36% 30% at 84% 6%, rgba(22,214,232,.10), transparent 70%);
  pointer-events: none;
}

/* phones: the N12 TV tile (face + credential) + CTA inside the first ~660px (iPhone Safari with
   its toolbars); the lede follows the CTA cluster as the hero's closing line */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "eyebrow" "hook" "title" "media" "cta" "lede";
  row-gap: 0;
}
.eyebrow       { grid-area: eyebrow; margin: 0 0 var(--space-3); }
.hook          { grid-area: hook; }
.display       { grid-area: title; }
.hero__media   { grid-area: media; }
.hero__lede    { grid-area: lede; }
.hero__cta     { grid-area: cta; }

.hook {
  margin: 0 0 var(--space-3);
  font-family: var(--he-display); font-weight: 800;
  font-size: clamp(19px, 5.2vw, 28px); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg-1);
}
.hook__grad { background: var(--phoenix-rtl-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__media { position: relative; margin-top: var(--space-6); }
.hero__aurora {               /* an opaque wash on white, multiplied: white is a no-op, so it reads as a cut-out (22 KB, not 183 KB) */
  position: absolute; z-index: -1; pointer-events: none;
  mix-blend-mode: multiply;
  left: 50%; top: 50%; width: 176%; max-width: none;
  transform: translate(-50%, -64%);
}
.hero__aurora img { width: 100%; height: auto; max-width: none; }

.frame {
  position: relative; margin: 0;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--lift-2);
}
/* ---- the N12 TV tile ---- */
.tv__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--ink-2) url("assets/brand/n12-poster-1280.webp") center / cover no-repeat;
}
.tv__video { width: 100%; height: 100%; object-fit: cover; }
.tv__badge {                     /* top-left: keeps the channel bug (top-right) in view */
  position: absolute; top: 12px; left: 12px;
  min-height: 32px; padding: 5px 12px 5px 11px; gap: 7px;
  font-size: var(--text-footnote);
}
.tv__badge svg { flex: none; color: var(--cyan-200); }
.tv__note {                      /* "המחשה מהשידור", only while the loop shows the on-air slide */
  position: absolute; right: 12px; bottom: 12px;
  min-height: 30px; padding: 4px 12px; font-size: 12.5px;
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur-normal) var(--ease-standard), transform var(--dur-normal) var(--ease-standard);
}
.tv.is-slide .tv__note { opacity: 1; transform: none; }
.tv__plate { display: flex; align-items: center; gap: 12px; padding: 12px 6px 4px; }
.tv__avatar {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius-full);
  padding: 2px;
  background: var(--gradient-phoenix);
  object-fit: cover;
}
.tv__who { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.tv__who strong { font-family: var(--he-display); font-weight: 800; font-size: var(--text-callout); color: var(--fg-1); }
.tv__who > span { font-size: var(--text-footnote); font-weight: 600; color: var(--fg-2); }
.tv__toggle {
  flex: none; margin-inline-start: auto;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  color: var(--fg-1); cursor: pointer;
  background: #fff; border: 1px solid var(--border-strong);
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.tv__toggle:hover { border-color: var(--magenta-400); }
.tv__toggle:focus-visible { border-radius: var(--radius-full); }
.tv__toggle .tv__i-play { margin-left: 2px; }
.tv__toggle[aria-pressed="false"] .tv__i-play,
.tv__toggle[aria-pressed="true"] .tv__i-pause { display: none; }

.hero__lede { margin-top: var(--space-7); }
@media (max-width: 559px) {
  .hero { padding-top: var(--space-4); }
  .hero__media { margin-top: var(--space-5); }
  .hero__cta { margin-top: var(--space-5); }
  .tv__badge { top: 8px; left: 8px; min-height: 28px; padding: 4px 10px 4px 9px; font-size: 12px; gap: 6px; }
  .tv__badge svg { width: 14px; height: 14px; }
  .tv__note { right: 8px; bottom: 8px; min-height: 26px; padding: 3px 10px; font-size: 12px; }
  .tv__plate { gap: 10px; padding: 10px 4px 2px; }
  .tv__avatar { width: 40px; height: 40px; }
  .tv__who strong { font-size: var(--text-subhead); }
  .tv__who > span { font-size: 12.5px; }
}
@media (max-width: 999px) {
  .hero__lede { max-width: 34ch; padding-top: var(--space-6); border-top: 1px solid var(--separator); }
}

/* Primary CTA */
.cta { margin-top: var(--space-6); }
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; max-width: 520px;
  min-height: 66px;
  padding: 9px; padding-inline-start: 22px;
  border-radius: var(--radius-full);
  color: #fff;
  background: var(--btn-grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glow-md);
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-normal) var(--ease-standard);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 40px rgba(var(--glow-magenta), .48), 0 2px 8px rgba(var(--glow-magenta), .3); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { border-radius: var(--radius-full); box-shadow: var(--ring-strong), var(--glow-md); }
.btn__label {
  font-family: var(--he-display); font-weight: 800;
  font-size: clamp(19px, 5vw, 22px); line-height: 1.2; letter-spacing: -0.015em;
}
.btn__icon {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
@media (max-width: 420px) {
  .btn { gap: 10px; padding-inline-start: 18px; }
  .btn__label { font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
  .btn__icon { width: 44px; height: 44px; }
  .cta__status, .cta__date { font-size: 14px; }
}
@media (max-width: 379px) {        /* the label stays 19px bold = large text, so white on the gradient keeps ≥ 3:1 */
  .btn { padding-inline-start: 14px; gap: 6px; }
  .btn__label { letter-spacing: -0.03em; }
  .btn__icon { width: 40px; height: 40px; }
  .cta__status, .cta__date { font-size: 13px; }
}
@media (max-width: 359px) {        /* too narrow for one 19px line: two balanced lines, never a smaller label */
  .btn__label { white-space: normal; text-wrap: balance; line-height: 1.12; }
}
.cta__status, .cta__date, .cta__foot {
  display: flex; align-items: center; gap: 8px;
  margin: var(--space-3) 0 0;
  font-size: var(--text-subhead); font-weight: 600; line-height: 1.4;
  color: var(--fg-2);
}
.cta__status { margin-top: var(--space-4); }
.cta__status .dot { margin-inline: 4px 2px; }
.cta__date svg { flex: none; color: var(--magenta-600); }
.cta__foot {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--separator);
  font-size: var(--text-footnote); font-weight: 500;
}
[data-reg="open"] .cta__date { margin-top: var(--space-4); }

@media (min-width: 560px) {
  .frame { padding: 10px; border-radius: var(--radius-2xl); }
  .tv__screen { border-radius: var(--radius-xl); }
  .tv__badge { top: 16px; left: 16px; }
  .tv__note { right: 16px; bottom: 16px; }
  .tv__plate { padding: 14px 10px 6px; }
}
@media (min-width: 1000px) {
  .hero {                       /* top-anchored (not centred): the font swap can't move the fold (CLS) */
    display: grid; align-items: start;
    min-height: min(calc(100vh - var(--nav-h)), 940px);
    min-height: min(calc(100svh - var(--nav-h)), 940px);
    padding: var(--space-10) 0 var(--space-10);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    grid-template-areas:
      ".       media"
      "eyebrow media"
      "hook    media"
      "title   media"
      "lede    media"
      "cta     media"
      ".       media";
    column-gap: var(--space-10);
  }
  .hero__media { margin: var(--space-8) 0 var(--space-6); align-self: center; }
  .hero__aurora { width: 200%; transform: translate(-50%, -60%); }
  .eyebrow { margin-bottom: var(--space-5); }
  .hook { margin-bottom: var(--space-4); }
  /* two columns: the headline scales with its column (fits 436px at 1000 → 582px at 1300+) */
  .display { font-size: clamp(88px, 9.2vw, 132px); }
}
@media (min-width: 1300px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .marker { animation: marker-in 900ms var(--ease-emphasized) 300ms both; }
  .hero__aurora { animation: aurora-in 1600ms var(--ease-emphasized) 150ms both; }
  .hero__aurora img { animation: aurora-breathe 9s ease-in-out 1.8s infinite alternate; }
}
@keyframes marker-in { from { background-size: 0% 0.36em; } to { background-size: 100% 0.36em; } }
@keyframes aurora-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes aurora-breathe { from { transform: translateY(0) scale(1); } to { transform: translateY(-10px) scale(1.025); } }

/* ==========================================================================
   2 · THE REEL — its own big 9:16 tile
   ========================================================================== */
.reel { position: relative; isolation: isolate; overflow-x: clip; padding: var(--space-6) 0 var(--space-12); }
.reel__grid { display: grid; gap: var(--space-8); }
.reel__copy .lede { max-width: 34ch; }

.readout {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 440px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--lift-1);
  overflow: hidden;
}
.readout li { display: grid; gap: 4px; padding: 14px 16px; }
.readout li + li { border-inline-start: 1px solid var(--border-subtle); }
.readout b { font-family: var(--font-mono); font-weight: 700; font-size: 24px; line-height: 1; color: var(--fg-1); justify-self: start; }
.readout span { font-size: var(--text-footnote); font-weight: 600; color: var(--fg-2); }

.reel__media { position: relative; display: grid; justify-items: center; }
.player {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 8px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-phoenix) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--lift-2), 0 40px 90px -50px rgba(var(--glow-magenta), .55);
}
.player__video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-xl);
  background: var(--ink);
}
.player__play {                 /* the whole tile is the target; the pill sits on the T-shirt */
  position: absolute; z-index: 1; inset: 8px;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 12px 22px;
  border: 0; border-radius: var(--radius-xl);
  color: #fff; cursor: pointer;
  background: linear-gradient(180deg, rgba(8,8,13,0) 62%, rgba(8,8,13,.42) 100%);
}
.player__pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 7px; padding-inline-end: 22px;
  border-radius: var(--radius-full);
  background: rgba(8,8,13,.52);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--glass-shadow-dark);
  white-space: nowrap;
  transition: transform var(--dur-normal) var(--ease-spring);
}
.player__icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: var(--btn-grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--glow-md);
}
.player__icon svg { margin-left: 3px; }
.player__txt { font-family: var(--he-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.player__dur { font-size: var(--text-footnote); font-weight: 600; color: rgba(255,255,255,.8); }
.player__dur span { font-family: var(--font-mono); font-weight: 500; }
.player__play:hover .player__pill { transform: scale(1.04); }
.player__play:focus-visible { box-shadow: none; }
.player__play:focus-visible .player__pill { box-shadow: var(--ring), var(--glass-shadow-dark); }
.player.is-playing .player__play { display: none; }

.reel__scribble { display: none; }
@media (min-width: 1000px) {
  .reel { padding: var(--space-6) 0 var(--space-13); }
  .reel__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: var(--space-10); }
  .reel .h2 { font-size: clamp(52px, 4.6vw, 66px); }
  .reel .h2__line { white-space: nowrap; }
  .reel__media { justify-items: start; }
  .player { max-width: 380px; }
  .reel__scribble {
    display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; width: fit-content;
    margin: var(--space-7) auto 0 0; font-size: 30px; white-space: nowrap;
    transform: rotate(-3deg);
  }
}
.reel::before {               /* aurora glow behind the tile */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; left: 50%; top: 52%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(166,75,224,.14), rgba(22,214,232,.08) 55%, transparent 75%);
}
@media (min-width: 1000px) { .reel::before { left: 26%; } }

/* ==========================================================================
   Sheets — Apple large-sheet radius, inset on desktop
   ========================================================================== */
.sheet { position: relative; }
.sheet--grey { background: var(--bg-subtle); }
.sheet--ink { background: var(--ink); color: #F7F7FB; }
@media (min-width: 1000px) {
  .sheet { margin-inline: var(--space-4); border-radius: var(--radius-3xl); }
  .sheet + .sheet { margin-top: var(--space-3); }
}

/* ==========================================================================
   3 · USE CASES
   ========================================================================== */
.uc { padding: var(--space-11) 0 var(--space-12); }
@media (min-width: 1000px) { .uc { padding: var(--space-13) 0; } }

.uc__head { margin-bottom: var(--space-9); }
.uc__proof { display: grid; gap: var(--space-2); justify-items: start; }
.privacy {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  max-width: 34ch;
  font-family: var(--he-display); font-weight: 700; font-size: clamp(17px, 4.4vw, 19px); line-height: 1.4;
  color: var(--fg-1);
}
.privacy svg { flex: none; margin-top: 1px; color: var(--magenta-600); }
.uc__proof .scribble { margin-inline-start: 30px; transform: rotate(-3deg); }
@media (min-width: 1000px) {
  .uc__head { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-10); margin-bottom: var(--space-11); }
  .uc__proof { justify-items: end; }
  .uc__proof .scribble { margin-inline-start: 0; }
}

.uc-tag {
  display: inline-block; margin: 0 0 var(--space-3);
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1;
  padding: 7px 11px; border-radius: var(--radius-full);
  color: var(--fg-1);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1px solid transparent;
}

/* ---------- Featured: N12 ---------- */
.feature {
  padding: var(--space-6) var(--space-4) var(--space-8);
  margin-inline: calc(var(--gutter) * -0.5);
  border-radius: var(--radius-2xl);
  background: #fff;
  box-shadow: var(--lift-1);
}
.feature__head { display: grid; gap: var(--space-6); margin-bottom: var(--space-9); }
.feature__title {
  margin: 0;
  font-family: var(--he-display); font-weight: 900;
  font-size: clamp(34px, 9vw, 60px); line-height: 1.04; letter-spacing: -0.02em;
}
.feature__lede { margin: var(--space-4) 0 0; max-width: 40ch; font-size: clamp(17px, 4.5vw, 20px); line-height: 1.5; color: var(--fg-2); }

/* INK's forensic timecode readout — one mono panel */
.timecode {
  position: relative; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 40px -28px rgba(10,10,15,.6);
}
.timecode::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: var(--phoenix-rtl);
}
.timecode { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.timecode div { padding: 14px 14px 15px; display: grid; gap: 6px; }
.timecode div:nth-child(odd) { border-inline-end: 1px solid rgba(255,255,255,.10); }
.timecode div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.10); }
.timecode dt { font-size: var(--text-footnote); font-weight: 600; color: rgba(235,235,245,.66); }
.timecode dd {
  margin: 0; justify-self: start;
  font-family: var(--font-mono); font-weight: 500; font-size: clamp(13.5px, 3.7vw, 19px); line-height: 1.2;
  color: #fff; white-space: nowrap;
}

@media (min-width: 1000px) {
  .feature { margin-inline: 0; padding: var(--space-10) var(--space-10) var(--space-11); border-radius: var(--radius-3xl); }
  .feature__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-10); margin-bottom: var(--space-11); }
  .timecode div { padding: 18px 22px 20px; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-10); position: relative; }
.step { display: grid; gap: var(--space-5); position: relative; }
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--fg-1);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1.5px solid transparent;
}
.step__title {
  margin: 0;
  font-family: var(--he-display); font-weight: 800;
  font-size: clamp(22px, 5.8vw, 28px); line-height: var(--leading-snug); letter-spacing: -0.01em;
}
.step__text p { margin: var(--space-3) 0 0; max-width: 38ch; font-size: var(--text-body); line-height: 1.55; color: var(--fg-2); }

@media (min-width: 1000px) {
  .steps { gap: var(--space-11); }
  .steps::before {               /* the aurora thread connecting the steps */
    content: ""; position: absolute; top: 22px; bottom: 60px; right: 21px; width: 2px;
    background: var(--gradient-aurora); opacity: .4; border-radius: var(--radius-full);
  }
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-10); align-items: start; }
  .step__text { position: sticky; top: calc(var(--nav-h) + 32px); }
  .step__num { position: relative; z-index: 1; background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box; }
  .step__text .step__title, .step__text p { margin-inline-start: 68px; }
  .step__text .step__title { margin-top: -58px; }
}

/* ---------- Screenshot card: phoenix hairline + crisp glass caption bar ---------- */
.shot {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}
.shot__bar {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: var(--text-footnote); font-weight: 600; line-height: 1.3;
  color: var(--fg-2);
  background: rgba(245,245,247,.72);
  border-bottom: 1px solid var(--border-subtle);
}
.shot__dot { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--gradient-aurora); flex: none; }
.shot__open {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 12px 10px;
  cursor: zoom-in;
  color: inherit;
}
.shot__img { position: relative; display: block; overflow: hidden; border-radius: var(--radius-xs); }
.shot__img img { width: 100%; height: auto; }
.shot__open:focus-visible { box-shadow: none; }
.shot:has(.shot__open:focus-visible) { box-shadow: var(--ring); }
.shot__zoom {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px;
  border-radius: var(--radius-full);
  font-family: var(--he-display); font-size: 13px; font-weight: 700;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--border-strong);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.shot__zoom svg { color: var(--magenta-600); }
.shot__open:hover .shot__zoom { border-color: var(--magenta-400); }

/* tall shots are cropped to the top with a fade — the lightbox shows all of it */
.shot--crop .shot__img { max-height: 360px; }
.shot--crop .shot__img::after {
  content: ""; position: absolute; inset: auto 0 0; height: 84px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 88%);
}

/* ---------- The other five: tabs ---------- */
.more { margin-top: var(--space-11); }
.more__head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.more__title {
  margin: 0;
  font-family: var(--he-display); font-weight: 900;
  font-size: clamp(30px, 8vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
}
.more__hint { margin: 0; color: var(--fg-2); font-size: var(--text-callout); }

.tabs {
  display: flex; gap: var(--space-2);
  margin: 0 calc(var(--gutter) * -1) var(--space-7);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent 100%);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs, .panel__cards { scroll-padding-inline: var(--gutter); }   /* snap to the gutter, not flush to the screen edge */
.tab {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 16px;
  border-radius: var(--radius-full);
  font-family: var(--he-display); font-weight: 700; font-size: var(--text-callout);
  color: var(--fg-1); cursor: pointer;
  background: #fff;
  border: 1px solid var(--border-strong);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.tab:hover { border-color: var(--fg-2); }
.tab__num { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--fg-2); }
.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-phoenix) border-box;
  border-color: transparent;
}
.tab[aria-selected="true"] .tab__num { color: var(--cyan-200); }
.tab:focus-visible { border-radius: var(--radius-full); }

.panel { display: grid; gap: var(--space-6); }
.panel + .panel { margin-top: var(--space-11); }          /* no-JS: all five, stacked */
.is-tabbed .panel + .panel { margin-top: 0; }
.panel:focus-visible { box-shadow: 0 0 0 6px var(--bg-subtle), 0 0 0 9px var(--magenta-600); border-radius: var(--radius-lg); }
.panel__title {
  margin: 0;
  font-family: var(--he-display); font-weight: 800;
  font-size: clamp(26px, 7vw, 36px); line-height: 1.1; letter-spacing: -0.015em;
}
.panel__text p:not(.uc-tag):not(.disclaimer) { margin: var(--space-3) 0 0; max-width: 40ch; font-size: var(--text-body); line-height: 1.55; color: var(--fg-2); }
.disclaimer {
  display: inline-flex; margin: var(--space-4) 0 0;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: var(--text-footnote); font-weight: 700; color: var(--fg-1);
  background: var(--fill-tertiary);
}

/* phones: a horizontal snap rail of receipts */
.panel__cards {
  display: flex; gap: var(--space-3); align-items: flex-start;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.panel__cards .shot { flex: 0 0 min(84%, 420px); scroll-snap-align: start; }
.panel__cards .shot--crop .shot__img { max-height: 320px; }

@media (min-width: 1000px) {
  .tabs { margin-inline: 0; padding-inline: 0; overflow: visible; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .panel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-10); align-items: start; }
  .panel__text { position: sticky; top: calc(var(--nav-h) + 32px); }
  .panel__cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4);
    margin: 0; padding: 0; overflow: visible;
  }
  .panel__cards .shot { flex: none; }
  .panel__cards .shot--wide { grid-column: 1 / -1; }
  .panel__cards .shot--crop .shot__img { max-height: 380px; }
}

/* ==========================================================================
   4 · BEHIND THE SCENES — the one studio-ink sheet, crystal phoenix pinned
   ========================================================================== */
.bts {
  overflow: clip;                 /* clips to the sheet radius without breaking sticky */
  isolation: isolate;
}
.bts__pin {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  pointer-events: none;
}
.bts__stage { position: absolute; inset: 0; }
.bts__media {
  position: absolute; left: 50%; top: 5svh; transform: translateX(-50%);
  width: 160%; max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
}
.bts__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-slow) var(--ease-standard); }
.bts.is-live .bts__canvas { opacity: 1; }
.bts.is-live .bts__still { opacity: 0; }
.bts__still { transition: opacity var(--dur-slow) var(--ease-standard); }
.bts__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,13,0) 0%, rgba(8,8,13,.05) 24%, rgba(8,8,13,.78) 44%, var(--ink) 56%);
  /* phones: the bird is drawn from 5svh down to 5svh + 90vw. Both of its edges melt into ink (no straight seam
     at the top or under the ledger), and the shade is solid just before the bird ends, at any screen height. */
  background: linear-gradient(180deg, var(--ink) 0, var(--ink) 5svh, rgba(8,8,13,0) calc(5svh + 10vw), rgba(8,8,13,.05) calc(5svh + 24vw), rgba(8,8,13,.78) calc(5svh + 62vw), var(--ink) calc(5svh + 86vw));
}

.bts__body { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.bts__head { padding-top: 40svh; }
.bts__claude {
  margin: var(--space-4) 0 0;
  font-family: var(--he-display); font-weight: 800;
  font-size: clamp(25px, 6.8vw, 40px); line-height: 1.14; letter-spacing: -0.015em;
  color: #fff;
}
.bts__claude .lat { font-weight: 700; }
.bts__note {
  display: inline-flex; margin: var(--space-5) 0 0;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-weight: 700; font-size: var(--text-callout); color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.bts__total { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-8); }
.bts__total-num {
  font-family: var(--lat-head); font-weight: 600;
  font-size: clamp(96px, 26vw, 168px); line-height: .82; letter-spacing: -0.04em;
  background: var(--gradient-phoenix); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(var(--glow-magenta), .42));
}
.bts__total-label { font-family: var(--he-display); font-weight: 700; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.25; color: #fff; }

/* stats: one glass ledger on phones, liquid-glass tiles from 640px */
.stats {
  position: relative;
  list-style: none; margin: var(--space-10) 0 0; padding: 4px 0;
  display: grid;
  border-radius: var(--radius-xl);
  background: rgba(20,20,30,.58);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--glass-shadow-dark);
}
.stats::before {
  content: ""; position: absolute; top: -1px; right: 28px; left: 28px; height: 1px;
  background: var(--phoenix-rtl);
}
.stat {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px; align-items: baseline;
  padding: var(--space-5);
}
.stat + .stat { border-top: 1px solid rgba(255,255,255,.09); }
.stat__num { grid-column: 2; grid-row: 1; }
.stat__label { grid-column: 1; grid-row: 1; }
.stat__desc { grid-column: 1 / -1; }
.stat--wide .stat__num { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.stat--wide .stat__label { grid-column: 1 / -1; grid-row: 2; }
.stat__num {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--lat-head); font-weight: 600;
  font-size: 30px; line-height: 1; letter-spacing: -0.02em;
  color: #fff; white-space: nowrap;
}
.stat__num small { font-family: var(--he-display); font-weight: 700; font-size: .56em; letter-spacing: 0; color: rgba(255,255,255,.82); }
.stat__arrow { color: var(--magenta-300); font-family: var(--he-body); font-weight: 600; font-size: .8em; }
.stat__num--he { gap: 8px; }
.stat__label { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--he-display); font-weight: 700; font-size: 17px; line-height: 1.25; color: #fff; }
.stat__desc { font-size: 15px; line-height: 1.5; color: var(--fg-dark-2); text-wrap: pretty; }
@media (max-width: 419px) {
  .stat--bug .stat__num { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .stat--bug .stat__label { grid-column: 1 / -1; grid-row: 2; }
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3);
    padding: 0; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .stats::before { display: none; }
  .stat {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: var(--space-6) var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    background: rgba(20,20,30,.5);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--glass-shadow-dark);
  }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.12); }
  .stat::before { content: ""; position: absolute; top: -1px; right: 24px; left: 24px; height: 1px; background: var(--phoenix-rtl); }
  .stat__num { font-size: 44px; justify-content: flex-start; }
  .stat__label { margin-top: 10px; font-size: 18px; }
  .stat--wide { grid-column: span 2; }
  .stat--bug { container-type: inline-size; }
  .stat--bug .stat__num { font-size: 28px; font-size: min(44px, 15.5cqi); }
}

/* the process film — 16:9 slot */
.film { margin-top: var(--space-12); padding-bottom: var(--space-11); }
.film__head { display: grid; justify-items: start; gap: var(--space-2); margin-bottom: var(--space-6); }
.film__head .kicker { margin: 0; }
.film__title {
  margin: 0;
  font-family: var(--lat-head); font-weight: 600;
  font-size: clamp(40px, 11vw, 84px); line-height: .95; letter-spacing: -0.02em;
  color: #fff;
}
.film__x { color: var(--magenta-300); font-weight: 500; }
.film__desc { margin: var(--space-2) 0 0; max-width: 42ch; font-size: clamp(17px, 4.4vw, 19px); line-height: 1.5; color: var(--fg-dark-2); }
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 7px;
  border-radius: var(--radius-xl);
  background: rgba(14,14,22,.28);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 70px -24px rgba(var(--glow-cyan), .4);
}
.film__frame::before {            /* phoenix ring, transparent inside */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: 1.5px; border-radius: inherit;
  background: var(--gradient-phoenix);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.film__frame video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); background: #000; }
.film__soon {
  position: absolute; inset: 7px;
  display: grid; place-content: center; justify-items: center; gap: var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(14,14,22,.42);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  text-align: center;
}
.film__ring {                     /* a phoenix ring slowly orbiting a dimmed play glyph: "not yet" */
  position: relative;
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: var(--radius-full);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 48px -8px rgba(var(--glow-cyan), .5);
}
.film__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from 0deg, rgba(22,214,232,0), var(--phoenix-cyan) 18%, var(--phoenix-purple) 40%, var(--phoenix-magenta) 60%, rgba(255,46,160,0) 82%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.film__ring svg { margin-left: 4px; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .film__ring::before { animation: orbit 6s linear infinite; }
}
@keyframes orbit { to { transform: rotate(1turn); } }
.film__chip { font-size: var(--text-subhead); min-height: 40px; padding-inline: 16px 18px; }
.film__spec { font-size: var(--text-footnote); font-weight: 600; color: var(--fg-dark-2); }
.film__spec span { font-family: var(--font-mono); font-weight: 500; }
/* viewfinder corners */
.film__corners { position: absolute; inset: clamp(14px, 3vw, 28px); pointer-events: none; }
.film__corners i {
  position: absolute; width: clamp(18px, 3.4vw, 34px); height: clamp(18px, 3.4vw, 34px);
  border: 0 solid rgba(255,255,255,.42);
}
.film__corners i:nth-child(1) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: var(--radius-sm); }
.film__corners i:nth-child(2) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: var(--radius-sm); }
.film__corners i:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: var(--radius-sm); }
.film__corners i:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: var(--radius-sm); }
@media (max-width: 559px) {
  .film__soon { gap: var(--space-3); }
  .film__ring { width: 72px; height: 72px; }
  .film__ring svg { width: 24px; height: 24px; }
  .film__chip { font-size: var(--text-footnote); min-height: 34px; }
  .film__spec { display: none; }
}

@media (min-width: 900px) {
  .bts__media { inset: 0; left: 0; top: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto; object-position: 28% 50%; }
  .bts__shade {
    background:
      linear-gradient(to left, rgba(8,8,13,.94) 0%, rgba(8,8,13,.72) 30%, rgba(8,8,13,0) 62%),
      linear-gradient(0deg, var(--ink) 0%, rgba(8,8,13,.6) 12%, rgba(8,8,13,0) 38%);
  }
  .bts__head { padding-top: 18vh; max-width: 600px; }
  .bts .h2 { font-size: clamp(56px, 6vw, 80px); }
  .bts__head { min-height: 80vh; }
}
@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-12); }
  .stat__num { font-size: 48px; }
  .stat--bug .stat__num { font-size: 28px; font-size: min(40px, 15.5cqi); }
  /* the film sits on the text side; the risen phoenix stays visible beside it (the scrub's last frame) */
  .film { margin-top: var(--space-13); padding-bottom: var(--space-13); max-width: 780px; }
  .film__head { margin-bottom: var(--space-7); }
}

/* ==========================================================================
   5 · AGENDA — Yuval's 9 items, verbatim
   ========================================================================== */
.agenda { padding: var(--space-12) 0 var(--space-11); }
@media (min-width: 1000px) { .agenda { padding: var(--space-13) 0 var(--space-12); } }

.toc { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--separator); }
.toc__item {
  position: relative;
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 76px; padding: var(--space-4) 0;
  border-bottom: 1px solid var(--separator);
}
.toc__num {
  flex: none;
  display: inline-grid; place-items: center;
  min-width: 46px; height: 32px; padding-inline: 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--fg-1);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-phoenix) border-box;
  border: 1.5px solid transparent;
}
.toc__title {
  font-family: var(--he-display); font-weight: 800;
  font-size: clamp(23px, 6.2vw, 30px); line-height: 1.15; letter-spacing: -0.015em;
}
.toc__scribble { font-size: 26px; margin-inline-start: auto; transform: rotate(-4deg); }
@media (min-width: 760px) {
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-9); border-top: 0; }
  .toc__item:nth-child(-n+2) { border-top: 1px solid var(--separator); }
}
@media (min-width: 1000px) {
  .toc { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-10); }
  .toc__item { min-height: 104px; padding: var(--space-6) 0; gap: var(--space-5); }
  .toc__item:nth-child(-n+3) { border-top: 1px solid var(--separator); }
  .toc__num { font-size: 14px; }
  .toc__scribble { position: absolute; left: 0; top: 18px; margin: 0; }
}

.bonus {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center;
  margin-top: var(--space-10);
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(115deg, rgba(22,214,232,.08), rgba(166,75,224,.06) 45%, rgba(255,46,160,.08) 70%, rgba(255,158,61,.09)) padding-box,
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-phoenix) border-box;
  border: 2px solid transparent;
}
.bonus__tag {
  justify-self: start;
  font-family: var(--he-display); font-weight: 800; font-size: 14px; line-height: 1;
  padding: 9px 16px; border-radius: var(--radius-full); color: var(--fg-1);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-ember) border-box;
  border: 1.5px solid transparent;
}
.bonus__title { margin: 0; font-family: var(--he-display); font-weight: 900; font-size: clamp(30px, 8vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.bonus__title .lat { font-weight: 700; background: var(--aurora-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bonus__x { font-family: var(--lat-head); font-weight: 500; color: var(--magenta-600); padding-inline: .08em; }
.bonus__body p { margin: var(--space-3) 0 0; font-size: 18px; line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.bonus__phoenix { position: absolute; left: -18px; bottom: -22px; width: 132px; height: 132px; opacity: .16; pointer-events: none; }
@media (min-width: 1000px) {
  .bonus { grid-template-columns: auto 1fr; gap: var(--space-8); padding: var(--space-9) var(--space-10); margin-top: var(--space-11); padding-inline-end: 220px; }
  .bonus__tag { align-self: start; margin-top: 10px; }
  .bonus__phoenix { left: 56px; bottom: 50%; transform: translateY(50%); width: 140px; height: 140px; opacity: 1; }
}

/* ==========================================================================
   6 · CLOSING — the host card
   ========================================================================== */
.host { padding: 0 0 var(--space-10); }
.host__card {
  display: grid; gap: var(--space-7);
  padding: var(--space-4) var(--gutter) var(--space-9);
  margin-inline: calc(var(--gutter) * -1);
  background: var(--bg-subtle);
}
.host__photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink-2);
}
.host__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.host__body { padding-inline: 0; }
@media (min-width: 560px) and (max-width: 999px) {
  .host__card { margin-inline: 0; padding: 10px 10px var(--space-9); border-radius: var(--radius-2xl); }
  .host__body { padding-inline: var(--space-6); }
}
.host__bio { margin: var(--space-5) 0 0; max-width: 44ch; font-size: clamp(17px, 4.5vw, 19px); line-height: 1.55; color: var(--fg-2); }
.host__bio strong { color: var(--fg-1); font-family: var(--he-display); }
@media (min-width: 1000px) {
  .host { padding-bottom: var(--space-11); }
  .host .h2 { font-size: clamp(52px, 4.8vw, 66px); white-space: nowrap; }
  .host__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: var(--space-10);
    margin-inline: 0; padding: 20px; padding-inline-start: var(--space-11);
    border-radius: var(--radius-3xl);
  }
  .host__body { order: -1; padding: var(--space-8) 0; }
  .host__photo { border-radius: var(--radius-2xl); }   /* 58 outer − 20 padding = 38 (token) */
  .host__photo img { aspect-ratio: 4 / 3; object-position: 50% 40%; }   /* the whole face + the full neon sign */
}

/* ---------- footer ---------- */
.foot { padding: var(--space-7) 0 calc(var(--space-9) + env(safe-area-inset-bottom)); border-top: 1px solid var(--separator); color: var(--fg-2); font-size: var(--text-subhead); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--fg-1); }
.foot__brand img { width: 32px; height: 32px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); margin-inline-start: auto; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; border-radius: var(--radius-full); color: var(--fg-2); font-weight: 600; }
.foot__links a:hover { color: var(--text-link); }
@media (max-width: 559px) { .foot__links { margin-inline-start: -10px; } }

/* ---------- mobile sticky CTA ---------- */
.dock {
  position: fixed; z-index: 40;
  right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 6px; padding-inline-start: 20px;
  border-radius: var(--radius-full);
  color: #fff;
  background: linear-gradient(rgba(10,10,15,.9), rgba(10,10,15,.9)) padding-box, var(--gradient-phoenix) border-box;
  border: 1.5px solid transparent;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 16px 40px -14px rgba(10,10,15,.55), 0 10px 30px -16px rgba(var(--glow-magenta), .5);
  font-family: var(--he-display); font-weight: 700; font-size: 16px;
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-emphasized), visibility 0s linear var(--dur-slow);
}
.dock__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-full); background: var(--btn-grad); }
.dock.is-on { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease-emphasized), visibility 0s; }
.dock:focus-visible { border-radius: var(--radius-full); box-shadow: var(--ring-strong); }
@media (max-width: 339px) { .dock { padding-inline-start: 16px; gap: 8px; font-size: 15px; } }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- lightbox ---------- */
.lightbox {
  width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-xl);
  background: #fff; color: var(--fg-1);
  box-shadow: var(--shadow-xl);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(8,8,13,.6); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.lightbox__fig { margin: 0; padding: 60px 12px 12px; }
.lightbox__fig img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.lightbox__cap { margin: 12px 4px 2px; font-size: var(--text-footnote); font-weight: 600; color: var(--fg-2); }
.lightbox__close {
  position: sticky; float: left; top: 10px; left: 10px; margin: 10px 0 0 10px; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle); background: rgba(255,255,255,.92); color: var(--fg-1); cursor: pointer;
}
.lightbox__close:focus-visible { border-radius: var(--radius-full); }
.lightbox__close + .lightbox__fig { padding-top: 12px; }

/* ---------- scroll reveals (JS-enhanced only; content is visible without JS) ---------- */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-emphasized), transform 700ms var(--ease-emphasized); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
