@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/unbounded-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #07080b;
  --raise: #11131a;
  --raise-2: #191c25;
  --line: rgb(245 246 250 / .13);
  --line-2: rgb(245 246 250 / .3);
  --text: #f5f6fa;
  --text-2: #b8bcc7;
  --text-3: #9095a2;
  --tang: #ff7a2f;
  --cobalt: #3d5bff;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 3.4vw, 3rem);
  --top-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section: clamp(5.5rem, 11vw, 10rem);
  color-scheme: dark;
  interpolate-size: allow-keywords;
  scrollbar-color: #2c303b var(--ground);
  scrollbar-width: thin;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  overflow-wrap: break-word;   /* only a word wider than its line breaks (large text on narrow screens) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--tang);
}

::selection { background: var(--tang); color: var(--ground); }
:focus-visible { outline: 2px solid var(--tang); outline-offset: 3px; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* A 44px tall hit area around small controls without changing how they look or sit */
.brand, .signin, .foot nav a, .foot nav button, .pop-link, .opts label { position: relative; }
.brand::after, .signin::after, .foot nav a::after, .foot nav button::after, .pop-link::after, .opts label::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); translate: 0 -50%;
}
.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 100;
  padding: .7rem 1rem; border-radius: 10px; background: var(--text); color: var(--ground);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: .98;
  letter-spacing: -.025em;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

/* ---------- Header ---------- */

.top {
  position: absolute; inset: 0 0 auto; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; border-radius: 8px;
}
.brand img { width: auto; height: 30px; }
.brand span { font: 800 1.3rem/1 var(--display); letter-spacing: -.02em; }

.signin, .foot nav button {
  cursor: pointer;
}
.signin {
  height: 2.6rem; padding: 0 1.25rem;
  border: 1.5px solid rgb(245 246 250 / .72); border-radius: 999px;
  background: transparent;
  font-weight: 600; font-size: .9375rem;
  transition: background-color .18s, color .18s, border-color .18s;
}
.signin:hover { background: var(--text); color: var(--ground); border-color: var(--text); }

.pop {
  position: fixed; inset: calc(var(--top-h) - 6px) var(--pad) auto auto;
  margin: 0; width: min(21rem, calc(100vw - 2 * var(--pad)));
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--raise-2); color: var(--text);
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / .7);
  font-size: .9688rem; line-height: 1.5;
}
.pop p { color: var(--text-2); }
.pop strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .2rem; }
.pop-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .85rem;
  font-weight: 600; text-decoration: none; color: var(--text);
}
.pop-link svg { width: 1.1rem; height: 1.1rem; transition: transform .2s var(--ease-out); }
.pop-link:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  height: 100svh; min-height: 640px; max-height: 1100px;
  padding-top: var(--top-h);
}
/* The reel is a size container: the resting layout below is drawn in its own units (cqw, cqh) */
.reel {
  position: relative; overflow: hidden; isolation: isolate;
  container-type: size;
  --slant: min(30cqh, 12cqw);
  --skew: calc(-1 * atan2(var(--slant), 100cqh));
  /* the title's size (at most about a quarter of a low reel) and the top of the room under it: a layer set below
     the title starts at least 24px under the title's line box (top 55%, centred, line height .92) */
  --title-fs: min(clamp(2.6rem, 7.6vw, 6rem), 27cqh);
  --under-title: calc(55% + .46 * var(--title-fs) + 24px);
}
.reel-gl {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .7s ease-out;
}
.reel.gl-on .reel-gl { opacity: 1; }
.bands { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; }

.band {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: var(--bw); transform: translateX(var(--x));
  clip-path: polygon(var(--a, 0px) 0, 100% 0, calc(100% - var(--b, 0px)) 100%, 0 100%);
  /* resting layout, the same one script.js computes: five equal shares, each seam slanted by --slant;
     the script then sets the same values in px, so nothing moves when it takes over (and nothing is broken without it).
     The band moves by transform: widening one band shifts nothing in the page's layout */
  --x: calc(var(--i) * 20cqw - var(--slant) / 2); --bw: calc(20cqw + var(--slant));
  --a: var(--slant); --b: var(--slant);
}
.band:nth-child(1) { --i: 0; --x: 0px; --bw: calc(20cqw + var(--slant) / 2); --a: 0px; }
.band:nth-child(2) { --i: 1; }
.band:nth-child(3) { --i: 2; }
.band:nth-child(4) { --i: 3; }
.band:nth-child(5) { --i: 4; --bw: calc(20cqw + var(--slant) / 2); --b: 0px; }
/* Each frame is cut around its point of interest (--fx, --fy on the band, shares of the frame): that point stays
   at the same share of the band at any band shape, and every zoom grows from it. gl-hero.js crops the same way. */
.band-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: calc(var(--fx, .5) * 100%) calc(var(--fy, .5) * 100%);
  transform-origin: calc(var(--fx, .5) * 100%) calc(var(--fy, .5) * 100%);
  transition: opacity .7s ease-out;
}
/* each shot's resting zoom from script.js, so the first paint already matches it */
.band[data-kind="podcast"] .band-img { transform: scale(1.03); }
.band[data-kind="interview"] .band-img { transform: scale(1.1); }
.band[data-kind="talking"] .band-img { transform: scale(1.03); }
.band[data-kind="reel"] .band-img { transform: scale(1.06); }
.band[data-kind="event"] .band-img { transform: scale(1.07); }
/* Shots B and C of the band's edit (script.js adds them, decoded, once the band first plays; each carries its own
   --fx, --fy). They lie over shot A and come on with a hard cut or a short dissolve (--cut-s on the band). */
