/* ════════════════════════════════════════════════════════════════════
   CARTOGRAPHIC EDITORIAL — design tokens
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Palette — warm parchment + ink + terracotta */
  --bg:           #F4EEE2;
  --bg-2:         #EDE5D2;
  --surface:      #FAF6EC;
  --ink:          #1A1814;
  --ink-soft:     #3A3631;
  --muted:        #7A746A;
  --line:         #D6CFC0;
  --line-strong:  #B8AE99;
  --accent:       #B85C38;   /* terracotta */
  --accent-soft:  #E0967A;
  --accent-deep:  #8A3F22;
  --secondary:    #2C4A52;   /* deep teal */
  --highlight:    #F2E6CB;   /* pale gold */

  /* Type */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Geometry */
  --max-w:        1280px;
  --sidebar-w:    340px;
  --pad:          clamp(1.25rem, 3vw, 3rem);
  --radius:       2px;
  --radius-lg:    6px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:    cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast:       180ms;
  --d:            340ms;
  --d-slow:       620ms;
}

/* Dark mode — burnt cocoa + amber */
[data-theme="dark"] {
  --bg:           #14110C;
  --bg-2:         #1B1812;
  --surface:      #1E1A14;
  --ink:          #EDE5D3;
  --ink-soft:     #C7BEAB;
  --muted:        #8A8273;
  --line:         #2E2820;
  --line-strong:  #4A4233;
  --accent:       #E8A87C;
  --accent-soft:  #C77B5E;
  --accent-deep:  #F4C1A0;
  --secondary:    #7BA9B2;
  --highlight:    #2C2519;
}

/* ════════════════════════════════════════════════════════════════════
   Reset / base
   ════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--secondary) 7%, transparent), transparent 60%);
  background-attachment: fixed;
  letter-spacing: -0.005em;
  transition: background var(--d) var(--ease), color var(--d) var(--ease);
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
a:hover { background-size: 100% 2px; color: var(--accent); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ── Paper grain overlay (very subtle) ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.08; }

/* Compass watermark — bottom-right of viewport */
.watermark {
  position: fixed;
  right: -50px;
  bottom: -50px;
  width: 280px;
  height: 280px;
  color: var(--line-strong);
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════
   Layout — sidebar + main
   ════════════════════════════════════════════════════════════════════ */
body {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: var(--pad);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  min-height: 100%;
}

.main {
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4.5rem);
  max-width: 880px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════════════════════════════
   PROFILE  (sidebar)
   ════════════════════════════════════════════════════════════════════ */
.profile { text-align: left; }

.profile-photo-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 1.2rem;
}
.profile-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--highlight);
  box-shadow:
    0 1px 0 var(--line-strong),
    0 12px 32px -16px rgba(26, 24, 20, 0.4);
  z-index: 2;
}
.profile-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform var(--d-slow) var(--ease);
}
.profile-photo:hover img { transform: scale(1.05); }

/* Monogram fallback shown if image fails */
.profile-monogram {
  display: none;
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--accent);
  background: var(--highlight);
}

/* Decorative ring */
.profile-ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin 80s linear infinite reverse;
  z-index: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.profile-role {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0.2rem 0 0.1rem;
}
.profile-role .accent {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.06em;
}
.profile-affiliation {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.3rem;
  font-style: italic;
}

/* Social icons grid */
.profile-links {
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.profile-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  background-image: none;
  color: var(--ink-soft);
  transition:
    background var(--d-fast) var(--ease),
    color var(--d-fast) var(--ease),
    border-color var(--d-fast) var(--ease),
    transform var(--d-fast) var(--ease);
}
.profile-links a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.profile-links a svg { width: 16px; height: 16px; }
.profile-links span { display: none; } /* tooltip-style; could be enabled */

