:root {
  --bg: #0a0a0a;
  --panel: #0e0e0e;
  --surface: #161616;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f4;
  --muted: #a1a1a1;
  --faint: #6b6b6b;
  --accent: #6cc417;
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ol { margin: 0; }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
img { display: block; max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.dim { color: var(--faint); }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -1.2px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-word span { color: var(--accent); }
.site-header nav { margin-left: auto; font-size: 14px; }
.site-header nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--text); }

/* Buttons and links */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.pill:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 11px; }
.pill-solid { background: #e6e6e6; color: #111; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.pill-solid:hover { background: #fff; }
.pill-ghost { min-height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; border: 1px solid var(--line-strong); }
.pill-ghost:hover { background: var(--surface); }
.pill-ghost:focus-visible { border-radius: 10px; }

.chevron-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.chevron-link:hover { text-decoration: underline; }

.text-link {
  display: inline-flex;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.text-link:hover { text-decoration: underline; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
/* Hero */
.hero { padding: 140px 0 96px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 900px;
}
.wave-title .w { display: inline-block; --c: var(--text); color: var(--c); will-change: transform; }
.wave-title .w.dim { --c: var(--faint); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wave-title:hover .w {
    animation: word-wave 620ms cubic-bezier(.22, .8, .24, 1) both;
    animation-delay: calc(var(--i) * 55ms);
  }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .wave-title .w { transition: color .3s ease; }
  .wave-title:hover .w.dim { color: var(--text); }
}

@keyframes word-wave {
  0% { transform: translateY(0); color: var(--c); }
  40% { transform: translateY(-4px); color: var(--accent); }
  100% { transform: translateY(0); color: var(--c); }
}

.lede { margin-top: 26px; font-size: clamp(17px, 1.7vw, 20px); max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 38px; }
.under-cta { font-size: 14px; color: var(--faint); }
.under-cta a { color: var(--text); }

/* Shared panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.fine { font-size: 13px; line-height: 1.6; color: var(--faint); }

/* Case study index with sticky preview */
.wins { padding: 24px 0 32px; }
.wins-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 34px) clamp(24px, 4vw, 40px) clamp(24px, 4vw, 24px);
}
.wins-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 0 0;
}
.wins-aside .text-link { margin-top: 22px; }

.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.preview-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 52px;
  opacity: 0;
  transition: opacity .45s ease;
}
.preview-slide.is-active { opacity: 1; }
.preview-bg {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  filter: blur(36px) saturate(1.1) brightness(.55);
}
.preview-avatar {
  position: relative;
  width: 38%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: scale(.94);
  transition: transform .6s ease;
}
.preview-slide.is-active .preview-avatar { transform: scale(1); }

.founder-name { display: flex; flex-direction: column; line-height: 1.35; }
.founder-name strong { font-size: 14px; font-weight: 600; color: var(--text); }
.founder-name span { font-size: 12px; color: var(--muted); }
.preview-slide .founder-name { position: relative; z-index: 2; align-items: center; text-align: center; }
.preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 45%);
  pointer-events: none;
}
.preview-count {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--line);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.preview-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.45;
}
.preview-caption strong { font-weight: 600; }
.preview-caption span { color: rgba(255, 255, 255, .78); font-size: 12px; }

.case-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.case {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 0 0;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.case-num { padding-top: 10px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; transition: color .2s; }
.case h3 {
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--muted);
  transition: color .25s;
}
.case-title { display: flex; align-items: center; gap: 12px; }

.logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.is-missing::before {
  content: attr(data-fallback);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.case-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.case-body > p:last-child { margin-top: 14px; font-size: 15px; max-width: 460px; }
.case-founder { display: none; }
.case.is-active h3, .case.is-active .case-num { color: var(--text); }

.case-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 4px;
  margin-left: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.case-arrow:hover, .case.is-active .case-arrow { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Partnership */
.brief { padding: 32px 0; }
.brief-panel { padding: clamp(28px, 5vw, 56px); }
.brief-copy { max-width: 680px; }
.brief-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 17px; }

.split { margin-top: 52px; }
.split-bar { display: flex; gap: 4px; height: 10px; }
.split-you { flex: 9; background: var(--text); border-radius: 999px; }
.split-gekko { flex: 1; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.split-labels { display: flex; justify-content: space-between; gap: 24px; margin-top: 22px; }
.split-item { display: flex; flex-direction: column; gap: 4px; }
.split-item strong {
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.split-item span { font-size: 14px; color: var(--muted); }
.split-item-muted { text-align: right; }
.split-item-muted strong { color: var(--faint); }
.brief-panel > .fine { margin-top: 36px; max-width: 720px; }

/* Next step */
.next-step { padding: 32px 0 96px; }
.next-panel { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; }
.next-panel > p:not(.under-cta) { margin: 20px auto 32px; max-width: 520px; font-size: 17px; }
.next-panel .under-cta { margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px 0; font-size: 14px; }
.footer-inner .brand { font-size: 20px; }
.footer-inner .brand-mark { width: 22px; height: 22px; }
.footer-inner p { color: var(--faint); }
.footer-inner a:last-child { margin-left: auto; color: var(--muted); }

@media (max-width: 860px) {
  .wins-panel { grid-template-columns: 1fr; gap: 28px; }
  .wins-aside { position: static; padding-top: 0; }
  .preview { display: none; }
  .case-founder { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
  .case-founder img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; object-position: center 30%; border: 1px solid var(--line); }
  .case h3 { color: var(--text); }
}

@media (max-width: 600px) {
  .hero { padding: 88px 0 56px; }
  .site-header nav { display: none; }
  .site-header .pill-ghost { margin-left: auto; }
  .case { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .split-labels { flex-direction: column; }
  .split-item-muted { text-align: left; }
  .footer-inner a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
