/* ==========================================================================
   Vardha — independent tech advisory site
   Premium near-black themes (with faint warm / green undertones) that cross-fade per product, a pinned WebGL particle
   sphere that the camera flies through, pinned verbs, and a comparison.
   ========================================================================== */

:root {
  --black: #0a0a0b;
  --ink: #ece8e1;
  --ink-2: rgba(236, 232, 225, 0.74);
  --ink-3: rgba(236, 232, 225, 0.54);
  --line: rgba(236, 232, 225, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --accent: #e0b25a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="copper"] { --accent: #e39a5c; }
html[data-theme="oxidised"] { --accent: #8cc1a8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-mid);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--black); text-decoration: none; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Theme background (cross-fading moods) ---------- */

.theme-bg { position: fixed; inset: 0; z-index: -1; }
.theme-bg .layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
/* Onyx (default): near-black with a slowly shifting colour palette. Preview lighter depths with ?tone=graphite or ?tone=smoke. */
:root { --bg-top: #232325; --bg-mid: #1b1b1c; --bg-bot: #141415; }
html[data-tone="graphite"] { --bg-top: #323233; --bg-mid: #29292a; --bg-bot: #202021; }
html[data-tone="smoke"] { --bg-top: #424243; --bg-mid: #373738; --bg-bot: #2d2d2e; }
.theme-bg .aura { background: radial-gradient(80% 55% at 50% -5%, rgba(255, 255, 255, 0.07), transparent 70%), radial-gradient(120% 45% at 50% 105%, rgba(224, 178, 90, 0.05), transparent 70%), linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%); }
.theme-bg .copper { background: radial-gradient(80% 55% at 50% -5%, rgba(224, 150, 90, 0.12), transparent 70%), linear-gradient(rgba(150, 95, 55, 0.08), rgba(150, 95, 55, 0.08)), linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%); }
.theme-bg .oxidised { background: radial-gradient(80% 55% at 50% -5%, rgba(120, 180, 150, 0.1), transparent 70%), linear-gradient(rgba(80, 130, 110, 0.07), rgba(80, 130, 110, 0.07)), linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%); }
html[data-theme="aura"] .theme-bg .aura,
html[data-theme="copper"] .theme-bg .copper,
html[data-theme="oxidised"] .theme-bg .oxidised { opacity: 1; }

/* Shifting palette: three very soft pools of colour chosen to flatter the gold orb —
   bronze (echoes the gold), oxblood wine and aubergine (deep complements). They wander slowly;
   single gradients, no tiling, so there are no seams. */
.theme-bg { overflow: hidden; }
.glow {
  position: absolute;
  width: 90vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  animation: wander 46s ease-in-out infinite alternate;
}
.glow.bronze { left: -30vmax; top: -35vmax; background: radial-gradient(circle, rgba(176, 118, 46, 0.22) 0%, rgba(176, 118, 46, 0.08) 38%, transparent 66%); }
.glow.wine { right: -38vmax; top: 10vh; background: radial-gradient(circle, rgba(122, 34, 44, 0.24) 0%, rgba(122, 34, 44, 0.09) 38%, transparent 66%); animation-duration: 58s; animation-delay: -20s; }
.glow.plum { left: 5vw; bottom: -55vmax; background: radial-gradient(circle, rgba(78, 40, 88, 0.26) 0%, rgba(78, 40, 88, 0.1) 38%, transparent 66%); animation-duration: 64s; animation-delay: -38s; }
@keyframes wander {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14vw, 8vh, 0) scale(1.12); }
  100% { transform: translate3d(-8vw, 16vh, 0) scale(0.94); }
}
.motion-paused .glow { animation-play-state: paused; }

/* ---------- Brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; aspect-ratio: 1;
  border: 1px solid rgba(167, 108, 34, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff7d7, #f2b457 45%, #a76c22 100%);
  color: #15100a;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(167, 108, 34, 0.22);
}
.brand-word {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  background: linear-gradient(120deg, #f7dc9c, #e7b453 50%, #f7dc9c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top { transition: background-color 0.4s var(--ease); }
.top.is-scrolled {
  background: rgba(24, 24, 25, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.top-tools { display: flex; align-items: center; gap: 10px; }
.pill, .motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.pill:hover, .motion:hover { background: rgba(255, 255, 255, 0.14); }
.motion i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.motion[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn::after { content: "→"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--black); color: var(--ink); font-family: var(--sans); font-size: 12px; }
.btn:hover { background: #fff; }
.btn-dark { background: linear-gradient(135deg, #f7dc9c, #e0b25a 55%, #b8853a); border-color: transparent; }
.btn-dark:hover { background: linear-gradient(135deg, #fbe6b6, #e8c070 55%, #c4914a); }

/* ---------- Chapter rail (retractable, right edge) ---------- */

.rail {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 45;
  translate: 0 -50%;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.rail-bar { width: 3px; height: 38vh; border-radius: 3px; background: var(--line); overflow: hidden; align-self: center; }
.rail-bar i { display: block; width: 100%; height: 0; background: var(--ink); }
.rail-list {
  width: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 14px;
  background: rgba(30, 30, 31, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: width 0.45s var(--ease), opacity 0.3s ease;
}
.rail:hover .rail-list,
.rail:focus-within .rail-list { width: 220px; opacity: 1; }
.rail-list li { white-space: nowrap; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}
.rail-list a:hover, .rail-list a.is-current { background: rgba(255, 255, 255, 0.07); }
.rail-list a em { font-family: var(--mono); font-size: 10px; font-style: normal; color: var(--ink-3); }
.rail-list a[data-swatch]::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.rail-list a[data-swatch="aura"]::before { background: #e0b25a; }
.rail-list a[data-swatch="copper"]::before { background: #bf6a3a; }
.rail-list a[data-swatch="oxidised"]::before { background: #5f8f7f; }
.rail-group { padding: 12px 16px 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--ink-3); }

/* ---------- 00–01 · Scene: hero → flythrough ---------- */

.scene { position: relative; height: 620vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.orb { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* Warm bloom behind the black hole, faded in by scroll */
.hole-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vmin, 1100px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 190, 92, 0.16) 0%, rgba(255, 148, 48, 0.07) 26%, rgba(255, 120, 30, 0.03) 44%, transparent 66%);
  opacity: 0;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  padding: clamp(96px, 14vh, 150px) var(--gutter) 34px;
  text-align: center;
  will-change: opacity, transform;
}
.hero-copy h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 84px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.012em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75);
}
.hero-copy h1 em { font-weight: 300; }
.hero-cta { grid-row: 3; display: grid; justify-items: center; gap: 18px; }
.hero-sub { max-width: 50ch; color: var(--ink-2); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.6); }
.scroll-hint { grid-row: 4; margin-top: 18px; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: var(--ink-3); animation: hint 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.phrases {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 16vh;
  pointer-events: none;
}
.phrases li {
  position: absolute;
  inset: auto 0 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.8);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.phrases li.is-active { opacity: 1; filter: none; transform: none; }
.phrase-count { position: absolute; left: var(--gutter); bottom: 9vh; opacity: 0; transition: opacity 0.5s ease; }
.phrase-count.is-visible { opacity: 1; }

.outro {
  position: absolute;
  inset: auto var(--gutter) 5vh;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.8);
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 110px);
  font-weight: 300;
  line-height: 0.95;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.outro.is-active { opacity: 1; transform: none; }

/* ---------- 02 · Verbs (pinned) ---------- */

.verbs { position: relative; height: 320vh; }
.verbs-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  align-items: center;
  padding: 0 calc(var(--gutter) + 20px) 0 var(--gutter);
}
.verb-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.verb { opacity: 0.28; transition: opacity 0.6s var(--ease); }
.verb.is-active { opacity: 1; }
.verb-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 300;
  line-height: 0.95;
}
.verb ul {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.verb.is-active ul { opacity: 1; transform: none; }
.verb li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- 03 · Products comparison ---------- */

.products { padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px); }
.products-head { max-width: 900px; margin: 0 auto clamp(40px, 7vh, 72px); text-align: center; }
.products-head h2, .contact h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.8vw, 116px);
  font-weight: 300;
  line-height: 0.9;
}
/* Services intro gets a full screen so the sphere can split into its two donuts below the headline */
.products > .products-head { min-height: 92vh; min-height: 92svh; margin-bottom: 0; }
.lede { max-width: 46ch; margin: 22px auto 0; color: var(--ink-2); font-size: 18px; }

