/* =============================================================================
   Apptli
   The shell is deliberately near-monochrome. Every project brings its own
   colour in through --accent, so the work is the only thing with a palette.
   ========================================================================== */

/*
 * Light is the house style and the default, so it lives on bare :root — a
 * visitor with JavaScript off still gets the intended site. Dark is the
 * variant. --bg-rgb and --ink-rgb are the same colours as --bg and --ink as
 * bare triplets, so gradients and translucent chrome are written once and
 * follow whichever theme is active.
 */
:root {
  --bg-rgb:  247 245 241;
  --ink-rgb:  22  24  26;

  --bg:        rgb(var(--bg-rgb));
  --bg-2:      #ffffff;
  --bg-3:      #efece6;
  --bg-card:   #ffffff;

  --ink:       rgb(var(--ink-rgb));
  --mute:      rgb(var(--ink-rgb) / 0.68);
  --dim:       rgb(var(--ink-rgb) / 0.48);
  --faint:     rgb(var(--ink-rgb) / 0.22);
  --line:      rgb(var(--ink-rgb) / 0.12);
  --line-2:    rgb(var(--ink-rgb) / 0.20);
  --hover-wash: rgb(var(--ink-rgb) / 0.04);

  --accent:      #b07d1e;   /* fills, rules, marks */
  --accent-soft: #8a6114;   /* emphasis text — flips lighter in the dark theme */
  --on-accent:   #17120a;   /* text sitting on an accent fill */

  --good: #1d8a5e;
  --warn: #9a7208;
  --bad:  #b8402e;

  /* Window chrome on the browser frame. */
  --chrome-1: #e6e2da;
  --chrome-2: #d9d4ca;

  --shadow-strong: rgba(28, 24, 18, 0.30);
  --shadow-soft:   rgba(28, 24, 18, 0.16);

  /*
   * The scrim laid over photography. The walkthrough cards are recordings of
   * dark websites and always carry light type, so their scrim stays dark in
   * both themes; --scrim-ink is the type colour that goes with it.
   */
  --scrim-rgb: 6 7 8;
  --scrim-ink: #f3f0e9;

  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shell: 1320px;
  --pad: clamp(20px, 4.5vw, 56px);
  --nav-h: 74px;

  color-scheme: light;
}

/* ------------------------------- dark variant ------------------------------ */

:root[data-theme='dark'] {
  --bg-rgb:    9  10  11;
  --ink-rgb: 243 240 233;

  --bg-2:      #0e1012;
  --bg-3:      #14171a;
  --bg-card:   #101315;

  --mute:      rgb(var(--ink-rgb) / 0.60);
  --dim:       rgb(var(--ink-rgb) / 0.36);
  --faint:     rgb(var(--ink-rgb) / 0.18);
  --line:      rgb(var(--ink-rgb) / 0.09);
  --line-2:    rgb(var(--ink-rgb) / 0.17);
  --hover-wash: rgb(var(--ink-rgb) / 0.03);

  --accent:      #d8a34a;
  --accent-soft: #f0c886;

  --good: #4fd6a0;
  --warn: #e8b84b;
  --bad:  #ef7a6a;

  --chrome-1: #1c2024;
  --chrome-2: #15181b;

  --shadow-strong: rgba(0, 0, 0, 0.95);
  --shadow-soft:   rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* ------------------------------- typography ------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
}

h1 em, h2 em, h3 em, .ai {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}

.lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex: none;
}
.eyebrow.plain::before { display: none; }

.lede {
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.65;
  color: rgb(var(--ink-rgb) / 0.78);
  max-width: 58ch;
  margin: 22px 0 0;
}

