/* Nexpersona - global styles */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-elev: #F5F5F0;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);
  --text: #0A0A0B;
  --text-2: #52525B;
  --text-muted: #A1A1AA;
  --accent: #E8E5D8;        /* warm bone */
  --accent-ink: #2A2823;    /* readable text on accent */
  --accent-alt: #16264F;    /* deep navy - sparing */
  --grain: 0.04;
  --shadow-soft: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.08);
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 24px 60px -28px rgba(0,0,0,.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --content: 1280px;
  --narrow: 720px;
  --mid: 960px;
}

[data-theme="dark"] {
  --bg: #0A0A0B;
  --surface: #111113;
  --surface-elev: #1A1A1D;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --text: #F5F5F7;
  --text-2: #A1A1AA;
  --text-muted: #6B6B73;
  --accent: #E8E5D8;
  --accent-ink: #2A2823;
  --accent-alt: #7E9BD4;    /* lighter navy for dark-mode contrast */
  --grain: 0.06;
  --shadow-soft: 0 1px 0 rgba(255,255,255,.04), 0 24px 60px -28px rgba(0,0,0,.6);
  --shadow-card: 0 1px 0 rgba(255,255,255,.06), 0 32px 80px -32px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Subtle grain - adds material feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: var(--grain);
  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' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

[data-theme="dark"] body::before { mix-blend-mode: screen; }

/* Type */

.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 0.98;
}

.serif em, .serif .em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--text);
}

.mono {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-2);
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* Layout */

.shell {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  /* Long-hand so combined classes (.section.shell) don't lose horizontal padding
     when the shorthand on .section overrides it via source order. */
  padding-left: clamp(16px, 3.4vw, 32px);
  padding-right: clamp(16px, 3.4vw, 32px);
}

.section {
  padding-top: clamp(64px, 11vw, 140px);
  padding-bottom: clamp(64px, 11vw, 140px);
  position: relative;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.eyebrow-row .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent-alt);
  opacity: .9;
}
.eyebrow-row .line {
  height: 1px; flex: 1; max-width: 56px;
  background: var(--border-strong);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0,0,0,.3); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: #DCD8C7; }
[data-theme="dark"] .btn-accent:hover { background: #F0EDDF; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-elev); }

.btn-violet {
  background: var(--accent-alt);
  color: #fff;
  /* Soft brand-tinted ambient shadow so the hero CTA reads as THE
     primary action and doesn't look like just another dark pill. */
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-alt) 30%, transparent),
    0 10px 28px -10px color-mix(in srgb, var(--accent-alt) 60%, transparent);
  transition: transform 220ms var(--ease-out),
              filter 220ms var(--ease-out),
              box-shadow 280ms var(--ease-out);
}
.btn-violet:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--accent-alt),
    0 16px 36px -10px color-mix(in srgb, var(--accent-alt) 65%, transparent);
}

.btn .arrow {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Hero-CTA modifier: slightly bigger so the primary action reads at a
   glance vs the ghost "See how we work" button next to it. */
.btn-cta-hero {
  height: 52px;
  padding: 0 26px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.btn-cta-hero .arrow { font-size: 1.05em; }
@media (max-width: 540px) {
  .btn-cta-hero { height: 48px; padding: 0 22px; font-size: 14px; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* NAV */

.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand .logomark {
  display: inline-flex;
  width: 28px; height: 28px;
  transition: transform 400ms var(--ease-out);
}
.brand:hover .logomark { transform: rotate(-4deg); }
.brand .wordmark {
  display: inline-block;
  transform: translateY(2px);
}
.brand .mark {
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 6px;
  background: color-mix(in srgb, var(--surface-elev) 80%, transparent);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 999px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 200ms var(--ease-out);
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.icon-btn:hover { background: var(--surface-elev); border-color: var(--border-strong); }

.lang-pop {
  position: relative;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-card);
  min-width: 168px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  z-index: 60;
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.lang-menu button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border: 0; background: transparent;
  font: inherit; font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover { background: var(--surface-elev); }
.lang-menu button .code { color: var(--text-muted); font-family: 'Geist Mono', monospace; font-size: 11px; }
.lang-menu button.active .code { color: var(--accent-alt); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* HERO */

.hero {
  /* Nav is 68px; leave breathing room without an empty wall of white-space. */
  padding-top: clamp(96px, 10vw, 128px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  /* Bottom-align so the figure's stage-bar lines up with the left column's
     hero-meta row (In-house / Based / Avg. partnership). */
  align-items: end;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 12px 6px 8px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent-alt);
  position: relative;
  box-shadow: 0 0 0 0 var(--accent-alt);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-alt) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(56px, 9.5vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero-title .em { font-style: italic; color: var(--text); }
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  animation: word-in .9s var(--ease-out) forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.hero-sub {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 36px;
  letter-spacing: -0.005em;
}

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 540px;
}
.hero-meta .item .k {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.hero-meta .item .v {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* Editorial grid hero artifact - chrome stripped; animation floats freely */
.hero-figure {
  position: relative;
  width: 100%;
  /* No forced aspect-ratio: let SVG (intrinsic 4:5) and the caption stack
     naturally so they share the SAME rendered width and align. */
  /* Figure spans the right column so the stage-bar (caption) lines up
     with the meta row in the left column. The SVG animation inside is
     constrained separately - see .ha-svg below. */
  margin-left: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
@media (max-width: 960px) {
  .hero-figure { margin: 0 auto; }
}
.hero-figure .label {
  position: absolute;
  z-index: 2;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-figure .label.tl { top: 16px; left: 16px; }
.hero-figure .label.tr { top: 16px; right: 16px; }
.hero-figure .label.bl { bottom: 16px; left: 16px; }
.hero-figure .label.br { bottom: 16px; right: 16px; }
.hero-figure .crosshair {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--border) 1px, transparent 1px) 50% 0 / 50% 100% repeat-y,
    linear-gradient(to bottom, var(--border) 1px, transparent 1px) 0 50% / 100% 50% repeat-x;
  opacity: .35;
}

/* Hero loader - evolves across four 4-second stages on a 16s loop */

.hero-anim {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.ha-svg {
  /* SVG aspect is 4:5 (viewBox 100x125), so width drives the visual
     height. Sized so the dot graphic spans roughly the same vertical
     extent as the hero title + eyebrow on the left column. */
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  flex: none;
}
@media (max-width: 1180px) {
  .ha-svg { max-width: 380px; }
}
@media (max-width: 960px) {
  .ha-svg { max-width: 280px; }
}
@media (max-width: 540px) {
  .ha-svg { max-width: 220px; }
}
@media (max-width: 380px) {
  .ha-svg { max-width: 180px; }
}

.ha-frame {
  opacity: 0;
  animation: ha-show 16s ease-in-out infinite;
}
.ha-frame-1 { animation-delay: 0s; }
.ha-frame-2 { animation-delay: 4s; }
.ha-frame-3 { animation-delay: 8s; }
.ha-frame-4 { animation-delay: 12s; }

@keyframes ha-show {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Frame 1 - Attention (scattered drift) */
.ha-scatter {
  transform-box: fill-box;
  transform-origin: center;
}
.ha-scatter.d0 { animation: ha-drift-a 5.2s ease-in-out infinite; }
.ha-scatter.d1 { animation: ha-drift-b 4.8s ease-in-out infinite; }
.ha-scatter.d2 { animation: ha-drift-c 5.6s ease-in-out infinite; }
.ha-scatter.d3 { animation: ha-drift-d 6.0s ease-in-out infinite; }
@keyframes ha-drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -2px); } }
@keyframes ha-drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2px, 3px); } }
@keyframes ha-drift-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, 2px); } }
@keyframes ha-drift-d { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -2px); } }

/* Frame 2 - Alignment (sinusoidal wave) */
.ha-wave-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: ha-wave-bob 2.4s ease-in-out infinite;
}
@keyframes ha-wave-bob {
  0%, 100% { transform: translateY(-12px); }
  50%      { transform: translateY(12px); }
}