/* CTA button */
.quick-actions { margin-top: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  background-image: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--d-fast) var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px var(--accent-deep);
}
.btn svg { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════════════
   NAV  (sidebar)
   ════════════════════════════════════════════════════════════════════ */
.main-nav { margin-top: auto; }
.main-nav ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.main-nav li {
  border-bottom: 1px solid var(--line);
}
.main-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  background-image: none;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  transition: color var(--d-fast) var(--ease), padding var(--d) var(--ease);
}
.main-nav a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--d) var(--ease);
}
.main-nav a:hover {
  color: var(--ink);
  padding-left: 12px;
}
.main-nav a.active {
  color: var(--accent);
}
.main-nav a.active::before { width: 12px; }
.main-nav a.active .nav-num {
  color: var(--accent);
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  min-width: 1.5rem;
  transition: color var(--d-fast) var(--ease);
}
.nav-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

/* Sidebar footer */
.sidebar-footer { font-size: 0.78rem; color: var(--muted); }
.footnote { margin: 0; }
.mono { font-family: var(--font-mono); letter-spacing: -0.02em; }
.small { font-size: 0.78rem; }

/* ════════════════════════════════════════════════════════════════════
   SECTIONS / ROUTES — fade transitions between "pages"
   ════════════════════════════════════════════════════════════════════ */
.route {
  display: none;
  animation: routeIn var(--d-slow) var(--ease) both;
}
.route.active { display: block; }

@keyframes routeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section markers — "§ 01 ─── about" */
.section-marker {
  display: flex; align-items: center; gap: 0.9rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
}
.section-marker .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Display headings */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.display em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.display .underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.display .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.18em;
  background: var(--highlight);
  z-index: -1;
  transform: skewX(-12deg);
}

/* Sub-headings */
.section-h3 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 3rem 0 1.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
}
.section-h3 span:first-child { white-space: nowrap; }
.section-h3 .rule-thin {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Prose */
.prose p {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.prose.lead p {
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--accent); font-style: italic; }
.prose a { color: var(--ink); }

/* ────────────  News list  ──────────── */
.news-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.news-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}
.news-list p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.hidden-news { display: none; }
.hidden-news.shown { display: grid; }

.toggle-more {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding: 4px 0;
  transition: opacity var(--d-fast) var(--ease);
}
.toggle-more:hover { opacity: 0.7; }
.toggle-more .label-hide { display: none; }
.toggle-more.expanded .label-show { display: none; }
.toggle-more.expanded .label-hide { display: inline; }

