/* ============================================================
   Raintree Ads — Futuristic Ocean
   System notes:
   - Type: "Instrument Serif" (display) + "Inter" (UI/body) + "JetBrains Mono" (data)
   - Palette: abyssal navy base, bioluminescent cyan accent, pearl text
   - Motion: subtle. Caustic light, animated gradient, hairline reveals
   ============================================================ */

:root {
  /* Abyss palette */
  --abyss-0: #03080f;          /* deepest */
  --abyss-1: #060d18;
  --abyss-2: #0a1626;
  --abyss-3: #0f2236;
  --abyss-4: #15314e;
  --abyss-5: #1d4670;

  /* Foreground */
  --pearl:    #eaf3fb;
  --pearl-2:  #c8d8e8;
  --pearl-3:  #8fa6bd;
  --pearl-4:  #5a7088;
  --pearl-5:  #344c63;

  /* Bioluminescent accents */
  --bio:      var(--bio-tweak, oklch(86% 0.16 196));   /* cyan-teal */
  --bio-2:    oklch(78% 0.15 210);
  --bio-soft: oklch(86% 0.16 196 / 0.18);
  --kelp:     oklch(72% 0.12 175);   /* secondary teal */
  --coral:    oklch(78% 0.14 30);    /* rare warm pop */

  /* Hairlines */
  --line:    rgba(180, 210, 240, 0.10);
  --line-2:  rgba(180, 210, 240, 0.18);
  --line-3:  rgba(180, 210, 240, 0.28);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--abyss-0);
  color: var(--pearl);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--bio); color: var(--abyss-0); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

img, svg { display: block; max-width: 100%; }

/* ---------- Type system ---------- */
.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bio);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bio);
  box-shadow: 0 0 12px var(--bio);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.h-display {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

p { margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 760px;
  margin-bottom: 64px;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  padding-bottom: 0.22em;
  overflow: visible;
}
.section-title em { display: inline-block; }

.section-title em {
  font-style: italic;
  color: var(--bio);
}

.section-sub {
  color: var(--pearl-3);
  font-size: 17px;
  max-width: 640px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--bio);
  color: var(--abyss-0);
  box-shadow: 0 0 0 0 var(--bio-soft), 0 8px 30px -8px var(--bio);
}
.btn-primary:hover {
  background: oklch(92% 0.14 196);
  box-shadow: 0 0 0 6px var(--bio-soft), 0 8px 40px -4px var(--bio);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--pearl);
  border-color: var(--line-3);
}
.btn-ghost:hover {
  border-color: var(--bio);
  color: var(--bio);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Caustic / wave background utilities ---------- */
.caustic-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.caustic-bg::before,
.caustic-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.caustic-bg::before {
  width: min(60vw, 720px);
  height: min(60vw, 720px);
  left: max(-440px, -42vw);
  top: max(-360px, -34vw);
  background: radial-gradient(circle, oklch(70% 0.14 210) 0%, transparent 60%);
  animation: drift1 22s ease-in-out infinite;
}
.caustic-bg::after {
  width: min(50vw, 600px);
  height: min(50vw, 600px);
  right: max(-380px, -36vw);
  bottom: max(-320px, -30vw);
  background: radial-gradient(circle, oklch(75% 0.14 175) 0%, transparent 60%);
  animation: drift2 28s ease-in-out infinite;
}
@media (max-width: 900px) {
  .caustic-bg::before,
  .caustic-bg::after {
    opacity: 0;
  }
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.04); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -20px) scale(1.04); }
}