/* Frame 3 - Structure (grid + scan line) */
.ha-grid-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: ha-grid-pulse 2.4s ease-in-out infinite;
  opacity: 0.55;
}
@keyframes ha-grid-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.3); }
}
.ha-scan {
  animation: ha-scan-sweep 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}
@keyframes ha-scan-sweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(98px); }
}

/* Frame 4 - Ownership (stepped N) */
.ha-n-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: ha-n-breathe 2.6s ease-in-out infinite;
}
@keyframes ha-n-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
.ha-n-accent {
  transform-box: fill-box;
  transform-origin: center;
  animation: ha-n-accent-pulse 1.8s ease-in-out infinite;
}
@keyframes ha-n-accent-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.7; }
}

/* Stage caption - lives below the floating SVG */
.ha-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  color: var(--text-muted);
  width: 100%;
}
.ha-stage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 0 0;
  transition: color 250ms var(--ease-out);
}
.ha-stage-num {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 250ms var(--ease-out);
}
.ha-stage-name {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text-2);
  transition: color 250ms var(--ease-out), font-style 250ms;
}
.ha-stage-1 { animation: ha-stage-active 16s linear infinite; animation-delay: 0s; }
.ha-stage-2 { animation: ha-stage-active 16s linear infinite; animation-delay: 4s; }
.ha-stage-3 { animation: ha-stage-active 16s linear infinite; animation-delay: 8s; }
.ha-stage-4 { animation: ha-stage-active 16s linear infinite; animation-delay: 12s; }
@keyframes ha-stage-active {
  0%, 23% {
    --num-color: var(--accent-alt);
    --name-color: var(--text);
    --name-style: italic;
  }
  25%, 100% {
    --num-color: var(--text-muted);
    --name-color: var(--text-2);
    --name-style: normal;
  }
}
.ha-stage > .ha-stage-num { color: var(--num-color, var(--text-muted)); }
.ha-stage > .ha-stage-name {
  color: var(--name-color, var(--text-2));
  font-style: var(--name-style, normal);
}

@media (max-width: 720px) {
  /* On mobile: number sits INLINE with the stage name, 4 equal columns
     spanning the full caption width (a 4x1 grid). */
  .ha-caption {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 8px;
    padding-top: 14px;
    width: 100%;
    max-width: none;
  }
  .ha-stage {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding: 0;
    min-width: 0;
  }
  .ha-stage-num {
    font-size: 9px;
    flex: 0 0 auto;
  }
  .ha-stage-name {
    font-size: 13px;
    line-height: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 480px) {
  .ha-caption { gap: 0 5px; padding-top: 12px; }
  .ha-stage { gap: 4px; }
  .ha-stage-num { font-size: 8px; }
  .ha-stage-name { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .ha-stage-num { font-size: 7.5px; }
  .ha-stage-name { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-frame, .ha-scatter, .ha-wave-dot, .ha-grid-dot, .ha-n-dot,
  .ha-n-accent, .ha-scan, .ha-stage { animation: none !important; }
  .ha-frame-4 { opacity: 1; }  /* show final state */
  .ha-stage-4 { color: var(--accent-alt); font-weight: 600; }
}
.hero-figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out);
}
.hero-figure:hover img { transform: scale(1.03); }

.hero-figure .quote-card {
  position: absolute;
  z-index: 4;
  left: 20px; right: 20px;
  bottom: 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-figure .quote-card .by {
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
}

/* Hero variant: split type (variant 1) */
.hero-typeonly {
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 16px 0 32px;
}
.hero-typeonly .em { font-style: italic; }
.hero-typeonly .accent-bar {
  display: inline-block;
  width: 0.6em;
  height: 0.08em;
  background: var(--accent-alt);
  vertical-align: middle;
  margin: 0 0.05em;
  transform: translateY(-0.1em);
}

/* Hero variant: glow (variant 2) */
.hero-glow {
  position: relative;
  text-align: center;
  padding: 40px 0;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  width: 700px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-alt) 40%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0% { transform: translate(-55%, 0); }
  100% { transform: translate(-45%, -30px); }
}

/* Cursor accent - global, follows the mouse, blurred-through cards */
.cursor-accent {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side,
      color-mix(in srgb, var(--accent-alt) 14%, transparent) 0%,
      color-mix(in srgb, var(--accent-alt) 7%, transparent) 35%,
      transparent 75%);
  filter: blur(8px);
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 400ms ease;
  opacity: 0;
  mix-blend-mode: normal;
}
[data-theme="dark"] .cursor-accent {
  mix-blend-mode: screen;
}

/* PROBLEM SECTION */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
}

.problem-h {
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.problem-h .em { font-style: italic; }

.problem-body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 480px;
  text-wrap: pretty;
}

.problem-body p + p { margin-top: 16px; }
.problem-body strong { color: var(--text); font-weight: 500; }

/* Audience marquee under problem */
.marquee {
  margin-top: 100px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  gap: 56px;
  padding: 22px 0;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee .track {
  display: inline-flex; gap: 56px;
  animation: scroll 40s linear infinite;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.marquee .track .em { font-style: italic; color: var(--text); }
.marquee .track .sep { color: var(--accent-alt); margin: 0 8px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* WHO WE WORK WITH - editorial staggered 12-col grid */

.who-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .who-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
}
.who-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 440px;
  padding-bottom: 8px;
  text-wrap: pretty;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  align-items: stretch;
  margin-bottom: 40px;
}

.who-card {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
  grid-column: auto;
}
.who-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-alt);
  transition: width 700ms var(--ease-out);
}
.who-card.in::before,
.who-card.reveal.in::before { width: 56px; }

.who-card-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.who-num {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent-alt);
}
.who-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.who-title {
  font-family: 'Instrument Serif', serif;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  max-width: 22ch;
  text-wrap: pretty;
}
.who-title em { font-style: italic; }

.who-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36ch;
  margin: 0;
  text-wrap: pretty;
}

.who-note {
  display: inline-flex; align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
}
.who-note-tick {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent-alt);
  opacity: 0.85;
}

.who-card-01,
.who-card-02,
.who-card-03,
.who-card-04 {
  /* uniform 2×2 cells - explicit placement removed in favor of natural flow */
}

/* Hover micro-animation - number nudges, accent line extends, content lifts */
.who-card:hover { transform: translateY(-4px); }
.who-card::before {
  transition: width 700ms var(--ease-out), background 400ms var(--ease-out);
}
.who-card:hover::before { width: 96px; }
.who-num {
  display: inline-block;
  transition: transform 500ms var(--ease-out), color 400ms var(--ease-out);
}
.who-card:hover .who-num {
  transform: translateX(6px);
}
.who-title {
  transition: transform 600ms var(--ease-out);
}
.who-card:hover .who-title {
  transform: translateX(4px);
}

/* Hero card (01) and (04) treatments now uniform with 02/03 */
.who-card-01 .who-title,
.who-card-04 .who-title {
  font-size: clamp(28px, 3.2vw, 44px);
}

@media (max-width: 880px) {
  .who-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* SERVICES - full-width strips, hover-expand with tags + bullets */

.svc-section { padding-bottom: 0; }

.services-head {
  display: flex; justify-content: space-between; gap: 40px;
  align-items: end;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.services-h {
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.services-h .em { font-style: italic; }
.services-sub {
  color: var(--text-2);
  font-size: 18px;
  max-width: 360px;
  line-height: 1.5;
}

.svc-list {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.svc-row {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
  transition: background-color 400ms var(--ease-out);
}

/* left accent line - draws in on hover */
.svc-row::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--accent-alt);
  transition: width 500ms var(--ease-out);
  z-index: 3;
}
.svc-row:hover::before { width: 40px; }

/* cursor-following blurred accent radial - inset:0 so coords match mouse */
.svc-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    720px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent-alt) 18%, transparent),
    color-mix(in srgb, var(--accent-alt) 6%, transparent) 30%,
    transparent 65%
  );
  filter: blur(36px);
  opacity: 0;
  transition: opacity 450ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.svc-row:hover::after { opacity: 0.7; }

