/* =============================================================================
   SwellSet — cinematic recreation (v3)
   Dark ocean base. Instrument Serif + Instrument Sans. Gold + luminous cyan.
   Wave-driven motion. Aggressive type scale.
   ============================================================================= */

/* --- Tokens ---------------------------------------------------------------- */
:root {
  /* Palette */
  --ink:        #02080F;          /* deep night ocean */
  --ink-2:      #07142A;          /* lifted */
  --ink-3:      #0E2747;          /* highlight bands */
  --paper:      #F5EFE0;          /* warm off-white for inverted moments */
  --paper-soft: #FDF9EF;
  --gold:       #E5A744;          /* luminous on dark */
  --gold-deep:  #C9962B;
  --gold-soft:  #F0CC7B;
  --gold-glow:  rgba(229,167,68,0.32);
  --cyan:       #4EC8FF;          /* electric accent for the wave */
  --cyan-soft:  rgba(78,200,255,0.5);
  --cyan-glow:  rgba(78,200,255,0.18);

  --text:        rgba(245,239,224,0.94);
  --text-soft:   rgba(245,239,224,0.70);
  --text-muted:  rgba(245,239,224,0.50);
  --text-dim:    rgba(245,239,224,0.32);
  --rule:        rgba(245,239,224,0.10);
  --rule-strong: rgba(245,239,224,0.22);
  --tbd-bg:     rgba(229,167,68,0.10);
  --tbd-ink:    #F0CC7B;
  --tbd-rule:   var(--gold);

  /* Type */
  --display: 'Instrument Serif', 'EB Garamond', Georgia, serif;
  --sans:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (cinematic — wider range) */
  --step--2: clamp(0.7rem, 0.66rem + 0.15vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --step-0:  clamp(1rem,    0.94rem + 0.3vw, 1.14rem);
  --step-1:  clamp(1.2rem,  1.08rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.65rem, 1.3rem + 1.4vw, 2.3rem);
  --step-3:  clamp(2.2rem,  1.6rem + 2.5vw, 3.4rem);
  --step-4:  clamp(3rem,    2rem + 4.2vw,   5.6rem);
  --step-5:  clamp(4rem,    2.5rem + 6vw,   8rem);
  --step-6:  clamp(5rem,    3rem + 9vw,    13rem);

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4.5rem;
  --s-9: 6.5rem;   --s-10: 9rem;    --s-11: 12rem;   --s-12: 16rem;

  /* Layout */
  --bleed-x: clamp(1.5rem, 2.5vw, 3rem);
  --col:        min(76rem, 100% - var(--bleed-x) * 2);
  --col-narrow: min(48rem, 100% - var(--bleed-x) * 2);
  --col-wide:   min(90rem, 100% - var(--bleed-x) * 2);
  --col-full:   min(110rem, 100% - var(--bleed-x) * 2);

  --speed: 240ms;
  --speed-slow: 600ms;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* film grain overlay, very subtle */
  content: ''; pointer-events: none;
  position: fixed; inset: 0; z-index: 99;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.88  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: screen;
}
img, svg { display: block; max-width: 100%; height: auto; }
::selection { background: var(--cyan); color: var(--ink); }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color var(--speed), opacity var(--speed); }
a:hover { color: var(--gold-soft); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
hr { border: 0; height: 1px; background: var(--rule); margin: var(--s-7) 0; }

/* --- Scroll progress (waveform at top) ----------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 100%);
  transform-origin: 0 0;
  transform: scaleX(0);
  opacity: 0.85;
  pointer-events: none;
}

/* --- Type --------------------------------------------------------------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.012em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  color: var(--text);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); line-height: 1.05; }
h3 { font-size: var(--step-3); line-height: 1.08; }
h4 {
  font-family: var(--sans); font-weight: 600;
  font-size: var(--step-1); letter-spacing: -0.003em;
  line-height: 1.2; margin: 0 0 0.4em;
}
em, .display em, h1 em, h2 em, h3 em {
  font-style: italic; color: var(--gold-soft);
  font-feature-settings: 'kern';
}
p { margin: 0 0 1em; max-width: 60ch; }
.lede {
  font-family: var(--sans); font-weight: 400;
  font-size: var(--step-1); line-height: 1.5;
  color: var(--text-soft); letter-spacing: -0.003em;
  max-width: 38ch;
}
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.24em;
  font-weight: 500; color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before {
  content: ''; width: 1.5rem; height: 1px; background: currentColor;
}
.num {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em; font-weight: 500;
  color: var(--gold); font-feature-settings: 'tnum';
  text-transform: uppercase;
}

/* --- Reveal helpers ------------------------------------------------------ */
/* Only opt-in to opacity:0 if JS is ready (so no-JS users see content) */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--speed-slow) var(--ease-out), transform var(--speed-slow) var(--ease-out);
  will-change: opacity, transform;
}
.js-ready [data-reveal].is-in {
  opacity: 1; transform: translateY(0);
}
.js-ready [data-reveal][data-delay="1"].is-in { transition-delay: 80ms; }
.js-ready [data-reveal][data-delay="2"].is-in { transition-delay: 160ms; }
.js-ready [data-reveal][data-delay="3"].is-in { transition-delay: 240ms; }
.js-ready [data-reveal][data-delay="4"].is-in { transition-delay: 320ms; }
.js-ready [data-reveal][data-delay="5"].is-in { transition-delay: 400ms; }
.js-ready [data-reveal][data-delay="6"].is-in { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__svg, .scroll-progress { animation: none !important; }
}

