/* =========================================================
   Sobo Motion · round 3
   Two worlds: NIGHT (the painting, the films) and PAPER (the deal, pricing, the brief).
   Instrument Serif for display (one italic word per headline), Instrument Sans for the rest.
   Red is rare: dots and the one action.
   ========================================================= */

:root {
  --night: #0b0d16;
  --night-2: #12151f;
  --night-3: #191c28;
  --ink: #0E0E0E;
  --paper: #F2F0EB;
  --paper-2: #E9E6DE;
  --red: #FF3B2F;
  --err: #B3261E;

  --on-n: rgba(242, 240, 235, .92);
  --mute-n: rgba(242, 240, 235, .56);
  --faint-n: rgba(242, 240, 235, .14);
  --on-p: #0E0E0E;
  --mute-p: rgba(14, 14, 14, .58);
  --faint-p: rgba(14, 14, 14, .13);
  --graphite: #3A3936;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --hd: 72px;
  --g: clamp(20px, 4.4vw, 72px);
  --max: 1520px;
  /* the page's edge: the gutter, or the centred container on very wide screens (resolves against the box it's used in) */
  --edge: max(var(--g), calc((100% - var(--max)) / 2));
}
@media (max-width: 599px) { :root { --hd: 60px; --g: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-n);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 99px;
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.label {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-n);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
[data-tone="paper"] .label { color: var(--mute-p); }
.h2 {
  margin: 18px 0 0; font: 400 clamp(40px, 5.4vw, 84px)/.98 var(--serif); letter-spacing: -.012em;
  text-wrap: balance;
}
.h2 em { font-style: italic; }

/* ---------- pills: one family everywhere ---------- */
.pill {
  --dot: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: 50px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15.5px/1 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color .35s ease, color .35s ease, box-shadow .45s var(--ease-out), border-color .35s ease, translate .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.pill__dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot);
  transition: transform .5s var(--ease-out);
}
.pill:hover .pill__dot, .pill:focus-visible .pill__dot { transform: scale(1.6); }
.pill:active { translate: 0 1px; }
.pill--sm { height: 40px; padding: 0 18px; font-size: 14.5px; gap: 9px; }
.pill--lg { height: 56px; padding: 0 30px; font-size: 16px; }
/* primary on night */
.pill--solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 24px -12px rgba(0, 0, 0, .6); }
.pill--solid:hover { background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 34px -14px rgba(0, 0, 0, .7); }
/* primary on paper */
.pill--ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 26px -16px rgba(14, 14, 14, .7); }
.pill--ink:hover { background: #000; box-shadow: 0 16px 32px -16px rgba(14, 14, 14, .75); }
/* secondary on night: glass */
.pill--glass {
  color: var(--paper); background: rgba(242, 240, 235, .08);
  box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .24);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
}
.pill--glass:hover { background: rgba(242, 240, 235, .14); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .42); }
/* secondary on paper: hairline */
.pill--line { color: var(--ink); background: rgba(242, 240, 235, .7); box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .24); }
.pill--line:hover { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .7); }
.pill__arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.pill:hover .pill__arrow { transform: translateX(4px); }
.pill__play {
  width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: transform .5s var(--ease-out);
}
.pill:hover .pill__play { transform: scale(1.2); }
/* magnetic pull (desktop): JS sets --mx/--my */
.mag { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: background-color .35s ease, color .35s ease, box-shadow .45s var(--ease-out), transform .6s var(--ease-out), translate .5s var(--ease-out); }

/* =========================================================
   HEADER
   ========================================================= */
.hd {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--hd);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--edge);
  transition: transform .6s var(--ease-out), background-color .4s ease, box-shadow .4s ease;
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: rgba(11, 13, 22, .62); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 -1px 0 rgba(242, 240, 235, .07);
}
.hd.is-solid::before { opacity: 1; }
.hd.is-away { transform: translateY(-105%); }
/* one action on the first screen (the hero's own); the header's button joins once you scroll */
.hd:not(.is-solid) .hd__cta { display: none; }
/* the "s." icon on its own: paper square on night, ink square on paper; the link is a 48px tap target */
.hd__logo { display: block; flex: none; margin: 0 auto 0 -4px; padding: 4px; border-radius: 14px; line-height: 0; }
.hd__mark { display: block; width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 4px 18px -6px rgba(5, 7, 16, .5); transition: transform .5s var(--ease-out), box-shadow .4s ease; }
.hd__mark-bg { fill: var(--paper); transition: fill .35s ease; }
.hd__mark-s { fill: var(--ink); transition: fill .35s ease; }
.hd__logo:hover .hd__mark { transform: rotate(-4deg) scale(1.04); }
.hd__logo:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hd[data-tone="paper"] .hd__mark { box-shadow: none; }
.hd[data-tone="paper"] .hd__mark-bg { fill: var(--ink); }
.hd[data-tone="paper"] .hd__mark-s { fill: var(--paper); }

/* going to the brief: a sheet of paper that the page moves under on the long way down */
.veil { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; background: var(--paper); transition: opacity .42s cubic-bezier(.65, 0, .35, 1); }
.veil.is-on { opacity: 1; }
.form.is-arrive { animation: form-arrive 1.1s var(--ease-out) both; }
@keyframes form-arrive {
  0% { transform: translateY(26px); box-shadow: 0 0 0 1px rgba(14, 14, 14, .1), 0 40px 80px -50px rgba(14, 14, 14, .35); }
  45% { box-shadow: 0 0 0 1px rgba(14, 14, 14, .16), 0 0 0 7px rgba(255, 59, 47, .07), 0 50px 90px -46px rgba(14, 14, 14, .42); }
  100% { transform: none; box-shadow: 0 0 0 1px rgba(14, 14, 14, .1), 0 40px 80px -50px rgba(14, 14, 14, .35); }
}
@media (prefers-reduced-motion: reduce) { .form.is-arrive { animation: none; } .veil { display: none; } }
.hd__nav { display: flex; gap: 30px; }
.hd__nav a { position: relative; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--on-n); opacity: .8; transition: opacity .3s ease, color .35s ease; }
/* at the top, over the hero's dark sheet */
.hd:not(.is-solid) .hd__nav a { color: var(--paper); opacity: .78; }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.hd__nav a:hover { opacity: 1; }
.hd__nav a:hover::after { transform: scaleX(1); }
/* over paper */
.hd[data-tone="paper"]::before { background: rgba(242, 240, 235, .78); box-shadow: inset 0 -1px 0 rgba(14, 14, 14, .08); }
.hd[data-tone="paper"] .hd__nav a { color: var(--ink); }
.hd[data-tone="paper"] .hd__cta { color: var(--paper); background: var(--ink); box-shadow: none; }
@media (max-width: 760px) {
  .hd__nav { display: none; }
  .hd__mark { width: 38px; height: 38px; }
}

