/* VideoMaking waitlist. Same colours as the desktop app (dark theme), cut like a trailer. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour tokens: same names and values as the desktop app (VideoMaking/src/app/app.css, :root, dark theme),
     so a change of palette happens in one place. */
  --canvas: #0b0b0c;
  --surface: #131315;
  --surface-raised: #1a1a1d;
  --surface-hover: #212124;
  --surface-muted: #2a2a2e;
  --border: #262629;
  --border-strong: #343438;
  --text: #f2f2f0;
  --text-secondary: #c9c9c5;
  --text-muted: #9a9a95;
  --text-subtle: #85857f;
  --action: #f2f2f0;
  --action-text: #111113;
  --action-hover: #ffffff;
  /* single accent, soft indigo: the projector light, the REC light, numbers, gauges, active borders */
  --accent: #8f97ff;
  --accent-strong: #a9afff;
  --accent-soft: rgba(143, 151, 255, .1);
  --accent-border: rgba(143, 151, 255, .32);
  --accent-glow: rgba(143, 151, 255, .55);
  --focus: var(--accent);
  /* on top of an image or a video */
  --accent-on-media: #a9afff;
  --scrim-media: rgba(0, 0, 0, .78);
  --on-media: #ffffff;
  /* states */
  --success: #7fcf9a;
  --success-bg: rgba(127, 207, 154, .1);
  --success-border: rgba(127, 207, 154, .32);
  --danger: #f08a83;

  --font: "Archivo", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --topbar-h: 64px;
  --radius: 14px;
}

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

html {
  background: var(--canvas);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}
html:not(.lenis) { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variation-settings: normal;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input { font: inherit; color: inherit; }

::selection { background: var(--accent-border); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--action);
  color: var(--action-text);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Film grain + vignette (fixed, decorative) ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-6%, 4%); }
  33% { transform: translate(5%, -7%); }
  50% { transform: translate(-3%, 8%); }
  67% { transform: translate(8%, 2%); }
  83% { transform: translate(-7%, -4%); }
  100% { transform: translate(2%, 6%); }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease-quart), color .2s var(--ease-quart), transform .15s var(--ease-quart), box-shadow .3s var(--ease-quart);
}
.btn--primary {
  background: var(--action);
  color: var(--action-text);
  box-shadow: 0 0 0 0 rgba(143, 151, 255, 0);
}
.btn--primary:hover {
  background: var(--action-hover);
  box-shadow: 0 10px 40px -10px var(--accent-glow);
}
.btn--primary:active { transform: translateY(1px) scale(.99); }
.btn--small {
  --h: 44px;
  padding: 0 16px;
  font-size: .9375rem;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--small:hover { background: var(--surface-hover); }

.btn__rec {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 3px var(--accent-border);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topbar-h);
  transition: background-color .4s var(--ease-quart), border-color .4s var(--ease-quart);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(11, 11, 12, .9);
  border-bottom-color: rgba(255, 255, 255, .06);
}
.topbar__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.brand__mark { width: 26px; height: 26px; flex: none; } /* the chair stands 25 px tall, as in the app */
.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -.01em;
}
.timecode {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.timecode__rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-glow);
  animation: rec 1.6s steps(1) infinite;
}
.timecode__label { color: var(--text); font-weight: 650; letter-spacing: .08em; }
@keyframes rec { 50% { opacity: .15; } }
.topbar__cta { display: none; }
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(19, 19, 21, .8);
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color .2s var(--ease-quart), color .2s var(--ease-quart);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--action); color: var(--action-text); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--topbar-h) + 20px);
  padding-bottom: 64px;
  overflow: clip;
  isolation: isolate;
}
.hero::before { /* ambient spill from the screens */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 92%, rgba(143, 151, 255, .13), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(143, 151, 255, .06), transparent 70%);
}

.hero__bars { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #050505;
  will-change: transform;
}
.hero__bar--top { top: 0; transform-origin: top; }
.hero__bar--bottom { bottom: 0; transform-origin: bottom; }
.hero__seam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70vw;
  height: 2px;
  margin-left: -35vw;
  background: linear-gradient(90deg, transparent, var(--accent), #eef0ff, var(--accent), transparent);
  box-shadow: 0 0 24px 4px rgba(143, 151, 255, .45);
  opacity: 0;
  transform: scaleX(.05);
}