.band-shot { opacity: 0; transition: opacity var(--cut-s, 0s) linear; }
.band-shot.is-shown { opacity: 1; }
.reel.gl-on .band-img { opacity: 0; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(7 8 11 / .5) 0%, rgb(7 8 11 / 0) 18%, rgb(7 8 11 / 0) 58%, rgb(7 8 11 / .62) 100%);
}
.band-hit {
  position: absolute; inset: 0; z-index: 4;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: transparent; font-size: 0; overflow: hidden;
}
.band-hit:focus-visible { outline: 3px solid var(--tang); outline-offset: -10px; }
.band-label {
  position: absolute; z-index: 2; top: clamp(14px, 3.4%, 30px);
  left: calc(var(--a, 0px) * .95 + 20px);
  /* script.js narrows it to the band's slanted top corner (--label-w) and, when even one word of the kind
     would not fit there, steps the label out whole (.label-off) instead of breaking or clipping it */
  max-width: var(--label-w, calc(100% - var(--a, 0px) * .95 - 32px));
  font-weight: 600; font-size: 1.0625rem; line-height: 1.3;
  text-shadow: 0 1px 14px rgb(0 0 0 / .5), 0 0 2px rgb(0 0 0 / .4);
  transition: opacity .3s;
}
.band.label-off .band-label { opacity: 0; }
/* a soft local shade under the label only, so it reads on bright frames without darkening the shot */
.band-label::before {
  content: ""; position: absolute; z-index: -1; inset: -.7rem -1rem -.8rem -1rem; pointer-events: none;
  border-radius: 1rem; background: rgb(7 8 11 / .62); filter: blur(12px);
}
.band-label small {
  display: block; margin-top: .15rem;
  font-weight: 500; font-size: .8125rem; line-height: 1.3; color: rgb(245 246 250 / .82);
}
/* What the example does for the viewer, the band's main line: on screen while the band plays, under its label on
   the same kind of local shade, at title size (1.25rem; 1rem at the least in a narrow reel, lines wrap instead);
   text of the band for screen readers at any time (hidden by opacity only, never by display).
   It keeps to the left 42% of the playing band (--say on the band narrows it where a close-up fills the frame) (--on-w from script.js: the playing band's share of the reel),
   where faces are not, and is laid out at that width from the start, so the widening band moves none of its lines. */