.body {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--mute);
  max-width: 62ch;
}
.body + .body { margin-top: 1.1em; }
.body em { color: var(--accent-soft); font-style: italic; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding: clamp(80px, 11vh, 140px) 0; position: relative; }
.section.tight { padding: clamp(56px, 7vh, 88px) 0; }
.section.line-top { border-top: 1px solid var(--line); }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vh, 68px); }
.sec-head h2 { font-size: clamp(38px, 5vw, 68px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Layout rules below set `display`, which would otherwise beat the browser's
   own [hidden] rule and leave hidden elements on screen. */
[hidden] { display: none !important; }

/* --------------------------------- chrome --------------------------------- */

#grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -2%); }
  75%  { transform: translate(-1.5%, -1%); }
  100% { transform: translate(0, 0); }
}

#glow {
  position: fixed;
  left: 0; top: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, color-mix(in srgb, var(--accent) 0%, transparent) 62%);
  transition: opacity 0.7s var(--ease);
  will-change: transform;
}
body.pointer-fine #glow { opacity: 1; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

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

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease), height 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  height: 62px;
  background: rgb(var(--bg-rgb) / 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.top .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.brand b { font-weight: 600; }
.brand i { font-style: italic; font-weight: 400; color: var(--accent-soft); }

.nav {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  color: var(--mute);
}
.nav a { position: relative; transition: color 0.25s; padding: 6px 0; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); }

.nav-right { display: inline-flex; align-items: center; gap: 12px; }

.theme-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.theme-btn:hover { color: var(--ink); border-color: var(--accent-soft); transform: rotate(18deg); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-btn .moon { display: none; }
:root[data-theme='light'] .theme-btn .sun { display: none; }
:root[data-theme='light'] .theme-btn .moon { display: block; }

/*
 * Anything laid over photography or video takes its ink from the scrim beneath
 * it, not from the page theme — a dark scrim needs light type whichever theme
 * is running.
 *
 * The walkthrough cards are recordings of dark websites, so their scrim is
 * always dark. The studio bands follow --band-* below, which flips when the
 * photography is high-key.
 */
.on-dark,
.reel,
.frame-tag,
.player-veil {
  color: var(--scrim-ink);
}
.on-dark { color: var(--band-ink); }
.on-dark .body, .on-dark .lede { color: rgb(var(--band-ink-rgb) / 0.78); }
.on-dark .dim { color: rgb(var(--band-ink-rgb) / 0.55); }
.reel .note { color: rgb(243 240 233 / 0.68); }
.reel .chip { color: rgba(243, 240, 233, 0.72); border-color: rgba(243, 240, 233, 0.22); background: rgba(6, 7, 8, 0.55); }
.reel .chip.accent { color: var(--accent-soft); }
.reel .play-dot, .player-veil .play-dot {
  border-color: rgba(243, 240, 233, 0.28);
  background: rgba(6, 7, 8, 0.5);
}
.reel .play-dot::after, .player-veil .play-dot::after { border-left-color: #f3f0e9; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger i {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.25s;
}
.burger i::before, .burger i::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.burger i::before { top: -5px; }
.burger i::after  { top: 5px; }
body.menu-open .burger i { background: transparent; }
body.menu-open .burger i::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger i::after  { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgb(var(--bg-rgb) / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--nav-h) var(--pad) var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 54px);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.35s var(--ease);
}
.drawer a:hover { color: var(--accent-soft); padding-left: 12px; }
.drawer .drawer-foot { margin-top: 28px; color: var(--dim); }

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease),
              box-shadow 0.3s;
}
.pill:hover { border-color: var(--accent-soft); transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.pill[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.pill.fill {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.pill.fill:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 34px -14px var(--accent);
}
.pill.ghost { border-color: transparent; color: var(--mute); }
.pill.ghost:hover { color: var(--ink); border-color: var(--line-2); }
.pill.sm { padding: 8px 15px; font-size: 12.5px; }
.pill.lg { padding: 15px 30px; font-size: 14.5px; }
.pill.danger:hover { border-color: var(--bad); color: var(--bad); }

.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 14px;
}
.arrow-link span { transition: transform 0.35s var(--ease); display: inline-block; }
.arrow-link:hover span { transform: translateX(5px); }

/* --------------------------------- reveal --------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay='1'] { transition-delay: 0.09s; }
[data-reveal][data-delay='2'] { transition-delay: 0.18s; }
[data-reveal][data-delay='3'] { transition-delay: 0.27s; }
[data-reveal][data-delay='4'] { transition-delay: 0.36s; }
[data-reveal][data-delay='5'] { transition-delay: 0.45s; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 clamp(72px, 11vh, 120px);
  overflow: hidden;
}

/*
 * The recordings are of other people's websites, so they are never used as a
 * bare full-bleed background — a second navigation bar reading through behind
 * our own is confusing. Instead: a blurred, dimmed ambient wash for depth, and
 * the reel itself presented in a browser frame, which says "this is a website"
 * before a word is read.
 */
.hero-wash {
  position: absolute;
  inset: -10%;
  z-index: 0;
  filter: blur(46px) saturate(130%);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 2s var(--ease);
}
.hero-wash.on { opacity: 0.42; }
/* On the pale ground a blurred dark photograph reads as a smudge, so it sits back. */

:root[data-theme='dark'] .hero-wash.on { opacity: 0.42; }
.hero-wash img, .hero-wash video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% 40%, rgb(var(--bg-rgb) / 0.86) 0%, rgb(var(--bg-rgb) / 0.58) 45%, rgb(var(--bg-rgb) / 0.9) 100%),
    linear-gradient(to bottom, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 22%, rgb(var(--bg-rgb) / 0) 72%, var(--bg) 100%);
}

