/* ============ Tokens ============ */
:root {
  --bg: #121212;
  --bg-2: #1b1b1b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --muted: #a3a3a3;
  --faint: #636363;
  --a1: #f2762e;           /* warm orange */
  --a2: #ffb27a;           /* soft peach */
  --accent: var(--a1);
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --radius: 20px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
  --bg: #f8f6f3;
  --bg-2: #f0ece6;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: #ffffff;
  --line: rgba(20, 20, 30, 0.08);
  --line-2: rgba(20, 20, 30, 0.16);
  --text: #161616;
  --muted: #5e5e5e;
  --faint: #9c9c9c;
  --a1: #e0601a;
  --a2: #f08a3c;
  --shadow: 0 30px 60px -30px rgba(90, 50, 20, 0.22);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
::selection { background: var(--a1); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--a1); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
kbd {
  font: 500 11px var(--mono); padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  box-shadow: 0 2px 0 var(--line-2);
}

/* ============ Background ============ */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: .6;
}
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .16; animation: drift 22s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: var(--a1); top: -160px; right: -120px; }
.b2 { width: 440px; height: 440px; background: var(--a1); top: 380px; left: -200px; opacity: .08; animation-delay: -8s; }
:root[data-theme="light"] .blob { opacity: .14; }
@keyframes drift { to { transform: translate(-80px, 120px) scale(1.15); } }
.spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--a1) 9%, transparent), transparent 60%);
}
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ============ Nav ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--a1); color: #fff; font: 800 19px var(--display);
  transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-links a { position: relative; padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }
.menu-btn { display: none; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn { grid-auto-flow: row; align-content: center; justify-items: center; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 500; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--a1); color: #fff; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--a1) 70%, transparent); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn.full { width: 100%; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px;
  padding-top: 110px; padding-bottom: 90px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 500 12px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--a1);
  padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--a1) 8%, transparent);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 var(--a1); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hello { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 0 0 4px; }
.name { font: 800 clamp(68px, 12vw, 152px)/.88 var(--display); letter-spacing: -.045em; margin: 0 0 28px; }
.name-line { display: block; }
.name .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.name .outline .accent { -webkit-text-stroke: 0; color: var(--a1); }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 34px; line-height: 1.6; }
.rotator { color: var(--text); font-weight: 500; position: relative; white-space: nowrap; }
.rotator::after { content: "|"; color: var(--a1); margin-left: 2px; animation: blink 1s steps(1) infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }
.kbd-hint { color: var(--faint); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface);
  transition: color .2s, transform .25s var(--ease), border-color .2s;
}
.socials a:hover { color: var(--text); border-color: var(--a1); transform: translateY(-3px); }

