/* ============================================================
   Nathan Schoenkin — research-lab editorial system
   ============================================================ */

:root {
  /* default = bone */
  --paper:        oklch(98.5% 0.005 80);
  --paper-2:      oklch(96.5% 0.006 80);
  --paper-3:      oklch(93% 0.008 80);
  --rule:         oklch(85% 0.008 80);
  --rule-soft:    oklch(90% 0.008 80);
  --ink:          oklch(22% 0.008 80);
  --ink-2:        oklch(38% 0.008 80);
  --ink-3:        oklch(55% 0.008 80);
  --ink-4:        oklch(70% 0.008 80);
  --accent:       oklch(58% 0.15 45);
  --accent-soft:  oklch(58% 0.15 45 / 0.08);
}

/* ----- Background palettes ----- */
:root {
  --accent-2: oklch(58% 0.15 45);
  --accent-3: oklch(58% 0.13 165);
  --accent-4: oklch(60% 0.13 95);
  --tint-1: oklch(96% 0.025 45);
  --tint-2: oklch(96% 0.025 165);
  --tint-3: oklch(96% 0.025 95);
}
[data-bg="bone"] {
  --paper: oklch(98.5% 0.005 80); --paper-2: oklch(96.5% 0.006 80); --paper-3: oklch(93% 0.008 80);
  --rule: oklch(85% 0.008 80); --rule-soft: oklch(90% 0.008 80);
  --ink: oklch(22% 0.008 80); --ink-2: oklch(38% 0.008 80); --ink-3: oklch(55% 0.008 80); --ink-4: oklch(70% 0.008 80);
  --accent: oklch(58% 0.15 45); --accent-soft: oklch(58% 0.15 45 / 0.08);
}
[data-bg="snow"] {
  --paper: #ffffff; --paper-2: oklch(98% 0 0); --paper-3: oklch(94.5% 0 0);
  --rule: oklch(86% 0 0); --rule-soft: oklch(91% 0 0);
  --ink: oklch(18% 0 0); --ink-2: oklch(36% 0 0); --ink-3: oklch(54% 0 0); --ink-4: oklch(70% 0 0);
  --accent: oklch(55% 0.16 250); --accent-soft: oklch(55% 0.16 250 / 0.08);
  --accent-2: oklch(65% 0.17 35);   /* ember */
  --accent-3: oklch(62% 0.13 165);  /* teal */
  --accent-4: oklch(70% 0.13 95);   /* mustard */
  --tint-1:   oklch(96% 0.04 250);  /* iris wash */
  --tint-2:   oklch(96% 0.04 35);   /* peach wash */
  --tint-3:   oklch(96% 0.04 165);  /* mint wash */
}
[data-bg="parchment"] {
  --paper: oklch(96% 0.018 85); --paper-2: oklch(93.5% 0.02 85); --paper-3: oklch(90% 0.022 85);
  --rule: oklch(80% 0.022 85); --rule-soft: oklch(86% 0.022 85);
  --ink: oklch(24% 0.02 60); --ink-2: oklch(40% 0.018 60); --ink-3: oklch(55% 0.015 60); --ink-4: oklch(68% 0.012 60);
  --accent: oklch(48% 0.13 35); --accent-soft: oklch(48% 0.13 35 / 0.1);
}
[data-bg="slate"] {
  --paper: oklch(96% 0.008 230); --paper-2: oklch(93% 0.01 230); --paper-3: oklch(89% 0.012 230);
  --rule: oklch(80% 0.012 230); --rule-soft: oklch(86% 0.012 230);
  --ink: oklch(22% 0.015 240); --ink-2: oklch(38% 0.012 240); --ink-3: oklch(54% 0.012 240); --ink-4: oklch(68% 0.012 240);
  --accent: oklch(58% 0.13 220); --accent-soft: oklch(58% 0.13 220 / 0.08);
}
[data-bg="sage"] {
  --paper: oklch(96% 0.012 145); --paper-2: oklch(93% 0.014 145); --paper-3: oklch(89% 0.016 145);
  --rule: oklch(80% 0.014 145); --rule-soft: oklch(86% 0.014 145);
  --ink: oklch(22% 0.014 150); --ink-2: oklch(38% 0.012 150); --ink-3: oklch(54% 0.012 150); --ink-4: oklch(68% 0.01 150);
  --accent: oklch(50% 0.12 55); --accent-soft: oklch(50% 0.12 55 / 0.08);
}
[data-bg="ink"] {
  --paper: oklch(18% 0.008 250); --paper-2: oklch(22% 0.01 250); --paper-3: oklch(26% 0.012 250);
  --rule: oklch(35% 0.012 250); --rule-soft: oklch(28% 0.012 250);
  --ink: oklch(96% 0.006 80); --ink-2: oklch(78% 0.006 80); --ink-3: oklch(60% 0.006 80); --ink-4: oklch(48% 0.006 80);
  --accent: oklch(72% 0.15 55); --accent-soft: oklch(72% 0.15 55 / 0.14);
}
[data-bg="ink"] .nav { background: color-mix(in oklab, var(--paper) 88%, transparent); }
[data-bg="ink"] ::selection { background: var(--accent); color: var(--paper); }
[data-bg="ink"] .hero-portrait img { filter: grayscale(0.2) contrast(1.05) brightness(0.95); }
[data-bg="ink"] .contact { background: oklch(10% 0.008 250); }
[data-bg="ink"] .strip { background: var(--paper-2); }

