/* Site styles: landing page, brand page and legal pages */

:root {
  /* surfaces: white, with washes and lines that lean blue, never grey */
  --bg: #FFFFFF;
  --bg-soft: #F5F9FF;
  --well: #EAF2FE;
  --line: #E0EAF8;
  --line-strong: #C6D6EE;

  /* text */
  --text: #0B1A33;
  --text-2: #3F5069;
  --text-3: #5B6C85;

  /* brand + status */
  --accent: #2B7FFF;         /* the logo, marks, live states */
  --accent-strong: #1D6AE5;  /* button fill: white text on it passes AA */
  --accent-hover: #1558C9;
  --accent-2: #67C3FF;       /* sky partner in the logo and on dark */
  --accent-soft: #EAF3FF;
  --accent-ink: #1D5FD1;     /* accent text on white and on accent-soft */
  --ok: #0B7A3B;
  --ok-soft: #E3F6EA;

  /* the dark surface: a film frame, a command line */
  --navy: #0B1526;
  --navy-2: #0F1C33;
  --navy-line: #1F3050;
  --navy-text: #DCE7F9;
  --navy-dim: #93A7C8;

  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 108px);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 51, .06);
  --shadow-md: 0 1px 2px rgba(11, 26, 51, .04), 0 14px 34px -14px rgba(29, 95, 209, .22);
  --shadow-lg: 0 1px 2px rgba(11, 26, 51, .05), 0 44px 84px -44px rgba(29, 95, 209, .5);
}

/* ---------- base ---------- */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--f-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, pre, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button, summary, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: #CFE3FF; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px; }

code { font-family: var(--f-mono); font-size: .88em; font-variant-numeric: tabular-nums; }
p code, li code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 999px;
  background: var(--text); color: #fff; font-weight: 500;
}
.skip:focus { top: 12px; }

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

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: currentColor; }