/* Portrait */
.hero-visual { display: flex; justify-content: center; }
.portrait { position: relative; width: min(360px, 100%); aspect-ratio: 1; transform-style: preserve-3d; transition: transform .2s ease-out; }
.portrait-ring {
  position: absolute; inset: -10px; border-radius: 42% 58% 55% 45% / 45% 45% 55% 55%;
  background: conic-gradient(from 0deg, var(--a1), var(--a2), transparent 55%, var(--a1));
  animation: spin 14s linear infinite, morph 10s ease-in-out infinite alternate; opacity: .9; filter: blur(.5px);
}
.portrait-inner {
  position: absolute; inset: 0; border-radius: 42% 58% 55% 45% / 45% 45% 55% 55%;
  background: radial-gradient(circle at 30% 25%, #2b2520, #161616 70%);
  overflow: hidden; display: grid; place-items: center;
  animation: morph 10s ease-in-out infinite alternate;
  border: 6px solid var(--bg);
}
:root[data-theme="light"] .portrait-inner { background: radial-gradient(circle at 30% 25%, #ffffff, #f6e7da 70%); }
.portrait-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transform: scale(1.2); transform-origin: 50% 46%; }
.initials { font: 800 110px var(--display); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes morph { 50% { border-radius: 58% 42% 45% 55% / 55% 50% 50% 45%; } 100% { border-radius: 50% 50% 40% 60% / 40% 60% 40% 60%; } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; z-index: 2;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; white-space: nowrap;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip b { font: 700 16px var(--display); color: var(--a1); }
.chip-a { left: -40px; bottom: 50px; }
.chip-b { right: -24px; top: 34px; animation-delay: -3s; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Floating shapes */
.shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; display: block; transition: transform .3s ease-out; }
.s-ring { width: 34px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 50%; top: 18%; left: 52%; }
.s-square { width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 5px; top: 70%; left: 48%; rotate: 18deg; }
.s-plus { color: var(--faint); font: 300 28px var(--sans); top: 14%; left: 30%; }
.s-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a2); top: 78%; right: 6%; opacity: .7; }
.s-tri { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 17px solid color-mix(in srgb, var(--a1) 60%, transparent); bottom: 16%; left: 4%; rotate: -14deg; }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--a1); }
.scroll-cue .line { width: 1px; height: 44px; background: linear-gradient(transparent, var(--line-2)); }
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ============ Stats ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat { padding: 30px 28px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.stat .num, .stat .plus { font: 800 clamp(36px, 4.4vw, 52px)/1 var(--display); letter-spacing: -.03em; }
.stat .plus { color: var(--a1); }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ============ Sections ============ */
.section { padding-top: 140px; }
.section-head { margin-bottom: 56px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.kicker { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h2 { font: 800 clamp(42px, 6vw, 76px)/1 var(--display); letter-spacing: -.04em; margin: 0; }
h3 { font: 700 20px/1.3 var(--display); letter-spacing: -.01em; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.about-text .big { font: 500 clamp(24px, 2.6vw, 32px)/1.35 var(--display); color: var(--text); letter-spacing: -.02em; margin-bottom: 26px; }
.about-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s, gap .25s; }
.link-arrow:hover { border-color: var(--a1); gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }
.about-cards { display: grid; gap: 14px; }
.mini-card {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px;
  transition: transform .3s var(--ease), border-color .3s;
}
.mini-card:hover { transform: translateX(6px); border-color: var(--line-2); }
.mini-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); }
.mini-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Spotlight hover on cards */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--a1) 12%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

/* Marquee */
.marquee { margin-top: 120px; padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 36px; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 700 clamp(26px, 3.4vw, 42px) var(--display); letter-spacing: -.03em; white-space: nowrap; color: var(--muted); transition: color .2s; }
.marquee span:hover { color: var(--text); }
.marquee i { font-style: normal; color: var(--a1); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Research */
.filters { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.filter { padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work {
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, opacity .4s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.work.hidden { display: none; }
.work.featured { grid-column: 1 / -1; flex-direction: row; }
.work.featured.flip { flex-direction: row-reverse; }
.work.featured .cover { flex: 1.1; aspect-ratio: auto; min-height: 340px; }
.work.featured .work-body { flex: 1; justify-content: center; padding: 40px; }
.work.featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
.cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, hsl(var(--h) 80% 50% / .28), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, hsl(calc(var(--h) + 18) 85% 50% / .2), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 25% 13%), hsl(calc(var(--h) + 10) 15% 8%));
}
:root[data-theme="light"] .cover {
  background:
    radial-gradient(circle at 20% 20%, hsl(var(--h) 90% 70% / .6), transparent 55%),
    radial-gradient(circle at 85% 80%, hsl(calc(var(--h) + 18) 90% 70% / .4), transparent 55%),
    linear-gradient(135deg, hsl(var(--h) 60% 94%), hsl(calc(var(--h) + 10) 50% 88%));
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.cover-art { position: absolute; inset: 0; transition: transform .8s var(--ease); }
/* Cover art: three document pages, one chunk highlighted */
.cover-art span {
  position: absolute; left: 50%; top: 54%; width: 22%; aspect-ratio: 3 / 4; border-radius: 10px;
  background:
    linear-gradient(var(--chunk, transparent), var(--chunk, transparent)) 14% var(--cy, 46%) / 72% 22% no-repeat,
    repeating-linear-gradient(180deg, rgba(255,255,255,.22) 0 2px, transparent 2px 11px) 50% 60% / 72% 70% no-repeat,
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)) 14% 12% / 46% 4px no-repeat,
    rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .7s var(--ease);
}
.cover-art span:nth-child(1) { transform: translate(-128%, -50%) rotate(-9deg); opacity: .7; }
.cover-art span:nth-child(2) { transform: translate(-50%, -54%); z-index: 1; --chunk: color-mix(in srgb, var(--a1) 75%, transparent); --cy: 48%; border-color: color-mix(in srgb, var(--a1) 55%, rgba(255,255,255,.2)); }
.cover-art span:nth-child(3) { transform: translate(28%, -50%) rotate(9deg); opacity: .7; --chunk: color-mix(in srgb, var(--a1) 30%, transparent); --cy: 78%; }
.work:hover .cover-art { transform: none; }
.work:hover .cover-art span:nth-child(1) { transform: translate(-148%, -52%) rotate(-14deg); }
.work:hover .cover-art span:nth-child(2) { transform: translate(-50%, -60%); }
.work:hover .cover-art span:nth-child(3) { transform: translate(48%, -52%) rotate(14deg); }
:root[data-theme="light"] .cover-art span {
  background:
    linear-gradient(var(--chunk, transparent), var(--chunk, transparent)) 14% var(--cy, 46%) / 72% 22% no-repeat,
    repeating-linear-gradient(180deg, rgba(20,20,20,.14) 0 2px, transparent 2px 11px) 50% 60% / 72% 70% no-repeat,
    linear-gradient(rgba(20,20,20,.3), rgba(20,20,20,.3)) 14% 12% / 46% 4px no-repeat,
    rgba(255,255,255,.75);
  border-color: rgba(20,20,20,.1);
  box-shadow: 0 20px 40px -20px rgba(90,50,20,.35);
}
.work.featured .cover-art span { width: 17%; }
.badge { position: absolute; top: 18px; left: 18px; font: 500 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.work-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-body p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 8px; color: var(--a1);
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 22%, transparent);
}
.tags.small span { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.work-meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 400 13px var(--mono); color: var(--faint); }
.work-links { display: flex; gap: 16px; }
.work-links a { color: var(--text); transition: color .2s; }
.work-links a:hover { color: var(--a1); }