/* =========================================================
   1 · HERO (round 5): dark, the engraved sheet moving behind one framed film. Headline left, film right.
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1080px; overflow: hidden; background: var(--night); color: var(--paper); isolation: isolate; }
.hero__gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.hero.is-live .hero__gl { opacity: 1; }
/* no WebGL: plain straight lines in the same colour, fading out toward the films */
.hero.is-static .hero__gl { display: none; }
.hero.is-static::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(242, 240, 235, .07) 0 1.4px, transparent 1.4px 15px);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero__in {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 5.3fr) minmax(0, 6.7fr); align-items: center; gap: clamp(40px, 4.4vw, 84px);
  padding: calc(var(--hd) + 12px) var(--edge) clamp(40px, 7vh, 88px);
}
.hero__copy { display: flex; flex-direction: column; gap: clamp(30px, 3.4vw, 46px); }
.hero__h { margin: 0; font: 400 clamp(56px, 7vw, 124px)/.92 var(--serif); letter-spacing: -.018em; }
.hero__h .ln { display: block; white-space: nowrap; }
.hero__h em { font-style: italic; letter-spacing: -.01em; }
.hero__sub { margin: clamp(16px, 1.6vw, 24px) 0 0; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.4; color: rgba(242, 240, 235, .74); }
.hero__act { display: flex; }

/* the film: a dark frame on the sheet, a soft warm glow under it, leaning a few px with the mouse (hero.js) */
.hero__film {
  position: relative; display: block; color: var(--paper); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0);
}
.hero__glow {
  position: absolute; z-index: -1; inset: -18% -14% -26%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 54%, rgba(255, 196, 140, .26), rgba(255, 196, 140, .07) 55%, rgba(255, 196, 140, 0) 75%);
}
.hero__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  background: #07080e;
  box-shadow:
    0 0 0 1px rgba(242, 240, 235, .10),
    0 0 0 9px rgba(20, 23, 35, .92),
    0 0 0 10px rgba(242, 240, 235, .07),
    0 70px 120px -40px rgba(0, 0, 0, .85),
    0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: box-shadow .6s var(--ease-out);
}
.hero__poster, .hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__vid { opacity: 0; transition: opacity .8s ease; }
.hero.is-playing .hero__vid { opacity: 1; }
.hero__film:hover .hero__frame, .hero__film:focus-visible .hero__frame {
  box-shadow: 0 0 0 1px rgba(242, 240, 235, .18), 0 0 0 9px rgba(24, 27, 40, .95), 0 0 0 10px rgba(242, 240, 235, .12), 0 80px 130px -40px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.hero__film:focus-visible { outline: 2px solid var(--red); outline-offset: 16px; border-radius: 12px; }
.hero__play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px; border-radius: 99px; white-space: nowrap;
  font: 500 13.5px/1 var(--sans); color: var(--paper);
  background: rgba(11, 13, 22, .42); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .26);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, opacity 1.2s var(--ease-out);
}
.hero__play .pill__play { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; }
.hero__film:hover .hero__play, .hero__film:focus-visible .hero__play { background: rgba(242, 240, 235, .94); color: var(--ink); box-shadow: none; }
.hero__film:hover .pill__play { transform: scale(1.15); }

/* intro: the words rise, the film fades up (only when JS runs) */
.js .hero__h .ln, .js .hero__sub, .js .hero__act, .js .hero__film { opacity: 0; transition: opacity 1.2s var(--ease-out), translate 1.4s var(--ease-out); translate: 0 18px; }
.js .hero__film { translate: 0 24px; transition: opacity 1.6s var(--ease-out), translate 1.8s var(--ease-out), transform .2s linear; }
.js .hero.is-in .hero__h .ln, .js .hero.is-in .hero__sub, .js .hero.is-in .hero__act, .js .hero.is-in .hero__film { opacity: 1; translate: none; }
.js .hero.is-in .hero__h .ln:nth-child(2) { transition-delay: .1s; }
.js .hero.is-in .hero__sub { transition-delay: .26s; }
.js .hero.is-in .hero__act { transition-delay: .4s; }
.js .hero.is-in .hero__film { transition-delay: .2s, .2s, 0s; }
@media (prefers-reduced-motion: reduce) { .js .hero__h .ln, .js .hero__sub, .js .hero__act, .js .hero__film { opacity: 1; translate: none; transition: none; } }

/* narrow: words, then the film, then the one button */
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100svh; max-height: none; }
  .hero__in { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0; min-height: 100svh;
    padding: calc(var(--hd) + 20px) var(--g) max(32px, env(safe-area-inset-bottom)); }
  .hero__copy { display: contents; }
  .hero__words { order: 1; }
  .hero__film { order: 2; margin: clamp(32px, 6vh, 52px) 0 0; }
  .hero__act { order: 3; margin-top: clamp(36px, 6vh, 56px); }
  .hero__act .pill { flex: 1 1 auto; }
  .hero__h { font-size: clamp(48px, 13.4vw, 84px); }
  .hero__sub { margin-top: 14px; font-size: 18px; }
  .hero__frame { border-radius: 7px; box-shadow: 0 0 0 1px rgba(242, 240, 235, .10), 0 0 0 6px rgba(20, 23, 35, .92), 0 0 0 7px rgba(242, 240, 235, .07), 0 40px 70px -30px rgba(0, 0, 0, .85); }
  .hero__play { left: 10px; bottom: 10px; height: 30px; padding: 0 12px; font-size: 12px; }
  .hero__glow { inset: -30% -10% -40%; }
}

/* =========================================================
   2 · THE FILMS (round 6): one calm row, built from films-list.js
   Two films sit side by side (.row--fit). More become a row (.row--live): the film in the middle is in focus,
   its neighbours wait smaller and dimmed (--p: 0 in the middle, 1 a film away, set by films.js as it scrolls).
   Each frame floats on a soft shadow (the hero's framed-film look); hover plays it muted in place.
   ========================================================= */
.films { position: relative; background: var(--night); padding: clamp(40px, 4.5vw, 72px) 0 clamp(96px, 11vw, 170px); }
.row { --gap: clamp(20px, 2.4vw, 40px); --cw: min(800px, 58vw); --sc: .14; --dim: .58; position: relative; }
.row__track { list-style: none; margin: 0; padding: 0; display: flex; column-gap: var(--gap); position: relative; }
.row__item { flex: none; min-width: 0; }

/* side by side: centred, sharing the width of the old wall */
.row--fit .row__track { justify-content: center; max-width: calc(1320px + 2 * var(--g)); margin: 0 auto; padding-inline: var(--g); }
.row--fit .row__item { flex: 1 1 0; max-width: 680px; }