/* Direct child only — .hero-foot is also a .shell and must stay out of flow. */
.hero > .shell { position: relative; z-index: 2; width: 100%; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 86px); }
.hero .lede { max-width: 44ch; }

/* the browser frame */
.frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  box-shadow:
    0 70px 140px -50px var(--shadow-strong),
    0 0 0 1px rgb(var(--ink-rgb) / 0.04),
    0 0 120px -40px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: linear-gradient(to bottom, var(--chrome-1), var(--chrome-2));
  border-bottom: 1px solid var(--shadow-soft);
}
.frame-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.16);
  flex: none;
}
.frame-bar .url {
  flex: 1;
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(var(--scrim-rgb) / 0.34);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.5s;
}
.frame-screen { position: relative; aspect-ratio: 1920 / 1138; background: #000; }
.frame-screen img, .frame-screen video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.frame-screen img.on, .frame-screen video.on { opacity: 1; }
.frame-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
}

.hero > .hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  color: var(--dim);
  pointer-events: none;
}
.scroll-cue {
  width: 1px; height: 46px;
  background: var(--faint);
  overflow: hidden;
  flex: none;
}
.scroll-cue i {
  display: block;
  width: 100%; height: 42%;
  background: var(--accent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-110%); }
  100% { transform: translateY(250%); }
}

/* --------------------------------- marquee -------------------------------- */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 15px 0;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  animation: ticker 52s linear infinite;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: rgb(var(--ink-rgb) / 0.5);
}
.ticker-track b { font-style: normal; font-weight: 500; color: var(--ink); }
.ticker-track i { font-style: normal; color: var(--accent); font-size: 9px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------- stats --------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stats > div {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stats > div:first-child { border-left: 0; }
.stats b {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
}
.stats span { color: var(--dim); }

/* -------------------------------- reel grid ------------------------------- */

.reels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.reel {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease),
              box-shadow 0.5s var(--ease);
  isolation: isolate;
}
.reel:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 44px 90px -56px color-mix(in srgb, var(--accent) 70%, transparent);
}
.reel-media { position: absolute; inset: 0; }
.reel-media img, .reel-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
}
.reel-media video { opacity: 0; }
.reel.playing .reel-media video { opacity: 1; }
.reel.playing .reel-media img { opacity: 0; }
.reel:hover .reel-media img { transform: scale(1.035); }
/*
 * These are recordings of other people's websites, so the card has to make its
 * own title unmistakably the loudest thing on it. A deep bottom scrim sinks
 * the recorded page's own typography into texture.
 */