.authors { font-size: 14px !important; color: var(--faint) !important; }
.authors b { color: var(--text); font-weight: 600; }
.cover-year { position: absolute; right: 18px; bottom: 14px; font: 800 44px/1 var(--display); letter-spacing: -.04em; color: rgba(255,255,255,.14); }
:root[data-theme="light"] .cover-year { color: rgba(0,0,0,.08); }
.cites { color: var(--a1); }
.work.featured h3 { line-height: 1.2; }
.earlier { margin-top: 48px; }
.earlier-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.earlier-year { font: 800 28px var(--display); color: var(--faint); letter-spacing: -.03em; }
.earlier-item h3 { font-size: 18px; margin-bottom: 4px; }
.earlier-item p { margin: 0 0 2px; }
.muted-sm { color: var(--muted); font-size: 14px; }
.scholar-btn { margin-top: 36px; }

/* What people say */
.voices-head { margin-bottom: 48px; }
.voices-pre { font: 500 clamp(18px, 2vw, 24px) var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.voices-head h2 .my { color: var(--a1); font-style: italic; font-weight: 800; padding-right: .06em; }
.voices-sub { color: var(--muted); max-width: 540px; margin: 18px 0 0; font-size: 16px; }
.voices-marquee { overflow: hidden; padding: 10px 0 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.voices-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.voices-marquee:hover .voices-track, .voices-marquee:focus-within .voices-track { animation-play-state: paused; }
.voice {
  width: 360px; flex: none; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.voice:hover { border-color: color-mix(in srgb, var(--a1) 55%, transparent); transform: translateY(-4px); background: var(--surface-2); }
.voice-top { display: flex; align-items: center; gap: 10px; }
.voice-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 13%, transparent); color: var(--a1); }
.voice-icon svg { width: 17px; height: 17px; }
.emo { font-size: 17px; line-height: 1; }
.voice-platform { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.voice-arrow { margin-left: auto; color: var(--faint); transition: color .2s, transform .3s var(--ease); }
.voice:hover .voice-arrow { color: var(--a1); transform: translate(2px, -2px); }
.voice-quote { margin: 0; font: 500 18px/1.45 var(--display); letter-spacing: -.01em; color: var(--text); flex: 1; }
.voice-quote em { font-style: normal; color: var(--a1); }
.voice-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.voice-foot b { font-weight: 600; }
.voice-foot span { color: var(--faint); }
.voice-foot .voice-paper { color: var(--a1); font-size: 13px; }
.hf-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.hf-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-right: 6px; }
.hf-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); transition: border-color .2s, color .2s; }
.hf-strip a b { font: 700 16px var(--display); color: var(--a1); }
.hf-strip a:hover { border-color: var(--a1); color: var(--text); }
@media (max-width: 760px) { .voice { width: 290px; } .voice-quote { font-size: 16px; } }

