/* ---------- design tokens ---------- */
:root {
  /* near-white palette */
  --bg: #ffffff;
  --bg-sub: #f7f7f7;
  --ink: #0e0e0e;
  --ink-2: #2a2a2a;
  --ink-mute: #6b6b6b;
  --ink-faint: #b4b4b4;
  --rule: #ececec;
  --rule-strong: #d8d8d8;
  --accent: indianred;
  --accent-tint: rgba(205, 92, 92, 0.08);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --display: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --col: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body { overflow-x: hidden; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- layout shell ---------- */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px clamp(20px, 3vw, 64px) 96px;
}
@media (max-width: 760px) {
  .shell { padding: 28px 22px 64px; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 4px 0 48px;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
}

/* left column — photo+id group vertically centered, contact pinned to bottom */
.hero .left {
  display: flex; flex-direction: column;
  width: 100%;
  padding-right: 48px;
  border-right: 1px solid var(--rule);
}
.hero .left-center {
  margin: auto 0;
  display: flex; flex-direction: column;
  gap: 18px;
}
@media (max-width: 860px) {
  .hero .left { padding-right: 0; border-right: none; }
  .hero .left-center { margin: 0; }
}
.hero .photo-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-sub);
  border: 1px solid var(--rule);
}
.hero .photo-wrap img {
  object-position: 22% 30%;
}

.hero .id {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.hero .id .name {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.hero .id .name-pronounce {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-mute);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  align-self: center;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.hero .id .name-pronounce svg { width: 14px; height: 14px; }
.hero .id .name-pronounce:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-1px);
}
.hero .id .name-pronounce.is-playing {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
  animation: name-pronounce-pulse 900ms ease-in-out infinite;
}
.hero .bio .name-pronounce-text {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px dotted var(--rule-strong);
  transition: color 160ms ease, border-bottom-color 160ms ease;
}
.hero .bio .name-pronounce-text:hover,
.hero .bio .name-pronounce-text.is-playing {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hero .bio .pronounce-mark {
  display: inline-block;
  vertical-align: super;
  font-size: 0;
  margin-left: 2px;
  line-height: 0;
  color: var(--ink-mute);
  transition: color 160ms ease;
}
.hero .bio .pronounce-mark svg { width: 9px; height: 9px; display: block; }
.hero .bio .name-pronounce-text:hover .pronounce-mark,
.hero .bio .name-pronounce-text.is-playing .pronounce-mark {
  color: var(--accent);
}
.hero .bio .name-pronounce-text.is-playing .pronounce-mark {
  animation: name-pronounce-pulse 900ms ease-in-out infinite;
}
@keyframes name-pronounce-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-tint); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}
.hero .id .role-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.45;
}
.hero .id .role-line.muted .role-eyebrow,
.hero .id .role-line.muted .role-org { color: var(--ink-mute); }
.hero .id .role-line .role-eyebrow { color: var(--ink-2); }
.hero .id .role-line .role-org {
  color: var(--ink);
  font-weight: 500;
  border-bottom: none;
}
.hero .id .role-line .role-org:hover { color: var(--accent); }

/* contact line pinned to the bottom of the left column */
.hero .contact-line {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  align-items: center;
  min-height: 56px; /* matches socials: 38px pill + 18px padding-top */
}
.hero .contact-line .contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px;
}
.hero .contact-line .contact-item svg {
  width: 14px; height: 14px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.hero .contact-line a {
  color: var(--ink-2);
  border-bottom: none;
}
.hero .contact-line a:hover { color: var(--accent); }
.hero .photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 35%;
  transform-origin: 73% 60%;
  display: block;
  filter: saturate(0.95);
  transition:
    transform 1100ms cubic-bezier(.65,.05,.36,1),
    object-position 1100ms cubic-bezier(.65,.05,.36,1),
    filter 500ms ease;
  will-change: transform, object-position;
}
.hero .photo-wrap:hover img {
  transform: scale(2.6);
  object-position: 73% 60%;
  filter: saturate(1.08) contrast(1.06);
  animation: seal-sway 3.4s ease-in-out 1100ms infinite;
}
@keyframes seal-sway {
  0%   { transform: scale(2.6) translate(0%,    0%)   rotate(0deg); }
  20%  { transform: scale(2.6) translate(-0.4%, 0.25%) rotate(-0.35deg); }
  45%  { transform: scale(2.62) translate(0.15%, -0.15%) rotate(0.15deg); }
  70%  { transform: scale(2.6) translate(0.45%, 0.2%) rotate(0.45deg); }
  100% { transform: scale(2.6) translate(0%,    0%)   rotate(0deg); }
}
.hero .photo-wrap .cap-default {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  display: flex; justify-content: space-between;
  pointer-events: none;
  white-space: nowrap;
}
.hero .photo-wrap .cap-default > span { white-space: nowrap; }