/* --- Layout helpers ----------------------------------------------------- */
.col        { width: var(--col);        margin-inline: auto; }
.col-narrow { width: var(--col-narrow); margin-inline: auto; }
.col-wide   { width: var(--col-wide);   margin-inline: auto; }
.col-full   { width: var(--col-full);   margin-inline: auto; }

section.band { padding-block: clamp(5rem, 4rem + 5vw, 10rem); position: relative; }
section.band--tight { padding-block: clamp(3rem, 2.5rem + 3vw, 6rem); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-paper a { color: var(--ink); }
.band-paper .eyebrow { color: var(--gold-deep); }
.band-paper .lede { color: rgba(2,8,15,0.65); }
.band-paper .num { color: var(--gold-deep); }
.band-paper h1, .band-paper h2, .band-paper h3, .band-paper h4 { color: var(--ink); }

.grid-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.grid-4-8 { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-8); align-items: start; }
.grid-6-6 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.grid-3-9 { display: grid; grid-template-columns: 3fr 9fr; gap: var(--s-7); align-items: start; }
@media (max-width: 860px) {
  .grid-5-7, .grid-4-8, .grid-6-6, .grid-3-9 { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(2,8,15,0.78) 0%, rgba(2,8,15,0) 100%);
  backdrop-filter: blur(6px);
  transition: background var(--speed);
}
.site-header.is-scrolled {
  background: rgba(2,8,15,0.92);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  width: var(--col-full); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--s-5);
  padding: var(--s-4) 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}
.brand .hex-mark {
  width: 32px; height: 32px;
  color: var(--gold);
  transition: transform var(--speed-slow) var(--ease-out);
}
.brand:hover .hex-mark { transform: rotate(60deg); }
.brand .wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1; color: var(--text);
}
.brand .wordmark em { color: var(--gold); font-style: italic; }

.nav-primary { display: flex; gap: var(--s-6); justify-self: center; }
.nav-primary a {
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.22em;
  text-decoration: none; color: var(--text-soft);
  position: relative; padding: 0.5rem 0;
}
.nav-primary a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold); transform-origin: 0 0; transform: scaleX(0);
  transition: transform var(--speed) var(--ease-out);
}
.nav-primary a:hover, .nav-primary a.is-active { color: var(--text); }
.nav-primary a:hover::after, .nav-primary a.is-active::after { transform: scaleX(1); }

.nav-utility {
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.2em;
}
.nav-utility a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-utility a:hover { color: var(--gold-soft); }
.nav-utility a .ar { transition: transform var(--speed); }
.nav-utility a:hover .ar { transform: translateX(3px); }

.nav-toggle {
  display: none;
  padding: 0.6rem;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 840px) {
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: center; }
  .nav-primary, .nav-utility { display: none; }
  .nav-toggle { display: inline-flex; justify-self: start; }
}