/* the row: native scrolling with a film always settling in the middle; the edges fade into the night */
.row--live .row__track {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: calc((100% - var(--cw)) / 2); padding-block: 8px 40px; margin-block: -8px -40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.row--live .row__track::-webkit-scrollbar { display: none; }
.row--live .row__item {
  width: var(--cw); scroll-snap-align: center;
  transform: scale(calc(1 - var(--sc) * var(--p, 0))); opacity: calc(1 - var(--dim) * var(--p, 0));
}
.row--live .row__item .reel__cap { opacity: calc(1 - 1.6 * var(--p, 0)); }
.row--live.is-drag .row__track { scroll-snap-type: none; cursor: grabbing; }
.row--live.is-drag .reel { cursor: grabbing; }
.row--live .row__item:not(.is-active) .reel__play { opacity: 0; }

.reel { display: block; text-decoration: none; color: var(--paper); -webkit-tap-highlight-color: transparent; outline: none; -webkit-user-drag: none; user-select: none; }
.reel__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: 6px; background: #07080e;
  box-shadow: 0 0 0 1px rgba(242, 240, 235, .07), 0 44px 80px -38px rgba(0, 0, 0, .85), 0 16px 36px -22px rgba(0, 0, 0, .6);
  transition: box-shadow .6s var(--ease-out);
}
.reel__img, .reel__bg, .reel__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__img { transition: transform 1.2s var(--ease-out), filter .6s ease; filter: brightness(.9) saturate(.95); }
.reel__bg { display: none; }
/* the upright film stands in the middle; the frame around it is the same film, blurred and dimmed */
.reel.is-tall .reel__bg { display: block; filter: blur(26px) brightness(.4) saturate(1.1); transform: scale(1.25); }
.reel.is-tall .reel__img { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.reel.is-tall .reel__vid { object-fit: contain; }
.reel__vid { z-index: 2; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.reel__vid.is-on { opacity: 1; }

/* a small round play mark, quiet until the film is pointed at */
.reel__play {
  position: absolute; z-index: 3; left: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper);
  background: rgba(11, 13, 22, .42); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.85); transition: opacity .45s ease, transform .6s var(--ease-out), background-color .35s ease, color .35s ease;
}
.reel__play::before {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
}
.reel:hover .reel__play, .reel:focus-visible .reel__play, .is-coarse .reel__play { opacity: 1; transform: scale(1); }
.reel:hover .reel__play { background: rgba(242, 240, 235, .92); color: var(--ink); box-shadow: none; }

.reel:hover .reel__frame, .reel:focus-visible .reel__frame {
  box-shadow: 0 0 0 1px rgba(242, 240, 235, .16), 0 60px 100px -40px rgba(0, 0, 0, .9), 0 20px 44px -22px rgba(0, 0, 0, .65);
}
.reel:hover .reel__img, .reel:focus-visible .reel__img { filter: none; }
.reel:not(.is-tall):hover .reel__img { transform: scale(1.025); }
.reel:focus-visible .reel__frame { outline: 2px solid var(--red); outline-offset: 4px; }

/* what the product does, and the tiny tag: one quiet line, centred under the film */
.reel__cap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; min-width: 0; }
.reel__name {
  font: 400 clamp(20px, 1.7vw, 26px)/1.1 var(--serif); letter-spacing: -.005em;
  color: rgba(242, 240, 235, .74); transition: color .45s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-right: .06em;
}
.row--live .is-active .reel__name { color: var(--paper); }
.reel:hover .reel__name, .reel:focus-visible .reel__name { color: var(--paper); font-style: italic; }
.ex {
  flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px;
  font: 500 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(242, 240, 235, .5); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .16);
}

/* under the row: two hairline arrows and one mark per film, centred */
.row__nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: clamp(30px, 3.4vw, 48px); padding-inline: var(--g); }
.row__nav[hidden] { display: none; }
.row__btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--paper); background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .22);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.row__btn span { width: 9px; height: 9px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(2px) rotate(45deg); }
.row__btn--next span { transform: translateX(-2px) rotate(-135deg); }
.row__btn:hover:not(:disabled), .row__btn:focus-visible { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
.row__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.row__btn:disabled { opacity: .28; cursor: default; }
.row__marks { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.row__mark { border: 0; background: none; padding: 10px 4px; cursor: pointer; display: grid; place-items: center; }
.row__mark i { display: block; width: 6px; height: 6px; border-radius: 99px; background: rgba(242, 240, 235, .26); transition: width .5s var(--ease-out), background-color .3s ease; }
.row__mark:hover i { background: rgba(242, 240, 235, .6); }
.row__mark.is-on i { width: 26px; background: var(--paper); }
.row__mark:focus-visible { outline: 2px solid var(--red); outline-offset: 0; border-radius: 99px; }
.row__nojs { text-align: center; }
.row__nojs a { color: var(--paper); }

/* the row rises in once */
.films--rise .row { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.2s var(--ease-out); }
.films--rise.is-in .row { opacity: 1; transform: none; }

/* secondary on night, quieter than glass: a hairline */
.pill--hair { color: var(--paper); background: transparent; box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .26); }
.pill--hair:hover, .pill--hair:focus-visible { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }

@media (max-width: 1000px) {
  .row { --cw: 70vw; }
}
@media (max-width: 600px) {
  .films { padding-top: 36px; }
  .row { --cw: 72vw; --gap: 12px; --sc: .08; --dim: .42; }
  .row--fit .row__track { flex-direction: column; row-gap: 36px; }
  .row--fit .row__item { flex: none; max-width: none; }
  .row--live .row__track { -webkit-mask-image: none; mask-image: none; }
  .reel__frame { border-radius: 4px; }
  .reel__play { left: 12px; bottom: 12px; width: 36px; height: 36px; }
  .reel__cap { margin-top: 14px; flex-direction: column; gap: 8px; }
  .reel__name { font-size: 21px; white-space: normal; text-wrap: balance; text-align: center; }
  .row__nav { gap: 14px; }
  .row__btn { width: 40px; height: 40px; }
}

/* =========================================================
   3 · THE BACK AND FORTH
   ========================================================= */
.deal { position: relative; background: var(--night); padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 130px); }
.deal__title {
  margin: 0 auto; padding: 0 var(--g); max-width: 14ch; text-align: center;
  font: 400 clamp(44px, 6vw, 92px)/.98 var(--serif); letter-spacing: -.012em; color: var(--paper);
}
.deal__sub { margin: 18px auto 0; padding: 0 var(--g); max-width: 46ch; text-align: center; font: 400 17px/1.45 var(--sans); color: var(--mute-n); }
.deal__stage { display: none; }
.deal__end { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); padding: 0 var(--g); }

