:root {
  --paper: #fffdf8;
  --cream: #f7f3eb;
  --cream-deep: #ece5d8;
  --ink: #18233a;
  --ink-soft: #334056;
  --muted: #687080;
  --teal: #176e67;
  --teal-bright: #2f9287;
  --rust: #b65a3c;
  --gold: #d0a349;
  --line: #dcd6ca;
  --white: #fff;
  --shadow: 0 24px 70px rgba(25, 35, 55, .12);
  --radius: 22px;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.section-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 110px 0; scroll-margin-top: 84px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(24, 35, 58, .08);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(16px);
}
.nav-shell {
  width: min(1240px, calc(100% - 40px));
  height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: .78rem;
}
.site-menu { display: flex; align-items: center; gap: 28px; }
.site-menu a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 650;
}
.site-menu a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--teal);
  transition: right .25s ease;
}
.site-menu a:hover::after, .site-menu a:focus-visible::after, .site-menu a.active::after { right: 0; }
.nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav-contact:hover { background: var(--ink); color: white; }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - 76px);
  padding: 82px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(470px, .98fr);
  align-items: center;
  gap: 56px;
}
.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 5.7rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.05em;
}
.hero-lede {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: white; box-shadow: 0 12px 30px rgba(23, 110, 103, .2); }
.button-primary:hover { background: #125f59; box-shadow: 0 16px 36px rgba(23, 110, 103, .28); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.58); }
.button-secondary:hover { border-color: var(--ink); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-meta span {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.portrait-map { position: relative; min-height: 620px; display: grid; place-items: center; }
.portrait-orbit {
  position: absolute;
  width: 430px;
  aspect-ratio: 1;
  border: 1px dashed rgba(23, 110, 103, .24);
  border-radius: 50%;
  animation: orbit 36s linear infinite;
}
.portrait-orbit::before, .portrait-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.portrait-orbit::before { top: 14%; left: 14%; }
.portrait-orbit::after { right: 7%; bottom: 24%; background: var(--teal); }
@keyframes orbit { to { transform: rotate(360deg); } }
.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(330px, 68vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 10px solid var(--paper);
  border-radius: 48% 48% 20px 20px;
  background: #d9d9d9;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.portrait-map:has(.map-node:hover) .portrait-frame,
.portrait-map:has(.map-node:focus-visible) .portrait-frame {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(25, 35, 55, .18);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.portrait-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.2), transparent 40%, rgba(24,35,58,.08));
  pointer-events: none;
}
.map-node {
  --node-color: var(--teal);
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  padding: 10px 13px;
  border: 1px solid rgba(24, 35, 58, .12);
  border-radius: 14px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 9px 28px rgba(24, 35, 58, .09);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.map-node::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  width: var(--line-width, 52px);
  background: linear-gradient(90deg, var(--node-color), rgba(24,35,58,.12));
}
.map-node:hover, .map-node:focus-visible {
  transform: translateY(-3px);
  border-color: var(--node-color);
  box-shadow: 0 15px 32px rgba(24, 35, 58, .13);
  outline: none;
}
.node-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--node-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--node-color), transparent 82%); }
.node-copy { display: grid; line-height: 1.22; }
.node-copy strong { font-family: var(--serif); font-size: .98rem; }
.node-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.node-methods { --node-color: var(--teal); --line-width: 58px; left: -8px; top: 33%; }
.node-methods::after, .node-teaching::after { left: 100%; }
.node-research::after { right: 100%; transform: rotate(180deg); }
.node-teaching { --node-color: #6274a8; --line-width: 54px; left: -4px; top: 44%; }
.node-research { --node-color: var(--rust); --line-width: 48px; right: -4px; top: 78%; flex-direction: row-reverse; }
.map-hint { position: absolute; bottom: 2px; margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.signal-strip { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream); }
.signal-track { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 48px); padding: 12px 32px; white-space: nowrap; }
.signal-track span { font-family: var(--serif); font-size: clamp(.9rem, 1.4vw, 1.12rem); }
.signal-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--rust); }

.section-heading { max-width: 730px; margin-bottom: 54px; }
.section-heading h2, .education h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}
.section-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 1.03rem; }