.band-benefit {
  position: absolute; z-index: 2; top: calc(clamp(14px, 3.4%, 30px) + 3.55rem);
  left: calc(var(--a, 0px) * .88 + 20px);
  width: min(19.5rem, calc((var(--on-w, 50cqw) + (var(--a, 0px) + var(--b, 0px)) / 2) * var(--say, .42) - var(--a, 0px) * .88 - 20px));
  font-weight: 600; font-size: clamp(1rem, .25rem + 1.3cqw, 1.25rem); line-height: 1.25; text-wrap: balance;
  text-shadow: 0 1px 14px rgb(0 0 0 / .5), 0 0 2px rgb(0 0 0 / .4);
  opacity: 0; transition: opacity .2s;
}
.band-benefit::before {
  content: ""; position: absolute; z-index: -1; inset: -.4rem -.45rem -.45rem -.6rem; pointer-events: none;
  border-radius: .8rem; background: rgb(7 8 11 / .78); filter: blur(7px);
}
.band.is-on .band-benefit { opacity: 1; transition: opacity .35s .2s; }
.band-tc {
  position: absolute; z-index: 2; bottom: 20px;
  left: calc(var(--a, 0px) * .06 + 18px);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .62rem .38rem .48rem; border-radius: 8px;
  background: rgb(7 8 11 / .74);
  font-weight: 600; font-size: .875rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.band-tc svg { width: .85rem; height: .85rem; }
.band-ruler {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgb(245 246 250 / .14);
}
.band-ruler i {
  display: block; width: 100%; height: 100%;
  background: var(--tang); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
/* while the band plays the ruler is its edit: three clips, a 2px gap at each cut (--c1, --c2 from script.js) */
.band.is-on .band-ruler {
  mask: linear-gradient(90deg, #000 calc(var(--c1) * 100% - 1px), transparent 0 calc(var(--c1) * 100% + 1px),
    #000 0 calc(var(--c2) * 100% - 1px), transparent 0 calc(var(--c2) * 100% + 1px), #000 0);
}

/* Each band carries one finishing layer of the product. At rest the layer sits still and readable;
   on the active band (desktop focus, the current shot on phones) it plays and follows the shot on screen
   (data-shot a, b, c and the shot's length --shot-s from script.js): it stays where it belongs and leaves
   the shots it does not suit. Without motion it stays still (reduced motion keeps shot A). */
.band-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .3s; }
.band-label small { transition: opacity .3s; }
.band-label::before { transition: bottom .3s; }
/* while one band plays, the squeezed neighbours drop their layers instead of clipping them */
.reel.has-on .band:not(.is-on) .band-fx, .reel.has-on .band:not(.is-on) .band-label small { opacity: 0; }
.reel.has-on .band:not(.is-on) .band-label::before { bottom: calc(1.25rem - .8rem); }
/* the loops of the layers stand still while the reel does (off screen, hidden tab) */
.reel.is-still * { animation-play-state: paused; }

/* Podcast: subtitles, word by word, running on through every shot */
.fx-sub {
  position: absolute; top: max(72%, var(--under-title));
  left: calc(var(--a, 0px) * .27 + 18px); right: calc(var(--b, 0px) * .73 + 18px);
  text-align: center;
  font-weight: 700; font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.45;
  text-shadow: 0 1px 10px rgb(0 0 0 / .55);
}
/* In a band the subtitle is laid out once, in the room its band has at rest (five equal shares), and the playing
   band centres it in its own room and scales it up by transform: a widening band moves none of its words */
.band .fx-sub {
  --sub-w: calc(20cqw + (var(--a, 0px) + var(--b, 0px)) / 2 - var(--a, 0px) * .27 - var(--b, 0px) * .7 - 28px);
  right: auto; width: var(--sub-w);
  font-size: clamp(.8125rem, 1vw, 1.0625rem);
  transform-origin: 50% 0;
  transform: translateX(calc((var(--bw) - var(--a, 0px) * .27 - var(--b, 0px) * .7 - 28px - var(--sub-w)) / 2)) scale(var(--sub-k, 1));
}
.band.is-on .fx-sub { --sub-k: 1.25; }
.fx-sub span { padding: .05em .22em; border-radius: 6px; transition: background-color .12s, color .12s; }
.fx-sub span.on, .band:not(.is-on) .fx-sub span[data-rest] { background: var(--cobalt); text-shadow: none; }

/* Interview: name plate */
.fx-plate {
  position: absolute; top: max(67%, var(--under-title)); left: calc(var(--a, 0px) * .3 + 24px);
  display: grid; justify-items: start;
}
.fx-plate b {
  padding: .4rem .8rem .35rem; background: var(--text); color: var(--ground);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.3;
}
.fx-plate span {
  padding: .3rem .8rem .35rem; background: var(--tang); color: var(--ground);
  font-weight: 600; font-size: .875rem; line-height: 1.3;
}
/* the plate wipes in on shot A, stays over B (the same man, closer) and wipes out before C (his hands) */
@keyframes plate-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes plate-out {
  0%, 82% { clip-path: inset(0); }
  96%, 100% { clip-path: inset(0 0 0 100%); }
}
.js-motion .band.is-on[data-shot="a"] .fx-plate b { animation: plate-in .6s var(--ease-out) .2s backwards; }
.js-motion .band.is-on[data-shot="a"] .fx-plate span { animation: plate-in .6s var(--ease-out) .42s backwards; }
.js-motion .band.is-on[data-shot="b"] .fx-plate > * { animation: plate-out calc(var(--shot-s) * 1s) var(--ease-out) both; }
.band.is-on[data-shot="c"] .fx-plate { opacity: 0; }

/* Talking head: key words over a push-in on shot A (the push-in runs in script.js, the punch-in on "small." at
   45% of the shot); the wider shot B and the close-up C go without them */
/* set to the band's right edge (--b * .17 + 22px in from it) by transform, so a widening band moves no layout */
.fx-key {
  position: absolute; top: 15%; left: 0;
  display: grid; justify-items: end; gap: .15em;
  font: 800 clamp(1.4rem, 2.3vw, 2.3rem)/.95 var(--display); letter-spacing: -.02em;
  transform: translateX(calc(var(--bw) - 100% - var(--b, 0px) * .17 - 22px)) rotate(-6deg); transform-origin: 100% 50%;
  text-shadow: 0 2px 18px rgb(0 0 0 / .4);
}
/* kept on their own layers: when their animation ended at a cut, Chrome (WebGL on) left the next band's top
   shade unclipped over the neighbour's label */
.fx-key span { transform-origin: 100% 60%; will-change: transform, opacity; }
.fx-key span:last-child { padding: .12em .25em .16em; border-radius: 8px; background: var(--cobalt); text-shadow: none; }
@keyframes key-a {
  0% { transform: scale(.3); opacity: 0; }
  6% { transform: scale(1.14); opacity: 1; }
  12%, 88% { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(1); opacity: 0; }
}
@keyframes key-b {
  0%, 43% { transform: scale(.3); opacity: 0; }
  48% { transform: scale(1.16); opacity: 1; }
  55%, 88% { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(1); opacity: 0; }
}
.js-motion .band.is-on[data-shot="a"] .fx-key span:first-child { animation: key-a calc(var(--shot-s) * 1s) cubic-bezier(.2, .8, .2, 1) both; }
.js-motion .band.is-on[data-shot="a"] .fx-key span:last-child { animation: key-b calc(var(--shot-s) * 1s) cubic-bezier(.2, .8, .2, 1) both; }
.band.is-on:not([data-shot="a"]) .fx-key { opacity: 0; }

/* Reel: the music track under every shot, pulsing on the beat (the frame shakes and cuts on the same 0.5 s beat) */
/* as wide as its band at rest allows (five equal shares), whatever the band's width now: its bars never move */
.fx-music {
  position: absolute; bottom: min(62px, calc(100% - var(--under-title) - 2.4rem));
  left: calc(var(--a, 0px) * .12 + 16px);
  width: min(19rem, calc(20cqw + var(--a, 0px) * .38 - var(--b, 0px) * .4 - 32px));
  display: flex; align-items: center; gap: .55rem; max-width: 19rem;
  height: 2.4rem; padding: 0 .7rem 0 .6rem; border-radius: 10px;
  background: rgb(7 8 11 / .62);
}
.fx-music svg { flex: none; width: 1rem; height: 1rem; color: var(--tang); }
.fx-bars { position: relative; flex: 1; min-width: 0; height: 1.4rem; display: flex; align-items: center; justify-content: space-between; }
.fx-bars i {
  flex: none; width: 3px; height: 100%; border-radius: 2px;
  background: rgb(245 246 250 / .88); transform: scaleY(var(--h));
}
.fx-bars i.k { background: var(--tang); }
@keyframes beat {
  0% { transform: scaleY(calc(.3 + var(--h) * .75)); }
  100% { transform: scaleY(calc(.15 + var(--h) * .5)); }
}
.band.is-on .fx-bars i { animation: beat .5s cubic-bezier(.2, .7, .3, 1) infinite; }
.band.is-on .fx-bars i:nth-child(3n) { animation-delay: -.09s; }
.band.is-on .fx-bars i:nth-child(3n + 1) { animation-delay: -.17s; }

/* Event: the event title wipes in over the wide shot A; the speaker (B) and the applause (C) go without it */
.fx-title {
  position: absolute; top: 16%; left: 0;
  transform: translateX(calc(var(--bw) - 100% - var(--b, 0px) * .16 - 24px));   /* at the right edge, as .fx-key */
  max-width: 9ch; text-align: right;
  font: 800 clamp(1.35rem, 2.2vw, 2.15rem)/1 var(--display); letter-spacing: -.02em;
  text-decoration: underline 3px var(--tang); text-underline-offset: .2em; text-decoration-skip-ink: none;
  text-shadow: 0 2px 18px rgb(0 0 0 / .45);
}
@keyframes title-in {
  from { clip-path: inset(-30% -30% -30% 100%); }
  to { clip-path: inset(-30% -30% -30% -30%); }
}
.js-motion .band.is-on[data-shot="a"] .fx-title { animation: title-in .7s var(--ease-out) .15s backwards; }
.band.is-on:not([data-shot="a"]) .fx-title { opacity: 0; }

/* Seams without WebGL: the same tangerine and cobalt light, drawn in CSS */
.seams { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.seams i {
  position: absolute; top: -2%; height: 104%; width: 44px;
  left: -22px;
  transform: translateX(var(--m)) skewX(var(--skew, -16deg));
  background: linear-gradient(90deg, rgb(255 122 47 / 0) 4%, rgb(255 122 47 / .95) 33%, rgb(255 232 214) 47%, rgb(222 228 255) 53%, rgb(61 91 255 / .95) 67%, rgb(61 91 255 / 0) 96%);
  mix-blend-mode: screen;
}
.seams i::before {
  content: ""; position: absolute; inset: 0 -22px;
  background: linear-gradient(90deg, transparent 8%, rgb(255 122 47 / .6) 38%, rgb(61 91 255 / .6) 62%, transparent 92%);
  filter: blur(12px);
}
.seams i:nth-child(1) { --m: 20%; }
.seams i:nth-child(2) { --m: 40%; }
.seams i:nth-child(3) { --m: 60%; }
.seams i:nth-child(4) { --m: 80%; }
.seams i:nth-child(2n) { transform: translateX(var(--m)) skewX(var(--skew, -16deg)) scaleX(-1); }
.reel.gl-on .seams { opacity: 0; transition: opacity .7s; }

.hero-title {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: 55%;
  transform: translateY(-50%);
  text-align: center; white-space: nowrap; pointer-events: none;
  font: 800 var(--title-fs)/.92 var(--display); letter-spacing: -.025em;
  text-shadow: 0 0 22px rgb(7 8 11 / .62), 0 6px 48px rgb(7 8 11 / .55), 0 1px 3px rgb(0 0 0 / .5);
}
.hero-title span { display: inline-block; }

.cuts { display: none; }
.reel-toggle { position: absolute; z-index: 5; right: 18px; bottom: 14px; }

.hero-foot {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem;
  height: 7.5rem; padding: 1rem var(--pad) 1.5rem;
}
.hero-line { text-wrap: balance; max-width: 42ch; font-weight: 500; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.4; }
.hero-note {
  position: absolute; right: var(--pad); bottom: .4rem;
  font-size: .75rem; line-height: 1.3; color: var(--text-3);
}

.entry { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.25rem; padding: .8rem 1.4rem .8rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.3; white-space: nowrap;
}
.pill svg { width: 1.3rem; height: 1.3rem; flex: none; }
.pill-go {
  background: var(--text); color: var(--ground); text-decoration: none;
  transition: background-color .2s, transform .25s var(--ease-out);
}
.pill-go:hover { background: var(--tang); transform: translateY(-2px); }
.pill-soon { border: 1.5px solid var(--line-2); color: var(--text-2); }
.pill-t { display: inline-flex; align-items: center; gap: .55rem; }
.pill-soon small {
  margin-left: .15rem; padding: .25rem .45rem; border-radius: 999px; line-height: 1.3;
  background: rgb(245 246 250 / .1);
  font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}

/* ---------- One real edit ---------- */
/* No shape is fixed here: the cells take --cell-ar (sprite cell) and the wall columns and film line length
   from the project's demo.json (sections.js); the clip frame takes --loop-ar from the section's style. */

.edit { position: relative; padding-top: clamp(2rem, 4vw, 3rem); --loop-max-h: min(40rem, 80svh); }
.edit-stage {
  position: relative;
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); gap: 1.6rem;
  min-height: 100svh; padding: 2rem var(--pad);
}
.wall {
  grid-row: 1; grid-column: 1;
  display: grid; grid-template-columns: repeat(var(--wall-cols, 1), minmax(0, 1fr)); gap: 3px;
  align-self: center;
}
.wall .cell {
  aspect-ratio: var(--cell-ar); border-radius: 2px;
  background-color: var(--raise);
  opacity: .3; filter: saturate(.35) brightness(.8);
}
.wall.ready .cell, .film.ready .cell {
  background-image: var(--thumbs);
  background-size: calc(var(--sc) * 100%) calc(var(--sr) * 100%);
  background-position: var(--px) var(--py);
}
.wall .cell.kept { opacity: 1; filter: none; outline: 1.5px solid var(--tang); outline-offset: 1px; position: relative; z-index: 2; }
/* without a script: the whole contact sheet as one still, dimmed like the unkept frames.
   The noscript stays a box of its own: as display: contents Chrome would print its markup as text with scripts on. */
.wall > noscript { grid-column: 1 / -1; }
.wall-still {
  display: block; width: 100%; height: auto; max-height: 62svh; object-fit: contain;
  opacity: .45; filter: saturate(.5) brightness(.85);
}
.edit-title { grid-row: 1; grid-column: 1; align-self: center; position: relative; z-index: 3; pointer-events: none;
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95; text-shadow: 0 6px 40px rgb(7 8 11 / .9), 0 0 2px rgb(7 8 11 / .6); }
.edit-title span { display: block; }
.edit-lede { grid-row: 2; max-width: 60ch; color: var(--text-2); }
.film { grid-row: 3; }
/* --film-n: frames per line; a long film wraps into lines read left to right */
.film-row { display: grid; grid-template-columns: repeat(var(--film-n, 1), minmax(0, 1fr)); gap: 2px; }
.film-row .cell { aspect-ratio: var(--cell-ar); border-radius: 2px; opacity: 1; filter: none; }
.film-ruler {
  display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .55rem;
  font-size: .8125rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / var(--film-n, 1))) 0 0 / 100% 6px no-repeat;
  border-top: 1px solid var(--line);
}
.film-cuts { color: var(--tang); }

