/* ============================================================
   Blu. — Editorial Swiss agency site
   ============================================================ */

:root {
  /* Color (light) */
  --bg: #F2F4F8;
  --bg-2: #E7EAF1;
  --fg: #0A0B10;
  --fg-soft: #1F2129;
  --muted: #6E7180;
  --line: rgba(10, 11, 16, 0.12);
  --line-strong: rgba(10, 11, 16, 0.32);
  --accent: #1F4BFF;
  --accent-ink: #ffffff;
  --warm: #FF5B36;
  --green: #1FB573;
  --plum: #6B3FFF;
  --sun: #FFC23D;
  --tile: #DCE0EA;

  /* Density (regular) */
  --section-pad-y: clamp(80px, 12vw, 180px);
  --gutter: clamp(20px, 3vw, 56px);
  --rhythm: 1.55;

  /* Type */
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Accent face — used sparingly to flag a few key words */
  --accent-face: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;

  --display-italic: italic;
  --display-weight: 400;
  --body-weight: 400;
  --tracking-mono: 0.12em;
  --tracking-display: -0.02em;
}

[data-theme="dark"] {
  --bg: #0A0A0C;
  --bg-2: #131316;
  --fg: #F1EEE6;
  --fg-soft: #D7D4CC;
  --muted: #8A867D;
  --line: rgba(241, 238, 230, 0.14);
  --line-strong: rgba(241, 238, 230, 0.4);
  --tile: #1A1A1E;
  --warm: #FF7A5A;
  --green: #3FD18F;
  --plum: #8A66FF;
  --sun: #FFD060;
}

/* Density variants */
[data-density="compact"] {
  --section-pad-y: clamp(56px, 8vw, 120px);
  --gutter: clamp(16px, 2vw, 36px);
  --rhythm: 1.45;
}
[data-density="spacious"] {
  --section-pad-y: clamp(120px, 16vw, 240px);
  --gutter: clamp(28px, 4vw, 80px);
  --rhythm: 1.65;
}

/* Typography pair variants */
[data-pair="technical"] {
  --display: 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --display-italic: normal;
  --display-weight: 500;
  --tracking-display: -0.035em;
}
[data-pair="classical"] {
  --display: 'DM Serif Display', serif;
  --body: 'DM Sans', sans-serif;
  --display-italic: normal;
  --display-weight: 400;
  --tracking-display: -0.015em;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: var(--body-weight);
  font-size: 16px;
  line-height: var(--rhythm);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  position: relative;
}

/* Ambient cursor-following gradient — premium interactive bg */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  --blob-speed: 1;
  transition: --blob-speed 0.6s ease;
}
.ambient::before,
.ambient::after {
  content: '';
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.ambient::before {
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  top: -25vmax;
  left: -25vmax;
  opacity: 0.55;
  animation: blobFloatA calc(22s / var(--blob-speed)) ease-in-out infinite alternate;
  transform: translate3d(calc(var(--mx, 0) * -1), calc(var(--my, 0) * -1), 0);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease;
}
.ambient::after {
  background: radial-gradient(circle, var(--warm) 0%, transparent 60%);
  bottom: -30vmax;
  right: -25vmax;
  opacity: 0.5;
  animation: blobFloatB calc(26s / var(--blob-speed)) ease-in-out infinite alternate;
  transform: translate3d(calc(var(--mx, 0) * -0.85), calc(var(--my, 0) * -0.85), 0);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease;
}
.ambient .blob3 {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--plum) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.4;
  top: 20%;
  left: 30%;
  animation: blobFloatC calc(30s / var(--blob-speed)) ease-in-out infinite alternate;
  transform: translate3d(calc(var(--mx, 0) * -0.7), calc(var(--my, 0) * -0.7), 0);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease;
}
.ambient .blob4 {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green) 0%, transparent 60%);
  filter: blur(70px);
  opacity: 0.35;
  bottom: 10%;
  left: 5%;
  animation: blobFloatD calc(28s / var(--blob-speed)) ease-in-out infinite alternate;
  transform: translate3d(calc(var(--mx, 0) * -0.6), calc(var(--my, 0) * -0.6), 0);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease;
}

