/* ==========================================================================
   michaelkipkorir.com — Version 4 ("field journal edition")
   Design language: a researcher's field journal.
   Palette: Rift-Valley pine green / harvest gold / terracotta / parchment.
   Type: Fraunces (display serif) · Inter (body) · IBM Plex Mono (field labels)
   Journey: every page is a chapter; a next-chapter band turns the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Forest greens */
  --pine-950: #0B241E;
  --pine-975: #082019;
  --pine-900: #0F2E26;
  --pine-800: #143B30;
  --pine-700: #1B4A3C;
  --moss-600: #3E6B57;

  /* Parchment lights */
  --cream: #F4EEDC;
  --cream-deep: #EAE2CC;
  --paper: #FDFAF1;
  --ink: #1D2B25;
  --ink-soft: #4A5B53;
  --ink-body: #33443C;

  /* Harvest gold */
  --gold-600: #9A7118;
  --gold-500: #C2911F;
  --gold-400: #D9A836;
  --gold-300: #E9C268;
  --gold-wash: #F7ECCB;

  /* Terracotta */
  --terra-600: #99471F;
  --terra-500: #B4562E;
  --terra-400: #C9714E;
  --terra-wash: #F6E3D9;

  /* On-dark */
  --on-dark: #F4EEDC;
  --on-dark-muted: rgba(244, 238, 220, 0.72);
  --on-dark-faint: rgba(244, 238, 220, 0.55);
  --line: rgba(29, 43, 37, 0.16);
  --line-dark: rgba(244, 238, 220, 0.16);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* Texture data-URIs (contour lines, grain) */
  --contour-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='700' viewBox='0 0 1400 700'%3E%3Cg fill='none' stroke='%23D9A836' stroke-opacity='.09' stroke-width='1.4'%3E%3Cpath d='M-100 560 C 200 460 380 600 640 520 S 1080 460 1500 560'/%3E%3Cpath d='M-100 500 C 220 400 420 540 680 460 S 1100 400 1500 500'/%3E%3Cpath d='M-100 440 C 240 340 460 480 720 400 S 1120 340 1500 440'/%3E%3Cpath d='M-100 380 C 260 280 500 420 760 340 S 1140 280 1500 380'/%3E%3Cpath d='M-100 320 C 280 220 540 360 800 280 S 1160 220 1500 320'/%3E%3Cpath d='M-100 260 C 300 160 580 300 840 220 S 1180 160 1500 260'/%3E%3Cpath d='M-100 200 C 320 100 620 240 880 160 S 1200 100 1500 200'/%3E%3C/g%3E%3Cg fill='none' stroke='%237FA892' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M-100 620 C 240 540 400 660 700 590 S 1120 540 1500 620'/%3E%3Cpath d='M-100 160 C 300 60 600 200 900 120 S 1220 60 1500 160'/%3E%3C/g%3E%3C/svg%3E");
  --contour-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='700' viewBox='0 0 1400 700'%3E%3Cg fill='none' stroke='%231B4A3C' stroke-opacity='.08' stroke-width='1.4'%3E%3Cpath d='M-100 560 C 200 460 380 600 640 520 S 1080 460 1500 560'/%3E%3Cpath d='M-100 500 C 220 400 420 540 680 460 S 1100 400 1500 500'/%3E%3Cpath d='M-100 440 C 240 340 460 480 720 400 S 1120 340 1500 440'/%3E%3Cpath d='M-100 380 C 260 280 500 420 760 340 S 1140 280 1500 380'/%3E%3Cpath d='M-100 320 C 280 220 540 360 800 280 S 1160 220 1500 320'/%3E%3Cpath d='M-100 260 C 300 160 580 300 840 220 S 1180 160 1500 260'/%3E%3Cpath d='M-100 200 C 320 100 620 240 880 160 S 1200 100 1500 200'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");

  --shadow-lg: 0 26px 60px -22px rgba(11, 36, 30, 0.38);
  --shadow-md: 0 18px 38px -18px rgba(11, 36, 30, 0.26);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold-400); color: var(--pine-950); }

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 1200;
  background: var(--gold-500);
  color: var(--pine-950);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7em 1.1em;
  border-radius: 6px;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 14px; }

.container {
  width: min(100% - 2.6rem, 1170px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Utilities — kickers, sections, buttons, reveals, texture helpers
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
  opacity: 0.85;
}

.section { padding: clamp(4rem, 9vw, 6.8rem) 0; }
.section-alt { background: var(--cream-deep); }

.section-head { max-width: 680px; margin: 0 0 3rem; }
.section-head .kicker { margin-bottom: 0.9rem; }

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.55em;
  border-radius: 999px;
  background: var(--gold-500);
  border: 1px solid var(--gold-600);
  color: var(--pine-950);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(154, 113, 24, 0.6);
}
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

/* Ghost button for dark bands */
.btn-ghost {
  background: transparent;
  border-color: rgba(244, 238, 220, 0.38);
  color: var(--on-dark);
}
.btn-ghost:hover {
  background: rgba(244, 238, 220, 0.07);
  border-color: var(--gold-400);
  color: var(--gold-300);
  box-shadow: none;
}

/* Outline button for light surfaces */
.btn-outline {
  background: transparent;
  border-color: rgba(29, 43, 37, 0.3);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--paper);
  border-color: var(--gold-500);
  color: var(--gold-600);
  box-shadow: none;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-600);
  position: relative;
}
.more-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--gold-400);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.more-link:hover::after { transform: scaleX(1); }
.more-link .arrow { transition: transform 0.3s var(--ease-out); }
.more-link:hover .arrow { transform: translateX(5px); }

/* Reveal on scroll (JS-gated so no-JS visitors always see content) ------- */
html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(3px);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out), filter 0.7s ease;
  transition-delay: var(--d, 0ms);
}

