/* =========================================================
   RevenueGrain : award-grade redesign
   ========================================================= */

:root {
  /* palette */
  --bg: #0A0A0B;
  --bg-2: #0E0E10;
  --bg-3: #131316;
  --surface: rgba(255,255,255,0.025);
  --surface-2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #F5F5F4;
  --text-dim: #A8A29E;
  --text-mute: #6B6B70;
  --accent: #F5C518;
  --accent-2: #E0A93F;
  --accent-soft: rgba(245,197,24,0.12);
  --gold: linear-gradient(135deg, #FFE08A 0%, #F5C518 35%, #D9A441 70%, #B8870E 100%);

  /* type */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* spacing */
  --pad-x: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- light theme : applied per-section via .theme-light ---------- */
/* doubled class for higher specificity than :root token defaults */
.theme-light.theme-light {
  --bg: #F4F1EA;
  --bg-2: #ECE8DE;
  --bg-3: #E2DCCE;
  --surface: rgba(10,10,11,0.025);
  --surface-2: rgba(10,10,11,0.04);
  --border: rgba(10,10,11,0.10);
  --border-strong: rgba(10,10,11,0.20);
  --text: #0F0F12;
  --text-dim: #57534E;
  --text-mute: #8A857A;
  --accent: #B8870E;
  --accent-2: #8C6606;
  --accent-soft: rgba(184,135,14,0.10);
  background: var(--bg);
  color: var(--text);
}
.theme-light .display .italic,
.theme-light .display .accent,
.theme-light .pillar-tag,
.theme-light .pillar-title .italic,
.theme-light .eyebrow .ey-num,
.theme-light .b-num,
.theme-light .step-num,
.theme-light .kpi-num,
.theme-light .ltv-num {
  color: var(--accent);
}
.theme-light .quote-card { background: #FAF7F0; }
.theme-light .quote-mark { color: var(--accent); }
.theme-light .quote-card .hl { color: var(--accent); }
.theme-light .quote-card::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(184,135,14,0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(140,102,6,0.05), transparent 55%);
}
.theme-light .bento-card { background: #FAF7F0; }
.theme-light .bento-card:hover { background: #FFFCF4; }
.theme-light .contact-side { background: #FAF7F0; }
.theme-light .field input,
.theme-light .field select,
.theme-light .field textarea { caret-color: var(--accent); }
.theme-light .form-toast { color: var(--accent); }
.theme-light .btn-solid {
  background: #0F0F12;
  color: #FAF7F0;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.35);
}
.theme-light .btn-solid:hover { background: var(--accent); color: #0F0F12; }
.theme-light .btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.theme-light .btn-ghost:hover { background: var(--surface-2); border-color: #0F0F12; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0A0A0B; }

/* ---------- layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- full-page 3D layer (mid-page + footer nuggets) ---------- */
.scene-3d {
  position: fixed; inset: 0;
  z-index: 8;                 /* above section content, below grain/nav/cursor */
  pointer-events: none;
}
.scene-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ---------- grain + cursor ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9;
  opacity: 0.06; mix-blend-mode: overlay;
  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'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.8'/></svg>");
}
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid rgba(245,245,244,0.45);
  border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--text);
  border-radius: 50%;
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: var(--accent);
  border-color: transparent;
  mix-blend-mode: normal;
}
@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- scroll progress ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #FFE08A 100%);
  z-index: 100;
  transition: width 60ms linear;
}

/* ==========================================================
   Navigation
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding .35s var(--ease), backdrop-filter .35s var(--ease), background .35s var(--ease);
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 1rem;
  color: var(--text);
}
.nav-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-wordmark span { color: var(--accent); }
.nav-links {
  justify-self: center;
  display: flex; gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}
.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: inline-flex; align-items: center; gap: 16px; }
.nav-clock {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-sheet {
  position: fixed; inset: 0;
  z-index: 45;
  background: var(--bg);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 28px;
  padding: var(--pad-x);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mobile-sheet.is-open { opacity: 1; pointer-events: auto; }
.mobile-sheet a {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 9vw, 4rem);
  letter-spacing: -0.02em;
}
.mobile-sheet a.btn { font-family: var(--f-sans); font-size: 1rem; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 0.9rem; font-weight: 500;
  border-radius: 999px;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-pill {
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 0.85rem;
}
.btn-pill:hover { background: var(--accent); }
.btn-solid {
  background: var(--accent);
  color: #0A0A0B;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(245,197,24,0.5);
}
.btn-solid:hover { background: #FFD33D; box-shadow: 0 18px 40px -12px rgba(245,197,24,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text); }
.btn-large { padding: 18px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: space-between; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad-x) 80px;
  overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-3d {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite;
}
.mesh-1 {
  width: 60vw; height: 60vw;
  top: -10%; left: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(245,197,24,0.4) 0%, rgba(245,197,24,0) 70%);
}
.mesh-2 {
  width: 50vw; height: 50vw;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(217,164,65,0.32) 0%, rgba(217,164,65,0) 70%);
  animation-delay: -8s;
}
.mesh-3 {
  width: 40vw; height: 40vw;
  top: 30%; left: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,224,138,0.18) 0%, rgba(255,224,138,0) 70%);
  animation-delay: -14s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(8%, -6%) scale(1.08); }
  66%  { transform: translate(-6%, 4%) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: rgba(10,10,11,0.5);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px rgba(74,222,128,0.7);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(3.25rem, 10vw, 9.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) .word { animation-delay: calc(.08s * var(--i, 0)); }
.hero-title .line:nth-child(2) .word { animation-delay: calc(.4s + .08s * var(--i, 0)); }
.hero-title .line:nth-child(3) .word { animation-delay: calc(.8s + .08s * var(--i, 0)); }

.hero-title .word:nth-of-type(1) { --i: 1; }
.hero-title .word:nth-of-type(2) { --i: 2; }
.hero-title .word:nth-of-type(3) { --i: 3; }
.hero-title .word:nth-of-type(4) { --i: 4; }

.hero-title .accent { color: var(--accent); }
.hero-title .italic { font-style: italic; color: var(--accent); }
.hero-title .word { margin-right: 0.28em; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  opacity: 0;
  animation: fade-in 1.2s var(--ease-out) 1.6s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.hero-lede {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  max-width: 38ch;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 2.2s forwards;
}
.line-down {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, var(--text-mute) 0%, transparent 100%);
  position: relative; overflow: hidden;
}
.line-down::after {
  content: '';
  position: absolute; top: -20px; left: 0;
  width: 100%; height: 20px;
  background: var(--accent);
  animation: line-scroll 2.4s var(--ease) infinite;
}
@keyframes line-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(76px); }
}

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  padding: 30px 0;
  overflow: hidden;
  white-space: nowrap;
  /* fade the edges so items enter/leave gracefully */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row {
  display: inline-flex; align-items: center;
  gap: clamp(2.75rem, 5vw, 5rem);
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--text);
  padding-right: clamp(2.75rem, 5vw, 5rem);
}
.marquee-row > span:not(.sep) {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-row .sep {
  color: var(--accent);
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 0.55em;
  opacity: 0.9;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================
   Eyebrow + display heading
   ========================================================== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.eyebrow .ey-num {
  color: var(--accent);
  letter-spacing: 0;
}
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text);
}
.display .italic { font-style: italic; color: var(--accent); }
.display .accent { color: var(--accent); }

/* ==========================================================
   KPI counters
   ========================================================== */
.kpi {
  padding: var(--section-y) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.kpi-head {
  max-width: 900px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.kpi-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(245,197,24,0.012));
  transition: background .4s var(--ease);
}
.kpi-card:last-child { border-right: none; }
.kpi-card:hover { background: rgba(245,197,24,0.04); }
.kpi-num {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 14px;
  font-feature-settings: "tnum";
}
.kpi-label {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}
.kpi-foot {
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ==========================================================
   Pillars
   ========================================================== */
.pillars {
  padding: var(--section-y) 0;
  background: var(--bg);
}
.pillars-head {
  max-width: 900px;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.pillars-sub {
  margin-top: 28px;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1rem;
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}
.pillar.reverse .pillar-text { order: 2; }
.pillar.reverse .pillar-visual { order: 1; }
.pillar-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 24px;
}
.pillar-title {
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}
.pillar-body {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 28px;
}
.pillar-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.pillar-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}
.pillar-list li span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.pillar-visual {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
}
.pillar-visual.pillar-photo {
  padding: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.pillar-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.4s var(--ease);
}
.pillar-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 55%, rgba(10,10,11,0.85) 100%);
  pointer-events: none;
}
.pillar-photo:hover img { transform: scale(1.04); }
.pillar-photo .pillar-figure {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0 clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: #FAF7F0;
  z-index: 1;
}
.pillar-photo .pillar-figure span:first-child {
  color: var(--accent);
}
.pillar-visual .chart {
  width: 100%; flex: 1;
  margin-bottom: 12px;
}
.chart-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.is-in .chart-line { stroke-dashoffset: 0; }
.chart-area, .chart-points, .chart-tags {
  opacity: 0;
  transition: opacity 1s var(--ease) 0.6s;
}
.is-in .chart-area,
.is-in .chart-points,
.is-in .chart-tags { opacity: 1; }
.pillar-figure {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* margin stack */
.margin-stack {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.stack-row {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  gap: 18px;
  align-items: center;
  font-size: 0.85rem;
}
.stack-label { color: var(--text-dim); }
.stack-val {
  font-family: var(--f-mono);
  color: var(--text);
  text-align: right;
}
.stack-bar {
  height: 8px; background: var(--surface-2);
  border-radius: 999px; overflow: hidden;
}
.stack-bar i {
  display: block; height: 100%;
  width: 0;
  background: var(--c);
  border-radius: 999px;
  transition: width 1.6s var(--ease);
}
.is-in .stack-bar i { width: var(--w); }

/* LTV grid */
.ltv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.ltv-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 110px;
}
.ltv-num {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.ltv-cap {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ==========================================================
   Bento services
   ========================================================== */
.bento {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.bento-head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 80px); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.bento-grid-3 { grid-template-columns: repeat(4, 1fr); }
.bento-grid-3 .bento-card { min-height: 220px; }
.bento-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-3);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; min-height: 480px; }
.bento-card header { display: flex; align-items: baseline; gap: 12px; }
.b-num {
  font-family: var(--f-mono);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.bento-card h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.bento-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}
.b-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.b-tags li {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}
.b-illu { margin-top: auto; }
.b-illu svg { width: 100%; height: 120px; }

/* ==========================================================
   Local to global : globe
   ========================================================== */
.globe-section {
  padding: var(--section-y) 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(245,197,24,0.06), transparent 60%),
    #06060a;
  border-block: 1px solid var(--border);
  overflow: hidden;
}
.globe-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.globe-copy { max-width: 30rem; }
.globe-body {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
}
.globe-stats {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 44px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.globe-stats li { display: flex; flex-direction: column; gap: 6px; }
.gs-num {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.gs-cap {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 70vh;
  display: flex; align-items: center; justify-content: center;
}
.globe-svg { width: 100%; height: 100%; max-width: 560px; }
.g-grid { stroke: rgba(255,255,255,0.10); stroke-width: 1; fill: none; }
.g-arc {
  stroke: rgba(245,197,24,0.45);
  stroke-width: 1.4; fill: none; stroke-linecap: round;
}
.g-dest { fill: rgba(255,255,255,0.55); }
.g-origin { fill: var(--accent); }
.g-ping {
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  animation: g-ping 3.2s ease-out infinite;
}
@keyframes g-ping {
  0%   { r: 5;  opacity: 0.7; }
  100% { r: 40; opacity: 0; }
}

/* ==========================================================
   Process
   ========================================================== */
.process {
  padding: var(--section-y) 0;
  background: var(--bg);
}
.process-head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 80px); }
.process-steps {
  list-style: none;
  border-top: 1px solid var(--border);
}
.step {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--border);
  transition: background .4s var(--ease), padding-left .4s var(--ease);
}
.step:hover {
  background: linear-gradient(90deg, rgba(245,197,24,0.04), transparent 60%);
  padding-left: clamp(8px, 1vw, 16px);
}
.step-head {
  display: flex; flex-direction: column; gap: 8px;
}
.step-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.step-head h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.step-time {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.step p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 60ch;
  line-height: 1.6;
  align-self: center;
}