[data-theme="light"] {
  /* In light theme, ambient blobs sit above body bg */
}
[data-theme="light"] .ambient::before { opacity: 0.42; }
[data-theme="light"] .ambient::after  { opacity: 0.38; }
[data-theme="light"] .ambient .blob3   { opacity: 0.32; }
[data-theme="light"] .ambient .blob4   { opacity: 0.28; }

/* Cursor-tracked blob — contrasting accent that follows the mouse */
.ambient .cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 28vmax;
  height: 28vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--warm) 0%, transparent 60%);
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  transform: translate3d(var(--cx, 50vw), var(--cy, 50vh), 0) translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform;
}
[data-theme="dark"] .ambient .cursor-blob {
  background: radial-gradient(circle, var(--sun) 0%, transparent 60%);
  opacity: 0.45;
}

/* Active mode — while the mouse is moving, big blobs accelerate and brighten */
.ambient.is-active { --blob-speed: 3; }
.ambient.is-active::before { opacity: 0.7; }
.ambient.is-active::after  { opacity: 0.65; }
.ambient.is-active .blob3   { opacity: 0.55; }
.ambient.is-active .blob4   { opacity: 0.5; }
[data-theme="light"] .ambient.is-active::before { opacity: 0.55; }
[data-theme="light"] .ambient.is-active::after  { opacity: 0.5; }
[data-theme="light"] .ambient.is-active .blob3   { opacity: 0.45; }
[data-theme="light"] .ambient.is-active .blob4   { opacity: 0.42; }

@keyframes blobFloatA {
  0%   { translate: 0 0; }
  100% { translate: 8vw 6vh; }
}
@keyframes blobFloatB {
  0%   { translate: 0 0; }
  100% { translate: -6vw -8vh; }
}
@keyframes blobFloatC {
  0%   { translate: 0 0; }
  100% { translate: -10vw 4vh; }
}
@keyframes blobFloatD {
  0%   { translate: 0 0; }
  100% { translate: 6vw -6vh; }
}