.reel-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(var(--scrim-rgb) / 0.97) 0%, rgb(var(--scrim-rgb) / 0.92) 26%, rgb(var(--scrim-rgb) / 0.55) 52%, rgb(var(--scrim-rgb) / 0.1) 82%),
    linear-gradient(to right, rgb(var(--scrim-rgb) / 0.62) 0%, rgb(var(--scrim-rgb) / 0) 62%);
}
.reel-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.4vw, 30px);
  z-index: 2;
  display: grid;
  gap: 9px;
}
.reel-body h3 { font-size: clamp(26px, 2.7vw, 38px); }
.reel-top {
  position: absolute;
  inset: 0 0 auto 0;
  padding: clamp(18px, 2.2vw, 26px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: var(--dim);
}
.reel .client { color: var(--accent); }
.reel .note { color: var(--mute); font-size: 14px; max-width: 42ch; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip.accent { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.play-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgb(var(--bg-rgb) / 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.play-dot::after {
  content: '';
  width: 0; height: 0;
  margin-left: 2px;
  border-left: 8px solid var(--ink);
  border-block: 5px solid transparent;
  transition: border-left-color 0.35s;
}
.reel:hover .play-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.reel:hover .play-dot::after { border-left-color: var(--on-accent); }

/* ------------------------------- case study ------------------------------- */

.case-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) 0 clamp(36px, 5vh, 60px);
}
.case-hero h1 { font-size: clamp(44px, 6.6vw, 96px); }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  color: var(--dim);
}
.case-meta b { color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 13.5px; }
.case-meta > span { display: grid; gap: 3px; }

.player {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 1920 / 1138;
  box-shadow: 0 60px 120px -60px var(--shadow-strong);
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s var(--ease);
  z-index: 2;
}
.player.started .player-poster { opacity: 0; pointer-events: none; }
.player-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgb(var(--scrim-rgb) / 0.7), rgb(var(--scrim-rgb) / 0.1));
  cursor: pointer;
  transition: opacity 0.5s var(--ease);
  border: 0;
  width: 100%;
  padding: 0;
}
.player.started .player-veil { opacity: 0; pointer-events: none; }
.player-veil .play-dot { width: 74px; height: 74px; }
.player-veil .play-dot::after { border-left-width: 14px; border-block-width: 9px; }
.player:hover .player-veil .play-dot { background: var(--accent); border-color: var(--accent); }
.player:hover .player-veil .play-dot::after { border-left-color: var(--on-accent); }

.cut-switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.cut-switch button {
  border: 0;
  background: transparent;
  color: var(--mute);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.cut-switch button[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.cut-switch button:hover:not([aria-pressed='true']) { color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.spec li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.6;
}
.spec li::before {
  content: '';
  flex: none;
  width: 6px; height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
/* Keep the whole line as one flex item so a bold lead-in cannot wrap alone. */
.spec li > span { flex: 1; min-width: 0; }
.spec li b { font-weight: 600; color: inherit; }

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

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.step {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step b {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}
.step h3 { font-size: 26px; }

/* ---------------------------------- forms --------------------------------- */

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 3.4vw, 40px);
}

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label { color: var(--mute); font-size: 13.5px; font-weight: 500; }
.field .hint { color: var(--dim); font-size: 12.5px; line-height: 1.5; }

.input {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
}
.input::placeholder { color: var(--dim); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
}
textarea.input { min-height: 130px; resize: vertical; line-height: 1.6; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23807d76' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

.note {
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  line-height: 1.55;
  display: none;
}
.note.on { display: block; }
.note.bad  { color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 45%, transparent);  background: color-mix(in srgb, var(--bad) 10%, transparent); }
.note.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }

/* --------------------------- the configurator ----------------------------- */

.build-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 340px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.step-rail { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; }
.step-rail button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  font-size: 13.5px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.step-rail button:hover { color: var(--mute); background: var(--hover-wash); }
.step-rail button[aria-current='true'] { color: var(--ink); border-left-color: var(--accent); }
.step-rail button .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
  transition: background 0.3s, box-shadow 0.3s;
}
.step-rail button.done .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.step-rail button[aria-current='true'] .dot { background: var(--accent); }