.js .hero__bar--top { animation: bar-open-top 1.15s var(--ease-in-out) .35s both; }
.js .hero__bar--bottom { animation: bar-open-bottom 1.15s var(--ease-in-out) .35s both; }
.js .hero__seam { animation: seam 1s var(--ease-out) both; }
/* bars stop at a thin letterbox, scroll retracts the rest (main.js) */
@keyframes bar-open-top { from { transform: scaleY(1); } to { transform: scaleY(var(--lb)); } }
@keyframes bar-open-bottom { from { transform: scaleY(1); } to { transform: scaleY(var(--lb)); } }
@keyframes seam {
  0% { opacity: 0; transform: scaleX(.05); }
  35% { opacity: 1; transform: scaleX(1); }
  60% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1.3); }
}
.hero__bar { --lb: .03; transform: scaleY(var(--lb)); }
@media (min-width: 1024px) { .hero__bar { --lb: .055; } }

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 500;
  font-stretch: 108%;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow);
}

.hero__title {
  font-size: clamp(2.6rem, 12.4vw, 7.4rem);
  line-height: .9;
  font-weight: 800;
  font-stretch: 68%;
  letter-spacing: -.012em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title .line { display: block; overflow: hidden; padding: .14em 0 .04em; margin: -.14em 0 -.04em; }
.hero__title .line > span { display: block; }
.hero__title .line--accent { color: var(--accent); }
.js .hero__title .line > span { animation: line-up 1.1s var(--ease-out) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: .75s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .87s; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }

.hero__copy { position: relative; z-index: 6; } /* above the stage and its light */
.hero__lede strong { color: var(--text); font-weight: 650; }
.hero__lede {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.1vw + .8rem, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.js .kicker, .js .hero__lede, .js .hero .signup { animation: rise .9s var(--ease-out) both; }
.js .kicker { animation-delay: .6s; }
.js .hero__lede { animation-delay: 1s; }
.js .hero .signup { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Signup form ---------- */
.signup { max-width: 34rem; position: relative; }
.signup__label {
  display: block;
  font-size: .9375rem;
  font-weight: 550;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.signup__row { display: grid; gap: 10px; }
.signup__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(19, 19, 21, .92);
  font-size: 1.0625rem;
  color: var(--text);
  transition: border-color .2s var(--ease-quart), box-shadow .2s var(--ease-quart), background-color .2s;
}
.signup__input::placeholder { color: var(--text-subtle); }
.signup__input:hover { border-color: rgba(255, 255, 255, .28); }
.signup__input:focus { outline: none; }
.signup__input:focus-visible,
.signup__input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-border);
  background: var(--surface);
}
.signup__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(240, 138, 131, .18);
}
.signup__btn { width: 100%; }
.signup__msg {
  margin-top: 10px;
  min-height: 1.5em;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--text-muted); /* stays above 4.5:1 over the lights of the page (join countdown) */
}
.signup__msg.is-error { color: var(--danger); }
.signup__msg.is-error::before { content: "! "; font-weight: 800; }
.signup.is-sending .signup__btn { pointer-events: none; }
.signup.is-sending .btn__rec { animation: rec 0.8s steps(1) infinite; }
.signup.is-sending .signup__input { opacity: .7; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__done {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--success-bg), rgba(127, 207, 154, .04));
  border: 1px solid var(--success-border);
  outline: none;
}
.signup__done[hidden] { display: none; }
.signup__chair { /* the app's logo: your seat is booked */
  grid-row: span 2;
  width: 48px;
  height: 48px;
}
.signup__done:not([hidden]) .signup__chair { animation: chair-in .7s var(--ease-out) both; }
@keyframes chair-in {
  from { opacity: 0; transform: translateY(8px) scale(.86); }
  to { opacity: 1; transform: none; }
}
.signup__done-title {
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--text);
}
.signup__done-text { font-size: 1rem; color: var(--text-secondary); }

.joined-note { display: none; margin-top: 12px; font-weight: 600; color: var(--success); }
.joined-note--error { color: var(--danger); }
.joined-note:target { display: block; }

