:root {
  --bg: #ffffff;
  --bg-soft: #f6faf6;
  --ink: #0e1116;
  --ink-2: #2c3340;
  --ink-3: #5b6470;
  --ink-4: #8b94a3;
  --line: #e4eae4;
  --line-2: #edf2ed;
  --accent: oklch(0.56 0.13 155);
  --accent-soft: oklch(0.95 0.04 155);
  --accent-ink: oklch(0.44 0.12 155);
  --warm: oklch(0.68 0.14 60);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-overflow-scrolling: touch;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ============ Base typography (so bare tags never fall back to ugly defaults) ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(40px, 5vw, 62px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); }
h4 { font-size: 20px; letter-spacing: -0.012em; }
p  { margin: 0 0 1em; line-height: 1.65; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* italic-accent helper for display headings */
.ital { font-style: italic; color: var(--accent-ink); }

/* Generic page scaffold used by the simpler routes */
.page { padding: 80px 0 96px; }
.page-head { max-width: 760px; margin: 0 0 52px; }
.page-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}
.page-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
  max-width: 58ch;
}

/* ============ Buttons / chips used across pages ============ */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 15px;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}
.btn-link:hover {
  border-color: color-mix(in oklch, var(--accent) 45%, var(--line));
  color: var(--accent-ink);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.btn-link.solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-link.solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

/* Homepage social/contact links use neutral icons instead of the green palette. */
.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-socials .social-link {
  color: var(--ink-2);
  background: #fff;
  border-color: #dfe5ec;
  box-shadow: 0 10px 26px -22px rgba(15, 23, 42, 0.45);
}
.hero-socials .social-link:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #f8fbff;
}
.hero-socials .social-link svg,
.hero-email-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Email shown as an inviting contact line. */
.hero-email {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-email:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.hero-email-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 620px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 16px 34px -30px rgba(15, 23, 42, 0.52);
}
.hero-email-card:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #f8fbff;
}
.email-inline {
  font-family: var(--mono);
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent-ink);
  white-space: nowrap;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.chip.small { font-size: 10.5px; padding: 3px 9px; }