/* The clip is as wide as its shape allows under --loop-max-h; the facts sit beside it when there is room
   (a vertical clip) and drop below it otherwise (a widescreen one), where the request and the table pair up. */
.edit-result {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 6vw, 6rem);
  max-width: 76rem; margin: clamp(2.5rem, 4.5vw, 4rem) auto 0; padding: 0 var(--pad);
}
.loop { flex: 0 1 auto; width: min(100%, calc(var(--loop-max-h) * var(--loop-ar))); margin: 0; }
.loop-frame { position: relative; aspect-ratio: var(--loop-ar); overflow: hidden; border-radius: 14px; background: #000; }
.loop-frame video, .loop-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loop-toggle, .reel-toggle, .tile-toggle {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: rgb(7 8 11 / .72); cursor: pointer;
}
.loop-toggle { position: absolute; right: .7rem; bottom: .7rem; }
.loop-toggle svg, .reel-toggle svg, .tile-toggle svg { width: 1.1rem; height: 1.1rem; }
/* without a script nothing plays: the clip gets the browser's own controls instead (noscript) */
html:not(.js) .loop-toggle, html:not(.js) .cuts, html:not(.js) .band-hit { display: none; }
.loop figcaption { display: grid; gap: .5rem; margin-top: 1rem; }
.loop-cap { white-space: pre-line; min-height: 4.4em; font-weight: 600; font-size: 1.0625rem; line-height: 1.45; }
.loop-meta { font-size: .8125rem; line-height: 1.45; color: var(--text-3); }

.edit-facts {
  flex: 1 1 24rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 4rem); align-items: start; padding-top: .5rem;
}
.edit-note { grid-column: 1 / -1; }
.brief { margin: 0; }
.brief p { font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.4; }
.brief footer { margin-top: .8rem; font-size: .875rem; color: var(--text-3); }
.edl { margin: 0; border-bottom: 1px solid var(--line); }
.edl div {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding: .95rem 0; border-top: 1px solid var(--line);
}
.edl dt { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.edl dd { margin: 0; color: var(--text-2); }
.edl b { font: 800 1.2rem/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.edit-note { font-size: .875rem; color: var(--text-3); }

/* ---------- Say it your way ---------- */

.say {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: var(--section) var(--pad) 0;
}
.say-shot { position: relative; margin: 0; }
.say-shot img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 40%;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.say-shot figcaption { margin-top: .7rem; font-size: .75rem; color: var(--text-3); }
.say-body { display: grid; gap: 1.6rem; max-width: 40rem; }
.say-quote { font-weight: 700; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.32; }
.say-lede { color: var(--text-2); max-width: 46ch; }

.prefs { display: grid; gap: .85rem; margin-top: .4rem; }
.prefs fieldset { display: flex; align-items: center; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.prefs legend { float: left; width: 6.5rem; padding: 0; font-weight: 600; font-size: .9375rem; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opts span {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem;
  border: 1.5px solid var(--line-2); border-radius: 999px;
  font-weight: 600; font-size: .9375rem; color: var(--text-2);
  transition: background-color .18s, color .18s, border-color .18s;
}
.opts label:hover span { border-color: var(--text-2); color: var(--text); }
.opts input:checked + span { background: var(--text); border-color: var(--text); color: var(--ground); }
.opts input:focus-visible + span { outline: 2px solid var(--tang); outline-offset: 2px; }
.prefs-note { font-size: .9375rem; color: var(--text-3); min-height: 1.6em; }

/* ---------- Six steps ---------- */

.steps { padding: var(--section) var(--pad) 0; }
.steps-head { display: grid; gap: 1rem; max-width: 60rem; }
.steps-head p { color: var(--text-2); max-width: 50ch; }
.track { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.track-ruler {
  height: 22px; border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 100px) 0 100% / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px) 0 100% / 100% 6px no-repeat;
}
.clips { display: flex; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.clip {
  flex: var(--len, 1) 1 0; min-width: 0;
  padding: 1.05rem 1.1rem 1.3rem; border-radius: 10px;
  background: var(--raise); border: 1px solid var(--line);
  transition: background-color .35s, color .35s, border-color .35s;
}
.clip h3 { margin-bottom: .55rem; }
.clip p { font-size: .9375rem; line-height: 1.5; color: var(--text-2); transition: color .35s; }
.clip.is-on { background: var(--text); border-color: var(--text); color: var(--ground); }
.clip.is-on p { color: #3b404c; }
.playhead {
  position: absolute; top: 0; bottom: -10px; left: var(--ph, 0%); z-index: 2;
  width: 2px; margin-left: -1px; background: var(--tang); pointer-events: none;
}
.playhead::before {
  content: ""; position: absolute; top: -2px; left: -7px; width: 16px; height: 18px;
  background: var(--tang); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

/* ---------- Finishing layers ---------- */

.finish { padding: var(--section) var(--pad) 0; }
.layers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; row-gap: 2.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0 34px 0 0; list-style: none;
}
.layer { min-width: 0; --sl: 34px; }
.layer-shot {
  position: relative; overflow: hidden;
  width: calc(100% + var(--sl)); aspect-ratio: 4 / 5;
  clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%);
}
.layer-shot img, .layer-shot canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(7 8 11 / 0) 50%, rgb(7 8 11 / .6) 100%);
}
.layer-gl { opacity: 0; transition: opacity .5s; }
.layer-gl.on { opacity: 1; }
.layer h3 { margin: 1.2rem 0 .4rem; padding-left: calc(var(--sl) * .5); }
.layer > p { padding-left: calc(var(--sl) * .5); padding-right: 1rem; color: var(--text-2); font-size: .9688rem; line-height: 1.5; }
.layer .fx-sub { top: auto; bottom: 12%; left: 14%; right: 14%; z-index: 1; }
.layer .fx-plate { top: auto; bottom: 14%; left: 16%; z-index: 1; transition: clip-path .7s var(--ease-out) .25s; }
.js-motion .layer:not(.in-view) .fx-plate { clip-path: inset(0 100% 0 0); }
.layer-tag {
  display: none;
  position: absolute; z-index: 1; left: calc(var(--sl) + 12px); top: 14px;
  padding: .32rem .55rem; border-radius: 6px; background: rgb(7 8 11 / .74);
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.layer-gl.on ~ .layer-tag { display: inline-block; }
.tile-toggle { position: absolute; z-index: 2; right: calc(var(--sl) + .7rem); bottom: .7rem; }
/* Music and sound: a two-lane mix, music ducked under each line of speech */
.mix { position: absolute; z-index: 1; left: 6%; bottom: 7%; width: calc(88% - var(--sl)); height: auto; overflow: visible; }
.mix-bg { fill: rgb(7 8 11 / .76); }
.mix text { font: 600 11px var(--body); fill: var(--text-2); }
.mix-guide { stroke: rgb(245 246 250 / .22); stroke-width: 1; stroke-dasharray: 2 3; }
.mix-clip { fill: rgb(245 246 250 / .12); }
.mix-voice { stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; }
.mix-music { stroke: var(--tang); stroke-width: 1.7; stroke-linecap: round; transition: clip-path 1.4s var(--ease-out) .1s; }
.gain-line {
  fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s var(--ease-out) .3s;
}
.js-motion .layer:not(.in-view) .gain-line { stroke-dashoffset: 1; }
.js-motion .layer:not(.in-view) .mix-music { clip-path: inset(0 100% 0 0); }
.finish-note { margin-top: 2rem; font-size: .8125rem; color: var(--text-3); }

/* ---------- Control ---------- */

.control { padding: var(--section) var(--pad) 0; }
.control-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none;
}
.control-steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.control-steps svg {
  width: 3rem; height: 3rem; padding: .72rem; border-radius: 50%;
  background: var(--raise); border: 1px solid var(--line);
}
.control-steps p { color: var(--text-2); max-width: 32ch; padding-top: .2rem; }
.control-steps strong { display: block; color: var(--text); font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin-bottom: .25rem; }
.revision { grid-column: 2; display: grid; justify-items: start; gap: .45rem; margin: .4rem 0 0; }
.control-steps .revision-msg {
  max-width: 30ch; padding: .8rem 1.05rem; border-radius: 6px 20px 20px 20px;
  background: var(--cobalt); color: #fff; font-weight: 500; font-size: 1rem; line-height: 1.45;
}
.revision figcaption { font-size: .8125rem; color: var(--text-3); }

/* ---------- FAQ ---------- */

.faq { padding: var(--section) var(--pad) 0; }
.faq-list { max-width: 62rem; margin-top: clamp(2rem, 4vw, 3rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.4rem; height: 1.4rem; transition: transform .35s var(--ease-out); }
.faq summary:hover svg { color: var(--tang); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding-bottom: 1.4rem; color: var(--text-2); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* ---------- Close ---------- */

.close {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
  min-height: min(88svh, 52rem); margin-top: var(--section);
}
.close-bands { position: absolute; inset: 0; z-index: -1; display: flex; }
.close-bands img {
  flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover;
  margin-right: -7vw;
  clip-path: polygon(7vw 0, 100% 0, calc(100% - 7vw) 100%, 0 100%);
}
/* one slow push-in as the closing scene comes into view (sections.js marks it), the even bands pulling out;
   it settles within 5 s */
.close.in-view .close-bands img { animation: drift 4.8s ease-in-out both; }
.close-bands img:nth-child(2n) { transform: scale(1.06); }
.close.in-view .close-bands img:nth-child(2n) { animation-direction: reverse; }
.close-bands img:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - 7vw) 100%, 0 100%); }
.close-bands img:last-child { margin-right: 0; clip-path: polygon(7vw 0, 100% 0, 100% 100%, 0 100%); }
.close-bands::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgb(7 8 11 / .72), rgb(7 8 11 / .35) 70%);
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.close-body { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.4rem; max-width: 100%; padding: 4rem var(--pad); text-align: center; }
.close-body > * { max-width: 100%; }
.close-body h2 { font-size: clamp(2.2rem, 5.6vw, 5.25rem); text-shadow: 0 6px 36px rgb(0 0 0 / .4); }
.close-sub { font: 800 clamp(1.1rem, 2.1vw, 1.9rem)/1.15 var(--display); letter-spacing: -.015em; margin-bottom: .6rem; }
.close .entry { justify-content: center; }
.close .pill-soon { background: rgb(7 8 11 / .55); }