.mobile-drawer {
  position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(2,8,15,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 59;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer ul {
  list-style: none; margin: 0; padding: var(--s-5) var(--bleed-x);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.mobile-drawer a {
  font-family: var(--display); font-size: var(--step-2);
  text-decoration: none; color: var(--text); padding: 0.3rem 0;
}
.mobile-drawer a em { color: var(--gold); }

/* --- Hero (cinematic, full-bleed, animated wave) ------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  padding-block: var(--s-9) var(--s-7);
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(78,200,255,0.06) 0%, rgba(2,8,15,0) 100%), var(--ink);
}
.hero__bg-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.hero__bg-canvas svg { width: 100%; height: 100%; display: block; }
.hero__halo {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(78,200,255,0.18) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(2,8,15,0.4) 0%, rgba(2,8,15,0) 35%, rgba(2,8,15,0.65) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 3;
  width: var(--col-full); margin-inline: auto;
  display: flex; flex-direction: column; gap: var(--s-7);
}

.hero__meta {
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--text-muted);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.hero__meta b { color: var(--gold); font-weight: 500; letter-spacing: 0.2em; }
.hero__meta .live::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--cyan); border-radius: 50%;
  margin-right: 0.5rem; vertical-align: 0.05em;
  box-shadow: 0 0 12px var(--cyan-soft);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

.hero__display {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-6);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  max-width: 18ch;
}
.hero__display em { font-style: italic; color: var(--gold); }
.hero__display .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Allow descenders (y, g, p, j) to sit inside the overflow box without expanding layout */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.hero__display .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 950ms cubic-bezier(.16,1,.3,1) forwards;
}
.hero__display .word:nth-child(1) > span { animation-delay: 80ms; }
.hero__display .word:nth-child(2) > span { animation-delay: 180ms; }
.hero__display .word:nth-child(3) > span { animation-delay: 280ms; }
.hero__display .word:nth-child(4) > span { animation-delay: 380ms; }
.hero__display .word:nth-child(5) > span { animation-delay: 480ms; }
.hero__display .word:nth-child(6) > span { animation-delay: 580ms; }
.hero__display .word:nth-child(7) > span { animation-delay: 680ms; }
.hero__display .word:nth-child(8) > span { animation-delay: 780ms; }
.hero__display .word:nth-child(9) > span { animation-delay: 880ms; }
@keyframes rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__display .word > span { animation: none; transform: none; }
}

.hero__sub {
  display: grid; grid-template-columns: 5fr 5fr; gap: var(--s-8);
  align-items: end; padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) { .hero__sub { grid-template-columns: 1fr; gap: var(--s-5); } }

.hero__lede {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.5; color: var(--text-soft);
  max-width: 36ch;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 900ms 1100ms var(--ease-out) forwards;
}
.hero__cta-row {
  display: flex; gap: var(--s-7); flex-wrap: wrap; justify-content: flex-end;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 900ms 1250ms var(--ease-out) forwards;
}
@media (max-width: 760px) { .hero__cta-row { justify-content: flex-start; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* --- Link CTAs (no buttons, all underlined) ----------------------------- */
.link-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 0.5rem;
  position: relative;
  isolation: isolate;
}
.link-cta::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform-origin: 0 0;
  transition: background var(--speed);
}
.link-cta::before {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0%; background: var(--text);
  transition: width var(--speed-slow) var(--ease-out);
  z-index: 1;
}
.link-cta:hover { color: var(--gold-soft); }
.link-cta:hover::before { width: 100%; }
.link-cta .ar { color: var(--gold); transition: transform var(--speed); }
.link-cta:hover .ar { transform: translateX(6px); color: var(--gold-soft); }
.link-cta--primary { color: var(--gold); font-size: var(--step-0); }
.link-cta--primary::after { background: var(--gold); height: 2px; }
.link-cta--lg { font-size: var(--step-0); padding-bottom: 0.6rem; }

/* --- Wave-rule divider --------------------------------------------------- */
.wave-divider {
  display: block; width: 100%;
  height: 80px; color: var(--gold);
  opacity: 0.6;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* --- Manifesto / numbered editorial list -------------------------------- */
.section-head { margin-bottom: var(--s-8); display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-7); align-items: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s-4); } }
.section-head .num { display: block; margin-bottom: var(--s-3); }
.section-head h2 { max-width: 18ch; margin: 0; }

.editorial-list { border-top: 1px solid var(--rule); }
.editorial-list__item {
  display: grid;
  grid-template-columns: 1fr 4fr 5fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background var(--speed);
}
.editorial-list__item:hover { background: rgba(78,200,255,0.025); }
@media (max-width: 860px) {
  .editorial-list__item { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-5) 0; align-items: start; }
}
.editorial-list__item .num-big {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  color: var(--gold);
  letter-spacing: -0.03em; line-height: 0.85;
  font-feature-settings: 'tnum';
}
.editorial-list__item h3 {
  font-size: var(--step-3); line-height: 1.05; margin: 0;
}
.editorial-list__item p {
  margin: 0; color: var(--text-soft);
  font-size: var(--step-0); line-height: 1.55;
  max-width: 32ch;
}

/* --- Process (4 steps) -------------------------------------------------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: var(--s-7);
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) { .process { grid-template-columns: 1fr; } }
.process__step {
  padding: var(--s-7) var(--s-5);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background var(--speed);
}
.process__step:hover { background: rgba(78,200,255,0.04); }
.process__step + .process__step { border-left: 1px solid var(--rule); }
@media (max-width: 880px) {
  .process__step + .process__step { border-left: 0; }
}
.process__step .num { display: block; margin-bottom: var(--s-3); color: var(--gold); }
.process__step h4 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: -0.012em; line-height: 1.05;
  color: var(--text); margin: 0 0 var(--s-3);
}
.process__step p {
  color: var(--text-soft);
  font-size: var(--step--1); line-height: 1.55;
  max-width: 26ch;
}

/* --- Tier cards (services) ---------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  padding: var(--s-7) var(--s-6) var(--s-6);
  background: rgba(245,239,224,0.02);
  border: 1px solid var(--rule);
  position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--speed-slow) var(--ease-out), border-color var(--speed), background var(--speed), box-shadow var(--speed-slow);
  isolation: isolate;
}
.tier:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(229,167,68,0.04);
  box-shadow: 0 24px 48px -24px var(--gold-glow), inset 0 1px 0 rgba(229,167,68,0.18);
}
.tier::before {
  /* Subtle cyan glow on hover */
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(78,200,255,0.12) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--speed-slow);
  z-index: -1;
}
.tier:hover::before { opacity: 1; }