/* ---------- Stage (hero screens under a spotlight) ---------- */
.stage {
  position: relative;
  height: clamp(300px, 46vh, 420px);
  margin-inline: calc(var(--gutter) * -1);
  perspective: 1200px;
  --px: 0;
  --py: 0;
}
.stage__light {
  /* The beam fades in from the stage's top edge: never over the form above it (one column) nor behind the
     top bar (two columns), so every text keeps its contrast. */
  --fade-from: 17%;
  --fade-to: 30%;
  position: absolute;
  left: 50%;
  top: -22%;
  width: 160%;
  height: 128%;
  transform: translateX(-50%);
  background: conic-gradient(at 50% 0%, transparent 0deg 158deg, rgba(180, 188, 255, .08) 164deg, rgba(200, 206, 255, .2) 172deg, rgba(222, 226, 255, .3) 180deg, rgba(200, 206, 255, .2) 188deg, rgba(180, 188, 255, .08) 196deg, transparent 202deg 360deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--fade-from), #000 var(--fade-to), #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent var(--fade-from), #000 var(--fade-to), #000 55%, transparent 100%);
  filter: blur(10px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  animation: flicker 5s steps(1) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: .86; }
  42% { opacity: 1; }
  77% { opacity: .92; }
  78% { opacity: 1; }
}
.stage__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.stage__screens {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 5deg));
  transition: transform .8s var(--ease-out);
}
.stage__floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 22%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(143, 151, 255, .22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--canvas);
}
.screen__media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: var(--canvas);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 80px -20px rgba(0, 0, 0, .9);
}
.screen__bleed {
  position: absolute;
  inset: 4% -12% -10%;
  width: 124%;
  height: 106%;
  object-fit: cover;
  filter: blur(36px) saturate(1.4);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.screen__tag {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 1px;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .45s var(--ease-quart);
}
.screen__place { color: var(--text); font-weight: 650; }

/* Carousel: every screen has the main screen's box; side screens are scaled down.
   Same transform list everywhere so the browser interpolates each step (no matrix jump). */
.stage .screen {
  --x: 0%;
  --z: 40px;
  --r: 0deg;
  --s: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 92%;
  transform: translate(-50%, -50%) translateX(var(--x)) translateZ(var(--z)) rotateY(var(--r)) scale(var(--s));
  transition: transform 1s var(--ease-in-out), opacity 1s var(--ease-in-out);
}
.stage .screen[data-pos="next"] { --x: 62%; --z: -60px; --r: -16deg; --s: .76; opacity: .75; }
.stage .screen[data-pos="prev"] { --x: -62%; --z: -60px; --r: 16deg; --s: .76; opacity: .75; }
.stage .screen[data-pos="main"] .screen__tag { opacity: 1; transition: opacity .6s var(--ease-quart) .5s; }

.js .stage { animation: stage-in 1.6s var(--ease-out) .55s both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }

.viewfinder { display: none; position: absolute; inset: calc(var(--topbar-h) + 8px) 12px 12px; pointer-events: none; z-index: 5; }
.viewfinder i {
  position: absolute;
  width: 22px; height: 22px;
  border-color: rgba(242, 242, 240, .28);
  border-style: solid;
  border-width: 0;
}
.viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- Section heads ---------- */
.h2 {
  font-size: clamp(2.5rem, 8.4vw, 6.25rem);
  line-height: .92;
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  font-weight: 750;
  font-stretch: 78%;
  text-transform: uppercase;
}
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head__text { max-width: 36rem; color: var(--text-muted); font-size: clamp(1.0625rem, .6vw + .9rem, 1.1875rem); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; margin-bottom: -.05em; }
[data-split] .w > span { display: inline-block; }

/* ---------- Reel (projection wall) ---------- */
.reel { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 7vw, 96px); overflow: clip; }
.perfs {
  width: calc(100% + 480px);
  margin-left: -240px;
  height: 26px;
  margin-bottom: clamp(48px, 8vw, 96px);
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(242, 242, 240, .09) 14px 30px, transparent 30px 44px) center / 44px 12px repeat-x,
    linear-gradient(var(--surface), var(--surface));
  border-block: 1px solid var(--surface-raised);
  transform: translateX(var(--perf, 0px));
}
.perfs--bottom { margin: clamp(40px, 7vw, 80px) 0 0; }