/* Vertical grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
  z-index: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 22px;
  background: rgba(6, 13, 24, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
}
.footer-brand .nav-logo img { height: 32px; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--pearl-2);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--pearl); background: var(--line); }
.nav-cta {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  background: var(--pearl);
  color: var(--abyss-0);
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--bio); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 80px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 100%, var(--abyss-3) 0%, var(--abyss-1) 40%, var(--abyss-0) 80%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 30%, var(--abyss-0) 80%),
    linear-gradient(180deg, var(--abyss-0) 0%, transparent 20%, transparent 80%, var(--abyss-0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--bio);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bio);
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--pearl-2);
  max-width: 560px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pearl-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-coords {
  display: flex;
  gap: 18px;
}
.hero-depth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-depth .bar {
  width: 80px; height: 2px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero-depth .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--bio), transparent);
  animation: scan 3s linear infinite;
}
@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Hero side panel */
.hero-side {
  position: absolute;
  right: var(--gutter);
  top: 200px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
}
@media (max-width: 1100px) { .hero-side { display: none; } }

/* Compass card — replaces live stats; conceptual, not numerical */
.compass-card {
  background: rgba(10, 22, 38, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.compass-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compass-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pearl-3);
}
.compass-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--pearl-4);
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.compass-viz {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
}
.compass-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.compass-sweep {
  transform-origin: 100px 100px;
  animation: compass-rotate 8s linear infinite;
}
@keyframes compass-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.compass-foot {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.compass-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.compass-row .k { color: var(--pearl-4); }
.compass-row .v { color: var(--pearl); }
.compass-row .v.active { color: var(--bio); }

/* Signal card — capacity / partnership cue */
.signal-card {
  background: rgba(10, 22, 38, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signal-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signal-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bio);
  box-shadow: 0 0 10px var(--bio);
  animation: pulse 2.4s ease-in-out infinite;
}
.signal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pearl);
}
.signal-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--pearl-3);
}

/* ---------- LOGO STRIP ---------- */
.logos {
  padding-block: 56px;
  border-block: 1px solid var(--line);
  background: var(--abyss-1);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  margin-bottom: 36px;
}
.logos .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pearl-4);
}

.logos-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.logos-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: logos-scroll 90s linear infinite;
  align-items: center;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }

.logo-cell {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.logo-cell:hover { opacity: 1; }
.logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logos-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}
.logos-fade-l { left: 0; background: linear-gradient(90deg, var(--abyss-1), transparent); }
.logos-fade-r { right: 0; background: linear-gradient(270deg, var(--abyss-1), transparent); }

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

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--abyss-1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.4s;
  min-height: 280px;
}
.service-card:hover { background: var(--abyss-2); }
.service-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--bio);
  letter-spacing: 0.16em;
}
.service-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--pearl-3); font-size: 15px; line-height: 1.55; }
.service-card .icon {
  width: 56px; height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--abyss-2), var(--abyss-1));
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.service-card .icon::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--bio-soft), transparent 60%);
}
.service-card .icon svg { position: relative; z-index: 1; color: var(--bio); }

.service-card .niches {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}
.niche-tag {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--pearl-3);
  letter-spacing: 0.04em;
}

/* ---------- STATS ---------- */
.stats {
  background: linear-gradient(180deg, var(--abyss-0), var(--abyss-1) 50%, var(--abyss-0));
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--abyss-0);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat .num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--pearl);
}
.stat .num em { font-style: italic; color: var(--bio); }
.stat .label {
  font-size: 13px;
  color: var(--pearl-3);
  line-height: 1.45;
}
.stat .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--pearl-4);
  text-transform: uppercase;
}

/* ---------- CASE STUDIES ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cases-grid { grid-template-columns: 1fr; } }

.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--abyss-1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.case:hover {
  border-color: var(--line-3);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6),
              0 0 0 1px var(--bio-soft);
}

.case-media {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: var(--abyss-2);
}
.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.case:hover .case-media img { transform: scale(1.04); }
.case-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 8, 15, 0.4) 100%);
  pointer-events: none;
}

.case-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.case-niche {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bio);
}
.case h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.case-result {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.case-result .metric {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--bio);
  line-height: 1;
}
.case-result .metric-label {
  font-size: 11px;
  color: var(--pearl-4);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.case-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 10px;
  flex-wrap: wrap;
}
.case-name {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--pearl);
}
.case-platforms {
  display: flex;
  gap: 6px;
}
.platform-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--pearl-3);
}

/* ---------- PROCESS ---------- */
.process {
  background: var(--abyss-1);
  border-block: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; gap: 40px; } }