.tier[data-flag="primary"] {
  border-color: rgba(229,167,68,0.4);
  background: rgba(229,167,68,0.04);
}
.tier__flag {
  position: absolute; top: 0; left: var(--s-5); transform: translateY(-50%);
  background: var(--gold); color: var(--ink);
  font-family: var(--mono); font-size: var(--step--2); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  padding: 0.4rem 0.8rem;
}
.tier__meta {
  display: flex; gap: var(--s-5); margin-bottom: var(--s-3);
  color: var(--text-muted); font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.2em;
}
.tier h3 {
  font-size: var(--step-2); line-height: 1.08; margin: 0 0 var(--s-3);
  max-width: 14ch;
}
.tier__price {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.3rem, 1.4rem + 2vw, 3.4rem);
  line-height: 1; color: var(--text);
  margin: var(--s-4) 0 var(--s-2);
  letter-spacing: -0.02em;
}
.tier__price small {
  display: block;
  font-family: var(--mono); font-weight: 400;
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-muted); margin-top: 0.4rem;
}
.tier ul.includes {
  list-style: none; margin: var(--s-4) 0 var(--s-6); padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: var(--step--1); color: var(--text-soft);
}
.tier ul.includes li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding-left: 0; transition: transform var(--speed);
}
.tier:hover ul.includes li { transform: translateX(2px); }
.tier ul.includes li::before {
  content: ''; display: inline-block;
  width: 1em; height: 0.5em; margin-top: 0.55em; flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12' fill='none' stroke='%23E5A744' stroke-width='2.2' stroke-linecap='round'><path d='M1 7c4-4 7-4 11 0s7 4 11 0 7-4 11 0'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.tier .link-cta { margin-top: auto; align-self: flex-start; }

/* --- Pull quote (cinematic, count-up) ---------------------------------- */
.pullquote {
  padding-block: clamp(5rem, 4rem + 6vw, 12rem);
  background: var(--ink-2);
  position: relative; overflow: hidden;
}
.pullquote::before {
  /* Animated wave behind quote */
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'><path d='M0 200 Q 300 80 600 200 T 1200 200' fill='none' stroke='%234EC8FF' stroke-width='1' opacity='0.15'/><path d='M0 220 Q 300 100 600 220 T 1200 220' fill='none' stroke='%234EC8FF' stroke-width='1' opacity='0.1'/><path d='M0 240 Q 300 120 600 240 T 1200 240' fill='none' stroke='%23E5A744' stroke-width='1' opacity='0.12'/></svg>");
  background-size: 130% 100%; background-position: 0 50%;
  background-repeat: repeat-x;
  animation: wave-pan 18s linear infinite;
  pointer-events: none;
}
@keyframes wave-pan { 0% { background-position: 0 50%; } 100% { background-position: -1200px 50%; } }
.pullquote__inner { position: relative; width: var(--col); margin-inline: auto; max-width: 64rem; }
.pullquote q {
  font-family: var(--display); font-weight: 400; font-style: normal;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5.5rem);
  line-height: 1.05; letter-spacing: -0.022em;
  color: var(--text);
  display: block; max-width: 18ch; quotes: none;
}
.pullquote q::before, .pullquote q::after { content: none; }
.pullquote q em { font-style: italic; color: var(--gold); }
.pullquote .counter {
  display: inline-block;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan-glow);
}
.pullquote__attribution {
  margin-top: var(--s-6);
  font-family: var(--mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--text-muted);
  display: flex; gap: 0.7rem; align-items: center;
}
.pullquote__attribution::before { content: '—'; }

/* --- Contact ----------------------------------------------------------- */
.contact-block__lead {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-3); line-height: 1.05;
  color: var(--text); max-width: 16ch;
}
.contact-block__email {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 5rem);
  letter-spacing: -0.025em;
  margin: var(--s-6) 0;
  display: block;
  color: var(--gold);
  text-decoration: none;
  position: relative; line-height: 1;
}
.contact-block__email::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.1em;
  height: 2px; background: var(--gold);
  transform-origin: 0 0; transform: scaleX(0.3);
  transition: transform var(--speed-slow) var(--ease-out);
}
.contact-block__email:hover { color: var(--gold-soft); }
.contact-block__email:hover::after { transform: scaleX(1); }
.contact-block__meta {
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-muted);
}
.contact-block__meta a { text-decoration: none; color: var(--text-muted); }
.contact-block__meta a:hover { color: var(--gold); }

