:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-accent: #1a0d0c;
  --text: #f5f5f5;
  --text-2: #d4d4d4;
  --muted: #b5b5b5;
  --dim: #a3a3a3;
  --faint: #8f8f8f;
  --off: #707070;
  --label: #c9c9c9;
  --line: #1f1f1f;
  --rule: #2a2a2a;
  --border: #3a3a3a;
  --accent: #ff4d42;
  --gutter: clamp(20px, 5vw, 72px);
  --dots: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23ff4d42'/%3E%3Cpath d='M5.8 10.3l2.8 2.8 5.6-6' fill='none' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

/* the background is on html too, so no white shows past the end of the page */
html { scroll-behavior: smooth; background: var(--bg); }
footer { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.accent { color: var(--accent); }

section, footer { border-top: 1px solid var(--line); }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.glow { background-image: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(229, 53, 43, 0.18), transparent 70%); }

/* Type */
.label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}
.label.accent { color: var(--accent); }

h1, h2 { font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; }
h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: 20px; color: var(--muted); }
.note { font-size: 13px; color: var(--faint); }
.big, .huge, .num { font-variant-numeric: tabular-nums; }

.big {
  font-size: clamp(56px, 6.5vw, 96px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

/* Heading with an indented paragraph under it */
.intro { display: flex; flex-direction: column; gap: 28px; }
.intro h2 { max-width: 900px; }
.intro p {
  margin-left: clamp(0px, 3vw, 40px);
  max-width: 640px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-2);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 22px;
  text-decoration: none;
  cursor: pointer;
}
.btn span { display: inline-block; margin-left: 8px; transition: transform 0.2s; }
.btn:hover { color: var(--bg); filter: brightness(1.1); }
.btn:hover span { transform: translateX(4px); }
.btn.small { font-size: 14px; padding: 12px 16px; }
.btn.ghost {
  background: none;
  color: var(--text);
  border: 1px solid #5a5a5a;
  font-weight: 500;
  padding: 14px 22px;
}
.btn.ghost:hover { color: var(--text); border-color: var(--text); filter: none; }

/* Header sits over the hero */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
}
.wordmark {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 4px;
}
.nav-links a:hover { color: var(--text); }

/* Scroll progress */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Technical labels are set in a monospace face, like an instrument's readouts */
.label, .viewer-meta, .hud, .loader-count, .hero-note, .film-note, .viewer-note, .hero-scroll {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.label { font-size: 11.5px; letter-spacing: 0.14em; }

/* Film grain over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* A ring that trails the pointer and grows over anything clickable */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 45;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .cursor.is-on { opacity: 1; }
  /* The system pointer is hidden only once the ring is following the mouse,
     so the pointer never disappears if the script fails. A dot in the middle
     of the ring marks the exact spot. */
  .has-ring, .has-ring * { cursor: none !important; }
  .cursor::after {
    content: '';
    position: absolute;
    left: -2.5px;
    top: -2.5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }
  .cursor.is-drag::after { display: none; }
  .cursor span {
    position: absolute;
    left: -18px;
    top: -18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    font: 500 9px 'JetBrains Mono', monospace;
    letter-spacing: 0.12em;
    color: var(--bg);
    transition: scale 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s, border-color 0.25s;
  }
  .cursor.is-link span { scale: 1.8; border-color: var(--accent); background: rgba(255, 77, 66, 0.18); }
  .cursor.is-drag span { scale: 2.2; border-color: var(--accent); background: var(--accent); }
  .cursor.is-drag span::after { content: 'DRAG'; scale: 0.45; }
}

/* Headline words rise out of a mask, one after another */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 70ms);
}
.is-ready .hero h1 .w > span, .beat.is-active .w > span { transform: none; }
.beat:not(.is-active) .w > span { transition-duration: 0.3s; transition-delay: 0s; }

/* Loader: shown only when scripts run (the js class). It lifts away like a
   curtain when the hero is ready, and hides itself after 8s even if the
   script never finishes. */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  clip-path: inset(0);
  transition: clip-path 1.1s cubic-bezier(0.76, 0, 0.24, 1) 0.35s, visibility 0s 1.5s;
  animation: loader-timeout 0.7s ease 8s forwards;
}
.js .loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; animation: none; }
@keyframes loader-timeout { to { opacity: 0; visibility: hidden; } }
.is-loading, .is-loading body { overflow: hidden; }