/* ---------- Footer ---------- */

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: 2.5rem var(--pad) 2.2rem; border-top: 1px solid var(--line);
}
.foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.foot nav a, .foot nav button {
  padding: .35rem 0; border: 0; background: none;
  font-weight: 500; font-size: .9375rem; color: var(--text-2); text-decoration: none;
}
.foot nav a:hover, .foot nav button:hover { color: var(--text); text-decoration: underline; }
.foot > p { flex-basis: 100%; font-size: .8125rem; color: var(--text-3); max-width: 70ch; }

/* ---------- Motion: heading cut ---------- */

.js-motion h2.cut-in { clip-path: polygon(0 0, 0 0, -14% 100%, -14% 100%); }

/* The pause buttons (script.js, motion) stop every loop on the page; CSS loops fall back to their still state */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1080px) {
  .clips { flex-wrap: wrap; }
  .clip { flex: 1 1 calc(33.333% - 4px); }
  .playhead, .track-ruler { display: none; }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-foot { flex-wrap: wrap; height: auto; min-height: 7.5rem; }
}

@media (max-width: 760px) {
  :root { --top-h: 64px; }
  .brand img { height: 26px; }
  .brand span { font-size: 1.1rem; }
  .signin { height: 2.4rem; padding: 0 1rem; }

  .hero { height: auto; min-height: 100svh; max-height: none; grid-template-rows: auto auto; }
  .reel { height: min(64svh, 600px); height: min(round(down, 64svh, 1px), 600px); min-height: 430px; }
  .band { transform: none; width: 100% !important; clip-path: none; display: none; --a: 0px !important; --b: 0px !important; }
  .band.is-cur, .band.is-next { display: block; }
  .band.is-next { visibility: hidden; }
  .band-hit { cursor: default; }
  .band-ruler { display: none; }
  .seams { display: none; }
  .hero-title {
    top: auto; bottom: 3.3rem; transform: none;
    text-align: left; white-space: normal; font-size: min(12.4vw, 3.6rem);
  }
  .hero-title span { display: block; }
  /* the label and the benefit line at top left, the timecode at top right; the layer just above the title,
     clear of the faces in the close-ups */
  .band-tc { bottom: auto; top: 18px; left: auto; right: 18px; }
  .band-label { top: 18px; }
  /* the benefit line keeps left of the faces (the points of interest sit at 48–68% of the frame's width) */
  .band-benefit { top: calc(18px + 3.5rem); left: 18px; width: min(15rem, calc(46% - 18px)); font-size: 1rem; line-height: 1.3; }
  .fx-sub, .fx-plate, .fx-music { top: auto; bottom: calc(3.3rem + 1.84 * min(12.4vw, 3.6rem) + .9rem); }
  .fx-music { width: auto; right: 16px; }
  /* the shown shot is always the playing one here: the subtitle keeps its playing size from the first paint */
  .reel .band .fx-sub { font-size: clamp(1rem, 1.35vw, 1.3rem); right: 18px; width: auto; transform: none; }
  .fx-key, .fx-title { top: 76px; left: auto; }
  .fx-key { right: 22px; transform: rotate(-6deg); }
  .fx-title { right: 24px; transform: none; }
  .reel { touch-action: pan-y; }
  .cuts {
    position: absolute; z-index: 5; left: var(--pad); right: calc(var(--pad) + 2.75rem + 8px); bottom: calc(.6rem - 8px);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  }
  .cuts button { height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
  .reel-toggle { right: var(--pad); bottom: calc(.6rem - 8px); }
  .cuts i { position: relative; display: block; height: 3px; border-radius: 2px; background: rgb(245 246 250 / .3); overflow: hidden; }
  .cuts i::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: 0 50%; transform: scaleX(0); }
  .cuts button.done i::after { transform: scaleX(1); }
  .cuts button.is-cur i::after { transform: scaleX(var(--p, 0)); background: var(--tang); }

  .hero-foot { flex-direction: column; align-items: stretch; gap: 1.1rem; height: auto; padding: 1.3rem var(--pad) 1.6rem; }
  .hero-note { position: static; }
  .entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .entry .pill-go { grid-column: 1 / -1; order: -1; }
  .pill { min-height: 3.1rem; min-width: 0; padding: .55rem .9rem; font-size: .9375rem; white-space: normal; }
  .pill-t { display: grid; gap: .2rem; text-align: left; }
  .pill-soon small { margin: 0; padding: 0; background: none; color: var(--text-3); }

  .edit-stage { min-height: 0; padding-top: 1rem; }
  .edit-stage { grid-template-rows: auto auto auto auto; }
  .edit-title { grid-row: 1; }
  .wall { grid-row: 2; gap: 2px; }
  .edit-lede { grid-row: 3; }
  .film { grid-row: 4; }
  .edit { --loop-max-h: 32rem; }

  .say { grid-template-columns: 1fr; }
  .say-shot { max-width: 24rem; }
  .prefs fieldset { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .prefs legend { float: none; width: auto; }

  .clips { display: block; margin: 0 0 0 .3rem; border-left: 1px solid var(--line-2); }
  .clip {
    position: relative; padding: .55rem .75rem .65rem 1.15rem;
    border: 0; border-radius: 0; background: none;
  }
  .clip::before {
    content: ""; position: absolute; left: -5px; top: .95rem; width: 9px; height: 9px; border-radius: 50%;
    background: var(--ground); border: 1.5px solid var(--line-2); transition: background-color .35s, border-color .35s;
  }
  .clip h3 { margin-bottom: .2rem; font-size: 1.0625rem; }
  .clip p { font-size: .9063rem; line-height: 1.45; }
  .clip.is-on { background: none; color: var(--text); }
  .clip.is-on::before { background: var(--tang); border-color: var(--tang); }
  .clip.is-on p { color: var(--text-2); }
  .track { margin-top: 1.6rem; }
  .layers { grid-template-columns: 1fr; padding-right: 0; }
  .layer .layer-shot { width: 100%; aspect-ratio: 16 / 11; }
  .control-steps { grid-template-columns: 1fr; }
  .close { min-height: 0; }
  .close-body { padding: 4.5rem var(--pad); }
  .close-bands img { margin-right: -14vw; clip-path: polygon(14vw 0, 100% 0, calc(100% - 14vw) 100%, 0 100%); }
}

/* ---------- Not found (404.html) ---------- */

.nf {
  display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  min-height: 100svh; padding: calc(var(--top-h) + 2rem) var(--pad) 4rem; text-align: center;
}
.nf-tc {
  padding: .38rem .62rem; border-radius: 8px; background: var(--raise-2);
  font-weight: 600; font-size: .875rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-2);
}
.nf h1 { font: 800 clamp(2.2rem, 5.6vw, 4.5rem)/.98 var(--display); letter-spacing: -.025em; max-width: 16ch; }
.nf p:not(.nf-tc) { color: var(--text-2); max-width: 40ch; }