/* Entrance animation for hero / page headers (pure CSS, safe without JS) -- */
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim {
  animation: rise 0.85s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 105ms);
}

@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(26px); opacity: 0; }
}

/* Grain overlay helper ---------------------------------------------------- */
.grain::after,
.texture-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

/* Functional hooks (copy button label, footer year) ----------------------- */
.copy-label { pointer-events: none; }
.js-year { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. Reading progress bar
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
}
.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400) 55%, var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 960;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  background: var(--pine-900);
  border: 1px solid var(--gold-600);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
}
.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  color: var(--on-dark);
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 238, 220, 0.78);
  padding: 0.4em 0;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover { color: var(--gold-300); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--gold-300); }

.nav-num { display: none; }

.nav-orcid {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid rgba(217, 168, 54, 0.55);
  border-radius: 999px;
  padding: 0.55em 1.05em !important;
  color: var(--gold-300) !important;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}
.nav-orcid::after { display: none; }
.nav-orcid:hover {
  background: rgba(217, 168, 54, 0.14);
  border-color: var(--gold-400);
  color: var(--gold-300) !important;
}
.id-badge {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--gold-400);
  color: var(--pine-950);
  border-radius: 3px;
  padding: 0.15em 0.35em;
  transform: translateY(-0.45em);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 970;
  padding: 10px 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--on-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease, background 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header scrolled state (cream glass over light content) */
.site-header.scrolled {
  background: rgba(251, 247, 236, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header.scrolled .brand-text { color: var(--ink); }
.site-header.scrolled .site-nav a { color: rgba(29, 43, 37, 0.75); }
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active { color: var(--gold-600); }
.site-header.scrolled .site-nav a::after { background: var(--gold-500); }
.site-header.scrolled .nav-orcid {
  border-color: var(--gold-500);
  color: var(--gold-600) !important;
}
.site-header.scrolled .nav-orcid:hover {
  background: var(--gold-wash);
  color: var(--gold-600) !important;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.site-header.scrolled .nav-toggle.open span { background: var(--on-dark); }

/* Header state while the mobile menu overlay is open */
.site-header.menu-open {
  background: var(--pine-950);
  border-bottom-color: transparent;
}
.site-header.menu-open .brand-text { color: var(--on-dark); }
.site-header.menu-open .site-nav a { color: rgba(244, 238, 220, 0.85); }
.site-header.menu-open .nav-toggle span { background: var(--on-dark); }

body.nav-open { overflow: hidden; }

/* Mobile nav overlay */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .brand-text { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 950;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 6.8rem 1.8rem 2.5rem;
    background:
      radial-gradient(900px 520px at 88% -8%, rgba(217, 168, 54, 0.16), transparent 62%),
      var(--pine-950);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.32s ease, transform 0.32s var(--ease-out), visibility 0s linear 0.32s;
  }
  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.32s ease, transform 0.32s var(--ease-out);
  }
  .site-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--contour-dark);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
  }
  .site-nav > a {
    position: relative;
    z-index: 2;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--on-dark) !important;
    padding: 0.32rem 0;
  }
  .site-nav > a::after { display: none; }
  .site-nav.open > a { animation: rise 0.5s var(--ease-out) both; }
  .site-nav.open > a:nth-child(1) { animation-delay: 0.05s; }
  .site-nav.open > a:nth-child(2) { animation-delay: 0.1s; }
  .site-nav.open > a:nth-child(3) { animation-delay: 0.15s; }
  .site-nav.open > a:nth-child(4) { animation-delay: 0.2s; }
  .site-nav.open > a:nth-child(5) { animation-delay: 0.25s; }
  .nav-num {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gold-500);
    margin-right: 0.9rem;
    transform: translateY(-1.1rem);
  }
  .nav-orcid {
    margin-top: 1.9rem;
    border-color: var(--gold-500) !important;
    color: var(--gold-300) !important;
    font-family: var(--mono) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
  }
}

/* --------------------------------------------------------------------------
   6. Hero (home cover)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(1250px 720px at 84% -12%, rgba(217, 168, 54, 0.17), transparent 62%),
    radial-gradient(900px 520px at -12% 112%, rgba(62, 107, 87, 0.28), transparent 60%),
    var(--pine-950);
  padding: clamp(6.5rem, 13vh, 9.5rem) 0 3.2rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  animation: drift 70s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-40px); }
  to { transform: translateX(40px); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.92fr);
  gap: clamp(2.6rem, 6vw, 5rem);
  align-items: start;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.1rem;
}
.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  transform: rotate(45deg);
  flex: none;
}

.hero h1 {
  font-size: clamp(3.05rem, 8.4vw, 6.7rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #F8F3E3;
  margin: 0 0 1.4rem;
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-300);
}

.hero-role {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 1.3rem;
}
.hero-role strong { color: var(--on-dark-faint); font-weight: 400; }

.hero-statement {
  font-size: 1.13rem;
  line-height: 1.72;
  color: rgba(244, 238, 220, 0.88);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2.1rem;
}

.profile-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
}
.profile-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-faint);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.profile-links a:hover { color: var(--gold-300); border-bottom-color: var(--gold-400); }
.profile-links .id-badge { margin-right: 0.4em; }

.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 4.2rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(233, 194, 104, 0.75);
}
.scroll-cue:hover { color: var(--gold-300); }
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--gold-300), transparent);
  animation: drop 2.4s var(--ease-out) infinite;
}

/* Profile card — the "specimen card" pinned with tape --------------------- */
.profile-card {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(29, 43, 37, 0.1);
  border-radius: 14px;
  padding: 1.9rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 78px;
  height: 21px;
  background: rgba(233, 194, 104, 0.88);
  box-shadow: 0 2px 6px rgba(11, 36, 30, 0.14);
  opacity: 0.92;
}
.profile-card::before { left: -19px; transform: rotate(-42deg); }
.profile-card::after { right: -19px; transform: rotate(42deg); }