/* corner marks, matching the film's overlay */
.loader > i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, 0.4); }
.loader > i:nth-child(1) { left: 28px; top: 28px; border-width: 1px 0 0 1px; }
.loader > i:nth-child(2) { right: 28px; top: 28px; border-width: 1px 1px 0 0; }
.loader > i:nth-child(3) { left: 28px; bottom: 28px; border-width: 0 0 1px 1px; }
.loader > i:nth-child(4) { right: 28px; bottom: 28px; border-width: 0 1px 1px 0; }

.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader-word {
  overflow: hidden;
  padding-bottom: 0.12em;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
/* the letters rise into place one after another */
.loader-word span {
  display: inline-block;
  transform: translateY(115%);
  animation: loader-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 55ms + 100ms);
}
@keyframes loader-rise { to { transform: none; } }
/* a hairline that fills as the page loads */
.loader-line { width: min(240px, 50vw); height: 1px; background: var(--border); }
.loader-line b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader-status, .loader-count { position: absolute; bottom: 30px; transition: opacity 0.4s ease; }
.loader-status { left: 62px; }
.loader-count { right: 62px; font-size: 11.5px; letter-spacing: 0.14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.loader.is-done .loader-mark { opacity: 0; transform: translateY(-24px); }
.loader.is-done .loader-status, .loader.is-done .loader-count { opacity: 0; }

/* As the curtain lifts, the hero still eases back from a slight zoom */
.js .hero-shot { transform: scale(1.14); transition: transform 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s; }
.js.is-ready .hero-shot { transform: none; }
.js .hero-side, .js .hero-head .label { opacity: 0; transition: opacity 0.9s ease 1.2s; }
.js.is-ready .hero-side, .js.is-ready .hero-head .label { opacity: 1; }
.is-ready .hero h1 .w > span { transition-delay: calc(var(--i) * 70ms + 700ms); }

/* Hero: a rendered still that stays put while the first screen scrolls away */
.hero { border-top: 0; }
.hero-track { height: 170vh; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
}
.hero-shot { position: absolute; inset: 0; }
.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 62% 55%;
  will-change: transform, opacity;
}
.hero-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, transparent 24%, transparent 55%, rgba(10, 10, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.75) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px var(--gutter) 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero-head { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(52px, 9vw, 152px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.92; max-width: 900px; }
.hero-side {
  flex: 0 1 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 8px;
}
.hero-side p { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note, .film-note {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 20px;
  font-size: 12px;
  color: var(--faint);
}
.signal {
  position: absolute;
  z-index: 1;
  /* right half only, clear of the note and the scroll label */
  inset: auto 0 0 54%;
  width: 46%;
  height: 130px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  animation: nudge 1.8s ease-in-out infinite alternate;
}
@keyframes nudge { to { translate: -50% 6px; opacity: 0.4; } }

/* Film: a rendered sequence that plays as you scroll, with one caption per stop */
.film-track { height: 620vh; }
.film-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #070606 url(assets/seq/000.webp) center / cover no-repeat;
}
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.5) 34%, transparent 62%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, transparent 20%, transparent 75%, rgba(10, 10, 10, 0.7) 100%);
  pointer-events: none;
}
.film-copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 var(--gutter);
  width: min(620px, calc(100% - 2 * var(--gutter)));
}
.beat {
  position: absolute;
  inset: auto 0 14vh 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.beat.is-active { opacity: 1; transform: none; pointer-events: auto; }
.beat.is-past { transform: translateY(-36px); }
.beat h2 { font-size: clamp(40px, 6vw, 96px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.beat p { font-size: 19px; font-weight: 500; line-height: 1.4; color: var(--text-2); max-width: 480px; }
/* Instrument overlay on the film: corner marks and small readouts */
.hud { position: absolute; z-index: 2; inset: 28px; pointer-events: none; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.hud i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, 0.55); }
.hud i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.hud i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.hud i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.hud i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.hud span { position: absolute; }
.hud b { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.hud-tl { left: 34px; top: 4px; }
.hud-tr { right: 34px; top: 4px; }
.hud-br { right: 34px; bottom: 4px; }
.film-note { left: 62px; bottom: 32px; }

/* Two rows of huge type that slide in opposite directions as the page scrolls */
.marquee { overflow: hidden; padding: 72px 0; }
.marquee-row {
  white-space: nowrap;
  font-size: clamp(64px, 11vw, 190px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-transform: uppercase;
  /* filled with the page colour and painted over its own stroke, which hides
     the lines where letter shapes overlap */
  color: var(--bg);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.42);
  paint-order: stroke fill;
  will-change: transform;
}
.marquee-row.solid { color: var(--text); -webkit-text-stroke: 0; margin-left: -30vw; }
.marquee-row b { font-weight: 600; color: var(--accent); -webkit-text-stroke: 0; }

.film-ticks {
  position: absolute;
  z-index: 2;
  right: 62px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.film-ticks i { width: 22px; height: 2px; background: var(--off); transition: width 0.3s, background 0.3s; }
.film-ticks i.is-active { width: 44px; background: var(--accent); }
.film-ticks i { align-self: flex-end; }

/* Stats row */
.stats-band .wrap { padding-top: 72px; padding-bottom: 72px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 48px; }
.stat { border-top: 1px solid var(--border); padding: 20px 0 32px; }
.stat.hot { border-top-color: var(--accent); }
.stat.hot .big { color: var(--accent); }
.stat p { margin-top: 8px; font-size: 17px; font-weight: 500; color: var(--muted); max-width: 320px; }

/* Hairline grid with square markers on every corner */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 72px;
  padding: 0 1px 1px 0;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 -1px -1px 0;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.cell::before, .cell::after {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 7px;
  background:
    linear-gradient(var(--text), var(--text)) top / 7px 7px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom / 7px 7px no-repeat;
  pointer-events: none;
  z-index: 1;
}
.cell::before { left: -4px; }
.cell::after { right: -4px; }
.cell.hot { background: var(--panel-accent); }
.cell p { font-size: 16px; color: var(--dim); }
.cell.hot p { color: var(--muted); }
.cell .cell-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.cell p.accent, .cell .accent { color: var(--accent); }
.cell .note { font-size: 13px; color: var(--faint); }
.cell .num { font-size: 48px; letter-spacing: -0.04em; line-height: 1.1; }
.cell .big { font-size: clamp(52px, 5.5vw, 84px); }
.cell .btn { align-self: flex-start; margin-top: 12px; }
.cell.with-icon { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cell.with-icon > div { display: flex; flex-direction: column; gap: 12px; }
.cell svg {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cell svg .accent-stroke { stroke: var(--accent); stroke-width: 3; }

/* Check lists */
.checks li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 20px;
  height: 20px;
  background: var(--check) center / contain no-repeat;
}

/* Pinned sections: the 3D view stays put while the steps scroll */
.pin-track { height: 460vh; }
.pin.flip .viewer { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.viewer {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    var(--dots) 0 0 / 4px 4px,
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(229, 53, 43, 0.22), transparent 70%),
    #0d0c0c;
}
.viewer-canvas { position: absolute; inset: 0; }
.viewer-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.viewer-canvas canvas:active { cursor: grabbing; }
.viewer-meta {
  position: absolute;
  inset: 24px 24px auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  pointer-events: none;
}
.viewer-part::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--accent);
}
.viewer-hint { display: none; color: var(--faint); }
.viewer.is-live .viewer-hint { display: inline; }
.viewer-note {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-size: 13px;
  color: var(--faint);
  pointer-events: none;
}

.pin-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--gutter);
  min-width: 0;
}
.pin-copy h2 { margin: 16px 0 40px; font-size: clamp(30px, 3.2vw, 48px); }
.step { position: relative; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step.is-active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.step h3 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.step button {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  color: var(--off);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.step button:hover { color: var(--muted); }
.step.is-active button { color: var(--text); }
.step-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.step.is-active .step-body { max-height: 340px; opacity: 1; }
.step-body p { margin-bottom: 16px; font-size: 17px; font-weight: 500; color: var(--text-2); max-width: 520px; }
.step-body .checks li { padding-top: 12px; padding-bottom: 12px; font-size: 16px; }
.step-body .checks li::before { top: 14px; }
.step-body .checks { margin-bottom: 20px; }
.step-body .label { display: block; margin-bottom: 10px; }

/* Split: media fills one half, copy the other */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 78vh;
  padding: 64px clamp(20px, 4vw, 56px);
  border-right: 1px solid var(--line);
  background: var(--dots) 0 0 / 4px 4px, #0d0c0c;
}
.split-media img { display: block; width: 100%; border: 1px solid var(--border); }
/* the screenshot wipes in from the left */
.split-media.reveal img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.split-media.reveal.in img { clip-path: inset(0); }
.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 80px var(--gutter);
  min-width: 0;
}
.split-copy h2 { font-size: clamp(30px, 3.2vw, 48px); }
.split-copy .checks { margin-top: 8px; border-bottom: 1px solid var(--rule); }

/* Proof */
.headline-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px;
  margin-top: 72px;
}
.headline-stat .huge {
  font-size: clamp(88px, 14vw, 208px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}
.headline-stat p {
  flex: 1 1 300px;
  padding-bottom: 12px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--text-2);
}
.caveat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  padding: 24px 0 0;
  border-top: 1px solid var(--accent);
}
.caveat p { color: var(--text-2); font-size: 17px; max-width: 900px; }