.reel__rows { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.reel__row {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}
.reel__row--a .reel__item { width: clamp(168px, 21vw, 290px); }
.reel__row--a .reel__item--wide { width: clamp(319px, 40vw, 551px); align-self: flex-start; }
.reel__row--a .screen { aspect-ratio: auto; background: none; }
.reel__row--a .screen__media { aspect-ratio: 9 / 16; height: auto; }
.reel__row--a .reel__item--wide .screen__media { aspect-ratio: 16 / 9; }
.reel__row--a figcaption {
  margin-top: 12px;
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 550;
}
.reel__no {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.reel__place { display: block; font-weight: 650; color: var(--text); }
.reel__row--a figcaption { color: var(--text-muted); }
.reel__row--b { transform: translateX(-30%); }
.reel__row--b li { width: clamp(96px, 11vw, 150px); flex: none; }
.reel__row--b img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  opacity: .62;
  filter: saturate(.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ---------- How it works (slate) ---------- */
.how { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(72px, 10vw, 140px); }
.how__grid { display: grid; gap: 28px; }
.how__aside {
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 10;
  align-self: start;
}
.how__head { display: grid; gap: 18px; margin-bottom: 40px; }

.slate { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); }
.slate__stick {
  height: 22px;
  border-radius: 6px 6px 2px 2px;
  background: repeating-linear-gradient(-55deg, var(--text) 0 18px, var(--surface) 18px 36px);
  transform-origin: 4px 100%;
  transform: rotate(0);
  margin-bottom: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.slate.is-clap .slate__stick { animation: slate-clap .55s var(--ease-out); }
@keyframes slate-clap {
  0% { transform: rotate(0); }
  35% { transform: rotate(-16deg); }
  70% { transform: rotate(0); }
  82% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}
.slate__board {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px 4px 12px 12px;
  padding: 12px 14px 14px;
}
.slate__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.slate__field {
  display: grid;
  font-size: .9375rem;
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.2;
}
.slate__field small {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.slate__prod { display: inline-flex; align-items: center; gap: 6px; }
.slate__mark { width: 18px; height: 18px; flex: none; }
.slate__field--num { text-align: right; justify-items: end; grid-template-columns: auto auto; column-gap: 2px; align-items: baseline; }
.slate__field--num small { grid-column: 1 / -1; }
.slate__field--num b {
  font-size: 2rem;
  line-height: .95;
  font-weight: 800;
  font-stretch: 70%;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.slate__of { color: var(--text-subtle); font-size: .875rem; }
.slate__title {
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.slate__track {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin-top: 10px;
}
.slate__track li {
  height: 6px;
  border-radius: 2px;
  background: var(--surface-muted);
  transition: background-color .35s var(--ease-quart);
}
.slate__track li.is-done { background: rgba(143, 151, 255, .45); }
.slate__track li.is-on { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.steps { display: grid; }
.step {
  position: relative;
  padding: 34px 0 38px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  transition: opacity .5s var(--ease-quart);
}
.js .step .step__title { color: var(--text-subtle); transition: color .5s var(--ease-quart); }
.js .step.is-on .step__title { color: var(--text); }
.step__no {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .85;
  font-weight: 800;
  font-stretch: 62%;
  color: transparent;
  -webkit-text-stroke: 1.2px #5a5a5f;
  font-variant-numeric: tabular-nums;
  transition: -webkit-text-stroke-color .4s, color .4s;
}
.step.is-on .step__no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step__title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  font-weight: 750;
  font-stretch: 76%;
  text-transform: uppercase;
  max-width: 22ch;
}
.step p { max-width: 34rem; color: var(--text-muted); }
.step__board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 30rem;
  margin-top: 10px;
}
.step__board img { aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.step__board img:nth-child(odd) { transform: translateY(8px); }
.step__timeline {
  position: relative;
  display: flex;
  gap: 3px;
  height: 64px;
  max-width: 30rem;
  margin-top: 12px;
  padding: 6px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__timeline span { flex: var(--w) 1 0; overflow: hidden; border-radius: 5px; }
.step__timeline img { width: 100%; height: 100%; object-fit: cover; }
.step__playhead {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 6px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(143, 151, 255, .8);
  transform: translateX(var(--ph, 0px));
}
.step__playhead::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -5px;
  border: 6px solid transparent;
  border-top-color: var(--accent);
}

/* ---------- Same DNA, any style ---------- */
.styles { padding: clamp(56px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.styles__grid { display: grid; gap: 40px; align-items: center; }
.styles__copy { display: grid; gap: 18px; align-content: start; }
.genres { display: grid; column-gap: 28px; margin-top: 10px; max-width: 46rem; }
.genre {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}
.genre__thumb {
  flex: none;
  width: 2.75rem;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.genre--more { color: var(--accent); border-bottom: 1px solid var(--border); }
.genre__plus {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-border);
}
.genre__plus::before { content: "+"; font-size: 1.625rem; font-weight: 600; line-height: 1; color: var(--accent); }
.styles__visual { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; margin-inline: auto; }
.vf-frame { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: var(--canvas); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.9); }
.vf-frame__media { position: absolute; inset: 0; filter: blur(var(--blur, 0px)); transform: scale(1.04); }
.vf-frame__media .screen__media { border-radius: 0; box-shadow: none; }
.vf-frame > i {
  position: absolute;
  z-index: 2;
  width: 26px; height: 26px;
  border: 0 solid rgba(242, 242, 240, .85);
}
.vf-frame > i:nth-of-type(1) { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.vf-frame > i:nth-of-type(2) { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.vf-frame > i:nth-of-type(3) { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-frame > i:nth-of-type(4) { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.vf-frame__rec {
  position: absolute; z-index: 2; top: 24px; left: 50px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 8px; border-radius: 6px; background: var(--scrim-media);
  font-size: .875rem; font-weight: 650; letter-spacing: .1em; color: var(--on-media);
}
.vf-frame__rec b { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-on-media); animation: rec 1.6s steps(1) infinite; }
.vf-frame__meta {
  position: absolute; z-index: 2; bottom: 24px; right: 50px;
  padding: 2px 8px; border-radius: 6px; background: var(--scrim-media);
  font-size: .875rem; font-weight: 600; color: var(--on-media);
}
.vf-frame__cross {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%;
}
.vf-frame__cross::before, .vf-frame__cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, .6); }
.vf-frame__cross::before { left: 50%; top: -10px; bottom: -10px; width: 1.5px; margin-left: -.75px; }
.vf-frame__cross::after { top: 50%; left: -10px; right: -10px; height: 1.5px; margin-top: -.75px; }

/* ---------- Director ---------- */
.director {
  position: relative;
  padding: clamp(72px, 11vw, 160px) 0;
  overflow: clip;
  --sx: 50%;
  --sy: 30%;
}
.director__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 420px at var(--sx) var(--sy), rgba(190, 196, 255, .11), transparent 70%);
  transition: background-position .2s;
}
.director__title { margin-bottom: clamp(36px, 6vw, 72px); }
.calls { display: grid; }
.call {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 8px;
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid var(--border);
}
.call:last-child { border-bottom: 1px solid var(--border); }
.call__no {
  grid-row: span 2;
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-top: .5em;
}
.call__title {
  font-size: clamp(1.875rem, 5vw, 4rem);
  line-height: .95;
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  transition: color .5s var(--ease-quart);
}
.call p { max-width: 36rem; color: var(--text-muted); }

/* ---------- Join ---------- */
.join {
  position: relative;
  padding: clamp(96px, 14vw, 200px) 0 clamp(96px, 12vw, 170px);
  text-align: center;
  overflow: clip;
  isolation: isolate;
}
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(50% 45% at 50% 50%, rgba(143, 151, 255, .12), transparent 70%);
}
.leader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: .5;
  pointer-events: none;
}
.leader svg { width: 100%; height: 100%; overflow: visible; }
.leader__ring { fill: none; stroke: rgba(242, 242, 240, .14); stroke-width: 1.2; }
.leader__cross { stroke: rgba(242, 242, 240, .1); stroke-width: 1.2; }
.leader__sweep {
  fill: none;
  stroke: var(--accent-border);
  stroke-width: 190;
  stroke-dasharray: 0 100;
  transform: rotate(-90deg);
  transform-origin: 200px 200px;
}
.leader__num {
  font-family: var(--font);
  font-size: 150px;
  font-weight: 800;
  font-stretch: 70%;
  fill: rgba(242, 242, 240, .16);
  text-anchor: middle;
  dominant-baseline: central;
}
.leader.is-running .leader__sweep { animation: sweep 1s linear 3; }
@keyframes sweep { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 0; } }

.join__inner { display: grid; justify-items: center; gap: 18px; }
.join__title { font-size: clamp(3rem, 12vw, 9rem); }
.join__text { max-width: 30rem; color: var(--text-secondary); font-size: clamp(1.0625rem, .6vw + .9rem, 1.25rem); margin-bottom: 14px; }
.signup--center { width: 100%; text-align: left; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .9375rem;
  color: var(--text-subtle);
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-stretch: 112%; }
.footer__mark { width: 22px; height: 22px; flex: none; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 16px;
  background: var(--action);
  color: var(--action-text);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: translateY(140%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.dock.is-on { transform: none; visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }

/* ---------- Reveal helpers (set by main.js only) ---------- */
.reveal { will-change: transform, opacity; }

/* ---------- Phone frame (step 07) ---------- */
.phone { margin-top: 18px; display: grid; gap: 12px; justify-items: start; }
.phone__body {
  position: relative;
  width: clamp(190px, 22vw, 250px);
  aspect-ratio: 9 / 16;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--surface-muted), var(--surface) 40%, var(--surface-raised));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 60px -10px rgba(143, 151, 255, .18);
}
.phone__media { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: var(--canvas); }
.phone__island { position: absolute; z-index: 2; top: 18px; left: 50%; width: 30%; height: 16px; margin-left: -15%; border-radius: 10px; background: #050505; }
.phone figcaption { font-size: .9375rem; color: var(--text-muted); max-width: 26rem; }

/* ---------- Proof: the starting videos, the recipe, the style boards, the starting images, the final video ---------- */
.proof { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.proof::before { /* projector spill behind the final video */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(40% 32% at 84% 66%, rgba(143, 151, 255, .08), transparent 70%);
}
.proof__head { margin-bottom: clamp(40px, 6vw, 72px); }
.proof__track { display: grid; gap: clamp(48px, 7vw, 64px); }
.proof__stage {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.proof__stage::before { /* playhead mark, lit when the stage reaches the screen */
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 72px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.js .proof__stage:not(.is-on)::before { transform: scaleX(0); }
.proof__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.1;
  font-weight: 750;
  font-stretch: 76%;
  text-transform: uppercase;
}
.proof__no {
  flex: none;
  font-size: clamp(2.5rem, 3.4vw, 3.25rem);
  line-height: .85;
  font-weight: 800;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.2px #5a5a5f;
  transition: color .5s var(--ease-quart), -webkit-text-stroke-color .5s var(--ease-quart);
}
.proof__stage.is-on .proof__no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

/* 01: the starting videos, as a playlist */
.sources { display: grid; gap: 14px; }
.source {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
}
.source__thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -18px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease-out), box-shadow .3s var(--ease-quart);
}
.source:hover .source__thumb { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 0 0 1px rgba(143, 151, 255, .6), 0 18px 40px -18px rgba(0, 0, 0, .9); }
.source__text { display: grid; gap: 4px; }
.source__title { font-size: 1rem; line-height: 1.3; font-weight: 600; color: var(--text); }
.source:hover .source__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.source__by { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--text-muted); }
.ext { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.proof__credit { font-size: .9375rem; line-height: 1.5; color: var(--text-muted); }
.proof__credit a { color: var(--text); text-decoration-color: rgba(143, 151, 255, .6); text-underline-offset: 3px; }
.proof__credit a:hover { color: var(--accent-strong); text-decoration-color: var(--accent); }

/* 02: the recipe, on a card */
.recipe {
  padding: 4px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  counter-reset: recipe;
}
.recipe li {
  counter-increment: recipe;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-strong);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--text-secondary);
}
.recipe li:last-child { border-bottom: 0; }
.recipe li::before {
  content: "0" counter(recipe);
  font-size: .9375rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.proof__note { max-width: 36rem; font-size: .9375rem; line-height: 1.5; color: var(--text-muted); }

/* 03 and 04: the style boards and the starting images, enlargeable */
.making { display: grid; gap: 12px; }
.making figcaption { font-size: .9375rem; line-height: 1.5; color: var(--text-muted); }
.making__line { display: block; }
.making__line + .making__line { margin-top: 6px; }
.zoom {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  cursor: zoom-in;
}
.zoom img { width: 100%; transition: transform .7s var(--ease-out); }
.zoom:hover img { transform: scale(1.035); }
.zoom__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--scrim-media);
  color: var(--on-media);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.zoom__hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* Retouch mark: the app's own control on a board thumbnail, copied as is (VideoMaking/src/app/studio-guided.css,
   .universe-media-controls .sb-media-control): same pencil, size, place, colours and fade-in on hover. Here it only
   says that each image can be retouched: it is not a button, a click on it opens the enlargement underneath. */
.retouchable { position: relative; }
.retouch {
  position: absolute;
  top: .625rem;
  right: .625rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #ffffff30;
  border-radius: .5rem;
  background: #131315bd;
  color: #fff;
  -webkit-backdrop-filter: blur(.5rem);
  backdrop-filter: blur(.5rem);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.retouch svg { width: .875rem; height: .875rem; }
.retouchable:hover .retouch, .retouchable:focus-within .retouch { opacity: 1; }
@media (hover: none) { .retouch { opacity: 1; } } /* no hover on touch screens: always shown, still small */
.making__starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.making__starts .zoom { border-radius: 10px; }
.making__starts img { aspect-ratio: 9 / 16; object-fit: cover; }

/* 05: the final video, in a phone */
.proof__phone { display: grid; gap: 14px; justify-items: center; }
.proof__phone .phone__body { width: clamp(244px, 72vw, 300px); }
.proof__phone .phone__island { z-index: 5; }
.proof__phone figcaption { text-align: center; font-size: .9375rem; color: var(--text-muted); }
.player {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: var(--canvas);
  isolation: isolate;
}
.player__media, .player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__media { cursor: pointer; }
.player__poster { z-index: 1; pointer-events: none; transition: opacity .6s var(--ease-quart); }
.has-started .player__poster { opacity: 0; }
.player__big, .player__btn, .player__sound {
  border: 0;
  cursor: pointer;
  color: var(--on-media);
  background: var(--scrim-media);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .2s var(--ease-quart), color .2s var(--ease-quart), opacity .3s var(--ease-quart), transform .15s var(--ease-quart);
}
.player__big svg, .player__btn svg, .player__sound svg { fill: currentColor; stroke: none; }
.player__big {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
}
.player__big svg { width: 30px; height: 30px; margin-left: 4px; }
.is-paused .player__big { opacity: 1; visibility: visible; }
.player__big:hover, .player__btn:hover { background: rgba(0, 0, 0, .9); }
.player__big:active, .player__btn:active, .player__sound:active { transform: scale(.96); }
.player__bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 40px 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.player__bar > * { pointer-events: auto; }
.player__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.player__btn svg { width: 20px; height: 20px; }
.player__sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 22px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.player__sound svg { width: 20px; height: 20px; flex: none; }
.player__sound svg path:not(.f) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.is-muted .player__sound { background: var(--action); color: var(--action-text); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8); }
.is-muted .player__sound:hover { background: var(--action-hover); }
.is-paused .i-pause, [data-player]:not(.is-paused) .i-play, .is-muted .i-sound, [data-player]:not(.is-muted) .i-muted { display: none; }
.player__progress {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 68px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .22);
  pointer-events: none;
}
.player__progress i { position: absolute; inset: 0; background: var(--accent-on-media); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
html:not(.js) .player__big, html:not(.js) .player__bar, html:not(.js) .player__progress { display: none; }

/* Lightbox (native dialog: Esc, focus and the backdrop come with it) */
html.is-locked { overflow: hidden; }
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
  cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .35s var(--ease-out); }