/* ---- static storyboard ---- */
.sb {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(12px, 1.4vw, 20px);
  width: 100%; max-width: 1280px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--g);
}
.sb__panel { margin: 0; min-width: 0; }
.sb__art { --you: 66%; position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; container-type: inline-size; }
.sb__art--sobo { --you: 34%; }
.sb__art--sobo.sb__art--trio { --you: 16%; }
.sb__art--you.sb__art--trio { --you: 84%; }
.sb__half { position: absolute; top: 0; bottom: 0; }
.sb__half--paper { left: 0; width: var(--you); background: var(--paper); }
.sb__half--ink { right: 0; left: var(--you); background: var(--night-3); }
.sb__obj { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.sb__art--you .sb__obj { left: calc(var(--you) / 2); }
.sb__art--sobo .sb__obj { left: calc(var(--you) + (100% - var(--you)) / 2); }
.sb__dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--red); right: 0; top: 0; margin: -4px -4px 0 0; }
.sb__cap { margin: 16px 0 0; font: 400 clamp(20px, 1.7vw, 26px)/1.1 var(--serif); color: var(--paper); }
.sb__cap b, .dl__cap b { display: block; margin-bottom: 10px; font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--mute-n); }
.sb__cap span { display: block; margin-top: 6px; font: 400 14px/1.4 var(--sans); color: var(--mute-n); }
.sb__cap--fork p { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; }
.sb__cap--fork p b { flex-basis: 100%; }
.sb__cap--fork .mk { margin-right: 10px; transform: translateY(-2px); }
.sb .bcard--mini { width: 40cqw; }
.sb__trio { display: flex; gap: 2.5cqw; }
.sb__trio .dir { width: 24cqw; }
.sb__film .frame { width: 50cqw; }
.sb__fork { display: grid; gap: 4cqw; }
.sb__fork .frame { width: 34cqw; }
.sb__paid { position: absolute; left: calc(var(--you) + (100% - var(--you)) / 2); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--red); }
.sb__note { position: absolute; z-index: 3; padding: .5em .8em; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 max(9px, 2.6cqw)/1 var(--sans); white-space: nowrap; }
.sb__ver { position: absolute; left: 0; bottom: calc(100% + 6px); font: 500 max(9px, 2.6cqw)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-p); }
@media (max-width: 699px), (max-aspect-ratio: 1/1) {
  .sb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .sb__panel--fork, .sb__panel--rev { grid-column: 1 / -1; }
  .sb__panel--rev .sb__art { --you: 100%; aspect-ratio: 2 / 1; }
  .sb__panel--rev .sb__film .frame { width: 50cqw; }
  .sb__art { aspect-ratio: 1 / 1; }
  .sb__panel--fork .sb__art { aspect-ratio: 2 / 1; }
  .sb__panel--rev .sb__art { aspect-ratio: 2 / 1; }
  .sb__half--paper { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: var(--you); }
  .sb__half--ink { left: 0; right: 0; top: 0; bottom: auto; height: calc(100% - var(--you)); }
  .sb__art--you .sb__obj { left: 50%; top: calc(100% - var(--you) / 2); }
  .sb__art--sobo .sb__obj { left: 50%; top: calc((100% - var(--you)) / 2); }
  .sb__paid { left: 50%; top: calc((100% - var(--you)) / 2); }
  .sb .bcard--mini { width: 58cqw; }
  .sb__trio { gap: 4cqw; }
  .sb__trio .dir { width: 26cqw; }
  .sb__film .frame { width: 76cqw; }
  .sb__fork { grid-auto-flow: column; gap: 3cqw; }
  .sb__fork .frame { width: 28cqw; }
}

.mk { flex: none; display: inline-block; width: 15px; height: 10px; border-radius: 2px; vertical-align: 1px; }
.mk--yes { box-shadow: inset 0 0 0 1.5px var(--red); }
.mk--no { border: 1px dashed currentColor; opacity: .55; }

/* ---- shared pieces: brief card, direction cards, frames ---- */
.bcard {
  display: flex; flex-direction: column;
  background: #FBFAF6; color: var(--ink); border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(14, 14, 14, .1), 0 24px 48px -28px rgba(14, 14, 14, .35);
  padding: 10% 9%;
}
.bcard__row { position: relative; display: block; height: 8px; margin-top: 9%; }
.bcard__row i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 2px; background: rgba(14, 14, 14, .12); }
.bcard__row--name {
  height: auto; margin: 0 0 3%; padding: 0 0 .5em; display: flex; align-items: center;
  border-bottom: 1px solid rgba(14, 14, 14, .28);
  font: 400 18px/1.2 var(--serif); white-space: nowrap; min-height: 1.75em;
}
.bcard--mini { padding: 9% 9%; }
.bcard--mini .bcard__row--name { font-size: max(10px, 5cqw); }
.bcard--mini .bcard__row { height: max(3px, 1.7cqw); }