:root {
  /* Type */
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Type */
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ----- Selection ----- */
::selection { background: var(--ink); color: var(--paper); }

/* ----- Layout primitives ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

/* ----- Section frame ----- */
.section {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule-soft); }

.section-marker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.section-marker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}
.section-marker .num {
  color: var(--accent);
  font-weight: 500;
}

/* Per-section accent rotation for color rhythm */
#about .section-marker .num { color: var(--accent); }
#practice .section-marker .num { color: var(--accent-2); }
#method .section-marker .num { color: var(--accent-3); }
#experience .section-marker .num { color: var(--accent-3); }
#projects .section-marker .num { color: var(--accent-4); }
#publications .section-marker .num { color: var(--accent-2); }

/* Subtle alternating section tints */
#about { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%); }
#practice { background: color-mix(in oklab, var(--tint-1) 30%, var(--paper)); }
#method { background: var(--paper); }
#projects { background: color-mix(in oklab, var(--tint-2) 30%, var(--paper)); }
#publications { background: color-mix(in oklab, var(--tint-3) 25%, var(--paper)); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--ink-2);
  font-weight: 300;
}
.section-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 24px;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-brand .mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  padding: 6px 12px;
  color: var(--ink-3);
  transition: all .2s ease;
}
.lang-switch button.is-active {
  background: var(--ink);
  color: var(--paper);
}

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 80px; }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-eyebrow .pip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 36px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}