.process-steps {
  display: flex;
  flex-direction: column;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:first-child { border-top: 0; }
.step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pearl-4);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.step h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p { color: var(--pearl-3); font-size: 15px; }

.process-visual {
  position: sticky;
  top: 120px;
  align-self: start;
  aspect-ratio: 1;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--abyss-0);
  position: relative;
  overflow: hidden;
}

/* ---------- FOUNDER (v2 — compact editorial) ---------- */
.founder-section .founder-card-v2 {
  display: flex !important;
  gap: 64px;
  align-items: flex-start;
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 880px) {
  .founder-section .founder-card-v2 { flex-direction: column; gap: 32px; }
}

.founder-section .founder-portrait {
  position: relative !important;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--abyss-2);
  border: 1px solid var(--line-2);
  max-width: 100%;
}
.founder-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.05) saturate(0.92);
}
.founder-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(3, 8, 15, 0.55) 100%),
    radial-gradient(ellipse at 100% 0%, var(--bio-soft) 0%, transparent 50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}
.founder-portrait-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
  z-index: 2;
}
.founder-portrait-frame::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--bio);
  border-left: 1px solid var(--bio);
}
.founder-portrait-frame::after {
  content: "";
  position: absolute;
  bottom: 12px; right: 12px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--bio);
  border-right: 1px solid var(--bio);
}

.founder-body-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}
.founder-name-v2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.founder-bio-v2 {
  color: var(--pearl-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.founder-stats-v2 {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  margin-top: 8px;
}
@media (max-width: 540px) {
  .founder-stats-v2 { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.fs-item { display: flex; flex-direction: column; gap: 4px; }
.fs-num {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pearl);
}
.fs-num em { font-style: italic; color: var(--bio); }
.fs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pearl-4);
}

.founder-quote-v2 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.4;
  color: var(--pearl-2);
  padding-left: 18px;
  border-left: 2px solid var(--bio);
  max-width: 56ch;
  margin-top: 4px;
}

/* Stacked layout variant */
.founder-stacked .founder-card-v2 {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.founder-stacked .founder-bio-v2,
.founder-stacked .founder-quote-v2 { margin-inline: auto; }
.founder-stacked .founder-quote-v2 {
  border-left: none;
  border-top: 1px solid var(--bio);
  padding-left: 0;
  padding-top: 16px;
  text-align: center;
}
.founder-stacked .founder-stats-v2 { justify-content: center; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: linear-gradient(180deg, var(--abyss-0), var(--abyss-1));
}
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .tm-grid { grid-template-columns: 1fr; } }

.tm-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--abyss-1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s;
}
.tm-card:hover { border-color: var(--line-3); }
.tm-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--pearl);
}
.tm-author {
  display: flex; gap: 12px; align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tm-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--abyss-4), var(--abyss-2));
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: 'Instrument Serif', serif;
  color: var(--bio);
  font-size: 16px;
}
.tm-name { font-size: 14px; font-weight: 500; }
.tm-co { font-size: 12px; color: var(--pearl-4); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 30% 0%, oklch(35% 0.08 200) 0%, transparent 60%),
    linear-gradient(180deg, var(--abyss-2), var(--abyss-1));
  overflow: hidden;
  text-align: center;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 100%, var(--bio-soft) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 18ch;
  margin: 0 auto 24px;
  position: relative;
}
.cta-card h2 em { font-style: italic; color: var(--bio); }
.cta-card p {
  font-size: 18px;
  color: var(--pearl-2);
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 64px 32px;
  background: var(--abyss-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .tag {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  max-width: 320px;
  letter-spacing: -0.01em;
  color: var(--pearl-2);
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pearl-4);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--pearl-2);
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bio); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pearl-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Wordmark in hero / marks ---------- */
.wordmark-huge {
  position: absolute;
  bottom: -5vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Instrument Serif', serif;
  font-size: 24vw;
  font-style: italic;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(180, 210, 240, 0.06);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  line-height: 0.8;
}