.dir { position: relative; display: block; }
.dir__tag { position: absolute; left: 0; bottom: calc(100% + 9px); font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--mute-n); }
.sb .dir__tag { font-size: max(9px, 3.2cqw); bottom: calc(100% + 4px); }
.dir.is-off { opacity: .18; transform: translateY(6%); }
.dir.is-picked .tc__screen { box-shadow: 0 0 0 2px var(--red); }
.dir__tick { position: absolute; left: -9px; top: -9px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.dir__tick::after { content: ""; position: absolute; left: 6.2px; top: 3.6px; width: 4.6px; height: 8px; border: solid var(--paper); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.sb .dir__tick { width: 12px; height: 12px; left: -6px; top: -6px; }
.sb .dir__tick::after { left: 4px; top: 2.2px; width: 3.2px; height: 5.6px; border-width: 0 1.3px 1.3px 0; }

/* title cards: three directions */
.tc { display: block; container-type: inline-size; }
.tc__screen { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; text-align: center; }
.tc__name { display: block; white-space: nowrap; line-height: 1; }
.tc--calm .tc__screen { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .12); }
.tc--calm .tc__name { font-family: var(--serif); font-style: italic; letter-spacing: -.01em; font-size: min(17cqw, calc(150cqw / var(--len, 12))); }
.tc--hype .tc__screen { background: #10131d; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .1); }
.tc--hype .tc__name { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: -.04em; font-size: min(13cqw, calc(118cqw / var(--len, 12))); }
.tc--cine .tc__screen { background: #2a2219; color: #f3e6cf; box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .1); }
.tc--cine .tc__screen::before, .tc--cine .tc__screen::after { content: ""; position: absolute; left: 0; right: 0; height: 13%; background: #050505; }
.tc--cine .tc__screen::before { top: 0; }
.tc--cine .tc__screen::after { bottom: 0; }
.tc--cine .tc__name { font-family: var(--serif); letter-spacing: .14em; text-transform: uppercase; font-size: min(8.5cqw, calc(92cqw / var(--len, 12))); }
@media (prefers-reduced-motion: no-preference) {
  .tc--calm .tc__name { animation: tc-calm 4.8s ease-in-out infinite alternate; }
  .tc--hype .tc__name { animation: tc-hype 2.4s var(--ease-out) -0.9s infinite; }
  .tc--cine .tc__name { animation: tc-cine 6s ease-in-out -2.6s infinite alternate; }
  .tc--film .tc__name { animation: none; }
  .is-still .tc__name { animation-play-state: paused; }
  .sb .tc__name { animation: none; }
}
@keyframes tc-calm { from { opacity: .86; transform: translateY(7%); } to { opacity: 1; transform: none; } }
@keyframes tc-hype { 0% { transform: scale(1.14); } 11% { transform: scale(.99); } 18%, 84% { transform: scale(1); } 100% { transform: scale(1.14); } }
@keyframes tc-cine { from { opacity: .86; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }

/* film frames and the drifting logo over a film before it's paid */
.frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.wm { position: absolute; left: 0; top: 0; width: 112.5%; height: 110%; max-width: none; pointer-events: none; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .wm { animation: wm-drift 26s linear infinite; }
}
@keyframes wm-drift { to { transform: translate(-11.111%, -9.091%); } }
.frame--yes { box-shadow: 0 0 0 2px var(--red); }
.frame--no { outline: 1px dashed rgba(14, 14, 14, .5); }
.sb .frame--no { background: transparent; }
.sb .frame--no img { opacity: .2; }

/* ---- the live scene ---- */
/* round 7: ~5.6 screens of scroll on desktop, ~6 on phones (round 5 was 7.6 and 8: "remove a quarter"); the steps are laid out in SEGS in deal.js */
.deal--live { height: 660svh; padding: 0; }
.deal--live.deal--v { height: 700svh; }
.deal--live .deal__sub { display: none; }
/* touch screens: each hold of the scene is a soft snap point (deal.js adds the marks and the class) */
html.deal-snap { scroll-snap-type: y proximity; }
.deal__snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
.deal--live .deal__title { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); padding: 0; }
.deal--live .sb, .deal--live .deal__end { display: none; }
.deal--live .deal__stage { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; overflow: clip; color: var(--paper); background: var(--night); }
.dl { position: absolute; inset: 0; }
.dl > * { pointer-events: none; }
.dl > .dl__ink, .dl > .dl__paper { pointer-events: auto; }
.dl__ink { position: absolute; inset: 0; background: var(--night); }
.dl__paper { position: absolute; inset: 0; background: var(--paper); z-index: 2; clip-path: inset(0 50% 0 50%); }
.deal--v .dl__paper { clip-path: inset(50% 0 50% 0); }
.lines-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.dl__ink .lines-bg { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 0px)); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 0px)); }

.dl__tag {
  position: absolute; z-index: 3; top: 30px; opacity: 0;
  font: 500 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: transform .6s var(--ease-out);
}
.dl__tag--you { left: var(--edge); color: var(--ink); }
.dl__tag--sobo { right: var(--edge); color: var(--paper); }
.hd-shown .deal--live .dl__tag { transform: translateY(calc(var(--hd) - 6px)); }
.deal--v .dl__tag--sobo { right: auto; left: 20px; top: 22px; }
.deal--v .dl__tag--you { top: auto; bottom: 22px; left: 20px; }
.hd-shown .deal--live.deal--v .dl__tag--you { transform: none; }

.dl__head { position: absolute; inset: 0; will-change: transform, opacity; visibility: hidden; }
.dl__head--ink { z-index: 1; }
.dl__head--paper { z-index: 3; }
.dl__h {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0; padding: 0 5vw;
  transform: translateY(-50%); text-align: center;
  font: 400 clamp(48px, 6.6vw, 124px)/.98 var(--serif); letter-spacing: -.014em; white-space: nowrap;
}
.dl__h--onpaper { color: var(--ink); clip-path: inset(0 100% 0 0); }
.dl__h--onink { color: var(--paper); }
.deal--v .dl__h { white-space: normal; font-size: clamp(46px, 13vw, 76px); line-height: 1; padding: 0 20px; }
.dl__h .dl__br { display: none; }
.dl__sub {
  position: absolute; left: 0; right: 0; top: 60%; margin: 0; padding: 0 24px; text-align: center;
  font: 400 clamp(16px, 1.3vw, 20px)/1.5 var(--sans); color: var(--mute-n);
}
.dl__cue {
  position: absolute; left: 0; right: 0; bottom: 34px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-n);
}
.dl__cue i { position: relative; display: block; width: 1px; height: 38px; overflow: hidden; background: rgba(242, 240, 235, .16); }
.dl__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--paper); animation: dl-cue 1.8s var(--ease-io) infinite; }
@keyframes dl-cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.dl__side { position: absolute; left: 0; top: 0; z-index: 4; margin: 0; text-align: center; visibility: hidden; opacity: 0; will-change: transform, opacity; }
.dl__side b { display: block; font: 400 clamp(64px, 7vw, 120px)/.9 var(--serif); letter-spacing: -.02em; }
.dl__side span { display: block; margin-top: 14px; font: 400 16px/1.4 var(--sans); white-space: nowrap; }
.dl__side--you { color: var(--ink); }
.dl__side--you span { color: var(--mute-p); }
.dl__side--sobo { color: var(--paper); }
.dl__side--sobo span { color: var(--mute-n); }
.deal--v .dl__side b { font-size: 60px; }
.deal--v .dl__side span { font-size: 14.5px; margin-top: 8px; }
.deal--v .dl__h .dl__br { display: inline; }

.dl__cap, .dl__fcap { position: absolute; z-index: 4; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .7s var(--ease-out); }
.dl__cap {
  left: 0; top: 0; width: var(--capw, 40vw); text-align: center;
  font: 400 clamp(30px, 2.7vw, 44px)/1.04 var(--serif); letter-spacing: -.005em;
}
.dl__cap b { margin-bottom: 14px; }
.dl__cap span { display: block; margin-top: 10px; font: 400 16px/1.4 var(--sans); color: var(--mute-p); }
.dl__cap--you { color: var(--ink); }
.dl__cap--you b { color: var(--mute-p); }
.dl__cap--sobo { color: var(--paper); }
.dl__cap--sobo span { color: var(--mute-n); }
.dl__cap { text-wrap: balance; }
.dl__fcap {
  left: 0; top: 0; width: var(--capw, 40vw); color: var(--ink); text-align: center; text-wrap: balance;
  font: 400 clamp(28px, 2.4vw, 40px)/1.06 var(--serif); letter-spacing: -.005em;
}
.dl__fcap--no { color: var(--paper); }
.dl__fcap .mk { margin-right: 12px; vertical-align: .18em; }
.dl__cap.is-on, .dl__fcap.is-on { opacity: 1; transform: none; }
.deal--v .dl__cap { font-size: 27px; }
.deal--v .dl__cap b { margin-bottom: 8px; }
.deal--v .dl__cap span { font-size: 14.5px; margin-top: 6px; }
.deal--v .dl__fcap { font-size: 22px; }
.deal--v .dl__fcap .mk { margin-right: 9px; vertical-align: .15em; }