/* Subtle bg overlay - lifts the strip on hover, independent of cursor */
.svc-row {
  background-color: transparent;
}
.svc-row:hover {
  background-color: color-mix(in srgb, var(--accent-alt) 4%, transparent);
}

.svc-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px 32px;
  display: grid;
  grid-template-columns: 100px 1.3fr 2fr;
  grid-template-rows: auto;
  gap: 12px 32px;
  align-items: center;
  transition: padding 500ms var(--ease-out);
}

.svc-row:hover .svc-inner {
  padding-top: 36px;
  padding-bottom: 36px;
}

.svc-row .idx {
  align-self: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 350ms var(--ease-out);
  padding-left: 16px;
  text-transform: uppercase;
}
.svc-row:hover .idx { color: var(--accent-alt); }

.svc-row .name {
  align-self: center;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.012em;
  line-height: 1;
}

.svc-row .desc {
  align-self: center;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 480px;
}

/* Expand block - animates open on hover */
.svc-expand {
  grid-column: 2 / span 2;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out), opacity 380ms var(--ease-out), margin 500ms var(--ease-out);
  opacity: 0;
  margin-top: 0;
}
.svc-expand-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 32px;
  align-items: start;
}
.svc-row:hover .svc-expand {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 20px;
}

.svc-tags {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.svc-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-alt) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent-alt) 30%, transparent);
  color: var(--accent-alt);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.svc-bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.svc-bullet {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.svc-bullet-mark {
  display: inline-block;
  width: 6px; height: 1px;
  background: var(--accent-alt);
  margin-top: 9px;
  margin-left: 4px;
}

@media (max-width: 880px) {
  .svc-inner {
    grid-template-columns: 56px 1fr;
    gap: 12px 16px;
    padding: 24px 20px;
  }
  .svc-row .desc { grid-column: 2; max-width: 100%; }
  .svc-row .name { font-size: 22px; }
  .svc-expand { grid-column: 2; }
  .svc-expand-inner { grid-template-columns: 1fr; gap: 18px; }
  .svc-row:hover .svc-inner { padding-top: 28px; padding-bottom: 28px; }
}

/* PROCESS - horizontal pin-scroll */

.process-scroll {
  position: relative;
  background: var(--bg);
}

.ps-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ps-head {
  padding-top: 120px;
  padding-bottom: 28px;
  position: relative;
  z-index: 2;
}

.ps-head-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 960px) {
  .ps-head-row { grid-template-columns: 1fr; gap: 28px; }
}

.ps-title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.022em;
  margin: 0;
}
.ps-title .em { font-style: italic; }

.ps-progress {
  display: flex; flex-direction: column;
  gap: 10px;
  min-width: 240px;
}
.ps-counter {
  font-family: 'Geist Mono', monospace;
  font-size: 28px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}
.ps-bar {
  position: relative;
  height: 2px;
  background: var(--surface-elev);
  border-radius: 999px;
  overflow: visible;
}
.ps-bar-fill {
  position: absolute; inset: 0;
  background: var(--accent-alt);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .25s linear;
  border-radius: inherit;
}
.ps-tick {
  position: absolute;
  top: -3px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transform: translateX(-50%);
}
.ps-hint {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ps-track {
  flex: 1;
  display: flex;
  width: max-content;
  will-change: transform;
  /* transform applied inline */
}

.ps-panel {
  width: 100vw;
  height: 100%;
  flex: 0 0 100vw;
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0 0 80px;
}

.ps-panel-inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 48px;
  align-items: center;
  transition: opacity 0.4s var(--ease-out);
}

.ps-left {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
}
.ps-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex; align-items: baseline;
  gap: 8px;
  font-feature-settings: "lnum";
}
.ps-num .em { font-style: italic; }
.ps-num .slash {
  font-size: 0.4em;
  color: var(--accent-alt);
  font-style: italic;
}

.ps-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.ps-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 42px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.ps-mid {
  display: flex; flex-direction: column;
  gap: 24px;
  max-width: 480px;
}
.ps-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.ps-headline .em { font-style: italic; }
.ps-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.ps-deliv {
  display: flex; flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--border-strong);
  padding-top: 16px;
}
.ps-deliv-row {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px;
}
.ps-deliv-row .k {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  min-width: 88px;
}
.ps-deliv-row .dot-sep { color: var(--border-strong); }
.ps-deliv-row .v { color: var(--text); font-weight: 500; }

.ps-right {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  overflow: hidden;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.vis-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Visual 1 - audit list */
.vis-list-row {
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.vis-list-row:last-child { border-bottom: 0; }
.vis-list-row .vis-idx {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.vis-list-row .vis-name {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.005em;
}
.vis-list-row .vis-mark {
  color: var(--accent-alt);
  font-weight: 600;
  text-align: right;
}

/* Visual 2 - blueprint */
.vis-blueprint svg { flex: 1; color: var(--text); }

/* Visual 3 - terminal */
.vis-term {
  background: var(--text);
  color: var(--bg);
  padding: 0;
  font-family: 'Geist Mono', monospace;
  border-color: transparent;
}
.vis-term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vis-term-bar span {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.vis-term-bar .t {
  width: auto;
  background: transparent;
  margin-left: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
}
.vis-term-body {
  padding: 18px 18px;
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}
.vis-term-line .prompt { color: var(--accent-alt); margin-right: 8px; }
[data-theme="dark"] .vis-term {
  background: var(--surface-elev);
  color: var(--text);
}

/* Visual 4 - chart */
.vis-chart-rows {
  display: flex; align-items: flex-end;
  gap: 4px;
  flex: 1;
  height: 100%;
  padding: 12px 0;
}
.vis-bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.vis-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.vis-chart-axis {
  display: flex; justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

/* Visual 5 - curve */
.vis-curve svg { flex: 1; color: var(--text); }

/* Next hint anchored bottom-right */
.ps-next-hint {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0.5;
}

/* Mobile fallback - stack panels */
@media (max-width: 880px) {
  .process-scroll { height: auto !important; }
  .ps-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }
  .ps-head { padding-top: 60px; padding-bottom: 32px; }
  .ps-progress { display: none; }
  .ps-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    transform: none !important;
  }
  .ps-panel {
    width: 100%;
    flex: 0 0 auto;
    padding: 32px 0;
    border-top: 1px solid var(--border);
  }
  .ps-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ps-num { font-size: 96px; }
  .ps-name { font-size: 32px; }
  .ps-right { height: 280px; }
  .ps-next-hint { display: none; }
}

/* SELECTED WORK - proof cards w/ animated counters, cursor-outline & micro charts */

.work-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 40px; margin-bottom: 56px;
  flex-wrap: wrap;
}
.work-h {
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1; letter-spacing: -0.02em;
}
.work-h .em { font-style: italic; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}
.pc-carousel { grid-column: span 2; }
@media (max-width: 1000px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-carousel { grid-column: span 2; }
}
@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr; }
  .pc-carousel { grid-column: span 1; }
}

/* base card - translucent, backdrop-blurred, cursor-outline glow */
.proof-card {
  position: relative;
  /* translucent surface so the global cursor accent shows through, blurred */
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 24px 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  animation: pc-float 7.5s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition: transform 500ms var(--ease-out), border-color 500ms var(--ease-out), background 500ms var(--ease-out);
  --mx: 50%;
  --my: 50%;
}
.proof-card:hover {
  transform: translateY(-6px) !important;
  animation-play-state: paused;
}
@keyframes pc-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .proof-card { animation: none; }
}

/* Cursor-following outline glow */
.proof-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent-alt) 85%, transparent),
    color-mix(in srgb, var(--accent-alt) 30%, transparent) 35%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.proof-card:hover::before { opacity: 1; }

/* Inner soft glow that follows cursor (subtle, behind content) */
.proof-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    200px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent-alt) 12%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.proof-card:hover::after { opacity: 1; }

