/* ============================================================
   KOBA VENTURES — Design System
   Display: Space Grotesk / Body: Inter / Mono: IBM Plex Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* ---- Light (default) ---- */
  --bg: #FAFAF8;
  --bg-alt: #F1F0EB;
  --surface: #FFFFFF;
  --ink: #15151B;
  --ink-soft: #55555F;
  --ink-faint: #8B8A93;
  --line: rgba(21, 21, 27, 0.10);
  --line-strong: rgba(21, 21, 27, 0.18);
  --accent: #4B4A8F;
  --accent-ink: #FFFFFF;
  --gold: #B8863B;
  --shadow: 0 1px 2px rgba(21,21,27,0.04), 0 8px 24px rgba(21,21,27,0.06);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B0B0E;
  --bg-alt: #131318;
  --surface: #17171D;
  --ink: #F3F2EE;
  --ink-soft: #ABAAB3;
  --ink-faint: #6E6D77;
  --line: rgba(243, 242, 238, 0.10);
  --line-strong: rgba(243, 242, 238, 0.18);
  --accent: #8887D6;
  --accent-ink: #0B0B0E;
  --gold: #D8A85C;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0E;
    --bg-alt: #131318;
    --surface: #17171D;
    --ink: #F3F2EE;
    --ink-soft: #ABAAB3;
    --ink-faint: #6E6D77;
    --line: rgba(243, 242, 238, 0.10);
    --line-strong: rgba(243, 242, 238, 0.18);
    --accent: #8887D6;
    --accent-ink: #0B0B0E;
    --gold: #D8A85C;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.35);
    color-scheme: dark;
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
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 {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo .dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: none; background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 20px;
    gap: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links a { font-size: 20px; }
  body.nav-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 70px;
  position: relative;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  max-width: 15ch;
}
.hero .lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Skyline divider (signature element) ---- */
.skyline {
  width: 100%;
  display: block;
  color: var(--line-strong);
  margin: 0;
}
.skyline-section {
  overflow: hidden;
  line-height: 0;
}

/* ---- Sections ---- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}
.section-head .lede {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.bg-alt { background: var(--bg-alt); }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }

.venture-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
.venture-grid-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .venture-grid { grid-template-columns: 1fr; }
}
.venture-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  text-decoration: none;
}
.venture-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
[data-theme="dark"] .venture-card.featured { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.venture-card.featured .venture-tag { color: var(--gold); }
.venture-card.featured .venture-desc { color: color-mix(in srgb, var(--bg) 75%, transparent); }
[data-theme="dark"] .venture-card.featured .venture-desc { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.venture-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.venture-card h3 {
  font-size: 24px;
  margin-top: 14px;
}
.venture-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.venture-arrow {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Metric strip ---- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--surface);
  padding: 32px 28px;
}
.metric .num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: var(--accent);
}
.metric .label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .metric-strip { grid-template-columns: 1fr; }
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.badge-live { color: var(--accent); border-color: var(--accent); }
.badge-soon { color: var(--gold); border-color: var(--gold); }

/* ---- Process steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}
.step h4 {
  font-size: 17px;
  margin-top: 10px;
}
.step p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---- Case study blocks ---- */
.case-study {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  background: var(--surface);
}
.case-study + .case-study { margin-top: 24px; }
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.case-head h3 { font-size: 24px; margin-top: 10px; max-width: 40ch; }
.case-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); text-align: right; }

.case-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.case-icon svg { width: 26px; height: 26px; }
.case-head-title { display: flex; gap: 16px; align-items: flex-start; }
.case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.case-results .num { font-family: var(--font-mono); font-size: 24px; color: var(--accent); }
.case-results .label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.case-study p.body-text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-width: 68ch; }

@media (max-width: 640px) {
  .case-study { padding: 28px 22px; }
}

/* ---- Timeline (About page) ---- */
.timeline-item {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-date { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); padding-top: 4px; }
.timeline-body h3 { font-size: 19px; }
.timeline-body .role { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.timeline-body ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.timeline-body li + li { margin-top: 8px; }
@media (max-width: 700px) {
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

.earlier-career {
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.earlier-career .eyebrow { margin-bottom: 10px; }
.earlier-career .role-line { font-size: 14.5px; color: var(--ink-soft); padding: 6px 0; }
.earlier-career .role-line b { color: var(--ink); font-weight: 600; }

/* ---- Athlete cards ---- */
.athlete-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .athlete-grid { grid-template-columns: 1fr; } }
.athlete-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.athlete-media {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.athlete-body { padding: 26px; }
.athlete-body h3 { font-size: 20px; }
.athlete-body .sport { font-size: 13.5px; color: var(--gold); font-family: var(--font-mono); margin-top: 6px; }
.athlete-body p { margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-meta { font-size: 13px; color: var(--ink-faint); margin-top: 28px; font-family: var(--font-mono); }

/* ---- About hero with photo ---- */
.hero-photo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .hero-photo-grid { grid-template-columns: 1fr; }
}
.headshot-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
  color: var(--ink-faint);
}
.headshot-placeholder svg { width: 34px; height: 34px; opacity: 0.6; }
.headshot-placeholder p { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; max-width: 22ch; }

/* ---- Contact grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Form ---- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Honeypot — off-screen, not display:none, so basic bots still "see" and fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