.compact-form { margin-top: 0; max-width: 34rem; }
.compact-form fieldset { border: 0; padding: 0; margin: 0; }
.compact-form .field { display: grid; grid-template-columns: 1fr; gap: 0.3rem; margin-bottom: var(--s-5); }
.compact-form .field label {
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500;
  color: var(--text-muted);
}
.compact-form .field input,
.compact-form .field textarea {
  font: inherit; padding: 0.85rem 0; border: 0;
  border-bottom: 1px solid var(--rule); background: transparent;
  color: var(--text); border-radius: 0;
  transition: border-color var(--speed);
}
.compact-form .field input::placeholder,
.compact-form .field textarea::placeholder { color: var(--text-dim); }
.compact-form .field input:focus,
.compact-form .field textarea:focus { outline: 0; border-bottom-color: var(--cyan); }
.compact-form .field textarea { min-height: 5.5rem; resize: vertical; }
.compact-form .fineprint {
  font-size: var(--step--2); color: var(--text-muted);
  margin: var(--s-3) 0 var(--s-5);
}
.compact-form .fineprint a { color: var(--gold); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  padding-block: var(--s-9) var(--s-6);
  border-top: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(78,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.site-footer__inner {
  width: var(--col-full); margin-inline: auto;
  display: grid; grid-template-columns: 5fr 2fr 3fr 2fr;
  gap: var(--s-7); position: relative;
}
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer__brand .brand { margin-bottom: var(--s-4); }
.site-footer__brand .brand .wordmark { color: var(--text); }
.site-footer__brand .brand .wordmark em { color: var(--gold); }
.site-footer__tag {
  color: var(--text-soft); max-width: 36ch;
  font-size: var(--step--1); line-height: 1.6;
}
.site-footer h5 {
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.24em; font-weight: 500;
  color: var(--gold); margin: 0 0 var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: var(--step--1); }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  color: var(--text-soft);
  transition: border-color var(--speed), background var(--speed), color var(--speed), transform var(--speed);
}
.social a:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  transform: translateY(-2px);
}
.social svg { width: 16px; height: 16px; }

.site-footer__base {
  width: var(--col-full); margin: var(--s-7) auto 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-dim); gap: var(--s-4);
}
@media (max-width: 600px) { .site-footer__base { flex-direction: column; text-align: center; } }

/* --- Cookie banner ------------------------------------------------------- */
.cookie {
  position: fixed; right: 1.25rem; bottom: 1.25rem; left: auto;
  max-width: 22rem; z-index: 65;
  background: rgba(7,20,42,0.95);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: var(--s-5);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-3);
  font-size: var(--step--1);
  box-shadow: 0 18px 48px -16px rgba(0,0,0,0.6);
  transform: translateY(20px); opacity: 0;
  animation: cookie-in 600ms 1800ms var(--ease-out) forwards;
}
@keyframes cookie-in { to { transform: translateY(0); opacity: 1; } }
.cookie h6 { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--step-1); line-height: 1.1; color: var(--text); }
.cookie p { margin: 0; color: var(--text-soft); }
.cookie .link-cta { align-self: flex-end; }
.cookie[hidden] { display: none !important; }
@media (max-width: 480px) {
  .cookie { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
}

/* --- Callout (clean, non-TBD inline content frame) ---------------------- */
.callout {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  border-left: 2px solid var(--gold);
  background: rgba(229,167,68,0.03);
}
.callout h4 {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 var(--s-3);
  font-weight: 500;
  color: var(--gold);
}
.callout p {
  color: var(--text);
  margin: 0 0 0.6em;
  max-width: 64ch;
}
.callout p:last-child { margin-bottom: 0; }
.callout ul {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  color: var(--text);
}
.callout ul li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4em;
  border-bottom: 1px solid var(--rule);
  line-height: 1.55;
  font-size: var(--step--1);
}
.callout ul li:last-child { border-bottom: 0; }
.callout ul li::before {
  content: '~';
  position: absolute;
  left: 0; top: 0.55rem;
  color: var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.55;
}
.callout strong { color: var(--text); font-weight: 600; }
.callout em { color: var(--gold-soft); font-style: italic; }

/* Inline keyword: thin gold underline, no background — used for terms like "Time Refund Plan" */
.term {
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  color: var(--gold-soft);
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 0.05em;
}

/* --- Then / now photo pair (about page) -------------------------------- */
.then-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7) var(--s-6);
  margin: var(--s-7) 0 var(--s-9);
  padding-right: 14px;  /* room for the offset plate to the right of the second photo */
}
.then-now figure {
  margin: 0;
  position: relative;
  isolation: isolate;
}
/* Offset accent plate sits behind each photo, peeking down/right */
.then-now figure::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: linear-gradient(135deg, rgba(78,200,255,0.16), rgba(78,200,255,0.04) 70%, transparent);
  border: 1px solid rgba(78,200,255,0.3);
  z-index: -1;
  pointer-events: none;
  transition: transform var(--speed-slow) var(--ease-out), opacity var(--speed-slow);
}
.then-now figure:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(229,167,68,0.18), rgba(229,167,68,0.04) 70%, transparent);
  border-color: rgba(229,167,68,0.32);
}
.then-now figure:hover::before {
  transform: translate(4px, 4px);
}
.then-now .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px -10px rgba(2,8,15,0.55);
  z-index: 1;
}
.then-now .frame::after {
  /* subtle inner vignette + grain layer, sits above the image */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(2,8,15,0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(2,8,15,0.18) 0%, transparent 30%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.then-now .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(22%) contrast(1.03);
  transition: filter var(--speed-slow) var(--ease-out), transform var(--speed-slow) var(--ease-out);
}
.then-now figure:hover .frame img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

/* Viewfinder-style corner brackets (4 per photo) */
.then-now .bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 3;
  transition: transform var(--speed) var(--ease-out);
}
.then-now figure:hover .bracket--tl { transform: translate(-3px, -3px); }
.then-now figure:hover .bracket--tr { transform: translate( 3px, -3px); }
.then-now figure:hover .bracket--bl { transform: translate(-3px,  3px); }
.then-now figure:hover .bracket--br { transform: translate( 3px,  3px); }
.then-now .bracket--tl { top: -3px;    left: -3px;
  border-top:  1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
}
.then-now .bracket--tr { top: -3px;    right: -3px;
  border-top:   1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}