/* Result bars */
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}
.bar::before, .bar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
}
.bar::before { width: 100%; background: var(--rule); }
.bar::after {
  width: var(--v);
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.in .bar::after, .bar.in::after { transform: scaleX(1); }
.bar.hot { color: var(--accent); }
.bar.hot::after { background: var(--accent); }
.bars-note { margin-top: 20px; }

/* Reveal on scroll (classes are added by main.js, so no script means no hiding) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Compare */
.table-box { overflow-x: auto; margin-top: 72px; border: 1px solid var(--border); }
#compare .note { margin-top: 20px; }
table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}
th, td { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th {
  padding: 18px 20px;
  font-weight: 600;
  background: #141414;
  border-bottom-color: var(--border);
}
tbody th { font-weight: 500; color: var(--dim); }
tbody td { color: var(--text-2); }
table .us { color: var(--accent); background: var(--panel-accent); }
thead .us { border-bottom-color: var(--accent); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Call */
.call-band { background: var(--dots) 0 0 / 4px 4px; }
.call-band .intro .label { margin-bottom: -8px; }
.call-band .cell { gap: 20px; }
.call-band .checks { border-bottom: 1px solid var(--rule); }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.footer > div { display: flex; flex-direction: column; gap: 8px; }
.footer .brand { flex: 1 1 280px; }
.footer .brand .wordmark { font-size: 30px; }
.footer .team { flex: 0 1 320px; }
.footer p { color: var(--muted); font-size: 15px; }
.footer .team p { line-height: 1.8; }
.footer .built { margin-top: 8px; color: var(--faint); font-size: 13px; }
.footer .brand a { font-size: 15px; padding: 10px 0; }
.footer-grid {
  height: 300px;
  margin: 0 16px 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='14' height='14' fill='%23232323'/%3E%3C/svg%3E");
}

/* Narrow or short screens: nothing is pinned, the model sticks above the steps */
@media (max-width: 900px), (max-height: 639px) {
  .pin-track { height: auto; }
  .pin-sticky { position: static; height: auto; display: block; }
  .viewer {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 46vh;
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pin-copy { padding: 56px var(--gutter) 72px; }
  .viewer.is-live .viewer-hint { display: none; }
  .step-body { max-height: none; opacity: 1; }
  .step:not(.is-active) .step-body { opacity: 0.45; }
  .pin.flip .viewer { order: 0; border-left: 0; }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .wrap { padding-top: 80px; padding-bottom: 80px; }
  .hero-inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 28px; padding-bottom: 64px; }
  .hero-side { flex: 0 0 auto; }
  .hero-scroll { display: none; }
  .hero-sticky::before { background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, transparent 22%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.95) 78%); }
  /* the film sits in the top half, captions in the bottom half */
  .film-canvas { height: 50%; }
  .film-sticky { background-size: auto 50%; background-position: top center; }
  .film-sticky::before { background: linear-gradient(180deg, transparent 34%, var(--bg) 50%); }
  .film-copy { inset: 50% var(--gutter) 0 var(--gutter); width: auto; }
  .beat { inset: 28px 0 auto 0; gap: 14px; }
  .beat p { font-size: 17px; }
  .film-ticks, .film-note, .hud { display: none; }
  .signal { height: 80px; inset: auto 0 0 0; width: 100%; }
  .marquee { padding: 40px 0; }
  .cells { margin-top: 48px; }
  .cell { padding: 24px; }
  .footer-grid { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step-body, .step button, .btn span, .bar::after, .beat { transition: none; }
  .hero-scroll { animation: none; }
  .loader-word span { animation: none; transform: none; }
  .js .loader { transition: opacity 0.3s; }
  .js .loader.is-done { clip-path: none; opacity: 0; }
  .js .hero-shot { transform: none; transition: none; }
  .w > span { transform: none; transition: none; }
  .split-media.reveal img { clip-path: none; }
}
