:root {
  --bg: oklch(97% 0.008 75);
  --bg-warm: oklch(94% 0.012 70);
  --bg-deep: oklch(22% 0.015 55);
  --ink: oklch(20% 0.012 60);
  --ink-soft: oklch(38% 0.012 60);
  --ink-mute: oklch(55% 0.012 60);
  --rule: oklch(85% 0.012 65);
  --rule-soft: oklch(90% 0.010 65);
  --accent: oklch(56% 0.115 40);
  --accent-deep: oklch(42% 0.10 38);
  --sage: oklch(52% 0.045 145);
  --paper: oklch(99% 0.005 80);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
section[id], header[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-feature-settings: "liga", "dlig", "ss01";
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.rule {
  height: 1px;
  background: var(--rule);
  margin: 0;
  border: 0;
}

/* ---------- Top Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark .monogram {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.nav-mark .name {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-mark .role {
  font-size: 11px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}
.hero-left .kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-left .kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 25%, transparent);
  animation: dot-pulse 1.8s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 25%, transparent);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 9px color-mix(in oklab, var(--sage) 8%, transparent);
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-left .kicker .dot { animation: none; }
}
.hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 40px;
  font-family: 'Newsreader', serif;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.hero-stats .stat {
  /* border-right: 1px solid var(--rule); */
  /* padding-right: 1px; */
}
.stat-num {
  font-family: 'Newsreader', serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.stat-num em { color: var(--accent); font-style: normal; }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}

/* Portrait card */
.portrait-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 30px 60px -30px rgba(0,0,0,.18);
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      color-mix(in oklab, var(--ink) 5%, transparent) 14px 15px
    ),
    linear-gradient(180deg, oklch(88% 0.025 60), oklch(78% 0.04 50));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portrait-placeholder .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(28% 0.04 50);
  background: var(--paper);
  padding: 6px 10px;
  border-radius: 2px;
  align-self: flex-start;
}
.portrait-meta {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(28% 0.04 50);
}
.portrait-caption {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}

/* Hero ticker */
.hero-ticker {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  font-weight: 300;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  gap: 56px;
  animation: ticker 60s linear infinite;
  padding-left: 56px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 56px; }
.ticker-track .sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section frame ---------- */
.section {
  padding: 112px 0;
  border-top: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: baseline;
}
.section-head .num {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
}
.section-head .num::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-right: 12px;
}
.section-head h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-head h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.section-head .lede {
  margin-top: 18px;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: 200px 1fr 0.7fr;
  gap: 48px;
}
.story .pull {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.story .pull em { font-style: italic; color: var(--accent); }
.story-body p {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.story-body p:first-child::first-letter {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 0.9;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--accent);
  font-style: italic;
}
.story-aside {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}
.story-aside .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.story-aside ul {
  list-style: none;
  padding: 0; margin: 0 0 28px;
}
.story-aside li {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.story-aside li span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: 40px 32px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.pillar .big {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--ink);
}
.pillar .big em { font-style: italic; color: var(--accent); }
.pillar h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.pillar p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Experience ---------- */
.exp-list {
  border-top: 1px solid var(--rule);
}
.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
  align-items: start;
  cursor: pointer;
  transition: background .25s ease, padding .25s ease;
  position: relative;
}
.exp-row:hover { padding-left: 12px; padding-right: 12px; background: color-mix(in oklab, var(--bg-warm) 60%, transparent); }
.exp-meta .years {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.exp-meta .duration {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
}
.exp-meta .mode {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.exp-row h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 6px;
  text-wrap: balance;
}
.exp-row .company {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.exp-row .summary {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 18px;
}
.exp-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.metric-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
}
.metric-chip strong { color: var(--accent); font-weight: 500; }
.exp-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}
.exp-head > div:first-child { flex: 1; min-width: 0; }
.exp-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  border: 0 !important;
  background: 0 !important;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  transition: color .25s ease;
}
.exp-corner svg { display: block; }
.exp-corner-v {
  transform-origin: 11px 11px;
  transition: transform .25s ease;
}
.exp-row:hover .exp-corner { background: transparent; color: var(--ink); border: 0; }
.exp-row.open .exp-corner { background: transparent; color: var(--accent); border: 0; }
.exp-row.open .exp-corner-v { transform: scaleY(0); }
.exp-expand {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .2s ease;
}
.exp-expand-line {
  flex: 1;
  height: 1px;
  background: var(--rule);
  transition: background .2s ease;
}
.exp-expand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  font-family: 'Newsreader', serif;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.exp-row:hover .exp-expand { color: var(--ink); }
.exp-row:hover .exp-expand-line { background: var(--ink); }
.exp-row:hover .exp-expand-mark { background: transparent; color: var(--ink); border: 0; }
.exp-row.open .exp-expand { color: var(--accent); }
.exp-row.open .exp-expand-line { background: var(--accent); }
.exp-row.open .exp-expand-mark { background: transparent; color: var(--accent); border: 0; }
.exp-detail {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.exp-detail li {
  list-style: none;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
  text-wrap: pretty;
}
.exp-detail li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--accent);
}