/* ============ Layout ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* ── Banyan tree SVG ── */
.nav-brand .brand-tree {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Realistic Tree Colors */
.tree-ground {
  stroke: #6E473B;
}
.tree-trunk, .tree-branches, .tree-twigs {
  fill: #6E473B;
  stroke: #6E473B;
}
.tree-roots {
  stroke: #6E473B;
  opacity: 0.6;
}
.tree-canopy {
  opacity: 0.95;
}
/* Alternating canopy greens for 24 circles */
.tree-canopy.c1, .tree-canopy.c3, .tree-canopy.c5, .tree-canopy.c7, .tree-canopy.c9, .tree-canopy.c11, .tree-canopy.c13, .tree-canopy.c15, .tree-canopy.c17, .tree-canopy.c19, .tree-canopy.c21, .tree-canopy.c23 {
  fill: #3B5B43;
}
.tree-canopy.c2, .tree-canopy.c4, .tree-canopy.c6, .tree-canopy.c8, .tree-canopy.c10, .tree-canopy.c12, .tree-canopy.c14, .tree-canopy.c16, .tree-canopy.c18, .tree-canopy.c20, .tree-canopy.c22, .tree-canopy.c24 {
  fill: #4A7C59;
}

/* Dynamic scroll acceleration */
.tree-ground, .tree-trunk, .tree-branches, .tree-twigs, .tree-canopy, .tree-roots {
  animation-duration: calc(15s / (1 + var(--scroll-pct, 0) * 12)) !important;
}

/* Stage 1: Ground line appears */
.tree-ground {
  animation: tree-fade-in 15s ease both;
}

/* Stage 2: Trunk grows */
.tree-trunk {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: tree-draw-trunk 15s ease both;
}
@keyframes tree-draw-trunk {
  0%, 5%   { stroke-dashoffset: 40; opacity: 0; }
  10%      { opacity: 1; }
  30%      { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 0; }
}

/* Stage 3: Spreading branches grow */
.tree-branches {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: tree-draw-branches 15s ease both;
}
@keyframes tree-draw-branches {
  0%, 25%  { stroke-dashoffset: 120; opacity: 0; }
  30%      { opacity: 1; }
  60%      { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 0; opacity: 1; }
}

/* Stage 3.5: Twigs grow directly from branches to connect leaves */
.tree-twigs {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: tree-draw-twigs 15s ease both;
}
@keyframes tree-draw-twigs {
  0%, 45%  { stroke-dashoffset: 80; opacity: 0; }
  50%      { opacity: 1; }
  72%      { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 0; opacity: 1; }
}

/* Stage 4: Canopy foliage blooms */
.tree-canopy {
  transform-origin: center center;
  transform: scale(0);
  animation: tree-bloom-canopy 15s ease both;
}
@keyframes tree-bloom-canopy {
  0%, 60%  { transform: scale(0); opacity: 0; }
  70%      { transform: scale(0.6); opacity: 0.7; }
  85%      { transform: scale(1.08); opacity: 1; }
  90%, 100% { transform: scale(1); opacity: 1; }
}
/* Staggered bloom for 24 clusters */
.tree-canopy.c1  { animation-delay: 0.05s; }
.tree-canopy.c2  { animation-delay: 0.15s; }
.tree-canopy.c3  { animation-delay: 0.25s; }
.tree-canopy.c4  { animation-delay: 0.2s; }
.tree-canopy.c5  { animation-delay: 0.1s; }
.tree-canopy.c6  { animation-delay: 0.3s; }
.tree-canopy.c7  { animation-delay: 0.22s; }
.tree-canopy.c8  { animation-delay: 0.12s; }
.tree-canopy.c9  { animation-delay: 0.07s; }
.tree-canopy.c10 { animation-delay: 0.28s; }
.tree-canopy.c11 { animation-delay: 0.18s; }
.tree-canopy.c12 { animation-delay: 0.32s; }
.tree-canopy.c13 { animation-delay: 0.09s; }
.tree-canopy.c14 { animation-delay: 0.35s; }
.tree-canopy.c15 { animation-delay: 0.27s; }
.tree-canopy.c16 { animation-delay: 0.14s; }
.tree-canopy.c17 { animation-delay: 0.24s; }
.tree-canopy.c18 { animation-delay: 0.38s; }
.tree-canopy.c19 { animation-delay: 0.11s; }
.tree-canopy.c20 { animation-delay: 0.29s; }
.tree-canopy.c21 { animation-delay: 0.21s; }
.tree-canopy.c22 { animation-delay: 0.06s; }
.tree-canopy.c23 { animation-delay: 0.16s; }
.tree-canopy.c24 { animation-delay: 0.31s; }

/* Stage 5: Hanging aerial roots descend */
.tree-roots {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: tree-roots-descend 15s ease both;
}
@keyframes tree-roots-descend {
  0%, 80%  { stroke-dashoffset: 40; opacity: 0; }
  85%      { opacity: 0.4; }
  98%, 100% { stroke-dashoffset: 0; opacity: 0.6; }
}

/* Universal fade-in */
@keyframes tree-fade-in {
  0%       { opacity: 0; }
  5%       { opacity: 1; }
  100%     { opacity: 1; }
}

/* Hover: gentle sway */
.nav-brand:hover .brand-tree {
  animation: tree-sway 1.2s ease-in-out;
}
@keyframes tree-sway {
  0%   { transform: rotate(0); }
  25%  { transform: rotate(3deg); }
  50%  { transform: rotate(-2deg); }
  75%  { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

/* ── GSK monogram — Fraunces font, medium upright ── */
.nav-brand .brand-monogram {
  font-family: "Fraunces", "Instrument Serif", "Georgia", serif;
  font-size: 24px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color .18s ease, background .18s ease;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: visible;
  padding: 24px 0 52px;
  background:
    radial-gradient(ellipse 55% 60% at 78% 18%, oklch(0.97 0.025 150) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 8% 80%, oklch(0.975 0.02 150) 0%, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 18%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}
h1.hero-name {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 400;
}
h1.hero-name .italic { font-style: italic; color: var(--accent-ink); }
/* pronunciation + nickname line — sits right under the name */
.hero-pronounce {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.hero-pronounce em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-size: 1.08em;
}
.hero-pronounce .hp-dot { color: var(--ink-4); }
.hero-pronounce .hp-call strong {
  color: var(--accent-ink);
  font-weight: 600;
}
.hero-role {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-role .at {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 400;
  font-size: 19px;
}
.hero-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 56ch;
}
.hero-bio em { font-family: var(--serif); font-style: italic; color: var(--accent-ink); font-size: 1.05em; }
.hero-bio a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hero-bio-highlight {
  color: var(--ink-2);
  font-weight: 500;
  background: color-mix(in oklch, var(--warm) 8%, #fff);
  border-left: 3px solid color-mix(in oklch, var(--warm) 48%, var(--line));
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
.hero-bio-highlight a {
  color: color-mix(in oklch, var(--warm) 64%, var(--ink));
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: all .15s ease;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink-4); transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn svg { width: 15px; height: 15px; }

/* Hero 3D scene canvas */
.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
  margin-left: auto;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-canvas-frame {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, #fafbfc 60%, #f4f6fa 100%);
  overflow: hidden;
}
.hero-canvas-frame::before, .hero-canvas-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-canvas-frame::before {
  inset: 0;
  background:
    linear-gradient(transparent 0, transparent calc(100% - 1px), color-mix(in oklch, var(--accent) 12%, transparent) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, color-mix(in oklch, var(--ink) 4%, transparent) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, color-mix(in oklch, var(--ink) 4%, transparent) 40px);
  opacity: .55;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}
.hero-canvas-meta {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  z-index: 3;
}
.hero-canvas-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
}
.hero-canvas-tag .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ============ Section heads ============ */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line-2);
}
.section.interests { padding-top: 44px; }
.section.no-border { border-top: none; }
.section.alt { background: var(--bg-soft); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  font-weight: 400;
  max-width: 22ch;
}
.section-title .italic { font-style: italic; color: var(--accent-ink); }
.section-sub {
  font-size: 15px;
  color: var(--ink-3);
  margin: 8px 0 0;
  max-width: 50ch;
  line-height: 1.5;
}

/* ============ Research interest grid ============ */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.interest-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}
.interest-card-link {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.interest-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
  box-shadow: 0 30px 60px -28px color-mix(in oklch, var(--accent) 22%, transparent);
}
.interest-card-link:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--accent) 45%, transparent);
  outline-offset: 4px;
}
.interest-card .glyph-wrap {
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.interest-card canvas { display: block; width: 100% !important; height: 100% !important; }
.interest-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  font-weight: 400;
}
.interest-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}
.interest-card .topics {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.interest-card .topic {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 7px;
}

/* ============ Research thrust deep cards ============ */
.thrust {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid var(--line-2);
}
.thrust:last-child { border-bottom: none; }
.thrust:nth-child(even) { grid-template-columns: 0.8fr 1.45fr; }
.thrust:nth-child(even) .thrust-media { order: 2; }
/* Research media window — a sliding gallery of clips/images (replaces 3D dioramas) */
.thrust-media { max-width: 380px; width: 100%; justify-self: center; }
.media-carousel { width: 100%; }
.mc-window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--t-accent) 16%, transparent);
}
.mc-track { display: flex; flex-wrap: nowrap; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.mc-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.mc-media { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg-soft); }
.mc-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--t-tint), transparent 60%), var(--bg-soft);
}
.mc-ph-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--t-accent); background: rgba(255, 255, 255, 0.85);
  border: 1px solid color-mix(in oklch, var(--t-accent) 26%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.mc-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 999px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .2s ease, color .15s ease, border-color .15s ease;
}
.mc-nav.prev { left: 10px; }
.mc-nav.next { right: 10px; }
.mc-window:hover .mc-nav { opacity: 1; }
.mc-nav:hover { color: var(--t-accent); border-color: var(--t-accent); }
.mc-caption { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 12px auto 0; min-height: 2.6em; text-align: center; max-width: 42ch; }
.mc-dots { display: flex; gap: 6px; margin-top: 10px; justify-content: center; }
.mc-dot {
  width: 7px; height: 7px; border-radius: 999px; padding: 0; border: none;
  background: var(--line); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.mc-dot.on { background: var(--t-accent); transform: scale(1.15); }
/* numbered title prefix + related-work links */
.thrust-num { color: var(--t-accent); font-style: italic; }
.thrust-links { display: flex; flex-wrap: wrap; gap: 22px 32px; margin-top: 24px; }
.tl-group { display: flex; flex-direction: column; gap: 1px; min-width: 210px; }
.tl-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 6px;
}
.thrust-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); padding: 7px 0;
  border-top: 1px solid var(--line-2); transition: color .15s ease, padding-left .15s ease;
}
.thrust-link:hover { color: var(--t-accent); padding-left: 5px; }
.thrust-link .arr { color: var(--t-accent); transition: transform .15s ease; }
.thrust-link:hover .arr { transform: translateX(3px); }
.thrust-body .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-ink);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.thrust-body h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 42px);
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 400;
}
.thrust-body p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 58ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.thrust-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 24px;
}
.thrust-keyword {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ============ Publications ============ */
.pubs-list { display: flex; flex-direction: column; }
.pub {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.pub:hover h4 { color: var(--accent-ink); }
.pub-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding-top: 4px;
}
.pub h4 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 400;
  transition: color .15s ease;
}
.pub-authors {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 6px;
  line-height: 1.5;
}
.pub-authors .me {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
}
.pub-venue {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
}
.pub-actions {
  display: flex;
  gap: 6px;
  align-items: start;
  padding-top: 4px;
}
.pub-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pub-chip.featured {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: color-mix(in oklch, var(--accent) 20%, transparent);
}