.pane { display: none; }
.pane.on { display: block; animation: paneIn 0.5s var(--ease); }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.pane > h2 { font-size: clamp(30px, 3.6vw, 46px); }
.pane > .blurb { color: var(--mute); margin: 12px 0 34px; max-width: 56ch; font-size: 15px; }

.fieldset { border: 0; margin: 0 0 34px; padding: 0; }
.fieldset > legend {
  padding: 0;
  margin-bottom: 14px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.fieldset .legend-note { color: var(--dim); font-size: 12.5px; margin: -8px 0 14px; }

.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: repeat(2, 1fr); }

.opt {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.opt:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.25s, background 0.25s;
}
.opt.check .mark { border-radius: 5px; }
.opt .mark::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--on-accent);
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.opt.check .mark::after {
  width: 10px; height: 6px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid var(--on-accent);
  border-bottom: 2px solid var(--on-accent);
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
}
.opt:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.opt:has(input:checked) .mark { background: var(--accent); border-color: var(--accent); }
.opt:has(input:checked) .mark::after { transform: scale(1); }
.opt.check:has(input:checked) .mark::after { transform: rotate(-45deg) scale(1); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.opt-body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.opt-head b { font-weight: 600; font-size: 14.5px; }
.opt-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.opt-price.zero { color: var(--dim); }
.opt .why { color: var(--dim); font-size: 13px; line-height: 1.55; }

/* the running total */

.tally { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.tally-card {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.tally-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.tally-total {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.tally-total.bump { animation: bump 0.45s var(--ease); }
@keyframes bump {
  0%   { transform: none; }
  35%  { transform: translateY(-3px); color: var(--accent-soft); }
  100% { transform: none; }
}
.tally-sub { color: var(--dim); }
.tally-mo { color: var(--accent-soft); font-family: var(--mono); font-size: 12.5px; }

.tally-lines {
  list-style: none;
  margin: 0;
  padding: 14px 22px;
  display: grid;
  gap: 9px;
  max-height: 40vh;
  overflow-y: auto;
}
.tally-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.45;
}
.tally-lines li span:last-child {
  font-family: var(--mono);
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tally-lines li.uplift span:last-child { color: var(--accent-soft); }
.tally-lines .empty { color: var(--dim); font-style: italic; }
.tally-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tally-note { color: var(--dim); font-size: 11.5px; line-height: 1.5; }

.pane-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------- files --------------------------------- */

.drop {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
  display: grid;
  gap: 7px;
  place-items: center;
}
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.drop b { font-size: 15px; }
.drop span { color: var(--dim); font-size: 12.5px; }

.files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 13.5px;
}
.files .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .fsize { color: var(--dim); font-family: var(--mono); font-size: 11.5px; }
.files .x {
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
}
.files .x:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* --------------------------------- account -------------------------------- */

.brief-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.brief-row:hover { border-color: var(--line-2); transform: translateY(-2px); }
.brief-row h3 { font-size: 24px; }
.brief-row .meta { color: var(--dim); margin-top: 7px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.brief-row .right { display: grid; gap: 10px; justify-items: end; }
.brief-price { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--mute);
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.draft    { color: var(--dim); }
.badge.new      { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.badge.reading  { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.quoted   { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge.won      { color: var(--good); border-color: var(--good); }
.badge.archived { color: var(--dim); }

.empty-state {
  text-align: center;
  padding: clamp(48px, 9vh, 90px) 24px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.empty-state h3 { font-size: 30px; }
.empty-state p { color: var(--mute); max-width: 44ch; margin: 0; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; color: var(--mute);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; transition: background 0.3s, color 0.3s;
}
.tabs button[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.tabs button:hover:not([aria-pressed='true']) { color: var(--ink); }

.answer-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.answer-table th, .answer-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.answer-table th { color: var(--dim); font-weight: 500; width: 40%; }

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

.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(52px, 8vh, 86px) 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 0.8fr); gap: 40px; }
.foot h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--mute); transition: color 0.25s; }
.foot a:hover { color: var(--ink); }
.foot-brand { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.foot-brand i { font-style: italic; font-weight: 400; color: var(--accent-soft); }
.foot-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
}

/* -------------------------------- utilities ------------------------------- */

.stack { display: grid; gap: 20px; }
.stack.sm { gap: 12px; }
.stack.lg { gap: 34px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.center { text-align: center; }
.muted { color: var(--mute); }
.dim { color: var(--dim); }
.accent { color: var(--accent-soft); }
.mt0 { margin-top: 0; }
.hidden { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgb(var(--ink-rgb) / 0.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-head { padding: calc(var(--nav-h) + clamp(48px, 8vh, 88px)) 0 0; }

/* ------------------------------- responsive ------------------------------- */

/* ------------------------- photographic section bands --------------------- */

/*
 * The studio photography in the bands and the step cards.
 *
 * Each theme ships its own photography — high-key under studio/light/, low-key
 * under studio/dark/ — so the scrim and the ink that sit on it follow the theme
 * directly. Light theme: a pale veil with the page's dark ink. Dark theme: a
 * dark veil with light ink.
 */
:root {
  --band-scrim-rgb: 250 248 244;
  --band-ink: #16181a;
  --band-ink-rgb: 22 24 26;
}
:root[data-theme='dark'] {
  --band-scrim-rgb: var(--scrim-rgb);
  --band-ink: #f3f0e9;
  --band-ink-rgb: 243 240 233;
}

/*
 * Themed photography.
 *
 * Every studio slot exists twice — a high-key frame under studio/light/ and a
 * low-key one under studio/dark/ — and the pair swaps with the theme. They are
 * CSS backgrounds rather than <img> so the browser only ever fetches the set
 * actually on screen, and the toggle is instant with no reload.
 */
.themed-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

[data-img='hero']           { background-image: url('/assets/studio/light/hero.jpg'); }
[data-img='step-watch']     { background-image: url('/assets/studio/light/step-watch.jpg'); }
[data-img='step-configure'] { background-image: url('/assets/studio/light/step-configure.jpg'); }
[data-img='step-own']       { background-image: url('/assets/studio/light/step-own.jpg'); }
[data-img='offer']          { background-image: url('/assets/studio/light/offer.jpg'); }
[data-img='cta']            { background-image: url('/assets/studio/light/cta.jpg'); }
[data-img='signin']         { background-image: url('/assets/studio/light/signin.jpg'); }

:root[data-theme='dark'] [data-img='hero']           { background-image: url('/assets/studio/dark/hero.jpg'); }
:root[data-theme='dark'] [data-img='step-watch']     { background-image: url('/assets/studio/dark/step-watch.jpg'); }
:root[data-theme='dark'] [data-img='step-configure'] { background-image: url('/assets/studio/dark/step-configure.jpg'); }
:root[data-theme='dark'] [data-img='step-own']       { background-image: url('/assets/studio/dark/step-own.jpg'); }
:root[data-theme='dark'] [data-img='offer']          { background-image: url('/assets/studio/dark/offer.jpg'); }
:root[data-theme='dark'] [data-img='cta']            { background-image: url('/assets/studio/dark/cta.jpg'); }
:root[data-theme='dark'] [data-img='signin']         { background-image: url('/assets/studio/dark/signin.jpg'); }

/*
 * The veil over the studio photography.
 *
 * Each theme has its own set, so each theme gets its own veil. High-key frames
 * need a much lighter one — a scrim heavy enough to sink a near-black image
 * erases a near-white one — and it is densest where the type sits: the top of a
 * step card, the left of a band. The low-key set wants the opposite, weighted
 * to the bottom where those frames are already darkest.
 */

.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.band-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.band-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgb(var(--band-scrim-rgb) / 0.88) 0%,
      rgb(var(--band-scrim-rgb) / 0.6) 48%,
      rgb(var(--band-scrim-rgb) / 0.3) 100%),
    linear-gradient(to bottom,
      rgb(var(--band-scrim-rgb) / 0.5) 0%,
      rgb(var(--band-scrim-rgb) / 0.2) 40%,
      rgb(var(--band-scrim-rgb) / 0.55) 100%);
}
.band.center .band-media::after {
  background: linear-gradient(
    to bottom,
    rgb(var(--band-scrim-rgb) / 0.8),
    rgb(var(--band-scrim-rgb) / 0.66) 50%,
    rgb(var(--band-scrim-rgb) / 0.84)
  );
}

:root[data-theme='dark'] .band-media::after {
  background:
    linear-gradient(to right, rgb(var(--band-scrim-rgb) / 0.94) 0%, rgb(var(--band-scrim-rgb) / 0.72) 46%, rgb(var(--band-scrim-rgb) / 0.5) 100%),
    linear-gradient(to bottom, rgb(var(--band-scrim-rgb) / 0.7) 0%, rgb(var(--band-scrim-rgb) / 0.35) 40%, rgb(var(--band-scrim-rgb) / 0.8) 100%);
}
:root[data-theme='dark'] .band.center .band-media::after {
  background: linear-gradient(to bottom, rgb(var(--band-scrim-rgb) / 0.86), rgb(var(--band-scrim-rgb) / 0.7) 50%, rgb(var(--band-scrim-rgb) / 0.9));
}

/* the three step cards carry their own image */
.step {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.step-img {
  z-index: -1;
  opacity: 1;
  transform: scale(1.02);
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.step:hover .step-img { transform: scale(1.06); }
.step::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgb(var(--band-scrim-rgb) / 0.9) 0%,
    rgb(var(--band-scrim-rgb) / 0.74) 55%,
    rgb(var(--band-scrim-rgb) / 0.5) 100%
  );
}

:root[data-theme='dark'] .step-img { opacity: 0.85; }
:root[data-theme='dark'] .step:hover .step-img { opacity: 1; }
:root[data-theme='dark'] .step::after {
  background: linear-gradient(to top, rgb(var(--band-scrim-rgb) / 0.95) 22%, rgb(var(--band-scrim-rgb) / 0.8) 58%, rgb(var(--band-scrim-rgb) / 0.55));
}

.step.lit { color: var(--band-ink); }
.step.lit .body { color: rgb(var(--band-ink-rgb) / 0.74); }

@media (max-width: 1080px) {
  .build-grid { grid-template-columns: 1fr; }
  .step-rail {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .step-rail::-webkit-scrollbar { display: none; }
  .step-rail button {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    padding: 10px 14px;
  }
  .step-rail button[aria-current='true'] { border-bottom-color: var(--accent); }
  .tally { position: static; }
  .tally-lines { max-height: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav-right .pill:not(.fill) { display: none; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 34px; }
  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + 30px); }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); }
}

@media (max-width: 720px) {
  .reels { grid-template-columns: 1fr; }
  .opts.two { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero > .hero-foot { position: static; margin-top: 40px; padding-inline: var(--pad); }
  .scroll-cue { display: none; }
  .brief-row { grid-template-columns: 1fr; }
  .brief-row .right { justify-items: start; }
  .foot-grid { grid-template-columns: 1fr; }
  .case-meta { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  #grain { display: none; }
}