/* ==========================================================
   Testimonial
   ========================================================== */
.testimonial {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.testimonial .eyebrow { margin-bottom: 32px; }
.quote-card {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(245,197,24,0.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(217,164,65,0.06), transparent 50%);
  pointer-events: none;
}
.quote-mark {
  width: 56px; height: 56px;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 28px;
}
.quote-card blockquote p {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}
.quote-card .hl { color: var(--accent); font-style: italic; }
.quote-card figcaption {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  position: relative;
}
.quote-card .author { color: var(--text); letter-spacing: 0.04em; }
.quote-card .author-role { color: var(--text-mute); font-size: 0.78rem; letter-spacing: 0.08em; }

/* ==========================================================
   Studio
   ========================================================== */
.studio {
  padding: var(--section-y) 0;
  background: var(--bg);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.studio-single { max-width: 980px; }
.studio-grid-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.studio-photo {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  aspect-ratio: 5/6;
}
.studio-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.4s var(--ease);
}
.studio-photo:hover img { transform: scale(1.03); }
.studio-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,11,0.85) 100%);
  pointer-events: none;
}
.studio-photo figcaption {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #FAF7F0;
  z-index: 1;
}
@media (max-width: 1024px) {
  .studio-grid-photo { grid-template-columns: 1fr; }
  .studio-photo { aspect-ratio: 16/10; }
}
.studio-body {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 56ch;
}
.studio-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.studio-meta > div {
  padding: 20px 0;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.meta-k {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.meta-v { color: var(--text); font-size: 1rem; }

.studio-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  position: sticky; top: 100px;
}
.card-row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.card-row:first-child { padding-top: 0; }
.card-row span:first-child { color: var(--text-mute); }
.status { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.ping {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px rgba(74,222,128,0.7);
  animation: pulse 2s var(--ease) infinite;
}
.studio-card .btn { margin-top: 24px; }

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact-head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 80px); }
.contact-sub {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 56ch;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.form { display: flex; flex-direction: column; gap: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.field {
  position: relative;
  padding: 22px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.field-full { grid-column: 1 / -1; }
.field-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 1.1rem;
  color: var(--text);
  outline: none;
  border-radius: 0;
  resize: vertical;
  font-family: var(--f-sans);
}
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 100px; }
.field-line {
  position: absolute; bottom: 22px; left: 0;
  width: 0%; height: 1px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.field:focus-within .field-line { width: 100%; }
.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.form-fine { color: var(--text-mute); font-size: 0.85rem; }

.contact-side {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 28px;
  position: sticky; top: 100px;
}
.side-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.side-block:last-child { border-bottom: none; }
.side-k {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.side-v { color: var(--text); font-size: 1rem; line-height: 1.5; }
.side-v[href]:hover { color: var(--accent); }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: var(--bg);
  padding-top: clamp(100px, 13vw, 200px);
  position: relative;
  overflow: hidden;
}
/* lift footer text above the scene-3d canvas (z-index 8) so the finale nugget
   rises BEHIND the readable wordmark; the footer's own dark bg stays below it */
.footer .container { position: relative; z-index: 20; }

/* award-grade footer : a big closing CTA, the wordmark, then the columns */
.footer-cta {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: clamp(56px, 8vw, 110px);
  border-bottom: 1px solid var(--border);
}
.footer-cta .eyebrow { justify-content: center; }
.footer-cta-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.footer-cta-title .italic { font-style: italic; color: var(--accent); }
.footer-banner {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 56px);
}
.footer-mark {
  font-family: var(--f-sans);
  font-weight: 500;
  font-style: normal;
  text-align: center;
  font-size: clamp(2.4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--text);
}
.footer-mark span { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer-grid-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.foot-col p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }
.foot-col a { transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-k {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  margin-bottom: 16px;
}
.footer-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-top {
  color: var(--text-mute);
  transition: color .25s var(--ease);
}
.footer-top:hover { color: var(--accent); }

/* ==========================================================
   Reveal animation
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-clock { display: none; }
  .nav-inner { grid-template-columns: 1fr auto auto; }

  .hero-bottom { grid-template-columns: 1fr; gap: 40px; }
  .hero-cta { justify-content: flex-start; }

  .pillar, .pillar.reverse { grid-template-columns: 1fr; gap: 40px; }
  .pillar.reverse .pillar-text { order: 1; }
  .pillar.reverse .pillar-visual { order: 2; }
  .pillar-visual { aspect-ratio: 16/10; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card:nth-child(2) { border-right: none; }

  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.tall { grid-row: auto; min-height: 280px; }

  .step { grid-template-columns: 1fr; gap: 14px; }
  .step-head { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 16px; }
  .step-head h3 { font-size: 2.2rem; }

  .studio-grid { grid-template-columns: 1fr; }
  .studio-card { position: static; }

  .globe-grid { grid-template-columns: 1fr; gap: 8px; }
  .globe-copy { max-width: none; }
  .globe-stage { max-height: none; max-width: 520px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-pill { display: none; }

  .hero { padding-top: 120px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { border-right: none; }

  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bento-card.span-2 { grid-column: span 1; }
  .bento-card.tall { min-height: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-line { flex-direction: column; align-items: flex-start; }

  .form-foot { flex-direction: column; align-items: flex-start; }
  .form-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-title .word { transform: none; }
  .hero-bottom, .hero-scroll { opacity: 1; }
}