.tab-bar {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.tab-bar button {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 7px;
  transition: all .15s ease;
}
.tab-bar button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* ============ Updates / Timeline ============ */
.updates {
  position: relative;
  padding-left: 24px;
}
.updates::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.update {
  position: relative;
  padding: 14px 0 14px 28px;
}
.update::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 13px; height: 13px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px #fff;
}
.update.fresh::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 13px; height: 13px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  animation: ping 2s ease-out infinite;
}
.update-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.update-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
.update-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* ============ CV / Resume ============ */
.cv-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
}
.cv-row:first-child { border-top: none; }
.cv-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.cv-role {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  font-weight: 400;
}
.cv-org {
  font-size: 14px;
  color: var(--accent-ink);
  font-weight: 500;
  margin: 0 0 8px;
}
.cv-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  max-width: 70ch;
}
.cv-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cv-stat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.cv-stat strong { color: var(--ink); font-weight: 600; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.skill-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 10px;
  font-weight: 500;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip {
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  transition: all .15s ease;
}
.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

/* ============ Blog ============ */
.blog-hero {
  padding: 80px 0 40px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -28px color-mix(in oklch, var(--accent) 22%, transparent);
  border-color: color-mix(in oklch, var(--accent) 28%, var(--line));
}
.blog-card .cover {
  height: 130px;
  border-radius: 12px;
  margin: -8px -8px 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.blog-card .cover canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.blog-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); display: inline-block; }
.blog-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 400;
}
.blog-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.blog-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}
.blog-card .arrow svg {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.blog-card:hover .arrow svg { transform: translateX(4px); }

/* Blog reader */
.blog-reader {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 30px;
  transition: color .15s ease;
}
.blog-back:hover { color: var(--accent-ink); }
.blog-reader h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  font-weight: 400;
}
.blog-reader .reader-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-reader .cover-large {
  height: 280px;
  border-radius: 16px;
  margin: 24px 0 40px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.blog-reader .cover-large canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.blog-reader article {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
}
.blog-reader article p { margin: 0 0 22px; }
.blog-reader article h2 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 16px;
  font-weight: 400;
}
.blog-reader article h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 12px;
  font-weight: 400;
}
.blog-reader article blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  border-radius: 0 10px 10px 0;
}
.blog-reader article code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}
.blog-reader article ul { padding-left: 22px; margin: 0 0 22px; }
.blog-reader article li { margin-bottom: 8px; }

/* ============ Contact ============ */
.contact.page, .about.page {
  padding: clamp(36px, 6vh, 64px) 0 clamp(28px, 4vh, 44px);
}
.contact .page-head, .about .page-head {
  margin-bottom: clamp(24px, 4vh, 38px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.contact-links { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
  color: var(--ink);
  transition: padding .15s ease;
}
.contact-link:hover { padding-left: 8px; }
.contact-link .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 18px;
  min-width: 70px;
  display: inline-block;
}
.contact-link .arrow {
  color: var(--ink-4);
  transition: transform .2s ease, color .2s ease;
}
.contact-link:hover .arrow { color: var(--accent-ink); transform: translateX(4px); }

/* ============ Footer ============ */
.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-4);
}
.footer .mono { font-family: var(--mono); }

/* ============ Section reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(.16,.7,.2,1), transform 1s cubic-bezier(.16,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .thrust, .thrust:nth-child(even) { grid-template-columns: 1fr; }
  .thrust:nth-child(even) .thrust-media { order: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-canvas-wrap { margin: 0 auto; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub-actions { display: none; }
  .cv-row { grid-template-columns: 1fr; gap: 8px; }
  .skills-grid { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: 1fr; justify-content: center; }
  .interest-card { max-width: 380px; margin: 0 auto; }
  .hero { padding: 50px 0 60px; }
  .section { padding: 56px 0; }
}

/* Mobile menu toggle */
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .menu-btn { display: block; }
}