.pc-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: auto;
}
.pc-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text-2);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pc-number {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 6.5vw, 92px);
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 16px;
  font-feature-settings: "lnum";
  font-variant-numeric: tabular-nums;
}

.pc-name {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 8px;
  max-width: 280px;
}

.pc-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 320px;
  margin-bottom: 16px;
}

.pc-chart {
  height: 56px;
  margin-top: auto;
  display: flex;
  align-items: stretch;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  position: relative;
}

/* mini bars */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 100%;
}
.mini-bar {
  flex: 1;
  background: currentColor;
  opacity: 0.22;
  border-radius: 1.5px;
  min-height: 4%;
  color: var(--text);
}
.mini-bar.hi {
  background: var(--accent-alt);
  opacity: 1;
}

/* radial gauge */
.gauge-wrap {
  display: flex; align-items: center; gap: 16px;
  width: 100%; height: 100%;
}
.gauge {
  width: 56px; height: 56px;
  color: var(--text);
  flex: 0 0 56px;
}
.gauge-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* dot grid */
.dot-grid {
  display: grid;
  gap: 3px;
  width: 100%;
  height: 100%;
  align-items: center;
}
.dg-cell {
  display: block;
  aspect-ratio: 1;
  border-radius: 1.5px;
  background: currentColor;
  color: var(--text);
}
.dg-cell.fill {
  background: var(--accent-alt);
}

/* ===== Testimonial carousel ===== */

.pc-carousel {
  background: color-mix(in srgb, var(--surface-elev) 90%, transparent);
  min-height: 340px;
  position: relative;
}
.pc-carousel .pc-arrows {
  display: flex; gap: 4px;
}
.pc-arrow {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.pc-arrow:hover { background: var(--accent-alt); color: var(--bg); border-color: var(--accent-alt); }
[data-theme="dark"] .pc-arrow:hover { color: var(--text); }

.pc-carousel-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
  margin: 28px 0 8px;
  min-height: 0;
}
.pc-slide {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  padding-right: 8px;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  pointer-events: none;
  will-change: opacity, transform;
}
.pc-slide.is-current  { opacity: 1; transform: translateX(0); pointer-events: auto; }
.pc-slide.is-prev     { opacity: 0; transform: translateX(-18px); }
.pc-slide.is-next     { opacity: 0; transform: translateX(18px); }

.pc-mark {
  font-size: 84px;
  line-height: 0.4;
  color: var(--accent-alt);
  margin-bottom: 12px;
  font-style: italic;
  display: block;
}
.pc-quote-text {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--text);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}
.pc-quote-text em { font-style: italic; }

.pc-cite-row {
  display: flex; align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}
.pc-initial {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  flex: 0 0 36px;
}
.pc-cite-block { line-height: 1.3; }
.pc-cite-name {
  font-family: 'Instrument Serif', serif;
  font-size: 17px;
  font-style: italic;
  letter-spacing: -0.005em;
  color: var(--text);
}
.pc-cite-role {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.pc-dots {
  display: flex; gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.pc-dot {
  position: relative;
  width: 32px; height: 3px;
  background: var(--surface-elev);
  border: 0; border-radius: 999px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.pc-dot.active { background: color-mix(in srgb, var(--accent-alt) 30%, transparent); }
.pc-dot .pc-dot-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 100%;
  background: var(--accent-alt);
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes pc-dot-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.pc-dot.active .pc-dot-fill {
  animation-name: pc-dot-fill;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.pc-counter {
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ===== Founder vision ===== */

.pc-vision {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
[data-theme="dark"] .pc-vision {
  background: color-mix(in srgb, var(--accent-alt) 24%, var(--surface));
  color: var(--text);
  border: 1px solid var(--border);
}
.pc-vision::before {
  /* outline color adapts to be visible on the cream/navy bg */
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent-ink) 60%, transparent),
    transparent 65%
  );
}
[data-theme="dark"] .pc-vision::before {
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent) 70%, transparent),
    transparent 65%
  );
}
.pc-vision .pc-top { color: rgba(42, 40, 35, 0.55); }
[data-theme="dark"] .pc-vision .pc-top { color: var(--text-muted); }
.pc-vision .pc-tag {
  background: rgba(42, 40, 35, 0.10);
  color: var(--accent-ink);
  border-color: transparent;
}
[data-theme="dark"] .pc-vision .pc-tag {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}

.pc-vision-body {
  display: flex; flex-direction: column;
  height: 100%;
  margin-top: 28px;
}
.pc-vision-text {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.008em;
  margin: 0;
  margin-bottom: auto;
  color: inherit;
  text-wrap: pretty;
}
.pc-vision-text em { font-style: italic; }
.pc-vision .pc-initial {
  background: rgba(42, 40, 35, 0.12);
  color: var(--accent-ink);
}
[data-theme="dark"] .pc-vision .pc-initial {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--text);
}
.pc-vision .pc-cite-name {
  color: inherit;
}
.pc-vision .pc-cite-role {
  color: rgba(42, 40, 35, 0.55);
}
[data-theme="dark"] .pc-vision .pc-cite-role {
  color: var(--text-muted);
}

/* WHY US - bloom-only, with soft accent gradient backdrop */

.why-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
}
.why-section .shell { position: relative; z-index: 1; }
.why-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center 36%;
  mask-image: radial-gradient(ellipse 40% 38% at 50% 36%,
    black 0%, black 18%,
    rgba(0,0,0,0.7) 38%,
    transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 40% 38% at 50% 36%,
    black 0%, black 18%,
    rgba(0,0,0,0.7) 38%,
    transparent 72%);
  opacity: 0.65;
}
[data-theme="dark"] .why-bg {
  opacity: 0.45;
}

/* Bloom on the gradient - no card box */
.why-section .bloom {
  background: transparent;
  border: none;
  margin-top: 56px;
  height: clamp(440px, 56vw, 620px);
}
.why-section .bloom::before {
  /* keep dot grid mask, but lighter */
  opacity: 0.12;
}


/* Compounding bloom - animated growth viz */

.bloom {
  position: relative;
  width: 100%;
  height: clamp(380px, 48vw, 520px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}
.bloom::before {
  /* subtle dot grid bg */
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 20%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  mask-image: radial-gradient(closest-side at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, black, transparent 75%);
  pointer-events: none;
}

.bloom svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }

.bloom-anno {
  position: absolute;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  z-index: 2;
  max-width: 280px;
  line-height: 1.4;
}
.bloom-anno em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.bloom-anno.tl { top: 20px; left: 22px; text-transform: none; }
.bloom-anno.tr { top: 20px; right: 22px; text-transform: none; }
.bloom-anno.bl { bottom: 20px; left: 22px; text-transform: none; }
.bloom-anno.br {
  bottom: 20px; right: 22px;
  color: var(--accent-alt);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

  70%  { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
  100% { opacity: 1; box-shadow: 0 0 0 0 transparent; }
}

/* Lines draw in */
.bloom-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.bloom.in .bloom-line {
  animation: bloom-line-draw 1.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes bloom-line-draw {
  to { stroke-dashoffset: 0; }
}

/* Dots pop in */
.bloom-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.bloom.in .bloom-dot {
  animation: bloom-dot-in 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.bloom.in .bloom-dot.d1 {
  animation-name: bloom-dot-in, bloom-dot-breathe;
  animation-duration: 0.7s, 3.2s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-direction: normal, alternate;
  animation-timing-function: cubic-bezier(0.16,1,0.3,1), ease-in-out;
  animation-delay: var(--bloom-delay, 0s), calc(var(--bloom-delay, 0s) + 0.8s);
}
@keyframes bloom-dot-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes bloom-dot-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.bloom-origin {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom-origin-pulse 2.4s ease-in-out infinite;
}
.bloom-origin-glow {
  animation: bloom-origin-glow 2.4s ease-in-out infinite;
}
@keyframes bloom-origin-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@keyframes bloom-origin-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); transform-box: fill-box; transform-origin: center; }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* Pulse rings */
.bloom-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom-pulse 4.2s cubic-bezier(0.16,1,0.3,1) infinite;
}
.bloom-pulse.p1 { animation-delay: 0s; }
.bloom-pulse.p2 { animation-delay: 1.4s; }
.bloom-pulse.p3 { animation-delay: 2.8s; }
@keyframes bloom-pulse {
  0%   { r: 16; opacity: 0; stroke-width: 2; }
  10%  { opacity: 0.7; }
  100% { r: 280; opacity: 0; stroke-width: 0.5; }
}