.hero .photo-wrap .seal-bubble {
  position: absolute;
  top: 16%;
  left: 60%;
  background: #fff;
  color: #111;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 11px 7px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  transform: scale(0.5) translate(-8px, 8px);
  transform-origin: 0% 100%;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.hero .photo-wrap .seal-bubble::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transform: rotate(45deg);
  border-bottom-right-radius: 2px;
}
.hero .photo-wrap:hover .seal-bubble {
  /* delay so the bubble pops in just after the zoom settles */
  opacity: 1;
  transform: scale(1) translate(0, 0);
  transition-delay: 1100ms, 1100ms;
  animation: seal-bubble-bob 2.6s ease-in-out 1500ms infinite;
}
@keyframes seal-bubble-bob {
  0%, 100% { transform: scale(1) translate(0, 0) rotate(0deg); }
  50%      { transform: scale(1) translate(0, -3px) rotate(-1.2deg); }
}

.hero .id {
  display: flex; flex-direction: column; gap: 2px;
}
.hero .id .name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
}
.hero .id .role {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.hero .id .role a { border-bottom: 1px solid var(--rule-strong); }

.hero .meta {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.hero .meta dt { color: var(--ink-faint); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; padding-top: 1px; }
.hero .meta dd { margin: 0; color: var(--ink-2); }
.hero .meta dd a { border-bottom: none; color: var(--ink-2); }
.hero .meta dd a:hover { color: var(--accent); }

.hero .socials {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.hero .socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, transform 200ms cubic-bezier(.2,.7,.2,1), background 150ms ease;
}
.hero .socials a svg { width: 16px; height: 16px; }
.hero .socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-tint);
}

/* unused since hero restructure but kept for safety */
.hero .meta { display: none; }

/* right column (about) — bio at top, socials right below */
.hero .right {
  padding-top: 0;
  padding-left: 48px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 860px) {
  .hero .right { padding-left: 0; }
}
.hero .right .socials {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}
.hero .bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero .bio p + p { margin-top: 0.85em; }
.hero .bio a { border-bottom: 1px solid var(--rule-strong); color: var(--ink); }
.hero .bio strong {
  font-weight: 700;
  color: #d56062;
  background: rgba(167, 190, 211, 0.2);
  padding: 0 4px;
  margin: 0;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .bio em { font-style: italic; color: var(--ink); }

/* inline organization mentions with favicon (not links) */
.bio .org-link {
  color: var(--ink);
  font-weight: 500;
}
.bio .org-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: text-bottom;
  margin-right: 4px;
  display: inline-block;
  background: var(--bg-sub);
  object-fit: contain;
}