/* ============ Hero photo ============ */
.hero-photo-wrap {
  position: relative;
  max-width: 400px;
  margin-left: auto;
}
.hero-photo-bg {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--accent-soft), oklch(0.95 0.04 150));
  border: 1px solid var(--line-2);
}
.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  z-index: 1;
}
.hero-drone {
  position: absolute;
  top: -56px;
  right: -34px;
  width: 150px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
}
.hero-photo-caption {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: right;
}
.hero-parade {
  position: absolute;
  top: -96px;
  left: -10px;
  right: -10px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

/* ============ Journey (immersive pages) ============ */
.journey {
  position: relative;
  min-height: 100vh;
}
.journey::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, #fdf8e9 0%, transparent 60%),
    linear-gradient(180deg, #edf6ee 0%, #f6faf4 45%, #ffffff 100%);
  pointer-events: none;
}
.j-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.j-canvas canvas { display: block; width: 100vw !important; height: 100vh !important; }
.j-progress {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  height: 2px;
  z-index: 50;
  background: transparent;
}
.j-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 244, 214, 0.9) 0%, rgba(255, 244, 214, 0) 22%),
    linear-gradient(180deg, #6fb1e8 0%, #a7d2f2 38%, #d8edfa 62%, rgba(255,255,255,0) 85%);
}
.j-progress-bar {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.j-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.j-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.j-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.j-title {
  font-family: var(--serif);
  font-size: clamp(56px, 10.5vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-weight: 400;
  color: var(--ink);
}
.j-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-ink);
  font-style: italic;
}
.j-lede {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 40px;
}
.j-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 10px 20px;
  border-radius: 99px;
  border: 1.5px solid color-mix(in oklch, var(--accent) 30%, transparent);
  box-shadow: 0 4px 15px color-mix(in oklch, var(--accent) 15%, transparent);
  width: fit-content;
  font-weight: 600;
  margin-top: 10px;
  animation: jCuePulse 2s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.j-cue .j-mouse-scroll {
  opacity: 1;
}
.j-cue-line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: visible;
}
.j-cue-line::after {
  content: "";
  position: absolute;
  right: -1px; top: -2.5px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: cueSlide 2s ease-in-out infinite;
}
@keyframes cueSlide {
  0%, 100% { transform: translateX(-44px); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: translateX(0); opacity: 1; }
  90% { opacity: 0; }
}

.j-trail-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none; /* purely visual scroll cue */
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.j-trail-icon {
  color: var(--accent-ink);
  opacity: 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
}

.j-trail-track {
  width: 2px;
  height: 180px;
  background: rgba(95, 167, 99, 0.15);
  position: relative;
  border-radius: 99px;
}

.j-trail-progress {
  width: 100%;
  background: var(--accent);
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top;
  border-radius: 99px;
  box-shadow: 0 0 6px var(--accent);
}

.j-trail-node {
  width: 6px;
  height: 6px;
  background: var(--bg);
  border: 1.5px solid var(--accent-ink);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.j-trail-node.start {
  top: -3px;
}

.j-trail-node.end {
  bottom: -3px;
}

.j-trail-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--accent);
  z-index: 2;
}

.j-mouse-scroll {
  width: 16px;
  height: 26px;
  border: 1.5px solid var(--accent-ink);
  border-radius: 8px;
  position: relative;
  opacity: 0.65;
  display: inline-block;
  vertical-align: middle;
}
.j-mouse-wheel {
  width: 3px;
  height: 6px;
  background: var(--accent-ink);
  border-radius: 1.5px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: j-scroll-ani 1.6s infinite ease-in-out;
}
@keyframes j-scroll-ani {
  0% { opacity: 0; transform: translate(-50%, 0); }
  20% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}



@keyframes jCuePulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 15px color-mix(in oklch, var(--accent) 12%, transparent);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px color-mix(in oklch, var(--accent) 28%, transparent);
    border-color: color-mix(in oklch, var(--accent) 70%, transparent);
  }
}

.j-section {
  min-height: 92vh;
  display: grid;
  align-content: center;
  padding: 12vh 0;
}
.j-zone {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
}
.j-zone-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
}
.j-zone-word {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-3);
  font-style: italic;
  white-space: nowrap;
}
.j-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px -30px rgba(30, 60, 40, 0.25);
  border-radius: 22px;
  padding: 14px 34px;
  max-width: 860px;
}
.j-card.wide { max-width: 100%; }
.j-outro {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  will-change: opacity, transform;
}
.j-outro-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 7vw, 110px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-ink);
}

/* journey blog cards */
.j-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
}
.j-blog-card {
  cursor: pointer;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.65);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.j-blog-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--accent) 28%, var(--line));
  box-shadow: 0 24px 50px -24px color-mix(in oklch, var(--accent) 25%, transparent);
}
.j-blog-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.j-blog-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.j-blog-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 10px;
  font-weight: 400;
}
.j-blog-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.j-blog-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}
.j-blog-card .arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }
.j-blog-card:hover .arrow svg { transform: translateX(4px); }

/* ============ Immersive fixed-world pages (Publications / Blog) ============ */
.iworld {
  position: relative;
  min-height: 100vh;
}
.iworld::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, #f3faf2 0%, transparent 60%),
    linear-gradient(180deg, #f3f9f1 0%, #fbfdfb 50%, #ffffff 100%);
  pointer-events: none;
}
.iw-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.iw-canvas canvas { display: block; width: 100vw !important; height: 100vh !important; }
.iw-content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px 90px;
}
.iw-hero { padding: 64px 0 34px; }
.iw-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}
.iw-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-ink);
  font-style: italic;
}
.iw-card {
  padding: 18px 34px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px -34px rgba(30, 60, 40, 0.22);
  border-radius: 20px;
  margin-bottom: 26px;
}
.iw-group { padding-top: 16px; }
.iw-group-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding: 12px 0 2px;
}
.iw-card .pub { grid-template-columns: 70px 1fr auto; gap: 20px; padding: 18px 0; }
.iw-card .pub h4 { font-size: 20px; }
.iw-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px 0;
}