.monogram {
  width: 92px;
  height: 92px;
  border-radius: 13px;
  background: var(--pine-900);
  border: 1px solid var(--gold-600);
  display: grid;
  place-items: center;
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 168, 54, 0.4);
  border-radius: 9px;
}
.monogram-text {
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-300);
}

.profile-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 1.05rem 0 0.2rem;
  letter-spacing: 0;
}
.profile-role {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0;
}
.monogram-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent 85%);
  margin: 1.15rem 0 0.9rem;
}
.profile-rows .row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}
.profile-rows .row:last-child { border-bottom: 0; }
.profile-rows dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  padding-top: 0.22rem;
}
.profile-rows dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.profile-rows dd a {
  color: var(--terra-600);
  text-decoration: underline;
  text-decoration-color: rgba(180, 86, 46, 0.35);
  text-underline-offset: 3px;
}
.profile-rows dd a:hover { text-decoration-color: var(--terra-500); }

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine-950);
  background: var(--gold-500);
  border: 1px solid var(--gold-600);
  border-radius: 999px;
  padding: 0.8em 1.3em;
  transition: background 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.cv-link:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(154, 113, 24, 0.65);
}
.monogram-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 1.05rem 0 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Marquee — the gold keyword band
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--gold-500);
  border-block: 1px solid var(--gold-600);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-seq {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  padding: 0.85rem 2.1rem 0.85rem 0;
  white-space: nowrap;
}
.m-item {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine-950);
}
.m-sep {
  width: 7px;
  height: 7px;
  background: rgba(11, 36, 30, 0.55);
  transform: rotate(45deg);
  flex: none;
}

/* --------------------------------------------------------------------------
   8. Cards grid (home research areas)
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.85rem 1.6rem 1.5rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 145, 31, 0.5);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-wash);
  border: 1px solid rgba(194, 145, 31, 0.35);
  color: var(--gold-600);
  margin-bottom: 1.1rem;
}
.card-num {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(154, 113, 24, 0.8);
}
.card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.card p {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--ink-soft);
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-600);
  position: relative;
  width: max-content;
}
.card-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1.5px;
  width: 100%;
  background: var(--gold-400);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.card-link:hover::after { transform: scaleX(1); }
.card-link .arrow { transition: transform 0.3s var(--ease-out); }
.card-link:hover .arrow { transform: translateX(4px); }

/* "Now" variant — the doctoral card */
.card-now { background: linear-gradient(165deg, #FDF9EE, #F6ECD0); border-color: rgba(217, 168, 54, 0.6); }
.card-now::before { opacity: 1; }
.card-now .card-num {
  color: #FDFAF1;
  background: var(--terra-500);
  padding: 0.25em 0.6em;
  border-radius: 999px;
  top: 1.3rem;
  right: 1.3rem;
}
.card-now .card-icon {
  background: var(--terra-wash);
  border-color: rgba(180, 86, 46, 0.35);
  color: var(--terra-600);
}
.card-now .card-link { color: var(--terra-600); }
.card-now .card-link::after { background: var(--terra-400); }

/* --------------------------------------------------------------------------
   9. Stats band
   -------------------------------------------------------------------------- */
.stats-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 108% 8%, rgba(217, 168, 54, 0.1), transparent 58%),
    var(--pine-900);
  color: var(--on-dark);
  padding: clamp(3.6rem, 7vw, 5.6rem) 0;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}
.stats-band .container { position: relative; z-index: 2; }
.stats-band .kicker { color: var(--gold-300); }
.stats-band h2 { color: var(--on-dark); }
.stats-band .lede { color: var(--on-dark-muted); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.8rem;
}
.stat { position: relative; padding-left: 1.25rem; }
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  background: linear-gradient(var(--gold-400), rgba(217, 168, 54, 0.12));
  border-radius: 2px;
}
.stat-number {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 5.8vw, 4.5rem);
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-top: 0.85rem;
}
.stat-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--on-dark-faint);
  margin-top: 0.3rem;
}
.stats-caption {
  margin-top: 2.7rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 72ch;
}
.stats-caption a {
  color: var(--gold-300);
  text-decoration: underline;
  text-decoration-color: rgba(233, 194, 104, 0.4);
  text-underline-offset: 3px;
}
.stats-caption a:hover { text-decoration-color: var(--gold-300); }

/* --------------------------------------------------------------------------
   10. Publications (TOC rows)
   -------------------------------------------------------------------------- */
.pub-list { display: flex; flex-direction: column; }
.pub-list:last-child { margin-bottom: 0; }

.pub {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.7rem;
  padding: 1.85rem 0.4rem 1.75rem;
  border-top: 1px solid var(--line);
  transition: background 0.3s ease;
}
.pub-list .pub:last-child { border-bottom: 1px solid var(--line); }
.pub:hover { background: rgba(253, 250, 241, 0.85); }

.pub-year {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
.pub-type {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 0.75em;
  white-space: nowrap;
}

.pub h3 {
  font-size: 1.26rem;
  line-height: 1.3;
  margin: 0 0 0.55rem;
}
.pub h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-400), var(--gold-400));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 97%;
  transition: background-size 0.45s var(--ease-out), color 0.3s ease;
  padding-bottom: 2px;
}
.pub h3 a:hover { background-size: 100% 2px; color: var(--pine-700); }
.pub-authors { font-size: 0.93rem; color: var(--ink-soft); margin: 0 0 0.4rem; }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-journal {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--terra-600);
  margin: 0 0 0.15rem;
}
.pub-note {
  font-size: 0.89rem;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.05rem;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7em 1.15em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}