.then-now .bracket--bl { bottom: -3px; left: -3px;
  border-bottom: 1.5px solid var(--gold);
  border-left:   1.5px solid var(--gold);
}
.then-now .bracket--br { bottom: -3px; right: -3px;
  border-bottom: 1.5px solid var(--gold);
  border-right:  1.5px solid var(--gold);
}

.then-now figcaption {
  margin-top: var(--s-4);
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;        /* center the label + sub stack */
  text-align: center;
  gap: 0.4rem;
  position: relative;
  padding-top: var(--s-3);
}
.then-now figcaption::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;          /* centered above the caption */
  transform: translateX(-50%);
  width: 28px; height: 1px;
  background: var(--gold);
}
.then-now figcaption .sub {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: calc(var(--step--2) * 0.9);
  max-width: 26ch;
}
/* Then-frame: cyan accent label + tick to pair with its cyan offset plate */
.then-now figure:first-child figcaption { color: var(--cyan); }
.then-now figure:first-child figcaption::before { background: var(--cyan); }
.then-now figure:first-child .bracket {
  border-color: var(--cyan) !important;
}
/* Brackets on each figure pick up that figure's accent color */
.then-now figure:first-child .bracket--tl { border-top-color: var(--cyan); border-left-color: var(--cyan); }
.then-now figure:first-child .bracket--tr { border-top-color: var(--cyan); border-right-color: var(--cyan); }
.then-now figure:first-child .bracket--bl { border-bottom-color: var(--cyan); border-left-color: var(--cyan); }
.then-now figure:first-child .bracket--br { border-bottom-color: var(--cyan); border-right-color: var(--cyan); }

@media (max-width: 600px) {
  .then-now {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    /* keep parent padding-right so each plate's right-side bleed has room */
  }
}

/* --- About hero: drifting topographic contours + flourish underline ---- */
.page-hero--about { position: relative; }
.page-hero--about .page-hero__contours {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'><path d='M0 140 C 240 80  480 200 720 140 C 960 80  1200 200 1440 140' fill='none' stroke='%234EC8FF' stroke-width='1' opacity='0.32'/><path d='M0 240 C 240 180 480 300 720 240 C 960 180 1200 300 1440 240' fill='none' stroke='%23E5A744' stroke-width='1' opacity='0.30'/><path d='M0 340 C 240 280 480 400 720 340 C 960 280 1200 400 1440 340' fill='none' stroke='%237FD9FF' stroke-width='1' opacity='0.22'/><path d='M0 440 C 240 380 480 500 720 440 C 960 380 1200 500 1440 440' fill='none' stroke='%23E5A744' stroke-width='1' opacity='0.16'/></svg>");
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  animation: about-contour-drift 48s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, #000 30%, transparent 95%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, #000 30%, transparent 95%);
}
.page-hero--about .page-hero__contours::after {
  /* slower counter-drifting second layer */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'><path d='M0 190 C 240 250 480 130 720 190 C 960 250 1200 130 1440 190' fill='none' stroke='%23E5A744' stroke-width='1' opacity='0.18'/><path d='M0 390 C 240 450 480 330 720 390 C 960 450 1200 330 1440 390' fill='none' stroke='%234EC8FF' stroke-width='1' opacity='0.22'/></svg>");
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  animation: about-contour-drift 76s linear infinite reverse;
}
@keyframes about-contour-drift {
  from { background-position: 0 50%; }
  to   { background-position: -1440px 50%; }
}
.page-hero--about .page-hero__inner { position: relative; z-index: 2; }