/* ============ Globe (contact) ============ */
.globe-panel {
  position: relative;
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4faf5, #ffffff);
}
.globe-canvas { position: absolute; inset: 0; }
.globe-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.globe-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.globe-tag .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
.globe-meta {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.globe-legend { margin-top: 36px; }
.globe-legend-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.globe-legend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.globe-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.globe-chip.current {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-weight: 600;
}
.globe-chip.home {
  border-color: oklch(0.75 0.13 60);
  background: oklch(0.97 0.03 75);
}
.globe-chip .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

/* thrust media now hosts 3D dioramas */
.thrust-media {
  background: linear-gradient(160deg, #f2f8f3 0%, #ffffff 70%);
}
.thrust-media canvas { display: block; width: 100% !important; height: 100% !important; }

@media (max-width: 800px) {
  .j-blog-grid, .iw-blog-grid { grid-template-columns: 1fr; }
  .j-zone-word { white-space: normal; }
  .j-card { padding: 10px 20px; }
  .iw-card { padding: 8px 20px 14px; }
  .iw-card .pub { grid-template-columns: 1fr; gap: 6px; }
  .hero-drone { right: -8px; top: -48px; width: 110px; height: 90px; }
  .hero-parade { top: -78px; height: 96px; }
  .globe-panel { max-width: 420px; }
}

/* ===== Inline 3D scene containers (hero diorama, research dioramas, contact globe) ===== */
.hero-scene {
  position: relative;
  min-height: 440px;
  width: 100%;
}
.hero-scene > div { width: 100%; height: 100%; min-height: 440px; }

.thrust-img {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 10%, var(--bg-soft), transparent 70%);
}
.thrust-img > div { width: 100%; height: 100%; min-height: 340px; }

.contact-globe {
  --contact-globe-h: clamp(320px, 46vh, 420px);
  position: relative;
  min-height: var(--contact-globe-h);
  overflow: hidden;
}
.contact-globe > div {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: var(--contact-globe-h);
  cursor: grab;
}
/* The WebGL renderer calls setSize(w, h, false), which sets the canvas pixel
   buffer but NOT its CSS box. Without this rule the canvas displays at its
   intrinsic size (container × devicePixelRatio), so on HiDPI screens it renders
   ~2× too large and overflow:hidden crops it to a blank-looking corner. Force it
   to fill the host, exactly like every other 3D scene host does. */
.contact-globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.contact-globe-fallback {
  position: absolute;
  inset: 0 0 34px;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.contact-globe-earth {
  position: relative;
  display: block;
  width: min(76%, calc(var(--contact-globe-h) - 22px), 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: url("../attached_assets/earth-atmos-2048.jpg");
  background-size: 210% 100%;
  background-position: 58% center;
  box-shadow:
    inset -44px -18px 70px rgba(0, 22, 42, 0.45),
    inset 18px 8px 34px rgba(255, 255, 255, 0.2),
    0 30px 70px rgba(30, 88, 124, 0.22);
  animation: globeFallbackPan 42s linear infinite;
}
.contact-globe-earth::before,
.contact-globe-earth::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.contact-globe-earth::before {
  background:
    radial-gradient(circle at 32% 27%, rgba(255,255,255,0.34), transparent 24%),
    radial-gradient(circle at 70% 74%, rgba(0,0,0,0.22), transparent 42%);
  mix-blend-mode: soft-light;
}
.contact-globe-earth::after {
  background-image: url("../attached_assets/earth-clouds-1024.png");
  background-size: 210% 100%;
  background-position: 50% center;
  opacity: 0.34;
  animation: globeFallbackClouds 58s linear infinite;
}
.contact-globe-cap {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 8px;
}

@keyframes globeFallbackPan {
  from { background-position: 58% center; }
  to { background-position: -152% center; }
}
@keyframes globeFallbackClouds {
  from { background-position: 50% center; }
  to { background-position: -160% center; }
}

@media (min-width: 821px) and (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px;
  }
  .contact-globe { --contact-globe-h: clamp(300px, 42vh, 360px); }
  .contact-globe-earth { width: min(82%, calc(var(--contact-globe-h) - 18px), 320px); }
  .contact-link .label {
    min-width: 60px;
    margin-right: 12px;
  }
}

@media (max-width: 760px) {
  .hero-scene, .hero-scene > div { min-height: 340px; }
  .thrust-img, .thrust-img > div { min-height: 280px; }
  .contact.page, .about.page { padding-top: 34px; }
  .contact .page-head, .about .page-head { margin-bottom: 22px; }
  .contact-globe { --contact-globe-h: clamp(300px, 42vh, 360px); }
  .contact-globe-earth { width: min(84%, calc(var(--contact-globe-h) - 18px), 320px); }
}

/* ============ Hero photo gallery (with 3D scroller) ============ */
.hero-gallery {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
}
.hg-stage {
  position: relative;
  aspect-ratio: 4 / 5;   /* matches the portrait photos — no awkward cropping */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--accent-soft), #fff 65%);
  box-shadow: 0 30px 64px -38px color-mix(in oklch, var(--accent) 30%, transparent);
}
.hg-frame {
  position: absolute;
  inset: 0;
  display: flex;
}
.hg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s ease, transform 1.2s ease;
}
.hg-img.active { opacity: 1; transform: scale(1); }