.action-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }
.action-btn.primary {
  background: var(--gold-500);
  border-color: var(--gold-600);
  color: var(--pine-950);
}
.action-btn.primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(154, 113, 24, 0.7);
}
.action-btn .arrow { transition: transform 0.25s var(--ease-out); }
.action-btn:hover .arrow { transform: translateX(3px); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7em 1.15em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.copy-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }
.copy-btn.copied {
  border-color: var(--pine-700);
  color: var(--pine-700);
  background: rgba(27, 74, 60, 0.08);
}

/* --------------------------------------------------------------------------
   11. Quote band (terracotta interlude)
   -------------------------------------------------------------------------- */
.quote-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 110% -20%, rgba(253, 250, 241, 0.14), transparent 55%),
    var(--terra-500);
  color: #F9F1E4;
  padding: clamp(4rem, 8vw, 6.4rem) 0;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  pointer-events: none;
}
.quote-inner { position: relative; z-index: 2; max-width: 920px; }
.quote-mark {
  position: absolute;
  top: -3.4rem;
  left: -0.6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 11rem;
  line-height: 1;
  color: rgba(249, 241, 228, 0.22);
  user-select: none;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1.24;
  color: #FBF5E8;
  max-width: 26ch;
  position: relative;
}
.quote-source {
  margin: 1.7rem 0 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(249, 241, 228, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.quote-source::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-300);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at -10% 120%, rgba(217, 168, 54, 0.12), transparent 58%),
    var(--pine-900);
  color: var(--on-dark);
  padding: clamp(3.6rem, 7vw, 5.6rem) 0;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.band .container { position: relative; z-index: 2; }
.band .kicker { color: var(--gold-300); }
.band h2 { color: var(--on-dark); }
.band p { color: var(--on-dark-muted); }

.band-inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.6rem;
  align-items: center;
}
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}
.email-display { margin: 1rem 0 0.4rem; }
.email-display a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 2px solid rgba(233, 194, 104, 0.45);
  padding-bottom: 2px;
  word-break: break-word;
}
.email-display a:hover { border-bottom-color: var(--gold-300); }

/* --------------------------------------------------------------------------
   13. Page band (subpage chapter openers)
   -------------------------------------------------------------------------- */
.page-band {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(1150px 640px at 86% -14%, rgba(217, 168, 54, 0.16), transparent 62%),
    radial-gradient(820px 460px at -14% 118%, rgba(62, 107, 87, 0.26), transparent 60%),
    var(--pine-950);
  padding: clamp(5.2rem, 10vh, 7.2rem) 0 clamp(3rem, 6vh, 4.4rem);
}
.page-band::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
}
.page-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.page-band .container { position: relative; z-index: 2; }

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin: 0 0 1.3rem;
}
.breadcrumb a {
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.breadcrumb a:hover { border-bottom-color: var(--gold-400); }
.page-band .kicker { color: var(--gold-300); }
.page-band h1 {
  font-size: clamp(2.55rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: #F8F3E3;
  margin: 0.85rem 0 1rem;
}
.page-band h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-300);
}
.page-lede {
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.68;
  color: rgba(244, 238, 220, 0.85);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Prose & asides (About / Contact)
   -------------------------------------------------------------------------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.66fr);
  gap: clamp(2.6rem, 5vw, 4.6rem);
  align-items: start;
}
.prose { max-width: 72ch; }
.prose .lead {
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1.7rem;
}
.prose .lead::first-letter {
  float: left;
  font-size: 3.3em;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-600);
}
.prose p { line-height: 1.78; color: var(--ink-body); }
.prose h2 {
  font-size: 1.62rem;
  margin: 2.7rem 0 1rem;
  position: relative;
  padding-left: 1.5rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 9px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.prose a {
  color: var(--terra-600);
  text-decoration: underline;
  text-decoration-color: rgba(180, 86, 46, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}
.prose a:hover { text-decoration-color: var(--terra-500); color: var(--terra-500); }
.prose a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.78em;
  color: var(--gold-600);
}

/* Trajectory chips */
.traj {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1.9rem 0;
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border: 1px dashed rgba(194, 145, 31, 0.6);
  border-radius: 12px;
}
.traj-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-right: 0.5rem;
}
.traj-chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  background: var(--gold-wash);
  border: 1px solid rgba(194, 145, 31, 0.42);
  color: var(--gold-600);
}
.traj-arrow { color: var(--gold-500); font-family: var(--mono); }

/* Field note */
.note {
  background: var(--gold-wash);
  border: 1px solid rgba(194, 145, 31, 0.45);
  border-left: 4px solid var(--gold-500);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
  margin: 1.9rem 0;
}
.note-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.55rem;
}
.note p { font-size: 0.92rem; line-height: 1.62; color: var(--ink-soft); margin: 0; }
.note a { color: var(--terra-600); text-decoration: underline; text-underline-offset: 3px; }

/* Aside cards */
.aside-stack { display: flex; flex-direction: column; gap: 1.3rem; }
.aside-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.55rem 1.45rem;
}
.aside-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.45rem;
  width: 46px;
  height: 4px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.aside-card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 0.95rem;
}
.aside-card p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }

.fact-list { margin: 0; }
.fact-list .fact {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-bottom: 1px dashed var(--line);
}
.fact-list .fact:last-child { border-bottom: 0; }
.fact-list dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  padding-top: 0.2rem;
}
.fact-list dd { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.fact-list dd a {
  color: var(--terra-600);
  text-decoration: underline;
  text-decoration-color: rgba(180, 86, 46, 0.35);
  text-underline-offset: 3px;
}

.link-row {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.link-row:last-child { border-bottom: 0; }
.link-name {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.link-name a { color: inherit; text-decoration: none; }
.link-name a:hover { color: var(--gold-500); }
.link-value { font-size: 0.9rem; color: var(--ink-soft); }
.link-value a {
  color: var(--terra-600);
  text-decoration: underline;
  text-decoration-color: rgba(180, 86, 46, 0.35);
  text-underline-offset: 3px;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   15. Timeline (About)
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 860px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 137px;
  top: 12px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--gold-500), rgba(194, 145, 31, 0.12));
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.4rem;
  padding-bottom: 2.5rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 133px;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 3px rgba(194, 145, 31, 0.25);
  z-index: 1;
}
.tl-year {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-600);
  text-align: right;
  padding-top: 0.25rem;
}
.tl-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-600);
  background: var(--terra-wash);
  border: 1px solid rgba(180, 86, 46, 0.4);
  border-radius: 999px;
  padding: 0.35em 0.85em;
}
.tl-item h3 { font-size: 1.32rem; margin-bottom: 0.6rem; }
.tl-item p { font-size: 0.96rem; line-height: 1.68; color: var(--ink-soft); }
.tl-links {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-links a {
  font-size: 0.87rem;
  color: var(--terra-600);
  text-decoration: underline;
  text-decoration-color: rgba(180, 86, 46, 0.35);
  text-underline-offset: 3px;
}
.tl-links a::before { content: "\2192\00a0"; color: var(--gold-500); text-decoration: none; }
.tl-links a:hover { text-decoration-color: var(--terra-500); }
.tl-item.future::before { background: var(--terra-400); box-shadow: 0 0 0 3px rgba(180, 86, 46, 0.22); }
.tl-item.future .tl-year { color: var(--terra-500); }
.tl-item.future .tl-tag {
  color: var(--gold-600);
  background: var(--gold-wash);
  border-color: rgba(194, 145, 31, 0.45);
}
.tl-item.future h3 em { font-style: italic; font-weight: 400; color: var(--terra-500); }

/* --------------------------------------------------------------------------
   16. Research areas (watermark numerals)
   -------------------------------------------------------------------------- */
.area {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2.3rem;
  padding: 3.1rem 0;
  border-top: 1px solid var(--line);
}
.area:first-of-type { border-top: 0; padding-top: 0.5rem; }
.area-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.6rem, 9vw, 6.8rem);
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(194, 145, 31, 0.55);
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .area-num { color: rgba(194, 145, 31, 0.25); }
}
.area h2 { font-size: clamp(1.5rem, 2.7vw, 1.95rem); margin-bottom: 1rem; }
.area p { max-width: 68ch; line-height: 1.78; color: var(--ink-body); margin-bottom: 1rem; }

.evidence {
  margin-top: 1.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
}
.evidence-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.65rem;
}
.evidence ul { margin: 0; padding-left: 1.15rem; }
.evidence li {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.evidence li:last-child { margin-bottom: 0; }
.evidence a {
  color: var(--terra-600);
  text-decoration: underline;
  text-decoration-color: rgba(180, 86, 46, 0.35);
  text-underline-offset: 3px;
}
.evidence a:hover { text-decoration-color: var(--terra-500); }

/* Methods */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}
.method {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.55rem 1.55rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 145, 31, 0.5);
}
.method h3 {
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(194, 145, 31, 0.18);
  flex: none;
}
.method p { font-size: 0.93rem; line-height: 1.62; color: var(--ink-soft); margin: 0; }

/* Geography band */
.geo-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 112% 10%, rgba(217, 168, 54, 0.1), transparent 58%),
    var(--pine-900);
  color: var(--on-dark);
  padding: clamp(4rem, 8vw, 6.2rem) 0;
}
.geo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.geo-band .container { position: relative; z-index: 2; }
.geo-band .kicker { color: var(--gold-300); }
.geo-band h2 { color: var(--on-dark); }
.geo-band .lede { color: var(--on-dark-muted); }

.geo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.geo-item {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.35rem;
}
.geo-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--gold-400);
}
.geo-item h3 {
  font-size: 1.5rem;
  color: #F8F3E3;
  margin-bottom: 0.25rem;
}
.geo-coord {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--on-dark-faint);
  margin-bottom: 0.85rem;
}
.geo-item p { font-size: 0.9rem; line-height: 1.62; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   17. Media list
   -------------------------------------------------------------------------- */
.media-list { display: flex; flex-direction: column; }
.media-item {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 1.7rem;
  padding: 1.6rem 0.4rem;
  border-top: 1px solid var(--line);
  transition: background 0.3s ease;
}
.media-list .media-item:last-child { border-bottom: 1px solid var(--line); }
.media-item:hover { background: rgba(253, 250, 241, 0.85); }
.media-outlet {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.media-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 0.4rem;
}
.media-item h3 { font-size: 1.14rem; margin-bottom: 0.45rem; }
.media-item h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-400), var(--gold-400));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 97%;
  transition: background-size 0.45s var(--ease-out);
  padding-bottom: 2px;
}
.media-item h3 a:hover { background-size: 100% 2px; }
.media-item p { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   18. Contact page
   -------------------------------------------------------------------------- */
.email-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.2rem;
  align-items: center;
  background:
    radial-gradient(900px 480px at 108% -18%, rgba(217, 168, 54, 0.15), transparent 58%),
    var(--pine-900);
  color: var(--on-dark);
  border-radius: 18px;
  padding: 2.5rem 2.7rem;
  margin-bottom: 2.9rem;
}
.email-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}
.email-panel > * { position: relative; z-index: 2; }
.email-panel .kicker { color: var(--gold-300); }
.email-panel .email-display { margin: 0.75rem 0 0.9rem; }
.email-panel .email-display a { border-bottom-color: rgba(233, 194, 104, 0.5); }
.hint { font-size: 0.92rem; line-height: 1.6; color: var(--on-dark-muted); margin: 0; }
.email-panel .band-actions { justify-content: flex-end; flex-direction: column; align-items: stretch; }