/* Phones on their side (and any window this low): the hero fits the screen, the Telegram entry included */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --top-h: 60px; }
  .hero { height: 100svh; min-height: 0; max-height: none; grid-template-rows: minmax(0, 1fr) auto; }
  .reel { height: auto; min-height: 0; }
  .hero-foot {
    flex-direction: row; flex-wrap: wrap; align-items: center;
    height: auto; min-height: 0; gap: .5rem 1.5rem; padding: .6rem var(--pad) 1.25rem;
  }
  .hero-line { flex: 1 1 16rem; font-size: .9375rem; line-height: 1.35; }
  .entry { display: flex; flex-wrap: nowrap; gap: .5rem; }
  .pill { min-height: 2.75rem; padding: .4rem .95rem .4rem .8rem; font-size: .9375rem; }
  .pill-t { display: inline-flex; gap: .45rem; }
  .hero-note { position: absolute; right: var(--pad); bottom: .2rem; }
  /* A low reel holds the label above the title and one row under it: there the playing band shows its timecode
     and, beside it, its benefit line (1rem; above the title the faces fill the band's top). The finishing layers
     have no room left and stay off. */
  .band-fx { display: none; }
  .reel.has-on .band:not(.is-on) .band-tc { opacity: 0; }
  .band.is-on .band-label small { display: none; }
  .band-benefit {
    top: auto; bottom: 14px; left: calc(var(--a, 0px) * .06 + 18px + 5.6rem); right: calc(var(--b, 0px) * .95 + 14px);
    width: auto; font-size: 1rem; line-height: 1.25;
  }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 760px) {
  .hero-title { bottom: 3.1rem; font-size: min(7vw, 12svh); }
  .hero-title span { display: inline-block; }
  /* one shot: the timecode at its top right, the title at its foot; the benefit line under the label, left of the faces */
  .band-benefit { top: calc(18px + 1.6rem); bottom: auto; left: 18px; right: auto; width: min(24rem, calc(46% - 18px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}

/* ---------- Reading pages (terms.html) ---------- */
/* One text column of about 70 characters under the absolute header; headings in the display face, body in Onest */

.doc { padding: calc(var(--top-h) + clamp(2.5rem, 7vw, 5rem)) var(--pad) clamp(4rem, 9vw, 7rem); }
.doc-body { max-width: 38rem; margin: 0 auto; font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }
.doc h1 { font: 800 clamp(2.2rem, 5.6vw, 4rem)/.98 var(--display); letter-spacing: -.025em; color: var(--text); }
.doc-date { margin-top: 1.1rem; font-size: .875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.doc h2 {
  margin: 3rem 0 .9rem; scroll-margin-top: 1.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.2; letter-spacing: -.015em; color: var(--text);
}
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 1rem; }
.doc ul { margin: 0; padding-left: 1.25rem; }
.doc li + li { margin-top: .55rem; }
.doc li::marker { color: var(--text-3); }
.doc a { color: var(--text); }
.doc strong { color: var(--text); font-weight: 600; }
.doc-note { padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); color: var(--text); }
.foot nav a[aria-current="page"] { color: var(--text); }

/* ---------- Contact (contact/index.html, assets/js/contact.js) ---------- */
/* The form sits in the reading column; it needs the script, so without it only the address shows */

html:not(.js) .contact-form { display: none; }
.contact-lede { margin-top: 1.4rem; }
.contact-form, .contact-done, .contact-note { margin-top: 2.5rem; }
.contact-form { position: relative; display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--text); }
.field input, .field textarea {
  width: 100%; min-height: 3.25rem; margin: 0; padding: .8rem 1rem;
  border: 1.5px solid rgb(245 246 250 / .45); border-radius: 10px; background: var(--raise);
  font: 400 1rem/1.5 var(--body); color: var(--text);
  transition: border-color .2s;
}
.field textarea { display: block; min-height: 11rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--text-2); }
.field [aria-invalid="true"] { border-color: var(--tang); }
.field-error { font-weight: 600; font-size: .875rem; line-height: 1.4; color: var(--tang); }
.field-error:empty { display: none; }
/* The trap field for bots: out of sight, out of the tab order and of the accessibility tree */
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The Turnstile widget (size flexible: 65px tall, full width from 300px): its box holds the height before the
   script draws it, so Send does not jump. Its frame is inline: line-height 0 keeps the line from adding ~9px
   under it. The empty note stays in the accessibility tree to be announced */
.contact-widget { min-height: 65px; line-height: 0; }
.contact-check-note { margin-top: .5rem; }
.contact-check-note:empty { display: block; margin-top: 0; }
/* Without the check (no site key, no script) only Send and the address remain */
.contact-form[data-check="off"] .contact-check { display: none; }
.contact-form[data-check="off"] .contact-send .pill[aria-disabled="true"] { cursor: not-allowed; }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.contact-send .pill { min-width: 8rem; padding-inline: 1.6rem; border: 0; cursor: pointer; }
.contact-send .pill[aria-disabled="true"] { opacity: .6; cursor: progress; }
.contact-send .pill[aria-disabled="true"]:hover { background: var(--text); transform: none; }
.contact-status { flex: 1 1 16rem; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.contact-status a { color: var(--text); }