.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.paper-card {
  position: relative;
  min-height: 420px;
  padding: 30px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.paper-card:hover { transform: translateY(-5px); border-color: rgba(23,110,103,.45); box-shadow: var(--shadow); }
.paper-featured { grid-column: 1 / -1; min-height: 360px; background: linear-gradient(135deg, var(--cream), white 68%); }
.paper-number { padding-top: 4px; color: var(--rust); font-size: .73rem; font-weight: 900; letter-spacing: .1em; }
.paper-content { display: flex; flex-direction: column; }
.paper-kicker, .role-meta { margin: 0 0 10px; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.paper-content h3, .timeline-body h3, .teaching-card h3, .degree h3, .skill-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
}
.paper-content h3 { max-width: 760px; font-size: clamp(1.55rem, 2.2vw, 2.35rem); }
.paper-content > p:not(.paper-kicker) { max-width: 820px; color: var(--ink-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.tag-row span { padding: 5px 9px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: .68rem; font-weight: 700; }
details { margin-top: auto; padding-top: 24px; }
summary { cursor: pointer; color: var(--teal); font-size: .82rem; font-weight: 800; }
details p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }

.section-tinted { background: var(--cream); }
.teaching-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.teaching-layout .section-heading { margin: 0; }
.teaching-card { padding: 42px; display: grid; grid-template-columns: 70px 1fr; gap: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 20px 55px rgba(24,35,58,.08); }
.teaching-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--ink); color: white; font-family: var(--serif); font-size: 1.6rem; }
.teaching-card h3 { font-size: 2rem; }
.teaching-card > div > p:not(.role-meta) { color: var(--muted); }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 24px; margin: 10px 0; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--rust); font-family: var(--serif); font-size: 1.12rem; }
.timeline-body { max-width: 820px; }
.timeline-body h3 { font-size: 1.8rem; }
.timeline-body p:last-child { color: var(--muted); }

.section-dark { background: var(--ink); color: white; }
.section-heading-light .eyebrow { color: #78c6bc; }
.section-heading-light > p:last-child { color: #bac2d0; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill-card { min-height: 260px; padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.04); transition: background .2s ease, transform .2s ease; }
.skill-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.skill-card > span { color: #78c6bc; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.skill-card h3 { margin-top: 42px; color: white; font-size: 1.5rem; }
.skill-card p { color: #bac2d0; font-size: .9rem; }

.education-contact { padding-block: 110px; display: grid; grid-template-columns: 1fr .92fr; gap: 90px; align-items: start; }
.education h2 { margin-bottom: 38px; }
.degree { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 23px 0; border-top: 1px solid var(--line); }
.degree > span { color: var(--rust); font-size: .76rem; font-weight: 800; }
.degree h3 { font-size: 1.25rem; }
.degree p { margin: 4px 0 0; color: var(--muted); }
.contact-card { padding: 44px; border-radius: var(--radius); background: var(--cream); }
.contact-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.1rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.contact-card > p:not(.eyebrow) { color: var(--muted); }
.contact-card .button { margin: 18px 0 24px; }
.text-link { display: block; width: fit-content; color: var(--teal); font-size: .82rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(23,110,103,.3); }

.site-footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .76rem; }
.footer-inner a { color: var(--teal); font-weight: 800; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { max-width: 800px; }
  .portrait-map { width: min(680px, 100%); margin-inline: auto; }
  .teaching-layout { grid-template-columns: 1fr; gap: 42px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section-shell { width: min(100% - 32px, 680px); }
  .section { padding: 80px 0; }
  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
  }
  .menu-toggle > span:not(.sr-only) { width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .site-menu.open { display: flex; }
  .site-menu a { padding: 10px; }
  .nav-contact { text-align: center; margin-top: 5px; }
  .paper-grid { grid-template-columns: 1fr; }
  .paper-featured { grid-column: auto; }
  .education-contact { grid-template-columns: 1fr; gap: 54px; }
  .signal-track { justify-content: flex-start; overflow-x: auto; }
}

@media (max-width: 620px) {
  .nav-shell { width: calc(100% - 28px); height: 68px; }
  .hero { min-height: auto; padding: 58px 0 70px; gap: 20px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-lede { font-size: .98rem; }
  .portrait-map { min-height: 680px; padding-bottom: 210px; }
  .portrait-orbit { width: 92vw; max-width: 390px; }
  .portrait-frame { width: min(300px, 76vw); }
  .map-node { min-width: 0; width: calc(50% - 8px); top: auto; right: auto; left: auto; bottom: auto; flex-direction: row; }
  .map-node::after { display: none; }
  .node-methods { left: 0; bottom: 150px; }
  .node-teaching { right: 0; bottom: 150px; }
  .node-research { left: 25%; bottom: 80px; }
  .node-copy small { font-size: .6rem; }
  .map-hint { bottom: 34px; }
  .paper-card { min-height: 0; padding: 24px; grid-template-columns: 1fr; }
  .paper-number { padding: 0; }
  .teaching-card { padding: 28px; grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 220px; }
  .education-contact { padding-block: 80px; }
  .contact-card { padding: 30px; }
  .footer-inner { padding: 28px 0; flex-direction: column; align-items: flex-start; gap: 6px; }
}

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