.hero-meta {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px 36px;
  max-width: 640px;
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-meta dd {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border-color: var(--rule);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero portrait */
.hero-portrait {
  position: relative;
  align-self: end;
}
.hero-portrait .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.hero-portrait .caption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-portrait .crosshair {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-3);
}
.hero-portrait .ch-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-portrait .ch-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero-portrait .ch-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero-portrait .ch-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Hero — alt layouts (Tweaks) */
.hero[data-layout="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}
.hero[data-layout="centered"] .hero-portrait { display: none; }
.hero[data-layout="centered"] .hero-title { font-size: clamp(48px, 8.5vw, 120px); }

.hero[data-layout="stacked"] .hero-grid {
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero[data-layout="stacked"] .hero-portrait {
  order: -1;
  max-width: 380px;
}
.hero[data-layout="stacked"] .hero-portrait .frame { aspect-ratio: 1 / 1; }

/* ============================================================
   Marquee strip — credentials
   ============================================================ */
.strip {
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  animation: scroll 60s linear infinite;
}
.strip-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.strip-track span::after {
  content: '✦';
  color: var(--accent);
  font-size: 10px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   About / Profile section
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
}

.about-statement p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.about-statement p + p { margin-top: 24px; color: var(--ink-2); }
.about-statement strong { font-weight: 500; color: var(--ink); }

.about-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}
.fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.fact dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.fact dd {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.fact dd em {
  display: block;
  font-style: normal;
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 2px;
}

/* Paris callout */
.paris-card {
  margin-top: 36px;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.paris-card .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.paris-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 6px;
}
.paris-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.paris-card .timeline-dots {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.paris-card .timeline-dots .seg {
  height: 2px; flex: 1;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
}
.paris-card .timeline-dots .seg.active { background: var(--accent); }

/* FBCI badge card */
.badge-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.badge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.badge-embed {
  position: relative;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-embed a {
  display: inline-block;
  line-height: 0;
  transition: transform .25s ease, filter .25s ease;
}
.badge-embed a:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(10, 31, 68, 0.25));
}
.fbci-badge-img {
  width: 100%;
  height: auto;
  display: block;
}
.badge-meta { position: relative; }
.badge-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.badge-meta h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
  text-wrap: balance;
}
.badge-meta p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .badge-card { grid-template-columns: 1fr; }
  .badge-embed { margin: 0 auto; }
}

/* ============================================================
   Practice areas (was Expertise)
   ============================================================ */
.practice-list {
  margin-top: 56px;
  border-top: 1px solid var(--rule-soft);
}
.practice-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  cursor: default;
  transition: padding .25s ease, background .25s ease;
}
.practice-row:hover { padding-left: 12px; background: color-mix(in oklab, var(--accent-soft) 60%, transparent); }
.practice-row:nth-child(1) .num { color: var(--accent); }
.practice-row:nth-child(2) .num { color: var(--accent-2); }
.practice-row:nth-child(3) .num { color: var(--accent-3); }
.practice-row:nth-child(4) .num { color: var(--accent-4); }
.practice-row:nth-child(5) .num { color: var(--accent); }
.practice-row:nth-child(6) .num { color: var(--accent-2); }
.practice-row .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.practice-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.practice-row .body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.practice-row .body .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.practice-row .body .tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .practice-row { grid-template-columns: 40px 1fr; }
  .practice-row .body { grid-column: 1 / -1; padding-left: 40px; }
}

/* ============================================================
   Experience timeline
   ============================================================ */
.exp-list { margin-top: 48px; }
.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.exp-row:first-child { border-top: 1px solid var(--ink); }
.exp-row:last-child { border-bottom: 1px solid var(--rule-soft); }

.exp-when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.exp-when .now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
}
.exp-when .now::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.exp-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  text-wrap: balance;
}
.exp-body .where {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.exp-body .where .sep { color: var(--ink-4); margin: 0 8px; }
.exp-body .summary {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 65ch;
}
.exp-body .achievements {
  margin-top: 18px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.exp-body .achievements li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.exp-body .achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.exp-body .achievements strong { color: var(--ink); font-weight: 500; }
.exp-body .skills {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.exp-body .skills span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  background: var(--paper-2);
  border-radius: 3px;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .exp-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   Projects — index style, bilingual data viz vibe
   ============================================================ */
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.projects-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.projects-filter button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-3);
  transition: all .2s ease;
  white-space: nowrap;
}
.projects-filter button:hover { color: var(--ink); border-color: var(--ink); }
.projects-filter button.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (min-width: 720px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }

.proj {
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .25s ease;
  position: relative;
}
.proj:hover { background: var(--paper-2); }
.proj.is-hidden { display: none; }

.proj-thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  position: relative;
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.proj:hover .proj-thumb img { transform: scale(1.03); }
.proj-thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: 3px;
  white-space: nowrap;
}
.proj-thumb .badge.live { color: var(--accent); border-color: var(--accent); }

.proj-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proj-meta .id { color: var(--accent); font-weight: 500; }
.proj:nth-child(6n+1) .proj-meta .id { color: var(--accent); }
.proj:nth-child(6n+2) .proj-meta .id { color: var(--accent-2); }
.proj:nth-child(6n+3) .proj-meta .id { color: var(--accent-3); }
.proj:nth-child(6n+4) .proj-meta .id { color: var(--accent-4); }
.proj:nth-child(6n+5) .proj-meta .id { color: var(--accent); }
.proj:nth-child(6n+6) .proj-meta .id { color: var(--accent-2); }