/* ---------- sections ---------- */
.section {
  padding: 56px 0 0;
}
.section + .section { border-top: 1px solid var(--rule); margin-top: 56px; }
.section + .section#publications,
.section + .section#places { border-top: none; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.sec-head .title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.sec-head .rule { flex: 1; height: 1px; background: var(--rule); }
.sec-head .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ---------- news list ---------- */
.news-rows { display: flex; flex-direction: column; }
.news-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.news-row:first-child { border-top: none; padding-top: 4px; }
.news-row .when {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.news-row .body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.news-row .body em { font-style: italic; color: var(--ink); }
.news-row .body b { font-weight: 600; color: var(--ink); }
.news-row .body a { border-bottom: 1px solid var(--rule-strong); color: var(--ink); }

/* ---------- show more button ---------- */
.show-more {
  appearance: none;
  background: transparent;
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 14px 0 0;
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease;
}
.show-more:hover { color: var(--accent); }
.show-more .chev {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 13px;
  transform: translateY(1px);
}

/* ---------- publications (full-width, expandable) ---------- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pub-entry {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.pub-entry:first-child { border-top: none; padding-top: 6px; }
@media (max-width: 760px) {
  .pub-entry { grid-template-columns: 1fr; gap: 16px; }
}

.pub-teaser {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg-sub);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-teaser svg { width: 100%; height: 100%; display: block; }
.pub-teaser .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  background: #fff;
}

.pub-main { min-width: 0; display: flex; flex-direction: column; }
.pub-venue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pub-venue .yr { color: var(--ink); font-weight: 500; }
.pub-venue .venue { color: var(--ink-2); }
.pub-venue .venue-honor {
  color: indianred;
  font-weight: 600;
}
.pub-venue .venue-link {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}
.pub-venue .venue-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.pub-venue .venue-link.venue-honor {
  color: indianred;
  border-bottom-color: rgba(205, 92, 92, 0.4);
}
.pub-venue .venue-link.venue-honor:hover {
  color: indianred;
  border-bottom-color: indianred;
}
.pub-venue .featured-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.pub-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 70ch;
}
.pub-authors {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0 0 14px;
}
.pub-authors b { color: var(--ink); font-weight: 600; }

.pub-actions {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}
.pub-actions-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.pub-pill {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms ease;
  white-space: nowrap;
}
.pub-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.pub-pill.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gh-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 8px;
  margin-left: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 180ms cubic-bezier(.2,.7,.2,1);
}
.gh-card:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.gh-card svg { width: 16px; height: 16px; flex-shrink: 0; }
.gh-card-text { display: flex; flex-direction: column; line-height: 1.15; }
.gh-card-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 180ms ease;
}
.gh-card:hover .gh-card-label { color: rgba(255,255,255,0.6); }
.gh-card-repo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: inherit;
  font-weight: 500;
}
.gh-card-arrow {
  font-family: var(--mono);
  font-size: 14px;
  opacity: 0.5;
  margin-left: 2px;
  transition: transform 180ms ease;
}
.gh-card:hover .gh-card-arrow { opacity: 1; transform: translate(2px, -2px); }
.pub-link-cards {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.pub-link-cards .gh-card { margin-left: 0; }
/* At narrower widths (anything not a wide desktop) the absolute-positioned cards
   would overlap title/authors text, so we flatten them to icon-only buttons that
   sit inline with the pills. */
@media (max-width: 1480px) {
  .pub-actions {
    position: static;
    flex-wrap: wrap;
  }
  .pub-link-cards {
    position: static;
    flex-direction: row;
    gap: 6px;
    margin-left: 0;
    align-items: center;
  }
  .pub-actions-left {
    flex: 1 1 auto;
  }
  .gh-card {
    margin-left: 0;
    gap: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 50%;
  }
  .gh-card .gh-card-text,
  .gh-card .gh-card-arrow {
    display: none;
  }
}

.pub-collapse {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg-sub);
  border: 1px solid var(--rule);
  border-radius: 6px;
  animation: pub-fade 220ms ease;
}
@keyframes pub-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pub-collapse-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.pub-collapse-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.pub-bibtex {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- cards (kept for any future use; not currently rendered) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.02);
}
.card .thumb {
  width: calc(100% + 40px);
  height: 140px;
  margin: -20px -20px 16px;
  background: var(--bg-sub);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.card .thumb-decor {
  position: absolute;
  inset: 0;
}
.card .meta-line {
  display: flex; gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.card .meta-line > * { white-space: nowrap; }
.card .meta-line .venue { color: var(--ink-2); font-weight: 500; }
.card .meta-line .yr { color: var(--ink-mute); }
.card .meta-line .featured-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 8px;
}
.card h3 em { font-style: italic; }
.card .authors {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0 0 14px;
}
.card .authors b { color: var(--ink); font-weight: 600; }
.card .links {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.card .links .pill {
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--ink-2);
}
.card .links .pill:hover { color: var(--accent); border-color: var(--accent); }
.card .corner-arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.card:hover .corner-arrow { opacity: 1; transform: translate(0,0); }

/* project card — tall vertical rectangle, thumb on top, content below */
.card.proj {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.card.proj .thumb {
  width: 100%;
  height: 240px;
  margin: 0;
  border-radius: 10px 10px 0 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg-sub);
  position: relative;
}
.card.proj .proj-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card.proj .meta-line {
  font-size: 10px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.card.proj h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.012em;
}
.card.proj .authors {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-mute);
}
.card.proj .corner-arrow {
  top: 14px; right: 14px;
  width: 22px; height: 22px;
}

/* paper card */
.card.paper { display: flex; flex-direction: column; }

/* ---------- globe ---------- */
.globe-section { padding-top: 56px; }
.globe-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .globe-grid-wrap { grid-template-columns: 1fr; gap: 24px; } }