.dl__obj { position: absolute; left: 0; top: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; }
.dl__brief { z-index: 9; width: var(--bw, 280px); height: var(--bh, 200px); }
.dl__brief .bcard { width: 100%; height: 100%; padding: calc(var(--k, 1) * 22px) calc(var(--k, 1) * 24px); }
.dl__brief .bcard__row { margin-top: calc(var(--k, 1) * 18px); height: calc(var(--k, 1) * 8px); }
.dl__brief .bcard__row--name { margin: 0 0 4px; font-size: calc(var(--k, 1) * 21px); height: auto; }
.deal--v .dl__brief .bcard { padding: 16px 18px; }
.deal--v .dl__brief .bcard__row { margin-top: 12px; height: 6px; }
.deal--v .dl__brief .bcard__row--name { font-size: 18px; height: auto; }
.bcard__caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; background: var(--ink); opacity: 0; transition: opacity .2s; }
.bcard__caret.is-on { opacity: 1; }
.bcard__input {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - .5em);
  margin: 0; padding: 0; border: 0; background: transparent; outline: none;
  font: inherit; letter-spacing: inherit; color: transparent; caret-color: var(--ink);
}
.bcard__input::selection { background: rgba(255, 59, 47, .25); color: transparent; }
.bcard__input:focus-visible { outline: none; }
.bcard__row--name:focus-within { border-bottom-color: var(--ink); }
.is-coarse .bcard__input { display: none; }

.dl__dir { z-index: 8; width: var(--dw, 200px); }
.dl__dir .dir__tag { transition: color .35s ease; color: var(--mute-n); }
.dl__dir.on-paper .dir__tag { color: var(--mute-p); }
.dir__bar { position: absolute; left: 0; right: 0; top: calc(100% + 12px); height: 1px; background: rgba(242, 240, 235, .16); overflow: hidden; }
.dir__bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: 0 50%; transform: scaleX(0); }
.dl__dir .dir__ring { position: absolute; inset: -1px; border-radius: 5px; box-shadow: 0 0 0 2px var(--red); opacity: 0; pointer-events: none; }
.dl__dir .dir__tick { left: auto; right: 34px; top: auto; bottom: calc(100% + 4px); width: 16px; height: 16px; transform: scale(0); transform-origin: 50% 50%; }
.dl__dir .dir__tick::after { left: 5.6px; top: 3.2px; width: 4.2px; height: 7.2px; border-width: 0 1.7px 1.7px 0; }

.dl__film { z-index: 6; width: var(--fw, 600px); aspect-ratio: 16 / 9; }
.dl__film-in { position: absolute; inset: 0; overflow: hidden; border-radius: 5px; background: var(--night-2); }
.dl__film-in > * { position: absolute; inset: 0; }
.dl__film .tc--film { width: 100%; height: 100%; }
.dl__film .tc--film .tc__screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.dl__film .tc--film .tc__name { font-size: min(13cqw, calc(118cqw / var(--len, 12))); }
.dl__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.dl__wm { z-index: 2; overflow: hidden; }
.dl__flash { z-index: 3; background: var(--paper); opacity: 0; pointer-events: none; }
/* step 5: the version above the film and the notes on it */
.dl__ver { z-index: 9; font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute-p); white-space: nowrap; }
.dl__note {
  z-index: 9; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 500 14px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(14, 14, 14, .7); transform-origin: 0 50%;
}
.dl__note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transition: background-color .3s ease, box-shadow .3s ease; }
.dl__note.is-done::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper); }
.dl__note.is-done { text-decoration: line-through; text-decoration-color: rgba(242, 240, 235, .6); }
.deal--v .dl__note { font-size: 12.5px; padding: 7px 11px 7px 10px; gap: 7px; }
.deal--v .dl__ver { font-size: 10.5px; }
/* where you are in the steps */
.dl__rail {
  z-index: 12; left: 50%; top: auto; bottom: 26px; display: flex; align-items: center; gap: 12px;
  margin-left: -78px; width: 156px; height: 34px; padding: 0 16px; border-radius: 999px;
  background: rgba(14, 14, 14, .82); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 11.5px/1 var(--sans); letter-spacing: .08em; color: var(--paper); white-space: nowrap;
}
.dl__railn { flex: none; min-width: 3.4em; }
.dl__railbars { display: flex; gap: 4px; flex: 1; }
.dl__railbars i { flex: 1; height: 2px; border-radius: 1px; background: rgba(242, 240, 235, .22); transition: background-color .35s ease; }
.dl__railbars i.is-done { background: rgba(242, 240, 235, .6); }
.dl__railbars i.is-now { background: var(--red); }
.deal--v .dl__rail { left: auto; right: 16px; bottom: auto; top: 14px; margin: 0; }
.hd-shown .deal--live .dl__rail { transform: none; }
/* the button at the end of the scene */
.dl__cta { z-index: 13; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.dl__ghost { z-index: 5; width: var(--cw, 280px); }
.dl__ghost .frame { outline: 0; background: transparent; }
.dl__ghost::after { content: ""; position: absolute; inset: 0; border-radius: 4px; outline: 1px dashed rgba(242, 240, 235, .5); opacity: var(--dash, 0); }
.dl__ring { z-index: 7; width: 10px; height: 10px; border-radius: 5px; pointer-events: none; transform-origin: 0 0; }
.dl__ring::before, .dl__ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dl__ring::before { box-shadow: inset 0 0 0 1px var(--ring, rgba(242, 240, 235, .14)); }
.dl__ring::after { inset: -2px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--red); opacity: var(--red-o, 0); }