/* the field of flickering digits, fixed behind every page (motion.js) */
.glyphs { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.glyphs canvas { display: block; width: 100%; height: 100%; }

/* ---------- type ---------- */

.display {
  font-size: clamp(2.3rem, 5.2vw, 3.75rem);
  font-weight: 550;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.4rem);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

/* mono label with an accent tick */
.eyebrow {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font: 500 11.5px/1.4 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.section__center .eyebrow { justify-content: center; }

.lede {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn--sm { min-height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 1px 2px rgba(29, 95, 209, .3), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline { background: #fff; border-color: var(--line-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-ink); }

.btn--light { background: #fff; color: var(--accent-ink); }
.btn--light:hover { background: var(--accent-soft); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  font: 500 12px/1 var(--f-mono);
}
.pill--soft { background: var(--accent-soft); color: var(--accent-ink); font: 550 11.5px/1 var(--f-sans); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  backdrop-filter: saturate(1.8) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner { display: flex; align-items: center; gap: 34px; height: 60px; }

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.logo__mark { width: 24px; height: 24px; flex: none; }
.logo__word { font-size: 16.5px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.logo__word span { margin-left: .26em; color: var(--accent-ink); font-weight: 500; }

.nav__links { display: flex; gap: 26px; }
.nav__links a { padding: 8px 0; color: var(--text-2); font-size: 14px; font-weight: 450; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 480px) {
  .nav__actions .btn--outline { display: none; }
  .logo__word { font-size: 15.5px; }
}

/* ---------- layout helpers ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
}
.split__aside { padding-bottom: 6px; }
.split--section { margin-bottom: clamp(36px, 5vw, 60px); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.section { padding-block: var(--section); }
/* a blue wash the digits still show through, faintly */
.section--tint { background: rgba(240, 246, 255, .82); border-block: 1px solid var(--line); }

.section__center { max-width: 660px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__center .lede { margin-top: 16px; }

/* ---------- hero ---------- */

.hero { position: relative; padding-top: clamp(32px, 5vw, 64px); }
/* the pitch on the left, the film already playing on the right */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__copy .display { font-size: clamp(2.25rem, 3.7vw, 3.15rem); }
@media (min-width: 941px) { .hero__copy .display span { display: block; } }
.hero__copy .lede { max-width: 34em; margin-top: 20px; font-size: clamp(16px, 1.35vw, 17.5px); }
.hero__copy .btn-row { margin-top: 26px; }
.hero__note { margin-top: 14px; color: var(--text-3); font-size: 13.5px; }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy .lede { max-width: 40em; }
}

/* the request that plays through beside the steps */
.stage {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.talk { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 10px; }
.talk__label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 2px;
  color: var(--text-3);
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
}
.talk__replay {
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text-3);
  font: inherit; letter-spacing: .04em; text-transform: none; cursor: pointer;
}
.talk__replay:hover { border-color: var(--accent); color: var(--accent-ink); }
.talk__replay[hidden] { display: inline-block; visibility: hidden; }   /* keeps its place, so nothing shifts when it appears */

.say {
  max-width: 94%;
  padding: 10px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px; line-height: 1.45;
}
.say--you {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent-strong); border-color: var(--accent-strong);
  color: #fff;
}
.say__who { display: block; margin-bottom: 2px; color: var(--text-3); font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.say--you .say__who { color: #fff; }
.say__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 7px; padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font: 500 11.5px/1.5 var(--f-mono);
}
.say__link .icon { width: 13px; height: 13px; }

.work { display: grid; gap: 0; margin-top: 4px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.work li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px; line-height: 1.4;
}
.work li:last-child { border-bottom: 0; }
.work__tick {
  display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
}
.work__tick .icon { width: 11px; height: 11px; stroke-width: 3; }
.work small { display: block; color: var(--text-3); font-size: 12.5px; }
.swatches { display: flex; gap: 4px; margin-top: 6px; }
.swatches i { width: 22px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(11, 26, 51, .1); }

/* while the request plays through: each part waits, runs, then lands (motion.js adds the classes) */
.stage.is-live [data-step] { opacity: 0; transform: translateY(6px); }
.stage.is-live [data-step].is-on { opacity: 1; transform: none; transition: opacity .35s ease-out, transform .35s ease-out; }
.stage.is-live .work { transition: opacity .35s ease-out; }
.stage.is-live .work:not(:has(li.is-on)) { opacity: 0; }
.stage.is-live .work li[data-step].is-on { opacity: .55; }
.stage.is-live .work li[data-step].is-done { opacity: 1; }
.stage.is-live .work li .work__tick .icon { opacity: 0; }
.stage.is-live .work li.is-on:not(.is-done) .work__tick { box-shadow: 0 0 0 3px rgba(43, 127, 255, .18); animation: tick-wait 1s ease-in-out infinite; }
.stage.is-live .work li.is-done .work__tick { background: var(--accent-strong); color: #fff; }
.stage.is-live .work li.is-done .work__tick .icon { opacity: 1; }
@keyframes tick-wait { 50% { box-shadow: 0 0 0 6px rgba(43, 127, 255, .06); } }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: caret .9s steps(2, jump-none) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* the film, in a white frame */
.film {
  display: flex; flex-direction: column;
  min-width: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.film__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 17px 17px 0 0; background: #15004E; }
.film__poster, .film__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__clip { opacity: 0; }
.film__clip.is-front { opacity: 1; }
.film__open {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--text);
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(11, 21, 38, .3);
  transition: background-color .15s, color .15s;
}
.film__pause {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(11, 21, 38, .62); color: #fff;
  cursor: pointer;
}
.film__pause:hover { background: rgba(11, 21, 38, .85); }
.film__pause:focus-visible { outline-color: #fff; }
.film__pause[hidden], .motion-toggle[hidden] { display: none; }
.film__pause .icon, .motion-toggle .icon { stroke-width: 2.5; }
.film__pause[aria-pressed="true"] .icon, .motion-toggle[aria-pressed="true"] .icon { fill: currentColor; stroke: none; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; margin-top: 14px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
}
.motion-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.film__open::before { content: ""; position: absolute; inset: -400px; }      /* the whole picture opens the film */
.film__open:hover { background: #fff; color: var(--accent-ink); }
.film__open .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.film__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px;
  padding: 11px 14px 12px;
  border-radius: 0 0 17px 17px;
  background: #fff;
  color: var(--text-2);
  font-size: 13.5px;
}
.film__cap b { color: var(--text); font-weight: 600; }
.film__meta { color: var(--accent-ink); font: 500 11.5px/1.5 var(--f-mono); }
.film__meta a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) {
  .film { padding: 6px; border-radius: 20px; }
  .film__screen { border-radius: 15px 15px 0 0; }
  .film__open { right: 8px; bottom: 8px; min-height: 34px; padding: 0 12px; font-size: 12.5px; }
  .film__cap { border-radius: 0 0 15px 15px; }
  .stage { padding: 6px; border-radius: 20px; }
}

/* ---------- sliding rows of clips (land.js builds them from showcase.json) ---------- */

.rows { display: grid; gap: clamp(16px, 2.2vw, 28px); overflow-x: clip; }
.row { --card-w: clamp(250px, 27vw, 420px); --gap: clamp(12px, 1.3vw, 18px); min-width: 0; }
.row--large { --card-w: clamp(280px, 34vw, 540px); }
.row__label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  min-height: 17px; margin-bottom: 2px;
  color: var(--text);
  font: 500 11.5px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.row__label span { display: inline-flex; align-items: center; gap: 9px; }
.row__label span::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.row__label small { color: var(--text-3); font: inherit; letter-spacing: .04em; text-transform: none; }
/* room above and below for a lifted card and its focus ring; nothing is clipped vertically */
.row__view {
  height: calc(var(--card-w) * .5625 + 28px);
  padding-block: 14px;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.row.is-dragging .row__view { cursor: grabbing; }
.row__track { display: flex; gap: var(--gap); width: max-content; will-change: transform; }

.card {
  position: relative; flex: none;
  width: var(--card-w); aspect-ratio: 16 / 9;
  padding: 0; border: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(11, 26, 51, .1), 0 10px 26px -14px rgba(29, 95, 209, .45);
  cursor: pointer;
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.row.is-dragging .card { cursor: grabbing; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card video { opacity: 0; transition: opacity .4s ease-out; }
.card.is-live video { opacity: 1; }
.card__name {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  padding: 6px 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  font: 600 12.5px/1.2 var(--f-sans); letter-spacing: -0.005em;
  box-shadow: 0 2px 8px rgba(11, 21, 38, .22);
}
.card__play {
  position: absolute; right: 10px; top: 10px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(11, 21, 38, .62); color: #fff;
  opacity: 0; transition: opacity .2s;
}
.card__play .icon { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; stroke: none; }
.card:hover, .card:focus-visible { transform: translateY(-5px) scale(1.018); box-shadow: 0 0 0 2px var(--accent), 0 22px 44px -18px rgba(29, 95, 209, .7); z-index: 1; }
.card:hover .card__play, .card:focus-visible .card__play, .rows.is-still .card__play { opacity: 1; }
.card:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 16px; }

/* the slim strip under the hero: the same cards, small */
.rows--strip { margin-top: clamp(28px, 4vw, 48px); }
.rows--strip .row { --card-w: clamp(150px, 15.5vw, 232px); --gap: clamp(8px, 1vw, 12px); }
.rows--strip .row__view { height: calc(var(--card-w) * .5625 + 16px); padding-block: 8px; }
.rows--strip .card { border-radius: 12px; }
.rows--strip .card__name { left: 7px; bottom: 7px; padding: 4px 8px; font-size: 11px; }
.rows--strip .card__play { display: none; }
.rows--strip .card:hover { transform: translateY(-3px) scale(1.03); }

/* reduced motion: nothing slides; each row is a strip to scroll, posters only, a play mark on every card */
.rows.is-still .row__view { height: auto; overflow-x: auto; cursor: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rows.is-still .row__track { padding-inline: var(--gutter); }
.rows.is-still .card { scroll-snap-align: start; }

/* a clip opened large */
.lightbox {
  width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 8px; border: 0; border-radius: 22px;
  background: #fff; color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(11, 21, 38, .6);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(11, 21, 38, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 190px); aspect-ratio: 16 / 9; border-radius: 15px; background: var(--navy); }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 10px 8px; }
.lightbox__text { flex: 1 1 320px; min-width: 0; }
.lightbox__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.lightbox__line { margin-top: 2px; color: var(--text-2); font-size: 14.5px; }
.lightbox__credit { margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.lightbox__credit a { text-decoration: underline; text-underline-offset: 2px; }
.lightbox__credit:empty { display: none; }
.lightbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lightbox__actions .btn .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.lightbox__step {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--text);
  cursor: pointer;
}
.lightbox__step:hover { border-color: var(--accent); color: var(--accent-ink); }
.lightbox__step--prev .icon { transform: rotate(180deg); }
.lightbox__close {
  position: absolute; right: 18px; top: 18px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(11, 21, 38, .7); color: #fff;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--navy); }
.lightbox__close:focus-visible { outline-color: #fff; }
.lightbox__close .icon { width: 18px; height: 18px; stroke-width: 2.25; }
html:has(.lightbox[open]) { overflow: hidden; }
@media (max-width: 520px) {
  .lightbox__actions { width: 100%; }
  .lightbox__actions .btn { flex: 1 1 auto; }
}

/* four things that are true of every video */
.truths {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
}
.truths li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 18px 20px; border-right: 1px solid var(--line); }
.truths li:last-child { border-right: 0; }
.truths .icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); }
.truths b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.truths span { display: block; margin-top: 2px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 1120px) and (min-width: 861px) {
  .truths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .truths li:nth-child(2) { border-right: 0; }
  .truths li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .truths { grid-template-columns: minmax(0, 1fr); }
  .truths li { border-right: 0; border-bottom: 1px solid var(--line); }
  .truths li:last-child { border-bottom: 0; }
}

/* ---------- how it works ---------- */

/* the steps on the right, the same request playing through on the left */
.how { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.how .stage { order: -1; }
.flow { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--text); }
.flow li {
  counter-increment: step;
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.flow li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  font: 500 13px/1 var(--f-mono);
}
.flow h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.75; }
.flow p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how .stage { order: 0; max-width: 480px; }
}

/* the one line that connects an assistant */
.code {
  margin-top: 14px;
  overflow: hidden;
  background: var(--navy);
  color: var(--navy-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.code__bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px 0 14px;
  border-bottom: 1px solid var(--navy-line);
  background: var(--navy-2);
  overflow-x: auto;
}
.code__tabs { display: flex; gap: 4px; }
.code__title { margin-right: 10px; padding-bottom: 8px; color: var(--navy-dim); font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.code__tab {
  margin-bottom: -1px;
  padding: 9px 10px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--navy-dim);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.code__tab:hover { color: #fff; }
.code__tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent-2); }
.code__tab:focus-visible, .code__copy:focus-visible { outline-color: var(--accent-2); }

.code__copy {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 7px auto;
  min-height: 30px; padding: 0 10px;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  background: none;
  color: var(--navy-dim);
  font-size: 13px;
  cursor: pointer;
}
.code__copy:hover { color: #fff; border-color: #34496F; }

.code__pre {
  padding: 18px 20px;
  overflow-x: auto;
  font: 400 13px/1.75 var(--f-mono);
  tab-size: 2;
}
.code__pre code { font-size: inherit; }
.code__pre[hidden] { display: none; }
.t-str { color: #A5D6FF; } .t-prop { color: #9BE3B0; } .t-num { color: #F5B971; } .t-key { color: #C7A6FF; } .t-com { color: #8FA3C4; }
.code__foot { padding: 12px 20px 14px; border-top: 1px solid var(--navy-line); color: var(--navy-dim); font-size: 13.5px; }
@media (max-width: 600px) {
  .code__title { display: none; }
  .code__bar { padding-left: 6px; }
  .code__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .code__pre { padding: 16px; font-size: 12.5px; }
}
.code__foot b { color: #fff; font-weight: 500; }
.code__foot .link { margin-left: 6px; color: #A5D6FF; }

/* ---------- what a style is: two kinds of film, and what is never copied ---------- */

.grammar { margin-top: clamp(40px, 5vw, 64px); }
.grammar__head { max-width: 46em; margin-bottom: 20px; }
.grammar__head h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.2; }
.grammar__head p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kind { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.kind h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.kind h3 .icon { color: var(--accent-ink); }
.kind p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 700px) { .kinds { grid-template-columns: minmax(0, 1fr); } }

.stance {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  margin-top: 14px; padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #fff);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.stance .icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #fff; color: var(--accent-ink); }
.stance p { color: var(--text); font-size: 15px; line-height: 1.55; }
.stance b { font-weight: 600; }

/* ---------- handled for you ---------- */

.handled {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
}
.handled li {
  display: flex; flex-direction: column;
  padding: clamp(20px, 2.6vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.handled .icon {
  width: 36px; height: 36px;
  padding: 9px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.handled h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; }
.handled p { margin-top: 6px; color: var(--text-2); font-size: 14px; }
@media (max-width: 960px) { .handled { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .handled { grid-template-columns: minmax(0, 1fr); } }

/* ---------- channel memory ---------- */

.memory { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.memory .lede { margin-top: 16px; }
.memory__more { margin-top: 20px; color: var(--text-2); font-size: 15px; }
.ledger { border-top: 1px solid var(--text); }
.ledger li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ledger__k { color: var(--accent-ink); font: 500 11.5px/1.7 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.ledger h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }
.ledger p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 900px) { .memory { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ledger li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- where things run ---------- */

.where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.where__col { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.where__col--yours { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.where__col h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.where__col h3 .icon { color: var(--accent-ink); }
.where__col ul { display: grid; gap: 11px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.where__col li { display: flex; align-items: flex-start; gap: 10px; }
.where__col li .icon { margin-top: 3px; color: var(--accent-ink); stroke-width: 2.25; }
.where__col li b { color: var(--text); font-weight: 600; }
.where__note { margin-top: 16px; color: var(--text-3); font-size: 14px; text-align: center; }
@media (max-width: 760px) { .where { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plans--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan {
  display: flex; flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 22px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.plan__desc { min-height: 5.9em; margin-top: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 16px; }
.plan__amt { font-size: 34px; font-weight: 550; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan__unit { color: var(--text-3); font-size: 13.5px; }

.plan__facts { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.plan__facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.plan__facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.plan__facts dt { color: var(--text-3); font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.plan__facts dd { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.plan__facts dd b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__facts dd.plan__big b { font-size: 18px; letter-spacing: -0.02em; }

@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan__desc { min-height: 3em; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .plan__desc { min-height: 0; }
}

.plans__note { max-width: 70em; margin: 22px auto 0; color: var(--text-3); font-size: 13.5px; line-height: 1.6; text-align: center; }

/* "how many videos is that": two sliders and the plan that covers them */
.est {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-top: 14px; padding: clamp(20px, 3vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.est h3, .topup h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.est__sub { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.est__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; margin-top: 18px; }
.est__row label { font-size: 14.5px; font-weight: 550; }
.est__row output { font: 500 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.est__row input[type="range"] { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; accent-color: var(--accent-strong); cursor: pointer; }
.est__out { padding: 20px 22px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); }
.est__label { color: var(--accent-ink); font: 500 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.est__credits { margin-top: 4px; font-size: 30px; font-weight: 550; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est__credits small { color: var(--text-2); font-size: 14.5px; font-weight: 400; letter-spacing: 0; }
.est__plan { margin-top: 10px; color: var(--text); font-size: 15px; }
.est__plan b { font-weight: 600; }
.est__fine { margin-top: 10px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 860px) { .est { grid-template-columns: minmax(0, 1fr); } }

/* top-ups */
.topup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-top: 14px; padding: clamp(20px, 3vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.topup p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.topup__rules { display: grid; gap: 9px; margin-top: 16px; font-size: 14.5px; color: var(--text-2); }
.topup__rules li { display: flex; align-items: flex-start; gap: 10px; }
.topup__rules .icon { margin-top: 3px; color: var(--accent-ink); stroke-width: 2.25; }
.topup__rules b { color: var(--text); font-weight: 600; }
.topup__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.topup__pick label { font-size: 14px; font-weight: 550; }
.topup__pick select {
  min-height: 40px; padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F5069' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  color: var(--text); font: 500 14.5px/1 var(--f-sans);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.packs li { padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); text-align: center; }
.packs b { display: block; font-size: 22px; font-weight: 550; letter-spacing: -0.03em; }
.packs span { display: block; margin-top: 2px; color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.packs__rate { margin-top: 10px; color: var(--text-3); font-size: 13px; }
@media (max-width: 860px) { .topup { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- faq + contact ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__contact { margin-top: 16px; color: var(--text-2); }

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.faq__list details[open] summary::after { content: "−"; }
.faq__list details p { max-width: 44em; padding: 0 48px 20px 0; color: var(--text-2); font-size: 15px; }

@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .faq__list details p { padding-right: 0; } }

.contact { margin-top: 26px; display: grid; gap: 12px; scroll-margin-top: 90px; }
.contact h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.contact label { display: grid; gap: 6px; color: var(--text); font-size: 13.5px; font-weight: 550; }
.contact input, .contact textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text); font: 400 15px/1.4 var(--f-sans);
}
.contact textarea { resize: vertical; }
.contact :is(input, textarea):focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: var(--accent-strong); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form__status { color: var(--text-2); font-size: 14px; }
.form__status.is-bad { color: #B3261E; }

/* ---------- closing call to action ---------- */

.cta-wrap { padding-bottom: clamp(64px, 8vw, 96px); }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(48px, 7vw, 84px) 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, #1D6AE5 0%, #1558C9 55%, #0F3F9A 100%);
  color: #fff;
  text-align: center;
}
.cta .h2 { max-width: 18em; }
.cta > p { max-width: 36em; color: #fff; font-size: 16.5px; }
.cta .btn-row { justify-content: center; margin-top: 10px; }
.cta > .cta__note { font-size: 13.5px; }
.cta :focus-visible { outline-color: #fff; }
/* a second field of digits, white on blue */
.cta__glyphs { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; }
.cta__glyphs canvas { display: block; width: 100%; height: 100%; }

/* ---------- footer ---------- */

.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .86); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__brand p { max-width: 26em; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.footer h2 { margin-bottom: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
.footer nav ul { display: grid; gap: 4px; }
.footer nav a { display: inline-block; padding: 4px 0; color: var(--text-2); font-size: 14px; }
.footer nav a:hover { color: var(--accent-ink); }

.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.footer__credits { flex-basis: 100%; font-size: 12.5px; }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }

.footer__base--bare { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.legal h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 550; letter-spacing: -0.035em; line-height: 1.1; }
.legal .lede { margin-top: 14px; }
.legal__meta { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal__tabs a { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.legal__tabs a:hover { border-color: var(--accent); color: var(--accent-ink); }
.legal__tabs a[aria-current] { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.legal h2 { margin-top: 38px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.legal > p, .legal > ul { margin-top: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.68; }
.legal > ul { padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.legal > p a, .legal > ul a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__draft { margin-top: 22px; padding: 12px 14px; border: 1px solid #F1D08A; background: #FFF7E0; border-radius: 10px; color: #6B4A00; font-size: 14px; }
.legal mark { background: #FFE9A8; color: #5A3D00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============ the hero's big "watch with sound" ============ */
.film__open--big { min-height: 46px; padding: 0 20px; font-size: 15px; gap: 10px; }
.film__open--big .icon { width: 15px; height: 15px; }
.film__open--big small { font: 500 12px/1 var(--f-mono); color: var(--text-3); }
.film--hero .film__screen { background: #0A0A0C; }
@media (max-width: 480px) { .film__open--big { min-height: 38px; padding: 0 14px; font-size: 13px; } }

/* ============ SOUND DESIGN: the film, and its sound plan lighting up under it ============ */
.sd {
  --c-can: #2B7FFF; --c-weight: #0B1A33; --c-air: #67C3FF; --c-ink: #E0333A; --c-objects: #E8960C; --c-silence: #93A7C8; --c-score: #1D6AE5;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.sd--can { --c: var(--c-can); } .sd--weight { --c: var(--c-weight); } .sd--air { --c: var(--c-air); }
.sd--ink { --c: var(--c-ink); } .sd--objects { --c: var(--c-objects); } .sd--silence { --c: var(--c-silence); } .sd--score { --c: var(--c-score); }

.sd__top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 10px; }
.sd__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #0A0A0C; }
.sd__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0A0A0C; }
.sd__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: var(--text);
  font: 600 16px/1 var(--f-sans); white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .2s, background-color .15s, color .15s;
}
.sd__play:hover { color: var(--accent-ink); transform: translate(-50%, -50%) scale(1.04); }
.sd__play .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.sd.is-started .sd__play { display: none; }

.sd__now {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.sd__clock { font: 500 12px/1 var(--f-mono); color: var(--text-3); letter-spacing: .02em; }
.sd__score { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.sd__score span { font: 500 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.sd__score b { color: var(--text); font-weight: 650; }
.sd__score-line { font-size: 13px; line-height: 1.5; color: var(--text-2); min-height: 3em; }
.sd__card {
  --c: var(--accent-2);
  margin-top: auto;
  padding: 14px 14px 15px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  box-shadow: var(--shadow-sm);
}
.sd__card.is-new { animation: sd-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sd-in { from { opacity: 0; transform: translateY(8px); } }
.sd__chip { font: 500 11px/1.3 var(--f-mono); color: var(--accent-ink); letter-spacing: .02em; }
.sd__card h3 { margin-top: 6px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; color: var(--text); }
.sd__card p { margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.sd__card.sd--weight { border-left-color: var(--text); }

/* the timeline */
.sd__timeline { margin-top: 10px; padding: 14px 16px 10px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.sd__lanes { position: relative; display: grid; gap: 8px; cursor: pointer; }
.sd__lane-name { display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.sd__lane-body { position: relative; }
[data-sd-score] { height: 30px; }
.sd__chap {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center; overflow: hidden;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid #CFE2FF;
  color: var(--accent-ink);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.sd__chap span { overflow: hidden; text-overflow: ellipsis; }
.sd__chap.is-on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.sd__sil {
  position: absolute; top: -3px; bottom: -3px; z-index: 1;
  border-radius: 5px;
  background: repeating-linear-gradient(135deg, #fff 0 3px, #DCE7F9 3px 6px);
  border: 1px solid var(--line-strong);
  transition: box-shadow .25s;
}
.sd__sil.is-on { box-shadow: 0 0 0 3px rgba(43, 127, 255, .35); border-color: var(--accent); }
[data-sd-mix] { height: 56px; }
[data-sd-mix] svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd__wave { fill: var(--line-strong); }
.sd__wave--on { fill: var(--accent); }
[data-sd-sounds] { height: 52px; }
.sd__mark {
  position: absolute; top: calc(6px + var(--row) * 14px);
  width: 14px; height: 14px; margin-left: -7px; padding: 0;
  border: 2px solid var(--c); border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform .2s, background-color .2s;
}
.sd__mark::before { content: ""; position: absolute; inset: -7px; }
.sd__mark.is-past { background: var(--c); }
.sd__mark.is-hit { transform: scale(1.5); z-index: 2; }
.sd__mark.is-hit::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c); animation: sd-ring 1.2s ease-out forwards; }
@keyframes sd-ring { to { inset: -16px; opacity: 0; } }
.sd__mark:hover { transform: scale(1.35); }
.sd__head { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; pointer-events: none; opacity: .0; transition: opacity .2s; }
.sd.is-started .sd__head { opacity: .85; }
.sd__ticks { position: relative; height: 16px; margin-top: 6px; font: 400 10.5px/16px var(--f-mono); color: var(--text-3); }
.sd__ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.sd__ticks span:first-child { transform: none; }
.sd__ticks .sd__tick-end { right: 0; transform: none; }

/* the palette and the counts */
.sd__foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.sd__palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sd__palette li { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sd__dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--c); }
.sd__palette b { font-size: 14px; font-weight: 600; }
.sd__count { margin-left: 8px; font: 500 11px/1 var(--f-mono); color: var(--text-3); }
.sd__palette p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.sd__facts { display: grid; gap: 8px; align-content: start; }
.sd__facts li { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; line-height: 1.4; }
.sd__facts b { flex: none; min-width: 1.6em; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.sd__note { margin-top: 14px; font-size: 13.5px; color: var(--text-3); text-align: center; }

@media (max-width: 860px) {
  .sd__top, .sd__foot { grid-template-columns: minmax(0, 1fr); }
  .sd__now { min-height: 0; }
}
@media (max-width: 480px) {
  .sd { padding: 6px; border-radius: 20px; }
  .sd__timeline { padding: 12px 10px 8px; }
  .sd__chap { padding: 0 4px; font-size: 10.5px; }
  .sd__play { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .sd__card h3 { font-size: 17px; }
}

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

/* the hero's sound switch: a small round button in the picture's top-right corner */
.film__sound {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--text);
  box-shadow: 0 4px 14px rgba(11, 21, 38, .28);
  cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
.film__sound:hover { color: var(--accent-ink); transform: scale(1.06); }
.film__sound svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film__sound .snd-on, .film__sound[aria-pressed="true"] .snd-off { display: none; }
.film__sound[aria-pressed="true"] .snd-on { display: block; }
.film__sound[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }
@media (max-width: 480px) { .film__sound { top: 8px; right: 8px; width: 34px; height: 34px; } }