.lightbox::backdrop { background: rgba(11, 11, 12, .96); }
.lightbox__frame { margin: 0; display: grid; place-items: center; }
.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 32px), 1536px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1);
}
.lightbox__close {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 26, 29, .92);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: background-color .2s var(--ease-quart), box-shadow .2s var(--ease-quart);
}
.lightbox__close:hover { background: var(--surface-hover); box-shadow: 0 0 0 1px var(--accent-border); }
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (orientation: portrait) and (max-width: 719.98px) {
  /* phones: a wide sheet is shown taller than the screen is wide, and slides sideways */
  .lightbox--wide .lightbox__frame {
    width: 100vw;
    padding: 0 16px;
    overflow-x: auto;
    overscroll-behavior: contain;
    place-items: center start;
    scrollbar-width: none;
  }
  .lightbox--wide .lightbox__img { max-width: none; height: min(calc(100dvh - 180px), 1024px); max-height: none; }
}

@media (min-width: 720px) {
  /* the final video closes the story beside two stages: the whole stage (line, label, phone) sits in their middle */
  .proof__stage--src { grid-area: src; }
  .proof__stage--rec { grid-area: rec; }
  .proof__stage--sheet { grid-area: sheet; }
  .proof__stage--starts { grid-area: starts; }
  .proof__stage--fin { grid-area: fin; align-self: center; }
}