.bloom-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  fill: currentColor;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 600ms ease;
}
.bloom.in .bloom-lbl {
  animation: bloom-lbl-in 0.6s ease forwards;
}
@keyframes bloom-lbl-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 0.85; transform: none; }
}
.bloom-lbl-1 {
  font-size: 10px;
  fill: var(--accent-alt);
  font-weight: 500;
  letter-spacing: 0.14em;
}
.bloom.in .bloom-lbl-1 {
  animation-name: bloom-lbl-in-strong;
}
@keyframes bloom-lbl-in-strong {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: none; }
}
.bloom-lbl-2 {
  fill: currentColor;
  opacity: 0;
}
.bloom.in .bloom-lbl-2 {
  animation-name: bloom-lbl-in-soft;
}
@keyframes bloom-lbl-in-soft {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 0.6; transform: none; }
}
.bloom-lbl-brand {
  font-size: 11px;
  fill: var(--accent-alt);
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 1 !important;
}

@media (max-width: 720px) {
  .bloom svg { transform: scale(0.92); transform-origin: center; }
  .bloom-anno { font-size: 9px; }
}



/* Why us - explanatory legend block below the bloom */

.why-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 880px) {
  .why-legend { grid-template-columns: 1fr; gap: 28px; }
}

.why-legend-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0 0 16px;
  max-width: 12ch;
}
.why-legend-title .em { font-style: italic; }
.why-legend-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 440px;
  text-wrap: pretty;
}

.why-legend-rings {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 20px;
}
.wlr {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.wlr:last-child { border-bottom: 0; padding-bottom: 0; }
.wlr-swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 999px;
  margin-top: 5px;
}
.wlr-swatch.wlr-1 { background: var(--accent-alt); }
.wlr-swatch.wlr-2 { background: var(--text); opacity: 0.7; }
.wlr-swatch.wlr-3 {
  background: transparent;
  border: 1.5px solid var(--text);
  opacity: 0.4;
}

.wlr-text { display: flex; flex-direction: column; gap: 4px; }
.wlr-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.wlr-detail {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  text-wrap: pretty;
}

/* FORM */

.form-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-side {
  position: sticky;
  top: 100px;
}
.form-side h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.form-side h2 .em { font-style: italic; }
.form-side .lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 360px;
  margin-bottom: 32px;
}

.form-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  min-height: 520px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.form-card > .step-anim-enter,
.form-card > .step-anim-exit {
  flex: 1;
}

.form-progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.form-progress .bar {
  flex: 1;
  height: 2px;
  background: var(--surface-elev);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress .bar .fill {
  height: 100%;
  background: var(--accent-alt);
  width: 0%;
  transition: width 600ms var(--ease-out);
  border-radius: inherit;
}
.form-progress .step-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.form-question {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin-bottom: 28px;
  max-width: 460px;
}
.form-question .em { font-style: italic; }

.form-fields { display: flex; flex-direction: column; gap: 18px; }

.field-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input, .textarea {
  width: 100%;
  background: var(--surface-elev);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 18px 18px;
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  color: var(--text);
  outline: none;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus { border-color: var(--accent-alt); background: var(--surface); }
.input.error { border-color: #C13E3E; }
.field-error {
  font-size: 12px; color: #C13E3E;
  margin-top: 6px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.02em;
}
.textarea { min-height: 140px; resize: vertical; font-size: 16px; line-height: 1.5; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--surface-elev);
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  font-size: 16px;
  text-align: left;
  width: 100%;
  color: var(--text);
  font-family: inherit;
}
.option-card:hover { background: var(--surface); border-color: var(--border-strong); }
.option-card.selected {
  border-color: var(--accent-alt);
  background: color-mix(in srgb, var(--accent-alt) 6%, var(--surface));
}
.option-card .dot-wrap {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 22px;
  transition: all 200ms var(--ease-out);
}
.option-card .dot-wrap::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent-alt);
  transform: scale(0);
  transition: transform 220ms var(--ease-out);
}
.option-card.selected .dot-wrap { border-color: var(--accent-alt); }
.option-card.selected .dot-wrap::after { transform: scale(1); }
.option-card .kbd {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: all 200ms var(--ease-out);
  font-family: inherit;
}
.chip:hover { background: var(--surface-elev); }
.chip.selected { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.selected .check { opacity: 1; transform: scale(1); }
.chip .check { opacity: 0; transform: scale(0.6); transition: all 200ms var(--ease-out); }

.form-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.form-actions .hint {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em;
}
.form-actions .hint kbd {
  font: inherit;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 2px;
  color: var(--text-2);
}

.step-anim-enter { animation: stepIn .35s var(--ease-out) both; }
.step-anim-exit  { animation: stepOut .25s var(--ease-out) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-16px); }
}

.summary-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.summary-list .row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.summary-list .row .k {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.summary-list .row .v {
  font-size: 15px; color: var(--text);
}
.summary-list .row .edit {
  font-size: 12px;
  color: var(--accent-alt);
  background: none; border: 0; cursor: pointer;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.confirm {
  text-align: left;
}
.confirm .check-big {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent-alt);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 80px 0 36px;
  position: relative;
}
.footer-mega {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(72px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 56px;
  color: var(--text);
}
.footer-mega .em { font-style: italic; }
.footer-mega .dot {
  display: inline-block;
  width: .18em; height: .18em;
  border-radius: 999px;
  background: var(--accent-alt);
  vertical-align: baseline;
  margin-left: .04em;
  transform: translateY(-0.05em);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-grid-3 { grid-template-columns: 2.4fr 1fr 1fr; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid-3 { grid-template-columns: 1fr 1fr; }
}

.footer-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a { display: block; padding: 6px 0; color: var(--text-2); transition: color 200ms; font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--text-2); font-size: 14px; max-width: 280px; line-height: 1.55; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted);
  text-transform: uppercase;
  gap: 16px;
  flex-wrap: wrap;
}

/* Banner: language detection prompt */
.lang-banner {
  position: fixed;
  bottom: 24px; left: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  z-index: 80;
  animation: slide-up .5s var(--ease-out) both;
  max-width: 360px;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.lang-banner button { background: none; border: 0; cursor: pointer; font: inherit; }
.lang-banner .switch { color: var(--accent-alt); font-weight: 500; }
.lang-banner .dismiss { color: var(--text-muted); margin-left: 4px; padding: 0 4px; }

/* ============================================================
   MOBILE NAV: hamburger drawer
   ============================================================ */

.nav-hamburger { display: none; }

@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; gap: 8px; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-actions { gap: 6px; }
}

.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px clamp(18px, 6vw, 32px) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
  z-index: 60;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-drawer a {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: -0.01em;
  padding: 16px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer .btn { margin-top: 24px; align-self: flex-start; }

/* Scrim behind the drawer (visual + tap-to-close) */
.mobile-scrim {
  position: fixed;
  inset: 68px 0 0 0;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 55;
  animation: scrim-in 240ms var(--ease-out);
}
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 540px) {
  .mobile-drawer { top: 60px; }
  .mobile-scrim { inset: 60px 0 0 0; }
}

@media (min-width: 881px) {
  .mobile-drawer,
  .mobile-scrim { display: none !important; }
}

/* Nav background opaque when drawer is open so the hamburger area
   isn't see-through into the scrim. */
.nav-wrap.mobile-open {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: var(--border);
}

/* ============================================================
   GLOBAL MOBILE TUNING
   ============================================================ */

@media (max-width: 720px) {
  html, body { font-size: 15px; }

  .eyebrow-row { margin-bottom: 24px; gap: 10px; }
  .eyebrow-row .line { max-width: 32px; }

  .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; }
}