/* Timeline */
.timeline { position: relative; padding-left: 0; }
.timeline-line { position: absolute; left: 210px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline-fill { width: 100%; height: calc(var(--tl, 0) * 100%); background: var(--grad); border-radius: 2px; }
.t-item { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 64px; padding-bottom: 28px; }
.t-when { font: 500 13px var(--mono); color: var(--muted); text-align: right; padding-top: 26px; letter-spacing: .04em; }
.t-dot {
  position: absolute; left: 204px; top: 28px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--a1); box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--a1); z-index: 1;
}
.t-dot.edu { border-color: var(--a2); box-shadow: 0 0 0 5px var(--bg), 0 0 14px var(--a2); }
.t-card { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.t-card:hover { border-color: var(--line-2); transform: translateX(6px); }
.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.t-org { font-weight: 500; color: var(--a1); }
.t-loc { color: var(--faint); font-size: 14px; margin: 4px 0 12px; }
.t-card ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-card li { position: relative; padding-left: 22px; color: var(--muted); }
.t-card li::before { content: "→"; position: absolute; left: 0; color: var(--a1); }

.now { display: inline-block; vertical-align: middle; margin-left: 8px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: var(--a1); background: color-mix(in srgb, var(--a1) 14%, transparent); }
.t-card li b { color: var(--text); font-weight: 600; }
.sub-head { margin: 56px 0 20px; }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.edu-card { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, transform .4s var(--ease); }
.edu-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.edu-card .t-org { margin: 0 0 10px; }
.edu-year { font: 500 13px var(--mono); color: var(--muted); letter-spacing: .04em; }
.edu-highlight { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--a1) 9%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 25%, transparent); }
.edu-star { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--a1); color: #fff; font-size: 14px; }
.edu-highlight b { display: block; font-weight: 600; font-size: 15px; }
.edu-highlight span:not(.edu-star) { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .edu-grid { grid-template-columns: 1fr; } }