.email-panel .copy-btn {
  border-color: rgba(244, 238, 220, 0.4);
  color: var(--on-dark);
  background: transparent;
  justify-content: center;
}
.email-panel .copy-btn:hover { border-color: var(--gold-400); color: var(--gold-300); }
.email-panel .copy-btn.copied {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: rgba(217, 168, 54, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 3.2rem;
}
.contact-card { display: flex; flex-direction: column; }
.contact-card .kicker { color: var(--terra-500); margin: 1.1rem 0 0.45rem; }
.contact-card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.contact-card p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.contact-card .card-link { color: var(--terra-600); }
.contact-card .card-link::after { background: var(--terra-400); }

/* --------------------------------------------------------------------------
   19. Next chapter — the page-turner band
   -------------------------------------------------------------------------- */
.next-chapter {
  position: relative;
  overflow: hidden;
  background: var(--pine-950);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}
.next-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.next-chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.next-chapter:hover::before { transform: scaleX(1); }
@media (hover: none) {
  .next-chapter::before { display: none; }
}
.nc-link {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.7rem, 6vw, 4.4rem) 0;
  text-decoration: none;
}
.nc-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.nc-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.nc-title {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #F8F3E3;
  margin-top: 0.75rem;
  transition: color 0.4s ease;
}
.nc-title em { font-style: italic; font-weight: 400; color: var(--gold-300); transition: color 0.4s ease; }
.nc-sub {
  display: block;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  margin-top: 0.75rem;
  transition: color 0.4s ease;
}
.nc-arrow {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--gold-400);
  transition: transform 0.45s var(--ease-out), color 0.4s ease;
}
.next-chapter:hover .nc-arrow { transform: translateX(16px); }
.next-chapter:hover .nc-title,
.next-chapter:hover .nc-title em { color: var(--pine-950); }
.next-chapter:hover .nc-sub { color: rgba(15, 46, 38, 0.85); }
.next-chapter:hover .nc-label { color: var(--pine-800); }
.next-chapter:hover .nc-arrow { color: var(--pine-900); }
.nc-link:focus-visible { outline-offset: -4px; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--pine-975);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
  padding: 4.2rem 0 2.1rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contour-dark);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.6rem;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: #F8F3E3;
}
.footer-brand p {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--on-dark-muted);
  max-width: 38ch;
  margin: 0.85rem 0 1.05rem;
}
.footer-site {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-300);
  margin: 0;
}
.site-footer h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0.35rem 0 1.05rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.93rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--gold-300); }
.fnum {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gold-500);
  margin-right: 0.6em;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 3.1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: var(--on-dark-faint);
}
.footer-bottom .coords {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .profile-card { max-width: 500px; }
  .content-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .band-actions { justify-content: flex-start; }
  .email-panel { grid-template-columns: 1fr; padding: 2.2rem 1.9rem; }
  .email-panel .band-actions { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .nc-link { grid-template-columns: 1fr auto; }
}

@media (max-width: 880px) {
  .area { grid-template-columns: 1fr; gap: 0.9rem; padding: 2.4rem 0; }
  .area-num { font-size: 3.6rem; line-height: 0.9; }
  .timeline::before { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 0.35rem; padding-bottom: 2rem; }
  .tl-item::before { display: none; }
  .tl-year { text-align: left; padding-top: 0; display: inline-block; }
  .pub { grid-template-columns: 1fr; gap: 0.7rem; padding: 1.6rem 0.3rem; }
  .pub-year { display: inline-block; font-size: 1.4rem; }
  .pub-type { margin-top: 0; margin-left: 0.7rem; vertical-align: middle; }
  .media-item { grid-template-columns: 1fr; gap: 0.55rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .methods-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero { padding-top: 5.6rem; }
  .hero-statement { font-size: 1.05rem; }
  .profile-card { padding: 1.6rem 1.4rem 1.3rem; }
  .profile-card::before, .profile-card::after { width: 56px; height: 17px; }
  .prose .lead { font-size: 1.22rem; }
  .quote-mark { font-size: 7.5rem; top: -2.4rem; }
  .nc-link { grid-template-columns: 1fr; gap: 1.2rem; }
  .stats-grid { gap: 1.6rem; }
}

/* --------------------------------------------------------------------------
   22. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .hero::before { animation: none; }
  .anim { animation: none; }
  .scroll-cue::after { animation: none; }
  html.js .reveal:not(.is-visible) { opacity: 1; transform: none; filter: none; }
  .next-chapter::before { transition: none; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .progress, .marquee, .scroll-cue, .next-chapter, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .hero, .page-band, .stats-band, .band, .quote-band, .geo-band, .email-panel, .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
  .hero h1, .page-band h1, .stat-number, .nc-title { color: #000 !important; }
  .hero::before, .hero::after, .page-band::before, .page-band::after,
  .stats-band::before, .band::before, .quote-band::before, .quote-band::after,
  .geo-band::before, .email-panel::before, .site-footer::before,
  .profile-card::before, .profile-card::after { display: none !important; }
  .section, .stats-band, .band, .quote-band { padding: 1.5rem 0; }
}

/* ---------- Field test: interactive moderation plot (V5) ---------- */
.fieldtest {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 108% 0%, rgba(217, 168, 54, 0.12), transparent 58%),
    var(--pine-950);
  color: var(--on-dark);
  padding: clamp(4rem, 8vw, 6.2rem) 0;
}
.fieldtest .container { position: relative; z-index: 2; }
.fieldtest h2 { color: var(--on-dark); }
.fieldtest .lede { color: var(--on-dark-muted); }
.fieldtest .kicker { color: var(--gold-300); }

.ft-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
@media (max-width: 880px) {
  .ft-grid { grid-template-columns: 1fr; }
}

.ft-figure { margin: 0; }
.ft-figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(244, 238, 220, 0.03);
  border: 1px solid rgba(244, 238, 220, 0.14);
  border-radius: 10px;
}
.ft-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--on-dark-faint);
}
.ft-grid-line { stroke: rgba(244, 238, 220, 0.1); stroke-width: 1; }
.ft-axis-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  fill: var(--on-dark-faint);
}
.ft-axis-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  fill: var(--on-dark-muted);
}
.ft-mean-line { stroke: rgba(244, 238, 220, 0.35); stroke-width: 1; stroke-dasharray: 4 4; }
.ft-mean-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  fill: var(--on-dark-faint);
}
.ft-line {
  fill: none;
  stroke: rgba(244, 238, 220, 0.3);
  stroke-width: 2;
  transition: stroke 0.25s ease, stroke-width 0.25s ease, opacity 0.25s ease;
}
.ft-line.is-active { stroke: var(--gold-400); stroke-width: 3.5; }
.ft-band { fill: rgba(217, 168, 54, 0.14); stroke: none; }
.ft-end-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  fill: var(--on-dark-faint);
}
.ft-end-label.is-active { fill: var(--gold-300); font-weight: 600; }