/* Floating coordinate ticks (decorative): faint mono markers in the corners */
.page-hero--about .coords {
  position: absolute;
  z-index: 1;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.55;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-hero--about .coords::before,
.page-hero--about .coords::after {
  content: ''; display: inline-block;
  width: 18px; height: 1px; background: currentColor;
}
.page-hero--about .coords::after { display: none; }
.page-hero--about .coords--tr {
  top: calc(var(--s-9) + var(--s-3));
  right: var(--bleed-x);
}
.page-hero--about .coords--bl {
  bottom: var(--s-7);
  left: var(--bleed-x);
}
@media (max-width: 760px) {
  .page-hero--about .coords { font-size: 0.62rem; }
}

/* Flourish: hand-drawn gold underline beneath the italicized phrase */
.flourish-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 0.18em;
}
.flourish-wrap em { font-style: italic; color: var(--gold); }
.flourish {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  width: 100%;
  height: 0.42em;
  pointer-events: none;
  overflow: visible;
}
.flourish path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  opacity: 0;
}
.js-ready [data-reveal].is-in .flourish path {
  animation: flourish-draw 1500ms 600ms var(--ease-out) forwards;
}
@keyframes flourish-draw {
  0%   { stroke-dashoffset: 800; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .flourish path { stroke-dashoffset: 0; opacity: 1; animation: none; }
  .page-hero--about .page-hero__contours,
  .page-hero--about .page-hero__contours::after { animation: none; }
}

/* --- Stack rows (about page toolchain) --------------------------------- */
.stack-rows {
  margin: var(--s-4) 0;
  display: flex;
  flex-direction: column;
}
.stack-rows .row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--s-5);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.stack-rows .row:last-child { border-bottom: 1px solid var(--rule); }
.stack-rows .label {
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.stack-rows .desc {
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .stack-rows .row { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* --- Case lines (about page) ------------------------------------------- */
.case-list {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
  border-top: 1px solid var(--rule);
}
.case-list li {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  line-height: 1.55;
}
.case-list li strong {
  display: block;
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--s-2);
  font-weight: 500;
}

/* --- Stats band (about page, between bio and toolchain) ---------------- */
.stats-band {
  background: var(--ink-2);
  padding-block: var(--s-7);
  border-block: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(229,167,68,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.stats-band__inner {
  position: relative;
  width: var(--col-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 0 var(--s-4);
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .value {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--gold);
}
.stat .label {
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .stats-band__inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* --- Case grid (3-up cards, used on inverted paper section) ------------ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
}
.case-card {
  background: var(--paper-soft);
  border: 1px solid rgba(2,8,15,0.12);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform var(--speed-slow) var(--ease-out), border-color var(--speed), box-shadow var(--speed-slow), background var(--speed);
  position: relative;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  background: #FFFFFF;
  box-shadow: 0 18px 32px -16px rgba(2,8,15,0.18);
}
.case-card .industry {
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
}
.case-card h5 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.case-card p {
  color: rgba(2,8,15,0.72);
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.55;
}
.case-card .savings {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(2,8,15,0.1);
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  font-weight: 600;
}

/* --- Bio drop-quote (about page, inside bio paragraphs) --------------- */
.bio-pull {
  margin: var(--s-7) 0;
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  border-left: 2px solid var(--gold);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.18;
  font-style: italic;
  color: var(--text);
  max-width: 38ch;
}
.bio-pull em { color: var(--gold); }

/* --- TBD placeholder ---------------------------------------------------- */
.tbd {
  display: inline-block;
  background: var(--tbd-bg);
  color: var(--tbd-ink);
  padding: 0.1em 0.45em;
  border-left: 2px solid var(--tbd-rule);
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-style: normal;
}
.tbd::before { content: 'TBD: '; font-weight: 700; }
.tbd-block {
  background: var(--tbd-bg);
  border-left: 4px solid var(--tbd-rule);
  padding: var(--s-5) var(--s-6);
  margin-block: var(--s-5);
  color: var(--tbd-ink);
}
.tbd-block h4 {
  font-family: var(--mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin: 0 0 var(--s-3); font-weight: 700; color: var(--gold-soft);
}
.tbd-block h4::before { content: '[TBD] '; color: var(--gold); }
.tbd-block p { color: var(--tbd-ink); margin: 0 0 0.6em; }
.tbd-block p:last-child { margin-bottom: 0; }

/* --- Sub-page hero ----------------------------------------------------- */
.page-hero {
  padding-block: clamp(8rem, 5rem + 8vw, 14rem) clamp(3rem, 2.5rem + 2.5vw, 5rem);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 80%, rgba(78,200,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; width: var(--col-full); margin-inline: auto; }
.page-hero .meta {
  font-family: var(--mono); font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--gold);
  display: flex; gap: var(--s-5); margin-bottom: var(--s-5);
}
.page-hero h1 {
  font-size: var(--step-5);
  line-height: 0.98;
  max-width: 18ch; margin: 0 0 var(--s-5);
  letter-spacing: -0.025em;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-family: var(--sans); font-size: var(--step-1);
  line-height: 1.45; color: var(--text-soft);
  max-width: 42ch;
}

/* --- Long-form prose --------------------------------------------------- */
.prose h2 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-3); letter-spacing: -0.015em;
  margin: var(--s-8) 0 var(--s-4);
}
.prose h2 .index {
  display: inline-block;
  font-family: var(--mono); font-weight: 500;
  font-size: var(--step--1); letter-spacing: 0.18em;
  color: var(--gold); text-transform: uppercase;
  margin-right: var(--s-3); vertical-align: middle;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--sans);
  font-weight: 600; font-size: var(--step-1);
  margin: var(--s-5) 0 var(--s-3);
  letter-spacing: -0.005em; color: var(--text);
}
.prose p { font-size: var(--step-0); line-height: 1.65; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--text); }
.prose li { margin-bottom: 0.5rem; line-height: 1.55; }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--gold); }