/* Hero gallery dot navigation scroller */
/* Hero gallery dot navigation scroller (styled as a wooden twig and sprouting leaves) */
.hg-dots {
  position: relative;
  width: 140px;
  height: 24px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
}
.hg-twig-svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
/* Leaf sprouting effect for dots */
.hg-dot {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1;
  transform: translate(-50%, calc(-50% + var(--y, 0px))) rotate(var(--rot, 0deg)) scale(1);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hg-dot:hover {
  transform: translate(-50%, calc(-50% + var(--y, 0px))) rotate(var(--rot, 0deg)) scale(1.18);
}
.hg-dot.active {
  transform: translate(-50%, calc(-50% + var(--y, 0px))) rotate(var(--rot, 0deg)) scale(1.4);
  z-index: 2;
}

/* ============ Naturistic Leaf & Twig Navigation Controls ============ */

/* Base container for thumbnail rail to absolute position the side buttons */
.trips-rail-container {
  position: relative;
  margin-top: 14px;
}

/* Base style for leaf navigation buttons */
.trips-nav-btn, .tl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 10;
  padding: 0;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trips-nav-btn.prev, .tl-nav.prev {
  left: 12px;
}
.trips-nav-btn.prev {
  left: -20px;
}
.tl-nav.prev {
  left: 24px;
}

.trips-nav-btn.next, .tl-nav.next {
  right: 12px;
}
.trips-nav-btn.next {
  right: -20px;
}
.tl-nav.next {
  right: 24px;
}

/* Background leaf svg styling inside navigation buttons */
.btn-leaf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

/* Flip the left-pointing leaf backgrounds */
.trips-nav-btn.prev .btn-leaf-bg, .tl-nav.prev .btn-leaf-bg {
  transform: scaleX(-1) rotate(15deg);
}
.trips-nav-btn.next .btn-leaf-bg, .tl-nav.next .btn-leaf-bg {
  transform: rotate(-15deg);
}

/* Hover effects for buttons */
.trips-nav-btn.prev:hover, .tl-nav.prev:hover {
  transform: translateY(-50%) scale(1.12) rotate(-5deg);
}
.trips-nav-btn.next:hover, .tl-nav.next:hover {
  transform: translateY(-50%) scale(1.12) rotate(5deg);
}

/* SVG Arrow alignment & effects (sitting on top of the leaf vector) */
.trips-nav-btn svg:not(.btn-leaf-bg), .tl-nav svg:not(.btn-leaf-bg) {
  width: 20px;
  height: 20px;
  color: #ffffff;
  filter: drop-shadow(0 1.5px 2px rgba(0,0,0,0.55));
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}
.trips-nav-btn.prev:hover svg:not(.btn-leaf-bg), .tl-nav.prev:hover svg:not(.btn-leaf-bg) {
  transform: translateX(-3px);
}
.trips-nav-btn.next:hover svg:not(.btn-leaf-bg), .tl-nav.next:hover svg:not(.btn-leaf-bg) {
  transform: translateX(3px);
}

/* Hide thumbnail rail arrows and hide scrollbars */
.trips-rail {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.trips-rail::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 600px) {
  .trips-nav-btn {
    display: none !important;
  }
}

/* Custom Twig & Leaf Scroll Bar */
.trips-scroll-track {
  position: relative;
  width: min(85%, 320px);
  height: 32px;
  margin: 20px auto 8px;
  display: flex;
  align-items: center;
}

.trips-scroll-twig-svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.trips-scroll-leaves {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.trips-scroll-leaf-dot {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transform: translate(-50%, calc(-50% + var(--y, 0px))) rotate(var(--rot, 0deg)) scale(1);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.trips-scroll-leaf-dot:hover {
  transform: translate(-50%, calc(-50% + var(--y, 0px))) rotate(var(--rot, 0deg)) scale(1.2);
  z-index: 4;
}
.trips-scroll-leaf-dot.active {
  transform: translate(-50%, calc(-50% + var(--y, 0px))) rotate(var(--rot, 0deg)) scale(1.45);
  z-index: 5;
}

/* Beautiful organic drop-shadow and glowing aura filter for realistic SVGs */
.leaf-svg-icon {
  filter: drop-shadow(0 1.5px 2px rgba(0,0,0,0.3));
  transition: filter 0.2s ease;
}
.active .leaf-svg-icon {
  filter: drop-shadow(0 2px 3.5px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 5px rgba(162, 230, 69, 0.45));
}
/* ============ Home: merged CV / About section ============ */
.home-cv { border-top: 1px solid var(--line-2); }
.cv-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.cv-col h3.cv-col-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 8px;
}
.cv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.cv-col .cv-row { grid-template-columns: 1fr; gap: 5px; padding: 18px 0; }
.cv-col .cv-row:first-of-type { border-top: none; padding-top: 0; }
.cv-col .cv-date { color: var(--ink-4); }
.cv-col .cv-role { font-size: 20px; margin-top: 2px; }

/* ============ Research thrust color theming + resources ============ */
.thrust { --t-accent: var(--accent); --t-tint: var(--accent-soft); }
.thrust-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--t-accent);
  margin: 0 0 14px;
}
.thrust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-accent);
  background: var(--t-tint);
  border: 1px solid color-mix(in oklch, var(--t-accent) 26%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.thrust-badge .b-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--t-accent);
}
.thrust-body h3 { color: var(--ink); }
.thrust:hover .thrust-body h3 { color: var(--t-accent); }
.thrust-keyword { transition: border-color .15s ease, color .15s ease, background .15s ease; }
.thrust:hover .thrust-keyword { border-color: color-mix(in oklch, var(--t-accent) 30%, var(--line)); }
.thrust-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}
.thrust-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  min-width: 120px;
}
.thrust-stat .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: 3px;
}
.thrust-stat .v {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--t-accent);
}
.thrust-resources {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}
.thrust-resource {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
  transition: color .15s ease, padding-left .15s ease;
}
.thrust-resource:hover { color: var(--t-accent); padding-left: 6px; }
.thrust-resource .arr { color: var(--t-accent); transition: transform .15s ease; }
.thrust-resource:hover .arr { transform: translateX(3px); }

/* ============ Publications: grouped view + linked rows ============ */
.pub-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 42px 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pub-group-head:first-child { margin-top: 0; }
.pub-group-head h2 {
  font-size: 26px;
  margin: 0;
}
.pub-group-head .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.pub.linked { cursor: pointer; }
.pub h4 a { transition: color .15s ease; }
.pub .pub-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* rich publication cards (image + overview + links) */
.pub-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.pub-card:last-child { border-bottom: none; }
.pub-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  align-self: start;
}
/* Versatile media window — any aspect ratio (wide video, tall figure, square)
   fits fully: never cropped, never stretched. The media keeps its natural ratio
   up to a height cap; anything taller is letterboxed onto the soft background. */
