/* ============================================================
   THEME TOKENS
   ============================================================ */

/* Default = LIGHT (Stripe-inspired white + navy + purple) */
:root {
  --primary: #533afd;          /* Stripe purple — saturated blue-violet */
  --primary-hover: #4434d4;
  --primary-focus: #533afd;
  --brand-secure: #7a7fad;

  --ink: #061b31;              /* Stripe deep navy heading */
  --ink-muted: #273951;        /* Stripe label */
  --ink-subtle: #64748d;        /* Stripe body */
  --ink-tertiary: #8a96a8;

  --canvas: #ffffff;           /* pure white */
  --surface-1: #f6f8fb;        /* very faint cool gray */
  --surface-2: #eef2f7;
  --surface-3: #e5edf5;
  --surface-4: #d6e0ed;

  --hairline: #e5edf5;         /* Stripe border default */
  --hairline-strong: #cbd5e1;
  --hairline-tertiary: #b4c0d2;

  --success: #15be53;          /* Stripe success green */

  /* Stripe-style multi-layer shadows (light only) */
  --shadow-card:
    rgba(50, 50, 93, 0.12) 0px 30px 45px -30px,
    rgba(0, 0, 0, 0.08) 0px 18px 36px -18px;
  --shadow-card-hover:
    rgba(50, 50, 93, 0.20) 0px 40px 60px -30px,
    rgba(0, 0, 0, 0.10) 0px 24px 48px -18px;
  --shadow-1: rgba(50, 50, 93, 0.08) 0px 6px 16px -6px;
  --shadow-2: rgba(50, 50, 93, 0.14) 0px 24px 48px -16px;

  /* Hero ambient gradient (cool purple whisper) */
  --ambient-1: rgba(83, 58, 253, 0.05);
  --ambient-2: rgba(83, 58, 253, 0.03);

  /* Top nav backdrop */
  --nav-bg-resting: rgba(255, 255, 255, 0.65);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.88);
  --nav-border: var(--hairline);

  /* Hero gradient text — navy → purple */
  --accent-grad-from: #061b31;
  --accent-grad-to: #533afd;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;        /* reduced from 12px */
  --r-xl: 12px;
  --r-xxl: 20px;
  --r-pill: 9999px;

  --font-display: "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Tiempos Headline", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* DARK = original Linear system, opt-in via data-theme */
:root[data-theme="dark"] {
  --primary: #5e6ad2;
  --primary-hover: #828fff;
  --primary-focus: #5e69d1;
  --brand-secure: #7a7fad;

  --ink: #f7f8f8;
  --ink-muted: #d0d6e0;
  --ink-subtle: #8a8f98;
  --ink-tertiary: #62666d;

  --canvas: #010102;
  --surface-1: #0f1011;
  --surface-2: #141516;
  --surface-3: #18191a;
  --surface-4: #191a1b;

  --hairline: #23252a;
  --hairline-strong: #34343a;
  --hairline-tertiary: #3e3e44;

  --success: #27a644;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 4px 12px rgba(0,0,0,0.5), 0 24px 48px -16px rgba(0,0,0,0.6);
  /* Stripe shadows DISABLED in dark — they don't read on near-black */
  --shadow-card: var(--shadow-1);
  --shadow-card-hover: var(--shadow-2);

  --ambient-1: rgba(94, 106, 210, 0.08);
  --ambient-2: rgba(94, 106, 210, 0.05);

  --nav-bg-resting: rgba(1, 1, 2, 0.55);
  --nav-bg-scrolled: rgba(1, 1, 2, 0.78);
  --nav-border: var(--hairline);

  --accent-grad-from: #f7f8f8;
  --accent-grad-to: #828fff;
}

/* ============================================================
   GLOBAL
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  transition: background-color 320ms ease, color 320ms ease;
}

/* Ambient radial + PostHog-style purple dot-grid (light only) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 0%, var(--ambient-1), transparent 40%),
    radial-gradient(circle at 80% 90%, var(--ambient-2), transparent 40%),
    radial-gradient(rgba(83, 58, 253, 0.10) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
  background-position: 0 0, 0 0, 0 0;
}

/* Dark mode: drop the dot grid, keep only the lavender radials */
:root[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle at 20% 0%, var(--ambient-1), transparent 40%),
    radial-gradient(circle at 80% 90%, var(--ambient-2), transparent 40%);
  background-size: auto, auto;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--primary);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Glow dot ONLY on the hero eyebrow */