.tabs { display: none; }

.compare {
  display: grid;
  grid-template-columns: 150px repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(5, auto) auto;
  column-gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}
.c-col {
  display: grid;
  grid-row: 1 / span 7;
  grid-template-rows: subgrid;
  padding: 0 20px 22px;
  border-radius: 20px;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.c-labels { padding-left: 0; }
.c-col[data-product] { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.c-col[data-product].is-active { background: rgba(22, 22, 24, 0.55); box-shadow: inset 0 0 0 1px rgba(224, 178, 90, 0.32); }
.c-head { padding: 24px 0 22px; }
.c-tags { color: var(--accent); }
.c-col h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 400;
  line-height: 1;
}
.c-role { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.c-row {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.c-labels .c-row { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--ink-3); }
.c-row b { margin-right: 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }
.c-price b { font-size: 34px; }
.c-cta { align-self: end; justify-self: start; margin-top: 18px; }

.c-list li { position: relative; padding-left: 16px; }
.c-list li + li { margin-top: 6px; }
.c-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--accent); }
.c-price b { font-size: clamp(28px, 2.6vw, 38px); }
.scope { max-width: 1180px; margin: clamp(40px, 6vh, 64px) auto 0; text-align: center; }
.scope .mono { text-transform: none; font-size: 11px; }
.draft { margin-top: 20px; }