.ft-panel-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 0.35rem;
}
.ft-panel-sub { color: var(--on-dark-muted); font-size: 0.92rem; margin: 0 0 1.1rem; }

.ft-chips { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.ft-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 238, 220, 0.35);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ft-chip:hover { border-color: var(--gold-300); color: var(--gold-300); }
.ft-chip.is-active {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--pine-950);
  font-weight: 600;
}
.ft-chip:focus-visible, .ft-slider:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

.ft-slider {
  width: 100%;
  accent-color: var(--gold-400);
  margin: 0 0 1.4rem;
  cursor: pointer;
}

.ft-readout {
  border-left: 3px solid var(--gold-400);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin-bottom: 1.4rem;
}
.ft-slope { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: baseline; }
.ft-slope-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.ft-slope-value {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--gold-300);
}
.ft-ci { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--on-dark-muted); }
.ft-words { margin: 0; line-height: 1.6; color: var(--on-dark); }

.ft-note { font-size: 0.88rem; line-height: 1.6; color: var(--on-dark-faint); margin: 0; }

.area-more { margin-top: 1rem; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }


/* ---------- Journey: research programme overview (V6) ---------- */
.journey {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 108% 0%, rgba(217, 168, 54, 0.12), transparent 58%),
    var(--pine-950);
  color: var(--on-dark);
  padding: clamp(4rem, 8vw, 6.2rem) 0;
}
.journey .container { position: relative; z-index: 2; }
.journey h2 { color: var(--on-dark); }
.journey .lede { color: var(--on-dark-muted); }
.journey .kicker { color: var(--gold-300); }