.pub-thumb img,
.pub-thumb video {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  background: var(--bg-soft);
  transition: transform .5s ease;
}
/* Papers without a figure get the placeholder art on a fixed 4:3 cover. */
.pub-thumb.is-placeholder { aspect-ratio: 4 / 3; }
.pub-thumb .pub-ph-art { width: 100%; height: 100%; display: block; transition: transform .5s ease; }
.pub-card:hover .pub-thumb .pub-ph-art { transform: scale(1.04); }
.pub-card:hover .pub-thumb img,
.pub-card:hover .pub-thumb video { transform: scale(1.04); }
.pub-feat {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); background: rgba(255,255,255,0.92);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  padding: 3px 7px; border-radius: 999px;
}
.pub-main { min-width: 0; }
.pub-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pub-meta-row .pub-year { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding: 0; letter-spacing: 0.04em; }
.pub-meta-row .pub-kind {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.pub-card h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.22; margin: 0 0 8px; transition: color .15s ease; }
.pub-card:hover h4 { color: var(--accent-ink); }
.pub-overview { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 10px 0 12px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pub-linkbtn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.pub-linkbtn .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-4); }
.pub-linkbtn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.pub-linkbtn.paper .dot, .pub-linkbtn.preprint .dot { background: #2f6df0; }
.pub-linkbtn.github .dot { background: #6e5494; }
.pub-linkbtn.video .dot { background: #e0832c; }
.pub-linkbtn.blog .dot { background: var(--accent); }
.pub-linkbtn.scholar .dot { background: #1d7547; }
@media (max-width: 640px) {
  .pub-card { grid-template-columns: 1fr; gap: 14px; }
  .pub-thumb { max-width: 220px; }
}

/* ============ Milestones grouped by year ============ */
.timeline-year {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
}
.timeline-year:first-of-type { border-top: none; }
.ty-label {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  color: transparent;
  -webkit-text-stroke: 1.4px var(--accent-ink);
  font-style: italic;
  position: sticky;
  top: 90px;
  line-height: 1;
}
.ty-items { display: flex; flex-direction: column; gap: 4px; }
.ms-item {
  position: relative;
  padding: 14px 0 14px 26px;
  border-left: 1px solid var(--line);
}
.ms-item::before {
  content: "";
  position: absolute;
  left: -6px; top: 19px;
  width: 11px; height: 11px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--accent);
}
.ms-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.ms-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.ms-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 20%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
}
.ms-text { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ============ Milestones: per-year card + closing credo ============ */
.year-card { max-width: 700px; }
.year-card .ms-item:first-child { padding-top: 4px; }
.credo {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  padding: 36px 44px;
  /* Clean opaque panel — no backdrop-filter, which rendered a bad blurred copy
     of the WebGL hills as a middle layer between the card and the animation. */
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 24px 60px -28px rgba(15, 35, 20, 0.22);
  will-change: opacity, transform;
}
.credo-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 18px;
}
.credo-by {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  font-style: normal;
}

/* ============ Nature page backgrounds (About + main Blog) ============ */
.nature-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.nature-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 42% at 75% 0%, rgba(186, 230, 253, 0.36), transparent 74%),
    radial-gradient(ellipse 44% 32% at 12% 78%, rgba(187, 247, 208, 0.30), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 58%, #f7fff9 100%);
}
.nature-content,
.nature-page > .container,
.nature-page > section,
.nature-page .container,
.nature-page .trips {
  position: relative;
  z-index: 2;
}
.nature-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.74;
}
.maple-leaf {
  --leaf-size: 30px;
  --leaf-color: #5fa763;
  color: var(--leaf-color);
  position: absolute;
  top: -12%;
  left: var(--x, 50%);
  width: var(--leaf-size);
  height: calc(var(--leaf-size) * 1.24);
  background: none;
  filter: drop-shadow(0 12px 14px rgba(20, 83, 45, 0.18));
  transform-origin: 50% 40%;
  animation: leafFall var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.maple-leaf svg { display: block; width: 100%; height: 100%; overflow: visible; }
.leaf-blade { fill: currentColor; opacity: 0.94; }
.leaf-veins {
  fill: none;
  stroke: color-mix(in oklch, currentColor 38%, #ecfdf5);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
.leaf-stem { fill: #7a5b3e; opacity: 0.82; }
.leaf-1 { --x: 6%; --dur: 19s; --delay: -2s; --leaf-size: 25px; --leaf-color: #5fa763; }
.leaf-2 { --x: 14%; --dur: 23s; --delay: -12s; --leaf-size: 34px; --leaf-color: #66ab5e; }
.leaf-3 { --x: 22%; --dur: 17s; --delay: -5s; --leaf-size: 23px; --leaf-color: #47885c; }
.leaf-4 { --x: 31%; --dur: 25s; --delay: -18s; --leaf-size: 32px; --leaf-color: #4e9e5f; }
.leaf-5 { --x: 40%; --dur: 20s; --delay: -9s; --leaf-size: 27px; --leaf-color: #5fa763; }
.leaf-6 { --x: 49%; --dur: 27s; --delay: -16s; --leaf-size: 38px; --leaf-color: #66ab5e; }
.leaf-7 { --x: 57%; --dur: 18s; --delay: -7s; --leaf-size: 24px; --leaf-color: #3f8f58; }
.leaf-8 { --x: 66%; --dur: 26s; --delay: -21s; --leaf-size: 34px; --leaf-color: #47885c; }
.leaf-9 { --x: 74%; --dur: 21s; --delay: -3s; --leaf-size: 28px; --leaf-color: #5fa763; }
.leaf-10 { --x: 82%; --dur: 24s; --delay: -14s; --leaf-size: 25px; --leaf-color: #8fc177; }
.leaf-11 { --x: 90%; --dur: 19s; --delay: -10s; --leaf-size: 31px; --leaf-color: #4e9e5f; }
.leaf-12 { --x: 96%; --dur: 28s; --delay: -23s; --leaf-size: 23px; --leaf-color: #5fa763; }
.leaf-13 { --x: 35%; --dur: 30s; --delay: -26s; --leaf-size: 22px; --leaf-color: #66ab5e; }
.leaf-14 { --x: 69%; --dur: 31s; --delay: -28s; --leaf-size: 29px; --leaf-color: #3f8f58; }
@keyframes leafFall {
  0% { transform: translate3d(0, -15vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.82; }
  45% { transform: translate3d(42px, 50vh, 0) rotate(210deg); }
  75% { opacity: 0.72; }
  100% { transform: translate3d(72px, 118vh, 0) rotate(430deg); opacity: 0; }
}
.mountain-3d {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(128px, 14vw, 195px);
  margin-top: clamp(28px, 5vw, 72px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
}
.mountain-3d canvas {
  display: block; width: 100% !important; height: 100% !important;
  will-change: contents;
  image-rendering: optimizeQuality;
}
.about-nature-page .mountain-3d { margin-top: clamp(20px, 3vw, 44px); }
/* The mountain band is the page's own footer here — run it flush to the bottom. */
.blog-nature-page { padding-bottom: 0; }

/* Page-specific mountain overrides */
.mountain-home { margin-top: clamp(32px, 4vw, 64px); height: clamp(135px, 15vw, 210px); }
.mountain-research { margin-top: clamp(24px, 3vw, 52px); }
.mountain-publications { margin-top: clamp(20px, 3vw, 48px); }
.mountain-milestones { position: relative; z-index: 2; margin-top: clamp(16px, 2vw, 40px); }
.mountain-blog-reader { margin-top: clamp(36px, 4vw, 64px); }
.blog-reader + .mountain-3d { margin-top: clamp(36px, 4vw, 64px); }
.research + .mountain-3d { margin-top: clamp(28px, 3vw, 56px); }
.publications ~ .mountain-3d { margin-top: 0; }

/* ============ Blog (clean, non-immersive) + minimal motion ============ */
.blog-page { padding: 80px 0 96px; }
.blog-page.blog-nature-page { padding-bottom: 0; }
.blog-page .blog-grid { margin-top: 44px; }
.blog-aurora {
  position: absolute;
  top: -42%; right: -32%;
  width: 72%; height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 28%, transparent), transparent 70%);
  filter: blur(26px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: auroraFloat 9s ease-in-out infinite;
}
.blog-card:hover .blog-aurora { opacity: 0.95; }
.blog-card > .meta, .blog-card > h3, .blog-card > p, .blog-card > .arrow { position: relative; z-index: 1; }
@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 12px) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-aurora, .maple-leaf { animation: none; }
  .maple-leaf { display: none; }
}

@media (max-width: 900px) {
  .cv-columns { grid-template-columns: 1fr; gap: 36px; }
  .hero-gallery { margin: 0 auto; }
}
@media (max-width: 640px) {
  .timeline-year { grid-template-columns: 1fr; gap: 6px; }
  .ty-label { position: static; }
}

/* ===== About — single text column with the globe to its right ===== */
.about-combined {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 52px);
}
.about-intro { max-width: 56ch; }
.about-intro p {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.about-intro p:last-child { margin-bottom: 0; }
.about-intro em { font-style: italic; color: var(--accent-ink); }
.about-wink { color: var(--accent-ink); font-weight: 600; }
.about-combined .contact-globe {
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (max-width: 820px) {
  .about-combined {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: clamp(20px, 5vw, 32px);
  }
}

/* ===== Trip gallery — horizontal scroll strip (mixed sizes) + fitted lightbox ===== */
.section.trips { padding-top: clamp(10px, 2vh, 24px); }
.trips-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  margin-top: 6px;
}
.trips-lede {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 56ch;
  margin-top: 10px;
}

/* ----- Featured (big, newest by default) ----- */
.trips-featured {
  position: relative;
  height: clamp(300px, 56vh, 560px);
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0e12;
  cursor: pointer;
}
.trips-featured img,
.trips-featured video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* full media, any aspect ratio, no crop */
  display: block;
}
.tf-zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 2;
}
.tf-zoom svg { width: 16px; height: 16px; }
.trips-featured:hover .tf-zoom,
.trips-featured:focus-visible .tf-zoom { opacity: 1; transform: scale(1); }
.trips-featured:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tf-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 50px 24px 20px;
  background: linear-gradient(transparent, rgba(8, 12, 16, 0.86));
  color: #fff;
  pointer-events: none;
}
.tf-sub {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.trip-dot { color: rgba(255, 255, 255, 0.5); font-size: 9px; }
.tf-title { font-family: var(--serif); font-size: clamp(20px, 3vw, 30px); line-height: 1.1; }
.tf-desc { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 75%; }

/* ----- Thumbnail rail ----- */
.trips-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 14px;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.trips-rail.dragging { cursor: grabbing; }
.trips-rail::-webkit-scrollbar { height: 7px; }
.trips-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.trip-thumb {
  flex: 0 0 auto;
  position: relative;
  width: 132px;
  height: 86px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg-soft);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.trip-thumb img,
.trip-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.trip-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.trip-thumb.active { opacity: 1; border-color: var(--accent); }
.tt-when {
  position: absolute;
  left: 7px; bottom: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.tt-vid {
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  padding-left: 1px;
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.6);
  color: #fff;
  font-size: 8px;
}
@media (max-width: 540px) {
  .trip-thumb { width: 116px; height: 76px; }
}

/* lightbox — always fits the viewport, never scrolls */
.trip-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 12, 16, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 44px);
  overflow: hidden;
  animation: tlFade .2s ease;
}
@keyframes tlFade { from { opacity: 0; } to { opacity: 1; } }
.tl-figure {
  margin: 0;
  max-width: min(94vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0b0e12;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
/* image/video capped so it + the caption always stay within the screen height */
.tl-figure img,
.tl-figure video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}
.tl-figure figcaption {
  flex: 0 0 auto;
  background: var(--bg);
  padding: 14px 20px 16px;
}
.tl-head { display: flex; align-items: center; gap: 10px; }
.tl-head .trip-tag.static { position: static; }
.tl-place {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.tl-when {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.tl-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; margin-top: 8px; }
.tl-desc { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin-top: 6px; max-width: 75%; }
.tl-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 42px; height: 42px;
  font-size: 26px; line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease;
  z-index: 2;
}
.tl-close:hover { background: rgba(255, 255, 255, 0.26); }
.tl-nav {
  /* Inherits styles from .hg-nav-btn / .tl-nav base leaf button classes */
}
@media (max-width: 560px) {
  .tl-nav { top: auto; bottom: 16px; transform: none !important; }
  .tl-nav.prev { left: 30%; }
  .tl-nav.next { right: 30%; }
  .tl-nav:hover { transform: scale(1.12) !important; }
  .tl-nav.prev:hover { transform: scale(1.12) rotate(-5deg) !important; }
  .tl-nav.next:hover { transform: scale(1.12) rotate(5deg) !important; }
  .tl-figure img { max-height: 62vh; }
}

/* ============ Recent Milestones Card-based Section ============ */
.recent-milestones {
  padding: 44px 0 38px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background 0.3s ease;
}
.recent-milestones:hover {
  background: color-mix(in oklch, var(--accent-soft) 25%, var(--bg-soft));
}
.milestones-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.milestone-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}
.milestone-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.05), 0 0 8px rgba(126, 189, 38, 0.06);
}
.mc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.mc-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.mc-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 500;
}
.mc-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.15;
}
.mc-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
}
.milestones-more-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.milestones-more-link .btn-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  transition: color 0.3s ease, transform 0.3s ease;
}
.recent-milestones:hover .milestones-more-link .btn-link {
  color: var(--accent);
  transform: translateX(4px);
}