/* Keep all real content above the ambient layer */
.nav, .shell, .marquee-wrap, .footer, .cta, .section, .hero,
.tweaks-panel, .showreel, .page-head { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   Layout primitives
   ============================================================ */
.shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* ============================================================
   Type system
   ============================================================ */
.label-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.label-mono .dash { display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 8px 3px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  line-height: 0.92;
  color: var(--fg);
  margin: 0;
}

h1.display { font-size: clamp(64px, 12vw, 220px); }
h2.display { font-size: clamp(48px, 8vw, 140px); }
h3.display { font-size: clamp(32px, 4.5vw, 84px); line-height: 1; }

.lede {
  font-family: var(--body);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 56ch;
}

.body-md { font-size: 16px; color: var(--fg-soft); line-height: 1.55; }
.body-sm { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Accent word — flips a single important word to the accent face.
   Use sparingly: one, maybe two per passage. Inherits size & color so it
   reads as the same sentence, just with a different voice. */
.kw {
  font-family: var(--accent-face);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.015em;
  /* keep optical sizing in check inside large display type */
  font-optical-sizing: auto;
}
.lede .kw, .body-md .kw, .body-sm .kw { color: var(--fg); }

.numeral {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* The blue dot — brand element */
.bdot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.04em;
  transform: translateY(0.02em);
}
.bdot.lg { width: 0.42em; height: 0.42em; }
.bdot.sm { width: 0.5em; height: 0.5em; vertical-align: middle; transform: translateY(-0.05em); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); padding-top: 14px; padding-bottom: 14px; }

.brand {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: 28px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
[data-pair="technical"] .brand,
[data-pair="classical"] .brand { font-style: normal; }

.brand-dot {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 16px 12px 18px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
.nav-cta-arrow { display: inline-block; transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }
.nav-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(140px, 18vw, 240px);
  padding-bottom: clamp(60px, 8vw, 140px);
  position: relative;
  overflow: visible;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-bottom: clamp(32px, 4vw, 64px);
}
.hero-meta > *:nth-child(1) { grid-column: span 4; }
.hero-meta > *:nth-child(2) { grid-column: span 4; }
.hero-meta > *:nth-child(3) { grid-column: span 4; text-align: right; }

.hero-headline { position: relative; }
.hero-headline .line { display: block; }
.hero-headline em {
  font-style: var(--display-italic);
  color: var(--fg);
}

/* "websites" rotates through different type styles (driven by app.js).
   The line is a fixed-size box; app.js measures each font's ink and scales the
   word to a constant visual height, anchored to the bottom-left. Because the
   box never changes size, none of the surrounding lines ever move. */
.line-cycle {
  display: block;
  width: 6em;        /* fixed width of the "websites" line */
  height: 0.9em;     /* fixed height — reserves the vertical space */
  position: relative;
  overflow: visible;
}
.line-cycle .font-cycle {
  position: absolute;
  left: 0;
  bottom: 0;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  transform-origin: left bottom;
  will-change: transform;
}
.hero-headline .ind {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: top;
  margin-right: 12px;
  font-style: normal;
}

.hero-foot {
  margin-top: clamp(48px, 6vw, 100px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: end;
}
.hero-foot .lede { grid-column: 7 / span 5; }
.hero-foot .scroll-cue { grid-column: 1 / span 4; align-self: end; }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .arrow {
  width: 28px; height: 1px; background: currentColor; position: relative;
}
.scroll-cue .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

/* Hero variant switching: show only the matching headline */
.hero .hero-headline { display: none; }
.hero[data-variant="manifesto"] .hero-manifesto,
.hero[data-variant="stacked"] .hero-stacked,
.hero[data-variant="index"] .hero-index { display: block; }
.hero[data-variant="index"] .hero-index { display: grid; }

/* Hero variant: Stacked */
.hero[data-variant="stacked"] .hero-headline .line {
  display: block;
  font-size: clamp(80px, 16vw, 280px);
  line-height: 0.86;
}
.hero[data-variant="stacked"] .hero-headline .line.indent-1 { padding-left: 0; }
.hero[data-variant="stacked"] .hero-headline .line.indent-2 { padding-left: 12vw; }
.hero[data-variant="stacked"] .hero-headline .line.indent-3 { padding-left: 4vw; }

/* Hero variant: Index — large featured number-led */
.hero[data-variant="index"] .hero-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--gutter);
}
.hero[data-variant="index"] .hero-headline .ix-num {
  font-size: clamp(180px, 30vw, 520px);
  line-height: 0.78;
  color: var(--fg);
  letter-spacing: -0.06em;
}
.hero[data-variant="index"] .hero-headline .ix-words {
  font-size: clamp(40px, 5vw, 92px);
  line-height: 0.95;
  text-align: right;
  padding-bottom: 0.1em;
}

/* Floating ticker line at bottom of hero */
.hero-ticker {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

/* ============================================================
   Showreel band (replaces marquee)
   ============================================================ */
.showreel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--gutter);
  align-items: end;
  position: relative;
  overflow: hidden;
}
.showreel-meta { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--muted); }
.showreel-meta strong { display: block; color: var(--fg); margin-top: 6px; font-weight: 500; }
.showreel-headline {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
[data-pair="technical"] .showreel-headline,
[data-pair="classical"] .showreel-headline { font-style: normal; }
.showreel-headline em { color: var(--accent); font-style: var(--display-italic); }
.showreel-headline em.warm { color: var(--warm); }
.showreel-headline em.green { color: var(--green); }
.showreel-headline em.plum { color: var(--plum); }
.showreel-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-self: center;
}
.showreel-tiles .mini {
  aspect-ratio: 1;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.showreel-tiles .mini::after { display: none; }
/* Each mini tile is a little type specimen: one big glyph + a whispered caption */
.showreel-tiles .mini-glyph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: color-mix(in oklab, var(--fg) 88%, transparent);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.showreel-tiles .mini-glyph .dot { color: var(--accent); }
.showreel-tiles .mini:hover .mini-glyph { transform: scale(1.12) rotate(-4deg); }
.showreel-tiles .mini-cap {
  position: absolute;
  z-index: 2;
  left: 8px; bottom: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 60%, transparent);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .showreel { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero — Liquid art stage (generative metaball field)
   ============================================================ */
.hero-liquid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.hero-liquid .art-stage {
  position: relative; width: 100%; height: clamp(520px, 60vw, 760px);
  border-radius: 0; overflow: hidden; border: none;
  background: radial-gradient(120% 120% at 70% 30%, #16122024 0%, #070509 72%), #070509;
  cursor: crosshair; isolation: isolate;
}
.hero-liquid .art-stage canvas,
.hero-liquid .art-stage .layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-liquid .stage-cap {
  position: absolute; top: 16px; left: 18px; z-index: 6;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.62); pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.hero-liquid .stage-cap .ping {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 70%, transparent);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-liquid .art-headline {
  position: absolute; z-index: 5; pointer-events: none;
  left: calc(max(100vw - 1600px, 0px) / 2 + var(--gutter)); bottom: clamp(20px, 4vw, 76px);
  font-family: var(--display); font-style: var(--display-italic); font-weight: var(--display-weight);
  font-size: clamp(64px, 12vw, 220px); line-height: 0.92; letter-spacing: var(--tracking-display); margin: 0;
  color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,.45);
}
.hero-liquid .goo-field { filter: blur(46px) saturate(1.4); }
.hero-liquid .mblob { position: absolute; border-radius: 50%; will-change: transform; top: 0; left: 0; }
.hero-liquid .mblob.cursor { mix-blend-mode: screen; }
.hero-liquid .grain {
  z-index: 4; opacity: .3; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.6) .5px, transparent .5px);
  background-size: 3px 3px;
}