.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

/* Serif on display sizes only (per spec) */
.display-xl {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7.4vw, 92px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.display-lg {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.subhead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  margin: 0;
}
.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.body { font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-subtle); }
.mono { font-family: var(--font-mono); font-size: 13px; }

.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-muted); }
.text-subtle { color: var(--ink-subtle); }
.text-tertiary { color: var(--ink-tertiary); }
.text-accent { color: var(--primary); }

/* Tabular numerals on numeric content */
.tnum { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 2px rgba(0,0,0,0.2),
    0 8px 20px -8px rgba(204,120,92,0.45);
}
:root[data-theme="dark"] .btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 2px rgba(0,0,0,0.3),
    0 8px 24px -8px rgba(94,106,210,0.5);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 1px 2px rgba(0,0,0,0.25),
    0 12px 28px -8px rgba(204,120,92,0.55);
}
:root[data-theme="dark"] .btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 1px 2px rgba(0,0,0,0.3),
    0 12px 32px -8px rgba(94,106,210,0.7);
}
.btn-secondary {
  background: var(--surface-1);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}

/* Inverse CTA (used on coral band) */
.btn-inverse {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 8px 20px -8px rgba(0,0,0,0.2);
}
.btn-inverse:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 12px 28px -8px rgba(0,0,0,0.25);
}

/* ============================================================
   TOP NAV
   ============================================================ */

.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--nav-bg-resting);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 240ms ease;
}
.top-nav.is-scrolled { background: var(--nav-bg-scrolled); }
.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-subtle);
}
.nav-links a {
  transition: color 180ms;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Theme toggle */
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-subtle);
  transition: all 180ms ease;
}
:root[data-theme="dark"] .theme-toggle {
  border-color: var(--hairline);
  background: var(--surface-1);
}
.theme-toggle:hover {
  color: var(--ink);
  background: var(--surface-1);
  border-color: var(--hairline);
}

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

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 160px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-eyebrow-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-muted);
}
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--success);
  box-shadow: 0 0 8px rgba(93,184,114,0.6);
}
:root[data-theme="dark"] .status-pill .dot {
  box-shadow: 0 0 8px rgba(39,166,68,0.6);
}
.hero h1 .accent-word {
  background: linear-gradient(135deg, var(--accent-grad-from) 0%, var(--accent-grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero p.lead {
  margin-top: 28px;
  max-width: 560px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero photo card */
.photo-card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.photo-card .photo-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface-2);
}
.photo-card .photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04) saturate(0.95);
}
.photo-card .photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,27,49,0.55) 100%);
  pointer-events: none;
}
:root[data-theme="dark"] .photo-card .photo-frame::after {
  background: linear-gradient(180deg, transparent 55%, rgba(1,1,2,0.6) 100%);
}
.photo-card .photo-meta {
  position: absolute;
  left: 28px; bottom: 28px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.photo-card .photo-meta .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.photo-card .photo-meta .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Background grid lines for hero (subtler in light) */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(83, 58, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 58, 253, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   KEY RESULTS BAND (Claude warm-dark, both themes)
   ============================================================ */

.key-results {
  background: #181715;
  padding: 96px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.key-results .container {
  max-width: 1200px;
  padding: 0 32px;
}
.key-results-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: #a09d96;
  text-transform: uppercase;
  margin-bottom: 40px;
  display: inline-block;
}
.key-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .key-results-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 560px) {
  .key-results-grid { grid-template-columns: 1fr; gap: 32px; }
}
.key-result {
  display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 24px;
}
.key-result-num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #faf9f5;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.key-result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #a09d96;
  line-height: 1.4;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */

.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: padding-left 240ms cubic-bezier(0.2,0.8,0.2,1);
}
.exp-item:hover { padding-left: 16px; }
.exp-item:hover .exp-arrow { opacity: 1; transform: translateX(0); }
.exp-item:last-child { border-bottom: 1px solid var(--hairline); }
.exp-meta { display: flex; flex-direction: column; gap: 8px; }
.exp-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-subtle);
  letter-spacing: 0.3px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.exp-location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.exp-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.exp-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}