/* ---------- Quote ---------- */
.quote-section {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 120px 0;
  border: 0;
}
.quote-section .container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.quote-section .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(70% 0.04 60);
}
.quote-section blockquote {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--bg);
  text-wrap: balance;
}
.quote-section blockquote .mark {
  font-style: italic;
  color: var(--accent);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.1em;
  margin-right: 4px;
}
.quote-section cite {
  display: block;
  margin-top: 36px;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(70% 0.04 60);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
}
.skills-col h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.skills-col h3 .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.skill-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 56px;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.skill-row .name {
  font-family: 'Newsreader', serif;
  font-size: 17px;
}
.skill-bar {
  position: relative;
  height: 2px;
  background: var(--rule);
  overflow: visible;
}
.skill-bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}
.skill-bar .marker {
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: left 1.4s cubic-bezier(.2,.7,.2,1);
}
.skill-row .pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: right;
  letter-spacing: 0.04em;
}

.lang-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.lang-row .name {
  font-family: 'Newsreader', serif;
  font-size: 22px;
}
.lang-row .level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wpm-card {
  margin-top: 32px;
  border: 1px solid var(--rule);
  padding: 28px;
  border-radius: 4px;
  background: var(--paper);
}
.wpm-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.wpm-card .big {
  font-family: 'Newsreader', serif;
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.wpm-card .big em { color: var(--accent); font-style: normal; font-size: 32px; font-family: 'Newsreader', serif; font-style: italic; margin-left: 8px; }
.wpm-card p {
  margin: 14px 0 0;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.wpm-track {
  margin-top: 20px;
  height: 4px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.wpm-track .typed {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  width: 100%;
  transform-origin: left;
  animation: wpm 4.5s ease-in-out infinite;
}
@keyframes wpm {
  0%, 5% { transform: scaleX(0); }
  60%, 70% { transform: scaleX(1); }
  85%, 100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- Setup ---------- */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.setup-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 24px 24px;
  background: var(--paper);
  transition: background .25s ease;
}
.setup-cell:hover { background: var(--bg-warm); }
.setup-cell .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.setup-cell .value {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.setup-cell .icon {
  width: 22px; height: 22px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* ---------- Books ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.book {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 28px -16px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
  color: var(--paper);
  transition: transform .3s ease, box-shadow .3s ease;
}
.book:hover .book-cover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 22px 36px -18px rgba(0,0,0,.3); }
.book-cover::before {
  content: '';
  position: absolute; left: 6%; top: 4%; bottom: 4%;
  width: 1px; background: rgba(255,255,255,0.18);
}
.book-cover .bk-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.book-cover .bk-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.book-cover-img { padding: 0; }
.book-cover-img::before { display: none; }
.book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}
.book-byline {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Education ---------- */
.edu-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 48px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.edu-row:first-child { border-top: 1px solid var(--rule); }
.edu-row .year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.edu-row .degree {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.edu-row .school {
  font-family: 'Newsreader', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 4px;
}
.edu-row .gpa {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 120px 0 0;
  border: 0;
}
.contact .container { padding-bottom: 80px; }
.contact h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.contact h2 em { font-style: italic; color: var(--accent); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-top: 56px;
}
.contact-info .row {
  padding: 22px 0;
  border-bottom: 1px solid oklch(35% 0.02 60);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: baseline;
}
.contact-info .row:first-child { border-top: 1px solid oklch(35% 0.02 60); }
.contact-info .row .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(70% 0.04 60);
}
.contact-info .row .val {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  color: var(--bg);
}
.contact-info .row .val a:hover { color: var(--accent); }
.contact-info .row .arrow {
  color: oklch(70% 0.04 60);
  transition: transform .25s ease, color .25s ease;
}
.contact-info .row:hover .arrow { color: var(--accent); transform: translateX(6px); }

.contact-form {
  background: oklch(28% 0.018 55);
  padding: 36px;
  border-radius: 4px;
  border: 1px solid oklch(34% 0.02 55);
}
.contact-form .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(70% 0.04 60);
  margin-bottom: 28px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(70% 0.04 60);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid oklch(45% 0.02 55);
  padding: 8px 0;
  color: var(--bg);
  font-family: 'Newsreader', serif;
  font-size: 18px;
  outline: none;
  resize: none;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 90px; }
.contact-form .btn-primary {
  background: var(--accent);
  color: var(--paper);
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 14px 18px;
}
.contact-form .btn-primary:hover { background: var(--accent-deep); }

/* Footer */
footer {
  border-top: 1px solid oklch(35% 0.02 60);
  padding: 28px 0 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: oklch(70% 0.04 60);
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a:hover { color: var(--accent); }

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid, .story, .skills-grid, .contact-grid, .section-head, .quote-section .container { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .setup-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .exp-row, .edu-row { grid-template-columns: 1fr; gap: 16px; }
  .container { padding: 0 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .contact-info .row {
    grid-template-columns: 88px 1fr auto;
    gap: 10px;
  }
  .contact-info .row .lbl { font-size: 9.5px; letter-spacing: 0.1em; }
  .contact-info .row .val {
    font-size: clamp(13px, 4vw, 16px);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .nav-links { display: none; }
  .nav .btn-primary { font-size: 2vw; padding: 8px 14px; }
  .nav .btn-primary svg { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; margin-bottom: 24px; }
  .hero-sub { font-size: 17px; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stats .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-grid { grid-template-columns: 1fr; }
  .exp-detail { grid-template-columns: 1fr; }
}