/* ============================================================
   Marquee (legacy — unused)
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 44px) 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  gap: clamp(40px, 5vw, 96px);
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: clamp(40px, 5vw, 96px);
  white-space: nowrap;
  color: var(--fg);
}
.marquee-item .sep {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
[data-pair="technical"] .marquee-item,
[data-pair="classical"] .marquee-item { font-style: normal; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section-head .ix { grid-column: span 2; }
.section-head .ti { grid-column: span 7; }
.section-head .meta { grid-column: span 3; text-align: right; }

@media (max-width: 900px) {
  .section-head .ix, .section-head .ti, .section-head .meta { grid-column: 1 / -1; text-align: left; }
}

/* ============================================================
   Capabilities / Services
   ============================================================ */
.caps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--line);
}
.cap {
  grid-column: span 4;
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cap:not(:nth-child(3n))::after {
  /* vertical separator on right of cap, except last in row */
}
.cap-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  color: var(--muted);
}
.cap-name {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
[data-pair="technical"] .cap-name,
[data-pair="classical"] .cap-name { font-style: normal; }
.cap-body { color: var(--fg-soft); font-size: 15px; line-height: 1.5; max-width: 36ch; }
.cap-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.cap-list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.cap-list li::before {
  content: ''; display: inline-block; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}

@media (max-width: 900px) { .cap { grid-column: 1 / -1; } }

/* ============================================================
   Work tiles
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 56px) var(--gutter);
}
.work-item {
  position: relative;
  display: block;
  cursor: pointer;
}
.work-item.span-7 { grid-column: span 7; }
.work-item.span-5 { grid-column: span 5; }
.work-item.span-6 { grid-column: span 6; }
.work-item.span-12 { grid-column: span 12; }
.work-item.offset-1 { grid-column: 2 / span 6; }
.work-item.offset-2 { grid-column: 7 / span 5; }

.tile {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--tile);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.work-item:hover .tile { transform: scale(0.99); }
.tile.tall { aspect-ratio: 4 / 5; }
.tile.wide { aspect-ratio: 21 / 9; }

/* Real client video fills the tile */
.tile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Hide the mesh-gradient badge/overlay on tiles that show a real video */
.tile.has-video::before,
.tile.has-video::after { display: none; }

/* Animated mesh-gradient placeholder — feels like a video loop */
.tile {
  background:
    radial-gradient(at 22% 18%, color-mix(in oklab, var(--c1, var(--accent)) 70%, transparent) 0%, transparent 55%),
    radial-gradient(at 78% 28%, color-mix(in oklab, var(--c2, var(--warm)) 65%, transparent) 0%, transparent 55%),
    radial-gradient(at 28% 82%, color-mix(in oklab, var(--c3, var(--plum)) 60%, transparent) 0%, transparent 60%),
    radial-gradient(at 82% 78%, color-mix(in oklab, var(--c4, var(--green)) 55%, transparent) 0%, transparent 60%),
    var(--tile);
  background-size: 180% 180%;
  animation: meshDrift 18s ease-in-out infinite alternate;
}
.tile::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--fg) 4%, transparent) 0 1px,
    transparent 1px 16px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.tile::after {
  /* Play / video badge */
  content: '▶  REEL';
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono);
  color: var(--fg);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes meshDrift {
  0%   { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
  50%  { background-position: 30% 20%, 70% 30%, 30% 80%, 70% 70%; }
  100% { background-position: 60% 40%, 40% 60%, 60% 60%, 40% 40%; }
}

/* Tile color variants - distribute across the palette */
.tile.t-blue   { --c1: var(--accent); --c2: var(--plum); --c3: var(--accent); --c4: var(--sun); }
.tile.t-warm   { --c1: var(--warm);   --c2: var(--sun);   --c3: var(--warm);   --c4: var(--accent); }
.tile.t-green  { --c1: var(--green);  --c2: var(--accent);--c3: var(--green);  --c4: var(--sun); }
.tile.t-plum   { --c1: var(--plum);   --c2: var(--warm);  --c3: var(--plum);   --c4: var(--accent); }
.tile.t-sun    { --c1: var(--sun);    --c2: var(--warm);  --c3: var(--sun);    --c4: var(--green); }
.tile-label {
  position: absolute;
  z-index: 2;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tile-corner {
  position: absolute;
  z-index: 2;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  color: var(--fg);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-transform: uppercase;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  gap: 16px;
}
.work-title {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
[data-pair="technical"] .work-title,
[data-pair="classical"] .work-title { font-style: normal; }
.work-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .work-item.span-7, .work-item.span-5, .work-item.span-6,
  .work-item.offset-1, .work-item.offset-2 { grid-column: 1 / -1; }
}

/* ============================================================
   Process
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.proc-text { grid-column: 1 / span 5; }
.proc-steps { grid-column: 7 / span 6; display: flex; flex-direction: column; }

.proc-step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.4s ease;
}
.proc-step:last-child { border-bottom: 1px solid var(--line); }
.proc-step:hover { padding-left: 8px; }
.proc-num {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: 36px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: -0.02em;
}
[data-pair="technical"] .proc-num,
[data-pair="classical"] .proc-num { font-style: normal; }
.proc-title {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
[data-pair="technical"] .proc-title,
[data-pair="classical"] .proc-title { font-style: normal; }
.proc-desc { color: var(--fg-soft); font-size: 15px; line-height: 1.5; max-width: 44ch; }
.proc-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .proc-text, .proc-steps { grid-column: 1 / -1; }
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.tier {
  grid-column: span 4;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.3s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.tier:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tier.featured {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tier.featured .tier-name,
.tier.featured .tier-price-num,
.tier.featured .tier-include li { color: var(--bg); }
.tier.featured .tier-desc { color: color-mix(in oklab, var(--bg) 75%, transparent); }
.tier.featured .tier-price-prefix,
.tier.featured .tier-price-suffix,
.tier.featured .tier-meta { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.tier.featured .tier-include li::before { background: var(--accent); }

.tier-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.tier-name {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(32px, 2.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
[data-pair="technical"] .tier-name,
[data-pair="classical"] .tier-name { font-style: normal; }
.tier-desc { font-size: 14px; color: var(--fg-soft); line-height: 1.5; }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in oklab, currentColor 20%, transparent);
}
.tier-price-prefix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.tier-price-num {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(48px, 4.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
[data-pair="technical"] .tier-price-num,
[data-pair="classical"] .tier-price-num { font-style: normal; }
.tier-price-quote {
  font-size: clamp(28px, 2.4vw, 38px);
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.tier-price-quote:hover { color: var(--accent); }
.tier-price-suffix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  color: var(--muted);
}
.tier-include { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.tier-include li {
  font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.4;
}
.tier-include li::before {
  content: ''; display: inline-block; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}
.tier-cta {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: inherit;
}
.tier-cta .arrow { width: 20px; height: 1px; background: currentColor; position: relative; transition: width 0.3s ease; }
.tier-cta .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.tier:hover .tier-cta .arrow { width: 32px; }

@media (max-width: 900px) { .tier { grid-column: 1 / -1; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.faq-text { grid-column: 1 / span 4; position: sticky; top: 120px; align-self: start; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  gap: 24px;
}
[data-pair="technical"] .faq-q,
[data-pair="classical"] .faq-q { font-style: normal; }
.faq-q .pm {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  width: 16px; height: 16px;
  position: relative;
  flex-shrink: 0;
}
.faq-q .pm::before, .faq-q .pm::after {
  content: ''; position: absolute; background: currentColor;
  transition: transform 0.3s ease;
}
.faq-q .pm::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq-q .pm::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq-item[open] .faq-q .pm::after { transform: translateX(-50%) rotate(90deg); }
.faq-a {
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 64ch;
}

@media (max-width: 900px) {
  .faq-text, .faq-list { grid-column: 1 / -1; }
  .faq-text { position: static; }
}

/* ============================================================
   CTA / Contact
   ============================================================ */
.cta {
  border-top: 1px solid var(--line);
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.cta-headline {
  grid-column: 1 / span 12;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(32px, 5vw, 80px);
}
.cta-row {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  align-items: end;
}
.cta-info { grid-column: span 4; }
.cta-info .label-mono { display: block; margin-bottom: 8px; }
.cta-info a { font-family: var(--display); font-style: var(--display-italic); font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; }
[data-pair="technical"] .cta-info a,
[data-pair="classical"] .cta-info a { font-style: normal; }
.cta-button {
  grid-column: 9 / span 4;
  align-self: end;
  justify-self: end;
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.btn-arrow .arrow {
  width: 22px; height: 1px; background: currentColor; position: relative;
}
.btn-arrow .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-arrow:hover .arrow { width: 36px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.footer .col { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; }
.footer .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tracking-mono); margin: 0 0 6px; color: var(--fg); }
.footer .col a { transition: color 0.2s ease; }
.footer .col a:hover { color: var(--fg); }
.footer .col.brand-col {
  grid-column: span 3;
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: 32px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
  line-height: 1;
}
[data-pair="technical"] .footer .col.brand-col,
[data-pair="classical"] .footer .col.brand-col { font-style: normal; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 10px;
}

@media (max-width: 900px) { .footer .col { grid-column: span 6; } }

/* ============================================================
   Reveal animation
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
html [data-reveal].in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
html [data-reveal-stagger].in > * { opacity: 1 !important; transform: translateY(0) !important; }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 400ms; }

/* Parallax tile */
[data-parallax] { will-change: transform; }

/* ============================================================
   Tweaks panel (custom)
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 296px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px 18px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  z-index: 100;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.25);
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-size: 10px; letter-spacing: var(--tracking-mono);
  color: var(--muted);
}
.tweaks-head h5 { margin: 0; color: var(--fg); font-size: 11px; }
.tweaks-close {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s;
}
.tweaks-close:hover { border-color: var(--fg); }
.tweaks-close::before {
  content: ''; width: 8px; height: 1px; background: currentColor;
  transform: rotate(45deg);
  position: absolute;
}
.tweaks-close::after {
  content: ''; width: 8px; height: 1px; background: currentColor;
  transform: rotate(-45deg);
  position: absolute;
}
.tweak-row { padding: 10px 0; border-top: 1px solid var(--line); }
.tweak-row:first-of-type { border-top: 0; padding-top: 4px; }
.tweak-label {
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.seg button {
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--fg); color: var(--bg); }
.seg button:not(.active):hover { color: var(--fg); }

/* ============================================================
   Page header (sub pages)
   ============================================================ */
.page-head {
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-head .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: end;
}
.page-head .ix { grid-column: span 2; }
.page-head .ti { grid-column: span 7; }
.page-head .meta { grid-column: span 3; text-align: right; }
.page-head h1.display { font-size: clamp(80px, 14vw, 220px); }

/* ============================================================
   About — manifesto
   ============================================================ */
.manifesto {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.manifesto .lead { grid-column: 2 / span 9; font-size: clamp(28px, 3.4vw, 56px); line-height: 1.12; letter-spacing: -0.02em; font-family: var(--display); font-style: var(--display-italic); }
[data-pair="technical"] .manifesto .lead,
[data-pair="classical"] .manifesto .lead { font-style: normal; }
.manifesto .lead em { color: var(--muted); }
.manifesto .lead .accent { display: inline-block; width: 0.5em; height: 0.5em; background: var(--accent); border-radius: 50%; vertical-align: middle; transform: translateY(-0.1em); margin: 0 0.05em; }

/* Ledger — each figure drawn as the thing it counts */
.ledger-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.ledger-row {
  display: grid;
  grid-template-columns: 48px minmax(120px, 0.6fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--gutter);
  align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.ledger-ix { font-family: var(--mono); font-size: 10px; letter-spacing: var(--tracking-mono); color: var(--muted); }
.ledger-num {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
[data-pair="technical"] .ledger-num,
[data-pair="classical"] .ledger-num { font-style: normal; }
.ledger-label { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.5; color: var(--fg-soft); }
.ledger-viz { display: flex; align-items: center; min-height: 44px; }

/* Units draw in once the rows reveal */
.viz-ticks { gap: 6px; height: 44px; align-items: stretch; flex-wrap: wrap; }
.viz-ticks i { width: 3px; background: var(--fg); border-radius: 1px; transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 18ms + 200ms); }
.viz-ticks i:nth-child(10n) { background: var(--accent); }
.viz-blocks { gap: 6px; flex-wrap: wrap; }
.viz-blocks i { width: 18px; height: 18px; background: var(--fg); border-radius: 2px; transform: scale(0); transition: transform 0.45s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 45ms + 200ms); }
.viz-score { gap: 14px; width: 100%; }
.viz-score-track {
  position: relative;
  flex: 1;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--line) 0 calc(1% - 2px), transparent 0 1%);
}
.viz-score-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 96%;
  background: repeating-linear-gradient(90deg, var(--accent) 0 calc(100% / 96 - 2px), transparent 0 calc(100% / 96));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1) 0.3s;
}
.viz-score-max { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tracking-mono); color: var(--muted); }
.viz-faces { gap: 0; }
.viz-faces img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 60ms + 200ms);
}
.viz-faces img:first-child { margin-left: 0; }
.viz-faces-cta {
  margin-left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.viz-faces:hover .viz-faces-cta { color: var(--fg); }
.viz-faces:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.ledger-rows.in .viz-ticks i { transform: scaleY(1); }
.ledger-rows.in .viz-blocks i,
.ledger-rows.in .viz-faces img { transform: scale(1); }
.ledger-rows.in .viz-score-fill { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .ledger-viz i, .viz-faces img, .viz-score-fill { transition: none; }
}
@media (max-width: 900px) {
  .ledger-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num label" "viz viz";
    row-gap: 18px;
  }
  .ledger-ix { display: none; }
  .ledger-num { grid-area: num; }
  .ledger-label { grid-area: label; }
  .ledger-viz { grid-area: viz; }
}