/* ════════════════════════════════════════════════════════════════════
   RESEARCH — pillar cards + highlights
   ════════════════════════════════════════════════════════════════════ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.research-card {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--d) var(--ease), box-shadow var(--d) var(--ease), border-color var(--d) var(--ease);
}
.research-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-slow) var(--ease);
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(26, 24, 20, 0.3);
  border-color: var(--card-accent, var(--accent));
}
.research-card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--card-accent, var(--accent));
  margin-bottom: 0.5rem;
}
.research-card h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.research-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
  line-height: 1.5;
}
.card-tags {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.card-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Highlight thumbnails */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.highlight {
  display: block;
  background-image: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--d) var(--ease), box-shadow var(--d) var(--ease);
}
.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(26, 24, 20, 0.35);
}
.highlight-media {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.placeholder-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background:
    linear-gradient(135deg, transparent 49%, var(--line) 49%, var(--line) 51%, transparent 51%),
    var(--bg-2);
  background-size: 12px 12px, 100% 100%;
}
.placeholder-img.small { font-size: 1.4rem; }
.highlight-body { padding: 1rem 1.2rem 1.2rem; }
.highlight-body h5 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.highlight-body p {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.highlight-body .mono { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════
   PUBLICATIONS
   ════════════════════════════════════════════════════════════════════ */
.filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 1.6rem 0 1.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: all var(--d-fast) var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pub-list { display: flex; flex-direction: column; }
.pub {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity var(--d) var(--ease), transform var(--d) var(--ease);
}
.pub.hidden { display: none; }
.pub-media .placeholder-img {
  aspect-ratio: 4/3;
  position: relative;
  border-radius: var(--radius);
}
.pub-body h4 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.authors {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.authors strong { color: var(--accent); }
.venue {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  align-items: center;
}
.venue-tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  border-radius: 3px;
  margin-right: 0.4rem;
  letter-spacing: 0.04em;
}
.venue a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  font-size: 0.84rem;
}

/* Alternate venue-tag colors (Oral, CORE A* etc.) */
.venue-tag.alt {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.venue-tag.inline {
  display: inline-block;
  vertical-align: baseline;
  font-size: 0.66rem;
  padding: 1px 6px;
  margin: 0 2px;
  letter-spacing: 0.08em;
}

/* Under-review compact list */
.news-list.under-review li {
  grid-template-columns: 90px 1fr;
  padding: 0.7rem 0;
}
.news-list.under-review p {
  font-size: 0.9rem;
}

/* ════════════════════════════════════════════════════════════════════
   SKILLS GRID (Career section)
   ════════════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 1rem;
}
.skill-group {
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color var(--d-fast) var(--ease), transform var(--d) var(--ease);
}
.skill-group:hover {
  transform: translateX(3px);
  border-left-color: var(--secondary);
}
.skill-group h5 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.skill-group p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════════════════════════════ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.project-tile {
  display: block;
  background-image: none;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--d) var(--ease);
}
.project-tile:hover {
  border-color: var(--ink);
  background: var(--bg);
  transform: translateY(-3px);
}
.project-cover {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.project-tile h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.project-tile p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.project-meta {
  display: flex; justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}

/* ════════════════════════════════════════════════════════════════════
   GLOBE  /  REACH
   ════════════════════════════════════════════════════════════════════ */
.globe-frame {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 2.4rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.globe-stage {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
#globe-svg {
  width: 100%;
  height: 100%;
  cursor: grab;
}
#globe-svg:active { cursor: grabbing; }

.globe-spinner-hint {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--d) var(--ease);
  pointer-events: none;
}
.globe-spinner-hint svg { width: 14px; height: 14px; }
.globe-frame:hover .globe-spinner-hint { opacity: 1; }

/* Globe sidebar — stats */
.globe-stats {
  display: flex; flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
}
.stat {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.4rem 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  font-feature-settings: "tnum";
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dashed {
  border: none;
  border-top: 1px dashed var(--line-strong);
  margin: 0.8rem 0;
}
.stats-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.top-regions {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 0.5rem;
}
.top-regions li {
  display: grid;
  grid-template-columns: 1fr 60px auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 999px;
  animation: barIn 1.4s var(--ease) both;
  transform-origin: left;
}
@keyframes barIn { from { transform: scaleX(0); } }

/* Globe marker styles (applied via JS to SVG elements) */
.marker-pulse {
  fill: var(--accent);
  transform-origin: center;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { opacity: 0.8; r: 1.5; }
  100% { opacity: 0;   r: 8; }
}

/* ════════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}
.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.contact-list li {
  display: flex; flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}
.contact-value.mono {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 1rem;
}

.page-end {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.page-end .mono { letter-spacing: 0.3em; }

/* ════════════════════════════════════════════════════════════════════
   THEME + MOBILE TOGGLES
   ════════════════════════════════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: 1.2rem; right: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  z-index: 50;
  transition: all var(--d-fast) var(--ease);
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  position: fixed;
  top: 1.1rem; left: 1.1rem;
  z-index: 60;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  body { grid-template-columns: 1fr; }

  .menu-toggle { display: flex; }

  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: min(90vw, 360px);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--d) var(--ease);
    box-shadow: 0 0 40px -20px rgba(0,0,0,0.4);
  }
  .sidebar.open { transform: translateX(0); }

  .main { padding: 5rem 1.4rem 4rem; }

  .display { font-size: clamp(2rem, 8vw, 3rem); }

  .globe-frame { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .pub { grid-template-columns: 80px 1fr; gap: 1rem; }
  .news-list li { grid-template-columns: 90px 1fr; }
}

@media (max-width: 480px) {
  .profile-photo-wrap { width: 100px; height: 100px; }
  .profile-name { font-size: 1.9rem; }
  .display { font-size: 2rem; }
  .stat-num { font-size: 1.9rem; }
  .pub { grid-template-columns: 1fr; }
  .pub-media { max-width: 140px; }
}

/* ════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .watermark, .profile-ring { animation: none; }
}