.journey-views {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin: 0 0 1.6rem;
}
.jv-label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-muted); margin-right: 0.4rem;
}
.jv-btn {
  font-family: "IBM Plex Mono", monospace; font-size: 0.82rem;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(244, 238, 220, 0.35);
  background: transparent; color: var(--on-dark); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.jv-btn:hover { border-color: var(--gold-300); color: var(--gold-300); }
.jv-btn.is-active { background: var(--gold-400); border-color: var(--gold-400); color: var(--pine-950); font-weight: 600; }
.jv-btn:focus-visible, .jstop:focus-visible, .jconn:focus-visible, .js-explore:focus-visible {
  outline: 2px solid var(--gold-300); outline-offset: 3px;
}

.chain-svg { width: 100%; height: auto; display: block; }
.chain-hill-back { fill: #143B30; opacity: 0.65; }
.chain-hill-front { fill: #1B4A3C; opacity: 0.8; }
.chain-sun { fill: var(--gold-400); }
.chain-sun-halo { fill: rgba(217, 168, 54, 0.18); }
.chain-road { fill: none; stroke: rgba(244, 238, 220, 0.28); stroke-width: 2; stroke-dasharray: 7 7; }
.chain-progress { fill: none; stroke: var(--gold-400); stroke-width: 3.5; stroke-linecap: round; }
.chain-node { cursor: pointer; transition: opacity 0.3s ease; }
.chain-node circle {
  fill: var(--pine-950); stroke: rgba(244, 238, 220, 0.45); stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.chain-node text {
  font-family: "IBM Plex Mono", monospace; font-size: 14px;
  fill: var(--gold-300); text-anchor: middle; transition: fill 0.3s ease;
}
.chain-node.lit circle { stroke: var(--gold-400); }
.chain-node.is-selected circle { fill: var(--gold-400); stroke: var(--gold-400); }
.chain-node.is-selected text { fill: var(--pine-950); font-weight: 600; }
.chain-node.dim { opacity: 0.3; }
.chain-node:focus { outline: none; }
.chain-node:focus circle { stroke: var(--gold-300); stroke-width: 3; }
.chain-label-name { font-family: "Fraunces", serif; font-size: 21px; fill: var(--on-dark); transition: opacity 0.3s ease; }
.chain-label-sub { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; fill: var(--gold-300); transition: opacity 0.3s ease; }
.chain-label-name.dim, .chain-label-sub.dim { opacity: 0.3; }
.chain-conn-badge { cursor: pointer; transition: opacity 0.3s ease; }
.chain-conn-badge circle { fill: var(--terra-500); stroke: rgba(244, 238, 220, 0.5); stroke-width: 1; }
.chain-conn-badge text { font-family: "IBM Plex Mono", monospace; font-size: 12px; fill: #FDFAF1; text-anchor: middle; }
.chain-conn-badge.is-selected circle { fill: var(--gold-400); }
.chain-conn-badge.is-selected text { fill: var(--pine-950); font-weight: 700; }
.chain-conn-badge.dim { opacity: 0.25; }
.chain-conn-badge:focus { outline: none; }
.chain-conn-badge:focus circle { stroke: var(--gold-300); stroke-width: 2.5; }

.journey-stops {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem;
  margin-top: 1.8rem;
}
@media (max-width: 1000px) { .journey-stops { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey-stops { grid-template-columns: 1fr; } .chain-svg { display: none; } }
.jstop {
  text-align: left; cursor: pointer;
  border: 1px solid rgba(244, 238, 220, 0.18); border-radius: 10px;
  padding: 0.95rem 1.05rem; background: rgba(244, 238, 220, 0.03);
  color: var(--on-dark); font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.3s ease;
}
.jstop:hover { border-color: var(--gold-300); }
.jstop.is-selected { border-color: var(--gold-400); background: rgba(217, 168, 54, 0.1); }
.jstop.dim { opacity: 0.45; }
.jstop-num { display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold-300); margin-bottom: 0.3rem; }
.jstop-name { display: block; font-family: "Fraunces", serif; font-size: 1.08rem; font-weight: 600; margin-bottom: 0.25rem; }
.jstop-theme { display: block; font-size: 0.82rem; line-height: 1.45; color: var(--on-dark-muted); }

.journey-conns { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; align-items: center; }
.jconn-label { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-right: 0.3rem; }
.jconn {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(201, 113, 78, 0.65);
  background: transparent; color: var(--on-dark); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease;
}
.jconn:hover { border-color: var(--terra-400); color: var(--terra-400); }
.jconn.is-selected { background: var(--terra-500); border-color: var(--terra-500); color: #FDFAF1; }
.jconn.dim { opacity: 0.4; }

.journey-panel {
  margin-top: 1.6rem;
  background: var(--paper); color: var(--ink-body);
  border-radius: 12px; padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.jp-kicker { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-600); margin: 0 0 0.5rem; }
.journey-panel h3 { font-family: "Fraunces", serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); margin: 0 0 0.7rem; line-height: 1.25; }
.journey-panel p { line-height: 1.65; margin: 0 0 1rem; max-width: 68ch; }
.jp-studies { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px dashed rgba(29, 43, 37, 0.25); }
.jp-studies li { margin-bottom: 0.85rem; }
.jp-studies li:last-child { margin-bottom: 0; }
.jp-study-title { font-weight: 600; color: var(--ink); }
.jp-study-title a { color: inherit; }
.jp-study-meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.jp-explore { margin-top: 1.2rem; }

.badge {
  display: inline-block; font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.16rem 0.55rem; border-radius: 999px; border: 1px solid; vertical-align: middle;
}
.b-published { color: #256b47; border-color: #256b47; background: rgba(62, 107, 87, 0.12); }
.b-review { color: #7c5a0e; border-color: #9A7118; background: rgba(194, 145, 31, 0.14); }
.b-ongoing { color: #99471F; border-color: #B4562E; background: rgba(180, 86, 46, 0.12); }
.b-concept { color: #4A5B53; border-color: #4A5B53; background: rgba(74, 91, 83, 0.1); }
.journey-rail .b-published { color: #9fd3b4; border-color: #9fd3b4; background: rgba(62, 107, 87, 0.25); }
.journey-rail .b-review { color: #E9C268; border-color: #E9C268; background: rgba(194, 145, 31, 0.2); }
.journey-rail .b-ongoing { color: #eba87f; border-color: #eba87f; background: rgba(180, 86, 46, 0.22); }

.journey-rail { margin-top: 2rem; }
.journey-rail-title { font-family: "Fraunces", serif; font-size: 1.25rem; color: var(--on-dark); margin: 0 0 0.9rem; }
.journey-rail-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; }
@media (max-width: 700px) { .journey-rail-list { grid-template-columns: 1fr; } }
.journey-rail-list li { border-left: 2px solid rgba(217, 168, 54, 0.5); padding-left: 0.9rem; }
.jr-title { color: var(--on-dark); font-weight: 500; line-height: 1.45; }
.jr-title a { color: inherit; }
.jr-meta { font-size: 0.83rem; color: var(--on-dark-muted); margin-top: 0.2rem; }

.journey-deepdive {
  margin-top: 2.2rem; border: 1px dashed rgba(217, 168, 54, 0.55); border-radius: 12px;
  padding: 1.3rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center;
}
.journey-deepdive p { margin: 0; flex: 1 1 320px; color: var(--on-dark-muted); line-height: 1.6; }
.journey-deepdive strong { color: var(--on-dark); }
.journey-noscript { color: var(--on-dark-muted); margin-top: 1.5rem; }
.journey-noscript a { color: var(--gold-300); }

.fieldtest[hidden] { display: none; }
.ft-evidence { margin-top: 1.6rem; font-size: 0.88rem; color: var(--on-dark-muted); }
.ft-evidence a { color: var(--gold-300); }

/* Portfolio grid (V6) */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .portfolio-grid { grid-template-columns: 1fr; } }
.pcard {
  background: var(--paper); border: 1px solid rgba(29, 43, 37, 0.12); border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.pcard-top { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.7rem; }
.pcard-type { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.pcard h3 { font-size: 1.12rem; line-height: 1.4; margin: 0 0 0.5rem; color: var(--ink); }
.pcard h3 a { color: inherit; }
.pcard-authors { font-size: 0.9rem; color: var(--ink-body); margin: 0 0 0.2rem; }
.pcard-venue { font-size: 0.88rem; font-style: italic; color: var(--ink-soft); margin: 0 0 0.6rem; }
.pcard-note { font-size: 0.88rem; line-height: 1.55; color: var(--ink-body); margin: 0 0 0.7rem; }
.pcard-stops { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--terra-600); margin: 0; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.portfolio-actions .btn-ghost { color: var(--ink); border-color: rgba(29, 43, 37, 0.4); }

.hero-journey {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--ink-soft); margin: 0 0 1.4rem;
}
.hero-journey span { color: var(--terra-500); }
.fieldtest { scroll-margin-top: 90px; }

.pub-journey { font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--terra-600); margin: 0.45rem 0 0; }
.pub-journey-note { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.pub-journey-note a { color: var(--terra-600); }