.exp-body .company {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 16px;
}
.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-bullets li {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}
.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--hairline-strong);
}
.exp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-subtle);
  transition: color 180ms;
}
.exp-link:hover { color: var(--primary); }
.exp-arrow {
  position: absolute;
  left: 0;
  top: 38px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 240ms cubic-bezier(0.2,0.8,0.2,1);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 14px;
}
@media (max-width: 800px) {
  .exp-item { grid-template-columns: 1fr; gap: 12px; }
  .exp-item:hover { padding-left: 0; }
}

/* ============================================================
   SKILLS GRID
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
}
.skill-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 280ms cubic-bezier(0.2,0.8,0.2,1);
  box-shadow: var(--shadow-card);
}
.skill-card:hover {
  background: var(--surface-2);
  border-color: var(--hairline-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.skill-card .skill-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.skill-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.skill-tags .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  transition: all 180ms;
}
.skill-card:hover .skill-tags .tag {
  border-color: var(--hairline-strong);
}

/* ============================================================
   LANGUAGES STRIP
   ============================================================ */

.languages-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}
.lang-cell {
  padding: 24px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
}
.lang-cell:last-child { border-right: none; }
.lang-cell .lang-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lang-cell .lang-level {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lang-cell .lang-bar {
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.lang-cell .lang-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 2px;
}
:root[data-theme="dark"] .lang-cell .lang-bar-fill {
  background: linear-gradient(90deg, var(--primary), #828fff);
}
@media (max-width: 800px) {
  .languages-strip { grid-template-columns: repeat(2, 1fr); }
  .lang-cell:nth-child(2) { border-right: none; }
  .lang-cell:nth-child(1), .lang-cell:nth-child(2) { border-bottom: 1px solid var(--hairline); }
}

/* ============================================================
   EDUCATION
   ============================================================ */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .edu-grid { grid-template-columns: 1fr; }
}
.edu-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 280ms cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
  box-shadow: var(--shadow-card);
}
.edu-card:hover {
  background: var(--surface-2);
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.edu-card .edu-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.edu-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.edu-card .edu-school {
  font-size: 14px;
  color: var(--ink-muted);
}
.edu-card .edu-degree {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */

/* Light: full-bleed coral band */
.cta-banner {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.cta-banner .display-lg,
.cta-banner .subhead,
.cta-banner .eyebrow {
  color: #ffffff;
}
.cta-banner .subhead { color: rgba(255,255,255,0.85); }
.cta-banner .eyebrow { color: rgba(255,255,255,0.78); }

/* Dark: keep original lavender-tinted treatment */
:root[data-theme="dark"] .cta-banner {
  background:
    radial-gradient(circle at 30% 0%, rgba(94,106,210,0.18), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink);
}
:root[data-theme="dark"] .cta-banner::before {
  content: "";
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  width: auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94,106,210,0.6), transparent);
}
:root[data-theme="dark"] .cta-banner .display-lg,
:root[data-theme="dark"] .cta-banner .subhead {
  color: var(--ink);
}
:root[data-theme="dark"] .cta-banner .subhead { color: var(--ink-muted); }
:root[data-theme="dark"] .cta-banner .eyebrow { color: var(--primary); }

.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative; z-index: 1;
}
@media (max-width: 800px) {
  .cta-banner { padding: 40px 28px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-list {
  display: flex; flex-direction: column; gap: 4px;
}
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-size: 15px;
  transition: padding-left 180ms;
  color: #ffffff;
}
.contact-row:hover { padding-left: 8px; }
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-row .value { color: #ffffff; }
.contact-row .value:hover { opacity: 0.85; }

:root[data-theme="dark"] .contact-row {
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
:root[data-theme="dark"] .contact-row .label { color: var(--ink-subtle); }
:root[data-theme="dark"] .contact-row .value { color: var(--ink); }
:root[data-theme="dark"] .contact-row .value:hover { color: var(--primary); opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   ILLUSTRATION HELPERS
   ============================================================ */

.illus { display: block; }
.illus .stroke { stroke: var(--hairline-strong); stroke-width: 1; fill: none; }
.illus .stroke-strong { stroke: var(--ink-subtle); stroke-width: 1; fill: none; }
.illus .accent-stroke { stroke: var(--primary); stroke-width: 1.25; fill: none; }
.illus .accent-fill { fill: var(--primary); }
.illus .ink-fill { fill: var(--ink); }
.illus .surface-fill { fill: var(--surface-2); }
.illus .dot { fill: var(--primary); }