.dl__pointer { z-index: 10; width: 24px; height: 24px; transform-origin: 5px 3px; }
.dl__dot { z-index: 11; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 59, 47, .14); }
.dl__pulse { z-index: 10; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--red); }
.dl__endline {
  position: absolute; left: 0; right: 0; top: 0; z-index: 12; margin: 0; padding: 0 20px; text-align: center;
  font: 400 clamp(34px, 3.4vw, 56px)/1.04 var(--serif); letter-spacing: -.008em; color: var(--ink); text-wrap: balance;
  opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.dl__endline em { white-space: nowrap; }
.dl__endline .dl__br { display: none; }
.deal--v .dl__endline { font-size: 34px; }
.deal--v .dl__endline .dl__br { display: inline; }

/* =========================================================
   PAPER: pricing and the brief, one engraved sheet
   ========================================================= */
.paper { position: relative; background: var(--paper); color: var(--ink); isolation: isolate; }
.lines-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lines-bg--sticky { position: sticky; top: 0; height: 100vh; inset: auto; }
.paper > section { position: relative; z-index: 1; }
.paper ::selection { background: var(--ink); color: var(--paper); }
.sec-head { margin-bottom: clamp(44px, 5vw, 76px); }

/* =========================================================
   4 · PRICING
   ========================================================= */
.pricing { padding: clamp(96px, 11vw, 168px) 0 clamp(64px, 7vw, 104px); }
.deal--live + .paper .pricing { padding-top: clamp(16px, 2vw, 32px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.plan {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: clamp(28px, 3.2vw, 48px);
  background: rgba(250, 249, 245, .9); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(14, 14, 14, .1), 0 30px 60px -40px rgba(14, 14, 14, .25);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
/* a fine inner rule, like a printed certificate */
.plan::before { content: ""; position: absolute; inset: 7px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .06); pointer-events: none; }
.plan__top { display: flex; flex-direction: column; gap: 14px; padding-bottom: clamp(24px, 2.6vw, 36px); border-bottom: 1px solid var(--faint-p); }
.plan__name { margin: 0; font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.plan__price { margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.plan__num { font: 400 clamp(64px, 6.6vw, 104px)/.9 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.plan__per { font: italic 400 clamp(20px, 1.6vw, 26px)/1 var(--serif); color: var(--mute-p); }
.plan__list { list-style: none; margin: 0; padding: 12px 0 0; flex: 1; }
.plan__list li { position: relative; padding: 13px 0 13px 26px; font-size: 16.5px; line-height: 1.45; color: #2a2926; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 11px; height: 6px; border: solid var(--ink); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); opacity: .8; }
.plan__btn { align-self: flex-start; margin-top: clamp(24px, 2.6vw, 36px); }

.promise { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); margin: clamp(48px, 6vw, 80px) 0 0; }
.seal { flex: none; width: clamp(150px, 12vw, 176px); height: auto; color: var(--ink); }
.promise__text { margin: 0; max-width: 34ch; font: 400 clamp(22px, 1.9vw, 28px)/1.2 var(--serif); color: var(--ink); text-wrap: pretty; }
.promise__text b { font-weight: 400; font-style: italic; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .plan.reveal + .plan.reveal { transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 800px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-radius: 16px; }
  .plan__btn { align-self: stretch; }
  .promise { gap: 18px; }
  .seal { width: 128px; }
}

/* =========================================================
   5 · THE BRIEF
   ========================================================= */
.brief { padding: clamp(64px, 7vw, 110px) 0 clamp(110px, 12vw, 180px); }
.brief__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.brief__side { position: sticky; top: calc(var(--hd) + 28px); }
.brief__lede { margin: 22px 0 0; max-width: 30ch; font-size: 18px; line-height: 1.5; color: var(--graphite); }
.talk { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--faint-p); max-width: 380px; }
.talk__q { margin: 0; font: 400 30px/1.05 var(--serif); }
.talk__text { margin: 8px 0 20px; font-size: 16px; color: var(--graphite); }

.form {
  position: relative; padding: clamp(24px, 3.4vw, 52px);
  background: rgba(251, 250, 246, .94); border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(14, 14, 14, .1), 0 40px 80px -50px rgba(14, 14, 14, .35);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.field { position: relative; display: flex; flex-direction: column-reverse; min-width: 0; padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; margin: 0; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(14, 14, 14, .22); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 18px/1.4 var(--sans); outline: none; resize: none;
  transition: border-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 52px; overflow: hidden; field-sizing: content; }
.field input:hover, .field textarea:hover { border-bottom-color: rgba(14, 14, 14, .4); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); pointer-events: none; }
.field:has(.field__err:not(:empty))::after { bottom: 22px; }
.field:focus-within::after { transform: scaleX(1); }
/* the label sits in the field and floats up as you type */
.field label {
  position: absolute; left: 0; top: 33px; font-size: 18px; color: var(--mute-p); pointer-events: none;
  transform-origin: 0 0; transition: transform .45s var(--ease-out), color .3s ease;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-fixed {
  transform: translateY(-26px) scale(.74); color: var(--graphite);
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input[type="date"] { min-height: 49px; color: var(--ink); }
.field input[type="date"]:not(:focus):invalid { color: var(--mute-p); }
.field__err { order: -1; margin: 6px 0 0; min-height: 0; font-size: 13.5px; color: var(--err); }
.field__err:empty { display: none; }
.field.is-bad input, .field.is-bad textarea { border-bottom-color: var(--err); }

/* the letter: serif sentences, the visitor's words in ink on a dotted line */
.letter { --lh: 1.75; font: 400 clamp(25px, 2.25vw, 32px)/var(--lh) var(--serif); color: var(--ink); }
.letter p { margin: 0; }
.letter__hi { margin-bottom: .35em !important; }
.letter__p label { cursor: text; }
.slot { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.slot input, .slot textarea {
  max-width: 100%; margin: 0; padding: 0 .1em; border: 0; border-radius: 0; outline: none;
  background: linear-gradient(90deg, rgba(14, 14, 14, .32) 1.5px, transparent 1.5px) 0 100% / 6px 1.5px repeat-x;
  font: italic 400 1em/1.3 var(--serif); color: var(--ink); caret-color: var(--red);
  transition: background-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.slot input { width: 9ch; min-width: 4ch; height: 1.3em; }
.slot input::placeholder, .slot textarea::placeholder { color: rgba(14, 14, 14, .26); opacity: 1; }
/* the example words in the blanks: smaller and lighter than what you type, so they read as hints (round 7) */
.slot input::placeholder { font-size: .7em; }
.slot textarea::placeholder { font-size: .78em; }
.slot input:hover, .slot textarea:hover { background-color: rgba(14, 14, 14, .025); }
.slot input:focus, .slot textarea:focus { background-image: linear-gradient(var(--ink), var(--ink)); background-size: 100% 1.5px; background-repeat: no-repeat; }
.slot input[aria-invalid="true"], .slot textarea[aria-invalid="true"] { background-image: linear-gradient(var(--err), var(--err)); background-size: 100% 1.5px; background-repeat: no-repeat; }
.slot input[aria-invalid="true"]::placeholder, .slot textarea[aria-invalid="true"]::placeholder { color: rgba(179, 38, 30, .55); }
.slot--block { display: block; margin: .1em 0 .35em; }
.slot--block textarea {
  display: block; width: 100%; min-height: calc(2 * var(--lh) * 1em); resize: none; overflow: hidden; field-sizing: content;
  line-height: var(--lh); padding: 0 .1em;
  /* a dotted rule under every line, like ruled paper */
  background: radial-gradient(circle at 3px calc(100% - .3em), rgba(14, 14, 14, .32) .75px, transparent 1px) 0 0 / 6px calc(var(--lh) * 1em) repeat;
  background-attachment: local;
}
.slot--block textarea:focus { background-image: radial-gradient(circle at 3px calc(100% - .3em), rgba(14, 14, 14, .6) .8px, transparent 1.1px); background-size: 6px calc(var(--lh) * 1em); background-repeat: repeat; }
.slot--block textarea[aria-invalid="true"] { background-image: radial-gradient(circle at 3px calc(100% - .3em), rgba(179, 38, 30, .7) .8px, transparent 1.1px); background-size: 6px calc(var(--lh) * 1em); background-repeat: repeat; }
.letter__sign { margin-top: .5em !important; color: var(--mute-p); }
.letter__signname { display: block; font-style: italic; color: var(--ink); }
.letter__signname:empty { display: none; }
.more__panel .field label { font-size: 17px; }
.more__panel .form__grid { padding-top: 6px; }
@media (max-width: 600px) {
  .letter { --lh: 1.7; font-size: 24px; }
  .slot--block textarea { min-height: calc(3 * var(--lh) * 1em); }
}

.form__plan { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; color: var(--graphite); }
.form__plan b { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 13.5px; }
.form__plan-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: var(--mute-p); }
.form__plan-x:hover { background: rgba(14, 14, 14, .06); color: var(--ink); }

.more {
  display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--graphite); text-align: left;
}
.more:hover { color: var(--ink); }
.more__sign { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .3); transition: box-shadow .3s ease; }
.more:hover .more__sign { box-shadow: inset 0 0 0 1px var(--ink); }
.more__sign::before, .more__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: currentColor; transition: transform .45s var(--ease-out); }
.more__sign::after { transform: rotate(90deg); }
.more[aria-expanded="true"] .more__sign::after { transform: rotate(0deg); }
.more__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out), opacity .4s ease; opacity: 0; visibility: hidden; }
.more__panel.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.more__inner { min-height: 0; overflow: hidden; }

.form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.form__fine { margin: 0; font-size: 14px; color: var(--mute-p); }
.form__status { margin: 14px 0 0; font-size: 14.5px; color: var(--graphite); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--err); }
.form__status a { color: inherit; }
.form.is-sending .pill { opacity: .7; pointer-events: none; }

.form-done {
  padding: clamp(32px, 4vw, 56px); border-radius: 22px; background: rgba(251, 250, 246, .94);
  box-shadow: 0 0 0 1px rgba(14, 14, 14, .1); outline: none;
}
.form-done__dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.form-done__title { margin: 22px 0 0; font: 400 clamp(40px, 4vw, 60px)/1 var(--serif); }
.form-done__text { margin: 14px 0 0; max-width: 40ch; color: var(--graphite); }
.form-done__text a { color: inherit; }
.copy-brief { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.brief-copy { display: block; width: 100%; margin-top: 14px; padding: 12px; font: 14px/1.5 var(--sans); border: 1px solid var(--faint-p); border-radius: 8px; background: var(--paper); color: var(--ink); }

@media (max-width: 860px) {
  .brief__grid { grid-template-columns: 1fr; }
  .brief__side { position: static; }
  .talk { order: 3; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot .pill { width: 100%; }
}
@media (max-width: 860px) {
  /* on one column the call option comes after the form */
  .brief__grid { display: flex; flex-direction: column; gap: 0; }
  .brief__side { display: contents; }
  .brief__side > .label { order: 0; }
  .brief__title { order: 1; }
  .brief__lede { order: 2; margin-bottom: 8px; }
  .brief__main { order: 3; margin-top: 32px; }
  .talk { order: 4; margin-top: 56px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ft { background: var(--night); color: var(--on-n); padding: clamp(80px, 10vw, 150px) 0 40px; }
.ft__line { margin: 0; font: 400 clamp(56px, 9vw, 150px)/.9 var(--serif); letter-spacing: -.02em; color: var(--paper); }
.ft__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 100px); padding-top: 28px; border-top: 1px solid var(--faint-n); font-size: 14.5px; color: var(--mute-n); }
.ft__logo { height: 26px; width: auto; margin-right: auto; }
.ft__mail { color: var(--paper); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; background-origin: content-box; background-clip: content-box; transition: background-size .5s var(--ease-out); padding: 11px 0 13px; margin: -11px 0; }
.ft__mail:hover { background-size: 100% 1px; }
.ft__legal { color: var(--mute-n); text-underline-offset: 3px; }
.ft__legal:hover { color: var(--paper); }

/* =========================================================
   PLAYER
   ========================================================= */
.player {
  width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #07080e; color: var(--paper);
  box-shadow: 0 0 0 1px rgba(242, 240, 235, .08), 0 60px 120px -30px rgba(0, 0, 0, .9);
}
.player::backdrop { background: rgba(5, 6, 12, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player[open] { animation: player-in .55s var(--ease-out); }
@keyframes player-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .player[open] { animation: none; } }
.player.is-vertical { width: min(480px, calc((100svh - 170px) * 9 / 16), calc(100vw - 32px)); min-width: min(340px, calc(100vw - 16px)); }
.player__inner { display: flex; flex-direction: column; max-height: calc(100svh - 32px); }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 14px 22px; }
.player__title { margin: 0; font: 400 28px/1 var(--serif); }
.player__sub { margin: 6px 0 0; font-size: 13.5px; color: var(--mute-n); }
.player__sub:empty { display: none; }
.player__close { position: relative; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(242, 240, 235, .08); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .18); transition: background-color .3s ease, transform .5s var(--ease-out); }
.player__close:hover { background: rgba(242, 240, 235, .16); transform: rotate(90deg); }
.player__close span::before, .player__close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--paper); transform: rotate(45deg); }
.player__close span::after { transform: rotate(-45deg); }
.player__stage { flex: 1; min-height: 0; background: #000; display: flex; justify-content: center; }
.player__video { width: 100%; max-height: calc(100svh - 170px); aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.player.is-vertical .player__video { aspect-ratio: 9 / 16; }
.player__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 16px 22px; }
.player__example { margin: 0; font-size: 14px; color: var(--mute-n); }
@media (max-width: 600px) {
  .player { width: calc(100vw - 16px); border-radius: 12px; }
  .player__bar { padding: 12px 12px 10px 16px; }
  .player__title { font-size: 24px; }
  .player__foot { padding: 12px 12px 12px 16px; }
}