@media (min-width: 720px) and (max-width: 1199.98px) {
  /* tablets and small laptops: the videos and the recipe across, then the boards and the images beside the phone */
  .proof__track {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "src src" "rec rec" "sheet fin" "starts fin";
    column-gap: clamp(32px, 5vw, 56px);
  }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 18px; }
  .recipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .recipe li:nth-last-child(2) { border-bottom: 0; }
  .proof__phone .phone__body { width: clamp(244px, 30vw, 300px); }
}

@media (min-width: 1200px) {
  /* two clean rows read left to right: 01 and 02, then 03 and 04; the final video closes on the right */
  .proof__track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "src rec fin" "sheet starts fin";
    column-gap: clamp(28px, 2.6vw, 44px);
    row-gap: clamp(48px, 4vw, 64px);
  }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 16px; }
  .source { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 12px; }
  .proof__phone .phone__body { width: clamp(260px, 19.5vw, 300px); }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .signup__row { grid-template-columns: 1fr auto; }
  .signup__btn { width: auto; }
}

@media (min-width: 560px) {
  .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre--more { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .topbar__cta { display: inline-flex; }
  .viewfinder { display: block; }
  .stage__light { top: -36%; height: 140%; --fade-from: 26%; --fade-to: 38%; }
  .timecode { margin-right: 4px; }
  .stage { height: clamp(420px, 56vh, 560px); }
  .step__no { position: absolute; right: 0; top: 28px; }
  .step__title, .step p { padding-right: 5.5rem; }
}

@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; padding-bottom: 48px; }
  .hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
  .hero__title { font-size: min(7.4vw, 7.2rem); }
  html[lang="fr"] .hero__title { font-size: min(5.6vw, 5.9rem); font-stretch: 64%; }
  .stage__light { --fade-from: 14%; --fade-to: 27%; }
  .stage { height: min(78vh, 760px); margin: 0; }
  .stage .screen { height: 86%; }
  .stage .screen[data-pos="next"] { --x: 58%; --z: -80px; --r: -18deg; --s: .744; }
  .stage .screen[data-pos="prev"] { --x: -58%; --z: -80px; --r: 18deg; --s: .744; }
  .styles__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .viewfinder { inset: calc(var(--topbar-h) + 16px) 24px 24px; }

  .how__grid { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
  .how__aside { top: calc(var(--topbar-h) + 40px); order: 0; }
  .slate__board { padding: 18px 20px 20px; }
  .slate__stick { height: 34px; }
  .slate__field--num b { font-size: 4.5rem; }
  .slate__title { font-size: 2.25rem; margin-top: 14px; }
  .slate__track li { height: 8px; }
  .step { padding: 48px 0 56px; min-height: 40vh; align-content: start; }
  .how__head { margin-bottom: 24px; }

  .call { grid-template-columns: 5rem 1fr 1fr; align-items: baseline; }
  .call__no { grid-row: auto; padding-top: 0; }
  .call p { font-size: 1.125rem; }
  .director .call:hover .call__title { color: var(--accent); }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .stage .screen[data-pos="next"] { --x: 44.6%; }
  .stage .screen[data-pos="prev"] { --x: -44.6%; }
}

@media (min-width: 1600px) {
  :root { --maxw: 1480px; }
}

@media (max-width: 1023.98px) {
  /* compact slate pinned under the bar on phones and tablets */
  .how__aside { margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; background: linear-gradient(var(--canvas) 78%, rgba(11, 11, 12, 0)); }
  .slate { display: grid; grid-template-columns: 1fr; }
  .slate__board { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 10px 12px 12px; }
  .slate__row { border: 0; padding: 0; grid-row: span 2; }
  .slate__field:first-child { display: none; }
  .slate__field--num b { font-size: 2.25rem; }
  .slate__title { margin: 0; font-size: 1.125rem; }
  .slate__track { margin-top: 8px; }
  .slate__stick { height: 16px; }
}

@media (max-width: 479.98px) {
  .timecode__label { display: none; }
}
@media (max-width: 400px) {
  .timecode { display: none; }
  .lang { margin-left: auto; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 1rem; }
  .timecode { font-size: .875rem; gap: 6px; }
}

/* ---------- Reduced motion: everything still, still readable ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .grain { animation: none; }
  .stage__light { animation: none; }
  .reel__row--b { transform: translateX(-10%); }
}

/* Lenis 1.3.26 base styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