.globe-blurb h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 18ch;
}
.globe-blurb p {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 40ch;
}
.globe-blurb .legend-row {
  display: flex;
  gap: 18px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.globe-blurb .legend-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.globe-blurb .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e0e0e;
  box-shadow: 0 0 0 1px #fff;
  flex: none;
}
.globe-blurb .legend-dot.lived {
  background: var(--accent);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2.5px var(--accent);
}
.globe-blurb .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.globe-blurb .stat .n {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.globe-blurb .stat .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.globe-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.globe {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
  position: relative;
}
.globe.dragging { cursor: grabbing; }
.globe-svg {
  width: 100%; height: 100%; display: block;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.globe.zoomed .globe-svg { transform: scale(1.8); }
.globe svg { width: 100%; height: 100%; display: block; }

.globe-land,
.country {
  fill: #d6cdb8;
  stroke: #9c8f73;
  stroke-width: 0.4;
  stroke-linejoin: round;
}
.country.visited {
  /* no longer used — globe shows cities only, no country highlight */
}
.globe-grid-line {
  stroke: rgba(255,255,255,0.55);
  stroke-width: 0.35;
  fill: none;
}
.globe-grid-line.equator {
  stroke: rgba(255,255,255,0.7);
  stroke-width: 0.5;
}
.globe-pin-core { fill: var(--accent); }
.globe-pin-halo { fill: var(--accent); opacity: 0.22; }
.globe-pin-label {
  fill: #fff;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
  pointer-events: none;
  font-weight: 500;
}
.globe-pin-label-bg {
  fill: #1a1a1a;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 0.4;
}
.globe-pin-label-mini {
  fill: #fff;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.02em;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0,0,0,0.45);
  stroke-width: 2.2px;
  stroke-linejoin: round;
  font-weight: 500;
}

.globe-readout {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
  white-space: nowrap;
}
.globe-readout .now {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- colophon ---------- */
.colophon {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.colophon a { border-bottom: none; color: var(--ink-2); }
.colophon a:hover { color: var(--accent); }
.colophon .right { text-align: right; line-height: 1.6; }

::selection { background: var(--accent); color: #fff; }

/* ---------- page layout — wider content, quieter lateral bands ---------- */
.page {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1280px) 1fr;
  max-width: 1860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  --scroll-pct: 0%;
}

.lateral-stripes {
  align-self: stretch;
  position: relative;
  min-width: 0;
  pointer-events: none;
}
.lateral-stripes.left  { border-right: 1px solid var(--rule); }
.lateral-stripes.right { border-left:  1px solid var(--rule); }

/* ---- LEFT BAND: vertical scroll-progress rail ---- */
.rail-progress {
  position: sticky;
  top: 24vh;
  height: 52vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
}
.rp-track {
  position: relative;
  flex: 1;
  width: 1px;
  background: var(--rule);
}
.rp-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--scroll-pct, 0%);
  background: var(--ink);
  transition: height 80ms linear;
}
.rp-dot {
  position: absolute;
  left: 50%;
  top: var(--scroll-pct, 0%);
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #b0e0e6;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px #b0e0e6;
  transition: top 80ms linear;
}
.rp-cap-top, .rp-cap-bot {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.4;
}
.rp-cap-top .pct {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.rp-cap-bot .now {
  display: block;
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-top: 2px;
}

/* ---- RIGHT BAND: section index ---- */
.rail-nav {
  position: sticky;
  top: 32vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 14px 0 12px;
  pointer-events: auto;
}
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 220ms ease;
}
.rail-nav a .tick {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--rule-strong);
  flex-shrink: 0;
  transition: width 260ms cubic-bezier(.2,.7,.2,1),
              height 260ms ease,
              background 260ms ease;
}
.rail-nav a:hover {
  color: var(--ink-2);
}
.rail-nav a:hover .tick {
  width: 18px;
  background: var(--ink-2);
}
.rail-nav a.is-active {
  color: var(--ink);
}
.rail-nav a.is-active .tick {
  width: 24px;
  height: 2px;
  background: #b0e0e6;
}
.rail-nav .group-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 4px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 1180px) {
  .page { grid-template-columns: 1fr; }
  .lateral-stripes { display: none; }
}
@media (min-width: 1181px) and (max-width: 1480px) {
  .page {
    grid-template-columns: 110px minmax(0, 1280px) 110px;
  }
  .rail-nav a {
    font-size: 10.5px;
  }
  .rail-nav a span:last-child {
    /* trim long labels gracefully if needed */
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* page already has horizontal centering; shrink shell padding accordingly */
.shell { padding-left: clamp(20px, 3vw, 64px); padding-right: clamp(20px, 3vw, 64px); }