/* ---------- Why-independent label ---------- */

.verbs-label { position: absolute; top: clamp(90px, 15vh, 150px); left: var(--gutter); margin: 0; font-weight: 400; }

/* ---------- 4-pillar framework: pinned horizontal gallery ---------- */

.framework { position: relative; height: 380vh; }
.fw-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 80px 0 40px var(--gutter);
  overflow: hidden;
}
.fw-head h2 { margin-top: 16px; font-family: var(--serif); font-size: clamp(48px, 5.6vw, 96px); font-weight: 300; line-height: 0.9; }
.fw-head .lede { margin: 22px 0 0; max-width: 30ch; }
.fw-count { margin-top: 40px; font-size: 12px; }
.fw-count b { font-weight: 400; color: var(--ink); }
.fw-bar { width: min(240px, 100%); height: 1px; margin-top: 14px; background: var(--line); }
.fw-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.fw-window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fw-track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding: 0 12vw 0 4vw; will-change: transform; }
.pillar {
  display: flex;
  flex-direction: column;
  width: clamp(300px, 34vw, 500px);
  min-height: min(62vh, 560px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(22, 22, 24, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0.4;
  transform: scale(0.94);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.pillar.is-active { opacity: 1; transform: none; border-color: rgba(224, 178, 90, 0.35); }
.pillar-num {
  font-family: var(--serif);
  font-size: clamp(90px, 10vw, 170px);
  font-weight: 300;
  line-height: 0.8;
  background: linear-gradient(160deg, #f7dc9c, #b8853a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pillar h3 { margin-top: auto; padding-top: 32px; font-family: var(--serif); font-size: clamp(30px, 2.8vw, 44px); font-weight: 400; line-height: 1.02; }
.pillar p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }

/* ---------- Ten flaws: sticky counter + list that lights up ---------- */

.pitfalls { padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(40px, 6vh, 80px); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); max-width: 1280px; margin: 0 auto; }
.pf-side { position: sticky; top: 18vh; align-self: start; }
.pf-side h2 { margin-top: 16px; font-family: var(--serif); font-size: clamp(48px, 5.6vw, 96px); font-weight: 300; line-height: 0.9; }
.pf-side .lede { margin: 22px 0 0; max-width: 34ch; }
.pf-counter { display: flex; align-items: baseline; gap: 6px; margin-top: 32px; font-family: var(--serif); font-weight: 300; line-height: 0.8; }
.pf-counter b {
  font-size: clamp(110px, 13vw, 210px);
  font-weight: 300;
  background: linear-gradient(160deg, #f7dc9c, #b8853a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.pf-counter span { font-size: clamp(28px, 3vw, 48px); color: var(--ink-3); }
.flaws { border-top: 1px solid var(--line); padding-bottom: 28vh; }
.flaws li { border-bottom: 1px solid var(--line); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.flaws summary {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.1;
  list-style: none;
  cursor: pointer;
}
.flaws summary::-webkit-details-marker { display: none; }
.flaws summary .mono { flex: none; width: 28px; color: var(--ink-3); transition: color 0.4s ease; }
.flaws summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-size: 20px; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.flaws details[open] summary::after { transform: rotate(45deg); }
.flaws details p { max-width: 58ch; padding: 0 0 22px 48px; color: var(--ink-2); }

/* ---------- Scroll-scrubbed states (only when motion is allowed) ---------- */

.scrub [data-words] .w { opacity: calc(0.14 + 0.86 * clamp(0, var(--p, 1) * (var(--n, 1) + 2) - var(--i, 0) - 1, 1)); }
.scrub .c-col { opacity: var(--p, 1); transform: translate3d(0, calc((1 - var(--p, 1)) * 110px), 0) scale(calc(0.95 + 0.05 * var(--p, 1))); }
.scrub .compare .c-row { border-top-color: transparent; background: linear-gradient(var(--line), var(--line)) no-repeat 0 0 / calc(var(--p, 1) * 100%) 1px; }
.scrub .flaws li { opacity: 0.28; transform: translateX(-10px); }
.scrub .flaws li.is-lit { opacity: 1; transform: none; }
.scrub .flaws li.is-current summary .mono { color: var(--accent); }
.scrub .contact h2 { transform: scale(calc(0.86 + 0.14 * var(--p, 1))); transform-origin: 50% 100%; }
.scrub .contact-cta { opacity: var(--p, 1); transform: translateY(calc((1 - var(--p, 1)) * 30px)); }
.verb { transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.verb.is-active { transform: none; }

.disclaimer { max-width: 72ch; color: var(--ink-3); font-size: 12px; line-height: 1.6; }

/* ---------- 04 · Contact ---------- */

.contact { padding: clamp(110px, 18vh, 200px) var(--gutter); text-align: center; }
.contact .btn { margin-top: 36px; }

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

.foot {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 40px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.odometer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; text-transform: none; }
.odometer b { font-weight: 400; color: var(--ink); }
.small { font-size: 10px; }
.contact-mail { margin-top: 26px; font-family: var(--mono); font-size: 12px; }
.contact-mail a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-mail a:hover { color: var(--ink); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .rail { display: none; }
  .motion span { display: none; }
  .motion { width: 38px; padding: 0; justify-content: center; }
  .scene { height: 520vh; }
  .phrases { bottom: 20vh; }
  .verbs { height: auto; }
  .verbs-stage { position: static; height: auto; padding: 80px var(--gutter); }
  .verb-list { grid-template-columns: 1fr; gap: 56px; }
  .verb, .verb ul { opacity: 1; transform: none; }
  .tabs {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 5px;
    overflow-x: auto;
    border-radius: 999px;
    background: var(--glass);
  }
  .tabs button {
    flex: none;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .tabs button[aria-selected="true"] { background: var(--ink); color: var(--black); }
  .compare { display: block; }
  .c-labels { display: none; }
  .c-col { display: none; padding: 0 18px 22px; }
  .c-col.is-active { display: block; }
  .c-row { display: block; }
  .c-row::before { content: attr(data-label); display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; color: var(--ink-3); }
  .hide-sm { display: none; }
  .c-cta { margin-top: 16px; }
  .hero-copy { padding-bottom: 26px; }
  .hero-cta { gap: 14px; }
  .hero-sub { max-width: 34ch; font-size: 14.5px; }
  .hero-copy .btn { min-height: 44px; padding: 0 18px; }
  .scroll-hint { margin-top: 10px; }
  .scroll-hint::after { height: 18px; }
  .verbs-label { position: static; margin-bottom: 40px; }
  .framework { height: auto; padding: 80px 0; }
  .fw-stage { position: static; height: auto; display: block; padding: 0 var(--gutter); overflow: visible; }
  .fw-window { margin-top: 36px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .fw-track { flex-direction: column; width: auto; padding: 0; }
  .fw-count, .fw-bar { display: none; }
  .pillar { width: auto; min-height: 0; opacity: 1; transform: none; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .pf-counter { display: none; }
  .flaws { padding-bottom: 0; }
  .flaws details p { padding-left: 0; }
}

/* ---------- Reduced motion: no pinning, no fly-through ---------- */

@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; }
  .orb { position: absolute; height: 100vh; }
  .hero-copy { bottom: auto; height: 100vh; }
  .phrases, .phrase-count, .outro { position: static; }
  .phrases { padding: 40px var(--gutter); }
  .phrases li { position: static; max-width: none; margin-bottom: 18px; opacity: 1; filter: none; transform: none; font-size: 36px; }
  .outro { padding: 0 var(--gutter) 60px; opacity: 1; transform: none; }
  .verbs { height: auto; }
  .verbs-stage { position: static; height: auto; padding: 80px var(--gutter); }
  .verb, .verb ul { opacity: 1; transform: none; }
  .theme-bg .layer, .phrases li, .outro, .verb, .verb ul { transition: none; }
  .scroll-hint::after, .glow { animation: none; }
  .verbs-label { position: static; margin-bottom: 40px; }
  .framework { height: auto; padding: 80px 0; }
  .fw-stage { position: static; height: auto; display: block; padding: 0 var(--gutter); overflow: visible; }
  .fw-window { margin-top: 36px; -webkit-mask-image: none; mask-image: none; }
  .fw-track { flex-wrap: wrap; width: auto; padding: 0; }
  .pillar { opacity: 1; transform: none; }
  .verb { transform: none; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; }

/* ---------- Unbiased advocate callout ---------- */
.advocate { position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(40px, 6vh, 80px); }
.advocate-box {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(224, 178, 90, 0.34);
  border-radius: 28px;
  background: rgba(22, 22, 24, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.advocate-head h2 { margin-top: 14px; font-family: var(--serif); font-size: clamp(44px, 5vw, 84px); font-weight: 300; line-height: 0.92; }
.advocate-copy { font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); font-weight: 300; line-height: 1.3; }
.scrub .advocate-box { opacity: var(--p, 1); transform: translateY(calc((1 - var(--p, 1)) * 60px)); }

/* ---------- Retainer highlights ---------- */
.c-list li.key { padding: 10px 12px 10px 16px; margin: 4px 0 8px; border-radius: 12px; background: rgba(224, 178, 90, 0.09); border: 1px solid rgba(224, 178, 90, 0.28); }
.c-list li.key::before { left: 6px; top: 1.15em; background: var(--gold); }
.c-list li.key strong { color: #f3d49a; font-weight: 500; }

/* ---------- Footer links ---------- */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 14px; }
.foot-links a { color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-links a:hover { color: var(--ink); border-color: var(--gold); }
.disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(120px, 16vh, 170px) var(--gutter) 80px; }
.legal h1 { margin-top: 14px; font-family: var(--serif); font-size: clamp(44px, 6vw, 80px); font-weight: 300; line-height: 0.95; }
.legal .updated { margin-top: 14px; }
.legal h2 { margin-top: 44px; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--gold); }

@media (max-width: 900px) {
  .advocate-box { grid-template-columns: 1fr; }
}