/* --- Rail grid (inner page sections) ----------------------------------- */
.rail-grid {
  display: grid; grid-template-columns: 4fr 8fr;
  gap: var(--s-7); align-items: start;
}
@media (max-width: 860px) { .rail-grid { grid-template-columns: 1fr; gap: var(--s-3); } }
.rail-grid .rail {
  font-family: var(--mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.6rem;
  border-top: 1px solid var(--gold);
}
.rail-grid .rail strong {
  display: block; color: var(--text); font-weight: 500;
  font-family: var(--display); font-size: var(--step-2);
  letter-spacing: -0.012em;
  margin-top: var(--s-4);
  text-transform: none;
}
.rail-grid .body { padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.rail-grid .body p:last-child { margin-bottom: 0; }

/* --- Utility ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* --- Section nudges ---------------------------------------------------- */
.band-paper .tier { border-color: rgba(2,8,15,0.12); background: rgba(2,8,15,0.02); }
.band-paper .tier:hover { border-color: var(--gold-deep); background: rgba(229,167,68,0.06); }
.band-paper .editorial-list { border-top-color: rgba(2,8,15,0.12); }
.band-paper .editorial-list__item { border-bottom-color: rgba(2,8,15,0.12); }
.band-paper .editorial-list__item:hover { background: rgba(78,200,255,0.04); }
.band-paper .editorial-list__item p { color: rgba(2,8,15,0.65); }

.band-paper em, .band-paper h1 em, .band-paper h2 em, .band-paper h3 em { color: var(--gold-deep); }
.band-paper p { color: rgba(2,8,15,0.78); }
.band-paper .rail-grid .rail { color: var(--gold-deep); border-top-color: var(--gold-deep); }
.band-paper .rail-grid .rail strong { color: var(--ink); }
.band-paper .rail-grid .body { border-top-color: rgba(2,8,15,0.18); }
.band-paper .callout {
  background: rgba(2,8,15,0.04);
  border-left-color: var(--gold-deep);
}
.band-paper .callout h4 { color: var(--gold-deep); }
.band-paper .callout p, .band-paper .callout ul { color: var(--ink); }
.band-paper .callout strong { color: var(--ink); }
.band-paper .callout em { color: var(--gold-deep); }
.band-paper .callout ul li { border-bottom-color: rgba(2,8,15,0.12); }
.band-paper .callout ul li::before { color: var(--gold-deep); }
.band-paper h4 { color: var(--gold-deep); }

/* =============================================================================
   Mobile tap-target + small-viewport polish
   - Bump primary buttons and nav controls to ≥44×44 hit areas
   - Add breathing room around tight footer/inline links
   - Hide decorative coords on tiny phones so they don't crowd the hero
   ============================================================================= */
@media (max-width: 760px) {
  /* link-cta is the primary CTA pattern site-wide — add vertical padding for tap height */
  .link-cta {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    min-height: 44px;
  }
  /* keep the underline visually attached to the text, not the padded bottom */
  .link-cta::after,
  .link-cta::before { bottom: 0.7rem; }

  /* Header brand link tap area */
  .brand { padding: 0.4rem 0; }

  /* Footer list links — give each anchor a real tap area */
  .site-footer ul { gap: 0; }
  .site-footer ul li a {
    display: inline-block;
    padding: 0.85rem 0;
    line-height: 1.3;
  }
  /* Plain text list items (e.g., "California, USA") still need vertical rhythm */
  .site-footer ul li { padding: 0.25rem 0; }
  .site-footer ul li:has(a) { padding: 0; }

  /* Inline meta links (contact block) and email/social inline anchors get tap padding */
  .contact-block__meta a,
  .nav-utility a {
    padding: 0.4rem 0;
    display: inline-block;
    line-height: 1.4;
  }

  /* Home contact: the giant email link is large but lh:1 makes it short — pad it */
  .contact-block__email { padding-block: 0.4rem; }

  /* Form submit reuses link-cta — already covered above. Inputs already meet 44 via padding. */

  /* About page: decorative coordinate ticks crowd the hero on tight widths */
  .page-hero--about .coords { display: none; }

  /* About page: stats band — labels can clip if very long; allow 2-line wrap cleanly */
  .stats-band__inner { gap: var(--s-6) var(--s-4); }
  .stat .label { line-height: 1.5; }
}

/* Touch devices: disable the hover-only translateY on tier cards / case cards
   so a tap on iOS doesn't leave them stuck in the hover state */
@media (hover: none) {
  .tier:hover,
  .case-card:hover,
  .then-now figure:hover .frame img,
  .social a:hover {
    transform: none;
  }
}