.proj h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.proj p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  flex-grow: 1;
}
.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.proj-tech span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-3);
  white-space: nowrap;
}
.proj-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
}
.proj-link:hover { color: var(--accent); }

/* ============================================================
   Publications & Speaking
   ============================================================ */
.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (min-width: 720px) { .pub-grid { grid-template-columns: 1fr 1fr; } }

.pub {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pub.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .pub.featured { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 40px; }
}
.pub-photo {
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}
.pub-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pub-kind {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-kind .dash { width: 16px; height: 1px; background: var(--ink-3); }
.pub h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pub .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.pub p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 140px) 0;
}
.contact .section-marker { color: oklch(70% 0.008 80); }
.contact .section-marker::before { background: oklch(70% 0.008 80); }
.contact .section-marker .num { color: var(--accent); }
.contact .section-title { color: var(--paper); }
.contact .section-title em { color: oklch(75% 0.008 80); }
.contact .section-lede { color: oklch(80% 0.008 80); }

.contact-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr; max-width: 720px; } }

.contact-info dl { display: grid; gap: 0; }
.contact-info .fact { border-color: oklch(35% 0.008 80); }
.contact-info .fact dt { color: oklch(70% 0.008 80); }
.contact-info .fact dd { color: var(--paper); }
.contact-info .fact dd a:hover { color: var(--accent); }

.contact-form .form-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .contact-form .form-row.two { grid-template-columns: 1fr 1fr; } }
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(70% 0.008 80);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid oklch(35% 0.008 80);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select option { color: var(--ink); }
.contact-form .form-row + .form-row { margin-top: 24px; }
.contact-form .submit-row { margin-top: 36px; }
.contact-form .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.contact-form .btn-primary:hover { background: var(--accent); color: var(--paper); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  padding: 36px 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot a:hover { color: var(--ink); }

/* ============================================================
   Reveal animation (subtle, intentional)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
  .exp-when .now::before { animation: none; }
}

/* Hero kpi rail */
.kpi-rail {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.kpi .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kpi .num em {
  font-family: var(--mono);
  font-size: 14px;
  font-style: normal;
  color: var(--ink-3);
  margin-left: 4px;
}
.kpi .lbl {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}


/* ===== Method (4-step capability arc) ===== */
.section-method .section-lede {
  max-width: 720px;
  margin-top: 28px;
}
.method-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.method-step {
  position: relative;
  padding: 36px 28px 40px;
  border-right: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.method-step:last-child { border-right: 0; }
.method-step:nth-child(1) .num { color: var(--accent); }
.method-step:nth-child(2) .num { color: var(--accent-3); }
.method-step:nth-child(3) .num { color: var(--accent-4); }
.method-step:nth-child(4) .num { color: var(--accent-2); }
.method-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.method-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.method-head .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.method-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.method-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
.method-tag {
  margin-top: 8px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}
.method-step:nth-child(-n+2) .method-tag {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--rule));
  color: color-mix(in oklab, var(--accent) 70%, var(--ink));
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.method-step:nth-child(n+3) .method-tag {
  border-color: color-mix(in oklab, var(--accent-3) 30%, var(--rule));
  color: color-mix(in oklab, var(--accent-3) 70%, var(--ink));
  background: color-mix(in oklab, var(--accent-3) 8%, transparent);
}
.method-arrow {
  position: absolute;
  top: 36px;
  right: -9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  z-index: 2;
}
.method-foot {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 14px;
  max-width: 640px;
}

@media (max-width: 980px) {
  .method-grid {
    grid-template-columns: 1fr 1fr;
  }
  .method-step:nth-child(2n) { border-right: 0; }
  .method-step:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
  .method-arrow { display: none; }
}
@media (max-width: 600px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-step { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .method-step:last-child { border-bottom: 0; }
}