/* Team roster — sticky portrait stage + hoverable name list */
.roster {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.roster-stage { grid-column: 1 / span 5; position: sticky; top: 110px; }
.roster-figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: color-mix(in oklab, var(--bg) 10%, transparent);
}
.roster-portrait {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.roster-portrait.is-active { opacity: 1; transform: none; }
.roster-caption { margin-top: 22px; display: grid; gap: 10px; }
.roster-caption-name {
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.roster-caption-bio { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.5; }
.section.invert .roster-caption-name { color: var(--bg); }
.section.invert .roster-caption-bio { color: color-mix(in oklab, var(--bg) 78%, transparent); }

.roster-list {
  grid-column: 7 / span 6;
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.roster-item { border-bottom: 1px solid var(--line); }
.section.invert .roster-list,
.section.invert .roster-item { border-color: color-mix(in oklab, var(--bg) 18%, transparent); }
.roster-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  color: var(--muted);
  transition: color 0.25s ease, padding 0.4s cubic-bezier(.2,.7,.2,1);
}
.section.invert .roster-row { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.roster-row:hover, .roster-row.is-active { color: var(--fg); }
.section.invert .roster-row:hover,
.section.invert .roster-row.is-active { color: var(--bg); }
.roster-row.is-active { padding-left: 14px; }
.roster-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.roster-num { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tracking-mono); }
.roster-name {
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.roster-row.is-active .roster-name::after {
  content: '';
  display: inline-block;
  width: 0.16em; height: 0.16em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: var(--accent);
}
[data-pair="technical"] .roster-name, [data-pair="classical"] .roster-name,
[data-pair="technical"] .roster-caption-name, [data-pair="classical"] .roster-caption-name { font-style: normal; }
.roster-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.roster-thumb { display: none; }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: 480ms; }
[data-reveal-stagger].in > *:nth-child(8) { transition-delay: 560ms; }

@media (max-width: 900px) {
  .roster-stage { display: none; }
  .roster-list { grid-column: 1 / -1; }
  .roster-row {
    grid-template-columns: 56px 1fr;
    grid-template-areas: "thumb name" "thumb role";
    align-items: center;
    row-gap: 6px;
    padding: 16px 0;
  }
  .roster-row.is-active { padding-left: 0; }
  .roster-thumb { display: block; grid-area: thumb; width: 56px; height: 70px; object-fit: cover; border-radius: 2px; }
  .roster-num { display: none; }
  .roster-name { grid-area: name; font-size: 30px; }
  .roster-role { grid-area: role; }
  .roster-row.is-active .roster-name::after { display: none; }
}

/* Section color washes — used liberally for personality */
.section.invert {
  background: var(--fg);
  color: var(--bg);
}
.section.wash-warm  { background: var(--warm);  color: #1a0f0a; }
.section.wash-green { background: var(--green); color: #061b13; }
.section.wash-plum  { background: var(--plum);  color: #ffffff; }
.section.wash-sun   { background: var(--sun);   color: #1a1306; }
.section.wash-blue  { background: var(--accent); color: #ffffff; }
.section.wash-mist  { background: linear-gradient(180deg, #EEF2FA 0%, #F4F6FB 100%); color: var(--fg); }
[data-theme="dark"] .section.wash-mist { background: linear-gradient(180deg, #14161B 0%, #0E1015 100%); color: var(--fg); }
.section.wash-warm .label-mono,
.section.wash-green .label-mono,
.section.wash-plum .label-mono,
.section.wash-sun .label-mono,
.section.wash-blue .label-mono { color: color-mix(in oklab, currentColor 60%, transparent); }
.section.wash-warm .display,
.section.wash-green .display,
.section.wash-plum .display,
.section.wash-sun .display,
.section.wash-blue .display { color: currentColor; }
.section.wash-warm .rule,
.section.wash-green .rule,
.section.wash-plum .rule,
.section.wash-sun .rule,
.section.wash-blue .rule { background: color-mix(in oklab, currentColor 25%, transparent); }
.section.wash-plum .proc-desc { color: rgba(255,255,255,0.9); }
.section.wash-plum .proc-num { color: rgba(255,255,255,0.75); }

.cta.wash-blue { background: var(--accent); color: #fff; border-top: 0; }
.cta.wash-blue .label-mono { color: rgba(255,255,255,0.6); }
.cta.wash-blue .cta-info a { color: #fff; }
.cta.wash-blue .display { color: #fff; }
.cta.wash-blue .cta-row { border-top-color: rgba(255,255,255,0.25); }
.cta.wash-blue .btn-arrow { background: #fff; color: var(--accent); }
.cta.wash-blue .btn-arrow:hover { background: #0A0B10; color: #fff; }

/* On color washes, tier cards stay legible */
.section.wash-sun .tier { background: rgba(255,255,255,0.92); border-color: transparent; color: var(--fg); }
.section.wash-sun .tier .tier-desc { color: var(--fg-soft); }
.section.wash-sun .tier.featured { background: var(--fg); color: var(--bg); }
.section.wash-sun .tier.featured .tier-desc { color: color-mix(in oklab, var(--bg) 85%, transparent); }
.section.wash-mist .cap-body { color: var(--fg-soft); }
.pull {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.pull .mark { grid-column: 1 / span 2; font-family: var(--display); font-style: var(--display-italic); font-size: clamp(80px, 10vw, 160px); line-height: 0.7; color: var(--accent); }
[data-pair="technical"] .pull .mark, [data-pair="classical"] .pull .mark { font-style: normal; }
.pull blockquote {
  grid-column: 3 / span 9;
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-italic);
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
}
[data-pair="technical"] .pull blockquote,
[data-pair="classical"] .pull blockquote { font-style: normal; }
.pull cite {
  grid-column: 3 / span 9;
  display: block;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
.pull cite .name { color: var(--fg); }
.section.invert .label-mono,
.section.invert .body-md,
.section.invert .body-sm,
.section.invert .muted { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.section.invert .display { color: var(--bg); }
.section.invert .rule { background: color-mix(in oklab, var(--bg) 20%, transparent); }
.section.invert .proc-step { border-color: color-mix(in oklab, var(--bg) 18%, transparent); }
.section.invert .proc-num,
.section.invert .proc-time { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.section.invert .proc-desc { color: color-mix(in oklab, var(--bg) 78%, transparent); }