/* ============================================================
   HERO (mobile)
   ============================================================ */

@media (max-width: 720px) {
  .hero { padding-top: 96px; padding-bottom: 48px; }
  .hero-grid { gap: 40px; }
  .hero-eyebrow { font-size: 10px; padding: 5px 10px 5px 7px; margin-bottom: 24px; }
  .hero-title {
    font-size: clamp(48px, 13vw, 80px);
    line-height: 0.96;
    margin-bottom: 20px;
  }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-ctas { gap: 10px; margin-bottom: 32px; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 0; }
  .hero-meta {
    gap: 20px 24px;
    padding-top: 20px;
  }
  .hero-meta .item .v { font-size: 18px; }
  .hero-figure { aspect-ratio: 1 / 1; }
  .ha-caption { padding-top: 20px; }
  .ha-stage-name { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-typeonly { font-size: clamp(56px, 17vw, 96px); line-height: 0.9; }
}

/* ============================================================
   PROBLEM (mobile)
   ============================================================ */

@media (max-width: 720px) {
  .problem-grid { gap: 32px; }
  .problem-h { font-size: clamp(34px, 9.5vw, 56px); line-height: 1.02; }
  .problem-body { font-size: 16px; line-height: 1.55; }
  .marquee {
    margin-top: 56px;
    padding: 16px 0;
    gap: 28px;
  }
  .marquee .track { font-size: 20px; gap: 28px; }
}

/* ============================================================
   WHO (mobile)
   ============================================================ */

@media (max-width: 720px) {
  .who-head { margin-bottom: 36px; }
  .who-card { padding-top: 24px; }
  .who-title { font-size: clamp(22px, 6.5vw, 32px) !important; }
  .who-desc { font-size: 14px; }
  .who-num { font-size: 24px; }
}

/* ============================================================
   SERVICES (mobile)
   ============================================================ */

@media (max-width: 720px) {
  .services-head { margin-bottom: 36px; gap: 20px; }
  .services-h { font-size: clamp(32px, 9vw, 56px); }
  .services-sub { font-size: 15px; }
  .svc-inner {
    grid-template-columns: 44px 1fr;
    gap: 8px 12px;
    padding: 20px 16px;
  }
  .svc-row .idx { font-size: 11px; padding-left: 4px; }
  .svc-row .name { font-size: 20px !important; }
  .svc-row .desc { font-size: 13px; line-height: 1.5; }
  .svc-tag { font-size: 9px; padding: 5px 9px; }
  .svc-bullet { font-size: 13px; }
}

/* ============================================================
   PROCESS (mobile)
   ============================================================ */

@media (max-width: 880px) {
  .ps-panel-inner { padding: 0 18px; }
  .ps-title { font-size: clamp(30px, 8.5vw, 56px); }
  .ps-headline { font-size: clamp(22px, 6vw, 32px); }
  .ps-body { font-size: 15px; }
  .ps-num { font-size: 80px !important; line-height: 0.84; }
  .ps-name { font-size: 26px !important; }
  .ps-right { height: 220px; }
  .ps-deliv-row { font-size: 12px; }
  .ps-deliv-row .k { min-width: 70px; font-size: 10px; }
  .vis { padding: 16px 16px; }
  .vis-label { font-size: 9px; margin-bottom: 10px; }
  .vis-list-row .vis-name { font-size: 18px; }
  .vis-term-body { padding: 14px; font-size: 11px; line-height: 1.6; }
}

/* ============================================================
   WORK (mobile)
   ============================================================ */

@media (max-width: 720px) {
  .work-head { margin-bottom: 36px; gap: 20px; }
  .work-h { font-size: clamp(32px, 9vw, 56px); }
  .proof-grid { gap: 14px; }
  .proof-card {
    min-height: 280px;
    padding: 22px 20px 20px;
    border-radius: 18px;
  }
  .pc-number { font-size: clamp(44px, 14vw, 64px); margin-top: 20px; }
  .pc-name { font-size: 19px; }
  .pc-desc { font-size: 12.5px; }
  .pc-quote-text { font-size: 19px; line-height: 1.22; }
  .pc-mark { font-size: 64px; }
  .pc-vision-text { font-size: 19px; }
  .pc-carousel { min-height: 320px; }
  .pc-counter { bottom: 18px; right: 18px; }
  .pc-meta { font-size: 10px; }
}

@media (max-width: 600px) {
  .pc-carousel-stage { margin-top: 20px; }
  .pc-cite-row { padding-top: 16px; }
  .pc-initial { width: 32px; height: 32px; flex: 0 0 32px; font-size: 9px; }
  .pc-cite-name { font-size: 15px; }
  .pc-cite-role { font-size: 9px; }
}

/* ============================================================
   WHY / BLOOM (mobile)
   ============================================================ */

@media (max-width: 880px) {
  .why-section { padding: 80px 0; }
  /* Mobile bloom: SVG uses a tighter viewBox (see CompoundingBloom)
     so the diagram fills the container instead of being letterboxed
     in a 2.1:1 viewBox. Keep the card roughly square-ish so meet
     scaling produces a near-full SVG without empty top/bottom. */
  .why-section .bloom {
    height: clamp(420px, 100vw, 560px);
    margin-top: 32px;
  }
  .why-legend { margin-top: 36px; padding-top: 28px; gap: 24px; }
  .why-legend-title { font-size: clamp(22px, 6.5vw, 36px); }
  .why-legend-body { font-size: 14px; }
  .wlr-label { font-size: 10px; }
  .wlr-detail { font-size: 13px; }
}

@media (max-width: 600px) {
  .bloom-lbl-1 { font-size: 8px; }
  .bloom-lbl-2 { font-size: 7.5px; }
  .bloom-lbl-brand { font-size: 9px; letter-spacing: 0.18em; }
  .bloom-anno { font-size: 8px; max-width: 180px; }
  .bloom-anno em { font-size: 11px; }
  .bloom-anno.tl { top: 12px; left: 14px; }
}

/* ============================================================
   FORM (mobile)
   ============================================================ */

@media (max-width: 960px) {
  .form-side { position: static; }
}

@media (max-width: 720px) {
  .form-grid { gap: 28px; }
  .form-side h2 { font-size: clamp(32px, 9vw, 48px); }
  .form-side .lead { font-size: 15px; margin-bottom: 24px; }
  .form-card {
    padding: 22px 20px;
    min-height: 440px;
    border-radius: 18px;
  }
  .form-question { font-size: clamp(24px, 7vw, 32px); margin-bottom: 20px; }
  .form-progress { margin-bottom: 24px; gap: 10px; }
  .form-progress .step-count { font-size: 10px; }
  .input, .textarea { padding: 14px 14px; font-size: 16px; border-radius: 10px; }
  .textarea { font-size: 14px; min-height: 120px; }
  .field-label { font-size: 10px; }
  .option-card { padding: 14px 16px; font-size: 15px; gap: 12px; }
  .option-card .kbd { display: none; }
  .chip { padding: 9px 14px; font-size: 13px; }
  .form-actions { padding-top: 22px; flex-wrap: wrap; gap: 10px; }
  .summary-list .row {
    grid-template-columns: 96px 1fr auto;
    gap: 10px;
    padding: 11px 0;
  }
  .summary-list .row .k { font-size: 10px; }
  .summary-list .row .v { font-size: 13.5px; }
  .summary-list .row .edit { font-size: 11px; }
  .confirm .check-big { width: 44px; height: 44px; }
  .confirm h3.serif { font-size: 30px !important; }
}

@media (max-width: 480px) {
  .form-card { padding: 18px 16px; }
  .form-side h2 { font-size: clamp(28px, 10vw, 42px); }
  .summary-list .row { grid-template-columns: 84px 1fr auto; }
}

/* ============================================================
   FOOTER (mobile)
   ============================================================ */

@media (max-width: 720px) {
  .footer { padding: 56px 0 28px; }
  .footer-mega { font-size: clamp(64px, 22vw, 140px); margin-bottom: 36px; }
  .footer-grid { gap: 24px; padding-bottom: 36px; }
  .footer-col h4 { font-size: 10px; margin-bottom: 12px; }
  .footer-col p { font-size: 13px; }
  .footer-col a { font-size: 13px; padding: 4px 0; }
  .footer-bottom { font-size: 10px; padding-top: 24px; gap: 10px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   LANGUAGE BANNER (mobile)
   ============================================================ */

@media (max-width: 480px) {
  .lang-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* ============================================================
   OVERFLOW SAFEGUARDS - prevent any element from blowing
   horizontal scroll on long translated strings
   ============================================================ */

@media (max-width: 720px) {
  h1, h2, h3, h4, h5, p, span, a, button {
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .serif, .mono { word-break: normal; overflow-wrap: break-word; }
}

/* Hide tweaks panel on small screens (developer tool) */
@media (max-width: 880px) {
  .tweaks-panel,
  .tweaks-toggle { display: none !important; }
}

/* iOS safe area */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Honor reduced motion globally for marquees + carousels */
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .pc-slide { transition: none; }
}

/* ============================================================
   LEGAL PAGES (privacy, terms)
   ============================================================ */

.legal-page {
  max-width: 760px;
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(60px, 10vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-back {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 200ms var(--ease-out);
}
.legal-back:hover {
  background: var(--surface-elev);
  color: var(--text);
  border-color: var(--border-strong);
}

.legal-header { display: flex; flex-direction: column; gap: 18px; }
.legal-title {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.legal-title .em { font-style: italic; }
.legal-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}
.legal-body h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: -4px;
}
.legal-body p { margin: 0; }
.legal-body a {
  color: var(--accent-alt);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-alt) 35%, transparent);
}
.legal-body a:hover { border-bottom-color: var(--accent-alt); }
.legal-body ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-body li::marker { color: var(--accent-alt); }

.legal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.legal-footer a { color: var(--text-2); transition: color 200ms; }
.legal-footer a:hover { color: var(--text); }

/* ============================================================
   FINE-GRAIN FLUID TUNING — every breakpoint between mobile and
   desktop should look intentional, not "stretched mobile"
   ============================================================ */

/* Tablet portrait (768-960) — services/process/why need a bit more breathing room */
@media (min-width: 721px) and (max-width: 960px) {
  .hero-grid { gap: 44px; }
  .who-grid { gap: 32px 24px; }
  .services-head { gap: 28px; }
  .proof-grid { gap: 14px; }
  .form-grid { gap: 36px; }
  .footer-grid, .footer-grid-3 { gap: 36px; }
}

/* Small tablet / large phone (540-720) — bridge between 1-col and 2-col */
@media (min-width: 541px) and (max-width: 720px) {
  .who-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid, .footer-grid-3 { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pc-carousel { grid-column: span 2; }
}

/* Phone (≤540) — single-column everything, generous taps */
@media (max-width: 540px) {
  .nav { height: 60px; }
  .mobile-drawer { top: 60px; }
  .hero { padding-top: 88px; padding-bottom: 36px; }
  .hero-eyebrow { font-size: 9.5px; padding: 5px 9px 5px 7px; }
  .hero-meta { gap: 16px 20px; }
  .hero-meta .item .v { font-size: 17px; }

  .marquee { margin-top: 40px; padding: 14px 0; }
  .marquee .track { font-size: 18px; gap: 24px; }

  .who-card { gap: 14px; }
  .who-title { font-size: clamp(20px, 6vw, 28px) !important; max-width: 100%; }

  .svc-inner { grid-template-columns: 36px 1fr; padding: 18px 14px; }
  .svc-row .idx { font-size: 10.5px; padding-left: 2px; }
  .svc-row .name { font-size: 18px !important; }
  .svc-row .desc { font-size: 12.5px; }

  .ps-num { font-size: 64px !important; }
  .ps-name { font-size: 22px !important; }
  .ps-right { height: 200px; }

  .pc-mark { font-size: 56px; }
  .pc-quote-text { font-size: 17px; }
  .pc-vision-text { font-size: 17px; }
  .pc-number { font-size: clamp(40px, 13vw, 56px); }

  .form-card { padding: 18px 14px; min-height: 380px; border-radius: 16px; }
  .form-question { font-size: clamp(22px, 7.2vw, 28px); }
  .form-progress { flex-wrap: wrap; }
  .summary-list .row { grid-template-columns: 80px 1fr auto; gap: 8px; }
  .summary-list .row .v { font-size: 13px; }

  .footer-mega { font-size: clamp(56px, 24vw, 100px); margin-bottom: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Very narrow phones (≤380) — Galaxy Fold etc. — final overflow guard */
@media (max-width: 380px) {
  .shell { padding: 0 12px; }
  html, body { font-size: 14.5px; }
  .hero-title { font-size: clamp(40px, 13.5vw, 64px); }
  .problem-h, .services-h, .work-h { font-size: clamp(28px, 9.2vw, 44px); }
  .ps-title { font-size: clamp(26px, 8.8vw, 44px); }
  .form-side h2 { font-size: clamp(26px, 9vw, 38px); }
  .hero-ctas .btn { width: 100%; flex: none; }
  .chip { padding: 8px 12px; font-size: 12.5px; }
  .option-card { padding: 12px 14px; font-size: 14px; }
}

/* Very wide (≥1440) — gently expand max widths */
@media (min-width: 1440px) {
  :root { --content: 1320px; }
}
@media (min-width: 1680px) {
  :root { --content: 1400px; }
}

/* ============================================================
   HORIZONTAL-OVERFLOW HARD STOP
   IMPORTANT: never put `overflow-x: hidden` on html/body - it
   breaks `position: sticky` for descendants (used by the Process
   section's horizontal pin-scroll). Use `overflow-x: clip` on
   body instead, which preserves sticky.
   ============================================================ */

body { overflow-x: clip; }
.nav-wrap, .footer { max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; }

/* ============================================================
   LOADING SKELETON
   Shown inside #root before React mounts. React replaces it on
   first render. Keep layout-only, no heavy effects.
   ============================================================ */

.nx-skeleton {
  min-height: 100vh;
  padding: 0 clamp(16px, 3.4vw, 32px);
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.nx-skel-nav {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.nx-skel-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nx-skel-logomark { display: inline-flex; width: 28px; height: 28px; }
.nx-skel-wordmark { display: inline-block; transform: translateY(2px); }
.nx-skel-nav-pill {
  flex: 0 1 360px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
}
.nx-skel-cta {
  width: 180px;
  height: 36px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.18;
}

.nx-skel-hero {
  padding-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}
.nx-skel-eyebrow {
  width: 280px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
}
.nx-skel-title-line {
  height: clamp(56px, 9.5vw, 140px);
  border-radius: 8px;
  background: linear-gradient(90deg,
    var(--surface-elev) 0%,
    color-mix(in srgb, var(--surface-elev) 70%, var(--text) 4%) 50%,
    var(--surface-elev) 100%);
  background-size: 200% 100%;
  animation: nx-skel-shimmer 1.6s linear infinite;
}
.nx-skel-line-1 { width: 88%; }
.nx-skel-line-2 { width: 64%; }
.nx-skel-sub-line {
  height: 18px;
  border-radius: 4px;
  background: var(--surface-elev);
  animation: nx-skel-shimmer 1.6s linear infinite;
  background: linear-gradient(90deg,
    var(--surface-elev) 0%,
    color-mix(in srgb, var(--surface-elev) 70%, var(--text) 3%) 50%,
    var(--surface-elev) 100%);
  background-size: 200% 100%;
}
.nx-skel-line-3 { width: 62%; }
.nx-skel-line-4 { width: 48%; }
.nx-skel-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.nx-skel-btn-primary {
  width: 220px; height: 48px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.18;
}
.nx-skel-btn-ghost {
  width: 160px; height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

@keyframes nx-skel-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-skel-title-line, .nx-skel-sub-line { animation: none; }
}

/* ============================================================
   TEXT ANIMATIONS
   - .reveal: existing block fade-up (slightly enhanced)
   - .t-words: per-word entrance for serif headlines (anim.js wraps
     children automatically and class .in triggers the animation)
   ============================================================ */

/* Slight enhancement to .reveal: add micro-blur + standard easing */
.reveal {
  filter: blur(4px);
  transition:
    opacity 900ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 900ms cubic-bezier(0.32, 0.72, 0, 1),
    filter 900ms cubic-bezier(0.32, 0.72, 0, 1);
}
.reveal.in { filter: blur(0); }

/* Per-word stagger - applied by anim.js to .t-words elements */
.t-words .t-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition:
    opacity 700ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 700ms cubic-bezier(0.32, 0.72, 0, 1),
    filter 700ms cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: var(--w-delay, 0ms);
  will-change: opacity, transform, filter;
}
.t-words.in .t-w {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Preserve native spacing between word spans */
.t-words .t-space { display: inline; }

/* Reduced-motion: instant snap-in, no blur/translate */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .t-words .t-w {
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .t-words .t-w { opacity: 1 !important; }
}



/* ============================================================
   MOBILE CAROUSELS
   - Who we work with: 4-step auto-advancing slider w/ progress bar
   - Process: horizontal scroll-snap carousel
   - Selected Work: two auto-marquee rows (testimonials + main cards)
   ============================================================ */

/* ----- WHO carousel ----- */
.who-carousel {
  display: none;
}
@media (max-width: 720px) {
  .who-grid { display: none; }
  .who-carousel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
  }
  .who-carousel-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0;
  }
  .who-carousel-dot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-align: left;
    transition: color 250ms var(--ease-out);
  }
  .who-carousel-dot.active { color: var(--accent-alt); }
  .who-carousel-line {
    display: block;
    height: 2px;
    background: var(--surface-elev);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
  }
  .who-carousel-fill {
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--accent-alt);
  }
  @keyframes who-fill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  .who-carousel-stage {
    overflow: hidden;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
  .who-carousel-track {
    display: flex;
    transition: transform 600ms cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
  }
  .who-carousel-track .who-card {
    flex: 0 0 100%;
    border-top: none;
    padding: 0;
  }
}

/* ----- PROCESS mobile carousel (overrides the stacked-vertical fallback) ----- */
@media (max-width: 880px) {
  .process-scroll { height: auto !important; }
  .ps-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }
  .ps-head { padding-top: 56px; padding-bottom: 24px; }

  /* Show progress bar on mobile as pagination */
  .ps-progress { display: flex !important; min-width: 0; }
  .ps-hint { display: none; }

  /* Horizontal scroll-snap carousel */
  .ps-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    transform: none !important;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .ps-track::-webkit-scrollbar { display: none; }

  .ps-panel {
    flex: 0 0 92% !important;
    width: 92% !important;
    height: auto !important;
    scroll-snap-align: center;
    border-top: 0 !important;
    padding: 0 4%;
    box-sizing: border-box;
  }
  .ps-panel + .ps-panel { margin-left: 2%; }
  .ps-panel-inner {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
  }

  /* Make visuals fit inside the card */
  .ps-right { height: 240px !important; }
  .vis { padding: 14px 14px !important; }
  .vis-label { font-size: 9px; margin-bottom: 8px !important; }
  .vis-list-row { padding: 5px 0; grid-template-columns: 28px 1fr 20px; }
  .vis-list-row .vis-name { font-size: 16px !important; }
  .vis-list-row .vis-idx { font-size: 10px; }
  .vis-term-body { padding: 12px; font-size: 10.5px; line-height: 1.55; }
  .vis-chart-rows { padding: 6px 0; }
  .vis-chart-axis { margin-top: 4px; font-size: 9px; }
}

/* ----- WORK (Selected Work) mobile two-row marquees ----- */
.proof-mobile { display: none; }
@media (max-width: 720px) {
  .proof-grid { display: none; }
  .proof-mobile {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-left: calc(-1 * clamp(16px, 3.4vw, 32px));
    margin-right: calc(-1 * clamp(16px, 3.4vw, 32px));
  }
  .pm-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    padding: 4px 0;
  }
  .pm-track {
    display: flex;
    gap: 14px;
    padding: 0 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Browser handles native swipe + momentum. JS drives auto-advance
       by incrementing scrollLeft each frame; CSS keyframes removed. */
    scroll-behavior: auto;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }
  .pm-track::-webkit-scrollbar { display: none; }
  .pm-card {
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
  }
  .pm-card-testimonial {
    width: 270px;
    min-height: 180px;
  }
  .pm-card-testimonial .pm-quote {
    font-family: 'Instrument Serif', serif;
    font-size: 16px;
    line-height: 1.22;
    color: var(--text);
    margin-bottom: 14px;
    text-wrap: pretty;
  }
  .pm-card-testimonial .pm-quote em { font-style: italic; }
  .pm-card-testimonial .pm-cite {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
  }
  .pm-card-testimonial .pm-initial {
    width: 28px; height: 28px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Geist Mono', monospace;
    font-size: 9px; letter-spacing: 0.05em;
    flex: 0 0 28px;
  }
  .pm-card-testimonial .pm-cite-name {
    font-family: 'Instrument Serif', serif;
    font-size: 14px;
    font-style: italic;
    color: var(--text);
  }
  .pm-card-testimonial .pm-cite-role {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
  }

  .pm-card-main {
    width: 320px;
    min-height: 290px;
  }
  .pm-card-main .pm-top {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Geist Mono', monospace;
    font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .pm-card-main .pm-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 60%, transparent);
    color: var(--text-2);
    font-size: 9px;
  }
  .pm-card-main .pm-number {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(46px, 14vw, 60px);
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--text);
    margin: 12px 0 10px;
    font-variant-numeric: tabular-nums;
  }
  .pm-card-main .pm-name {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 6px;
  }
  .pm-card-main .pm-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-2);
  }

  /* Founder vision variant */
  .pm-card-vision {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
  }
  [data-theme="dark"] .pm-card-vision {
    background: color-mix(in srgb, var(--accent-alt) 24%, var(--surface));
    color: var(--text);
    border: 1px solid var(--border);
  }
  .pm-card-vision .pm-vision-text {
    font-family: 'Instrument Serif', serif;
    font-size: 17px;
    line-height: 1.22;
    margin-bottom: auto;
    color: inherit;
  }
  .pm-card-vision .pm-vision-text em { font-style: italic; }
  .pm-card-vision .pm-cite {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(42,40,35,0.16);
    display: flex; gap: 10px; align-items: center;
  }
  [data-theme="dark"] .pm-card-vision .pm-cite { border-top-color: var(--border); }
  .pm-card-vision .pm-initial {
    background: rgba(42,40,35,0.12);
    color: var(--accent-ink);
    width: 28px; height: 28px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Geist Mono', monospace;
    font-size: 9px; letter-spacing: 0.05em;
    flex: 0 0 28px;
  }
  [data-theme="dark"] .pm-card-vision .pm-initial {
    background: color-mix(in srgb, var(--accent) 24%, transparent);
    color: var(--text);
  }
  .pm-card-vision .pm-cite-name {
    font-family: 'Instrument Serif', serif;
    font-size: 14px;
    font-style: italic;
    color: inherit;
  }
  .pm-card-vision .pm-cite-role {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
    color: rgba(42,40,35,0.55);
    text-transform: uppercase;
    margin-top: 2px;
  }
  [data-theme="dark"] .pm-card-vision .pm-cite-role { color: var(--text-muted); }

  @media (prefers-reduced-motion: reduce) {
    .pm-track { scroll-behavior: auto; }
  }
}