/* Travel */
.travel-sub { color: var(--muted); font-size: 17px; margin: 16px 0 0; max-width: 520px; }
.travel-sub b { color: var(--text); font-weight: 600; }
.ig-btn svg { width: 18px; height: 18px; }
.map-card { position: relative; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden; }
.map-toolbar { position: absolute; z-index: 2; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.map-legend { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.map-legend i + * { margin-right: 4px; }
.lg-visited { background: var(--a1); }
.lg-other { background: var(--map-land); border: 1px solid var(--line-2); margin-left: 8px; }
.map-zoom { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background .2s; }
.map-zoom:hover { border-color: var(--a1); }
.map-zoom svg { width: 16px; height: 16px; }
.map-zoom[aria-pressed="true"] { background: var(--a1); border-color: var(--a1); color: #fff; }
.world-map { position: relative; aspect-ratio: 1000 / 520; }
.world-map svg { display: block; width: 100%; height: 100%; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font: 500 13px var(--mono); }
:root { --map-land: #24242a; --map-border: #121212; }
:root[data-theme="light"] { --map-land: #e7e2da; --map-border: #f8f6f3; }
.graticule { fill: none; stroke: var(--line); stroke-width: .6; vector-effect: non-scaling-stroke; }
.sphere { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.country { fill: var(--map-land); stroke: var(--map-border); stroke-width: .5; vector-effect: non-scaling-stroke; transition: fill .25s; }
.country:hover { fill: color-mix(in srgb, var(--map-land) 70%, var(--text)); }
.country.visited { fill: var(--a1); cursor: pointer; }
.country.visited:hover, .country.visited.active { fill: var(--a2); }
.pin { pointer-events: none; }
.pin .dot { fill: #fff; stroke: var(--a1); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pin .ring { fill: none; stroke: var(--a1); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.4s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.map-tip { position: absolute; z-index: 3; pointer-events: none; padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--text); color: var(--bg); transform: translate(-50%, calc(-100% - 12px)); box-shadow: var(--shadow); }
.map-tip .v { color: var(--a1); margin-left: 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.country-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn .flag { font-size: 18px; line-height: 1; }
.chip-btn .n { font: 500 11px var(--mono); color: var(--faint); }
.chip-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-btn.active .n { color: inherit; opacity: .6; }
.gallery { columns: 3 260px; column-gap: 16px; }
.photo { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); background: var(--surface); display: block; width: 100%; padding: 0; }
.photo img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-size: 14px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.photo:hover figcaption, .photo:focus-visible figcaption { opacity: 1; transform: none; }
.photo figcaption span { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.photo.hidden { display: none; }
.gallery-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--muted); }
.gallery-empty p { margin: 0; }
.gallery-empty b { color: var(--text); }
.gallery-more { margin-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: rgba(8, 8, 10, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 92vh; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #ddd; font-size: 15px; text-align: center; }
.lb-nav, .lb-close { color: #fff; font-size: 40px; line-height: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; justify-self: center; transition: background .2s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.1); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 22px; width: 44px; height: 44px; }
@media (max-width: 760px) {
  .map-toolbar { top: 10px; left: 10px; right: 10px; }
  .map-legend { display: none; }
  .map-zoom { margin-left: auto; padding: 7px 12px; font-size: 12px; }
  .world-map { aspect-ratio: 1000 / 620; }
  .map-card { border-radius: 20px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .photo { margin-bottom: 10px; border-radius: 12px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { width: 40px; height: 40px; font-size: 30px; }
}

/* Contact */
.contact-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  padding: clamp(28px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, var(--a1), transparent 35%, transparent 65%, var(--a2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: var(--a1); filter: blur(140px); opacity: .16; bottom: -260px; left: -120px; pointer-events: none; }
.contact-copy { position: relative; }
.contact-title { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; margin-bottom: 22px; }
.contact-copy > p:not(.kicker) { color: var(--muted); font-size: 17px; max-width: 440px; margin: 0 0 30px; }
.email-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email { font: 600 clamp(19px, 2.2vw, 26px) var(--display); letter-spacing: -.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.email:hover { background-size: 100% 2px; }
.contact-form { position: relative; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--text); padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }

/* Footer */
.footer { margin-top: 140px; border-top: 1px solid var(--line); padding: 64px 0 36px; overflow: hidden; }
.footer-big {
  font: 800 clamp(48px, 11.5vw, 150px)/.9 var(--display); letter-spacing: -.05em; margin-bottom: 56px;
  background: linear-gradient(180deg, var(--text), transparent 110%); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; user-select: none;
}
.footer-big .accent { -webkit-text-fill-color: var(--a1); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h4 { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--a1); margin: 0 0 16px; }
.footer-cols a, .footer-cols p { display: block; color: var(--muted); margin: 0 0 10px; font-size: 15px; transition: color .2s, transform .2s; }
.footer-cols a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 14px; }
.to-top { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); transition: color .2s, border-color .2s; }
.to-top:hover { color: var(--text); border-color: var(--text); }

/* Command palette */
.cmd { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 14vh 16px 0; }
.cmd[hidden] { display: none; }
.cmd-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.cmd-panel { position: relative; width: min(560px, 100%); border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); overflow: hidden; animation: pop .25s var(--ease); }
.cmd-panel input { width: 100%; padding: 20px 22px; font: inherit; font-size: 17px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; }
.cmd-panel ul { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow: auto; }
.cmd-panel li { padding: 12px 14px; border-radius: 10px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.cmd-panel li::before { content: "→"; color: var(--faint); }
.cmd-panel li.sel { background: var(--surface-2); color: var(--text); }
.cmd-panel li.sel::before { color: var(--a1); }
.cmd-foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.cmd-foot kbd { margin-right: 3px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 110; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 56px; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .portrait { width: 200px; }
  .initials { font-size: 64px; }
  .chip-a { left: auto; right: -170px; bottom: 30px; }
  .chip-b { right: -150px; top: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .work.featured, .work.featured.flip { flex-direction: column; }
  .work.featured .cover { min-height: 0; aspect-ratio: 16/9; }
  .work.featured .work-body { padding: 28px; }
  .contact-card { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 104px; min-height: 0; }
  .portrait { width: 170px; }
  .nav-links {
    position: fixed; top: 80px; left: 16px; right: 16px; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 20px; background: var(--bg-2); border-color: var(--line-2); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .menu-btn { display: grid; }
  #cmdBtn { display: none; }
  .kbd-hint { display: none; }
  .hide-sm { display: none; }
  .name .outline { -webkit-text-stroke-width: 1.5px; }
  .chip { display: none; }
  .section { padding-top: 100px; }
  .section-head { margin-bottom: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 20px; }
  .timeline-line { left: 6px; }
  .t-item { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .t-dot { left: 0; top: 4px; }
  .t-when { text-align: left; padding-top: 0; }
  .t-card { padding: 22px; }
  .t-card:hover, .mini-card:hover { transform: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  .marquee { margin-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
