/* =========================================================================
   Manish Tamta — academic portfolio
   Plain CSS. Design tokens on :root, dark theme via [data-theme] + media query.
   ========================================================================= */

:root {
  --bg:        #fbfaf8;
  --surface:   #ffffff;
  --surface-2: #f4f1ec;
  --navy:      #1a3a52;
  --navy-ink:  #12293b;
  --teal:      #2c7a7b;
  --teal-deep: #226061;
  --burgundy:  #8b3a3a;
  --text:      #2d3748;
  --text-soft: #5b6472;
  --heading:   #1a202c;
  --border:    #e7e3dc;
  --link:      #226061;
  --link-hover:#8b3a3a;
  --shadow:    0 1px 2px rgba(26, 58, 82, .06), 0 8px 24px rgba(26, 58, 82, .06);
  --shadow-lg: 0 2px 6px rgba(26, 58, 82, .08), 0 18px 48px rgba(26, 58, 82, .12);

  --maxw: 1080px;
  --pad: clamp(1.15rem, 5vw, 2.5rem);
  --sp-section: clamp(3.5rem, 7vw, 5.75rem);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg:        #0f1c26;
  --surface:   #152a37;
  --surface-2: #1b3341;
  --navy:      #cfe0ea;
  --navy-ink:  #eaf2f8;
  --teal:      #5fb8b9;
  --teal-deep: #7fc9c9;
  --burgundy:  #d98f8f;
  --text:      #c3d0da;
  --text-soft: #8fa3b1;
  --heading:   #f0f5f9;
  --border:    #294454;
  --link:      #7fc9c9;
  --link-hover:#e6a9a9;
  --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0f1c26;
    --surface:   #152a37;
    --surface-2: #1b3341;
    --navy:      #cfe0ea;
    --navy-ink:  #eaf2f8;
    --teal:      #5fb8b9;
    --teal-deep: #7fc9c9;
    --burgundy:  #d98f8f;
    --text:      #c3d0da;
    --text-soft: #8fa3b1;
    --heading:   #f0f5f9;
    --border:    #294454;
    --link:      #7fc9c9;
    --link-hover:#e6a9a9;
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--heading); line-height: 1.18; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); margin: .1em 0 .3em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin: 0 0 .5em; }
h3 { font-size: 1.16rem; margin: 0 0 .4em; }
p { margin: 0 0 1.05em; }

a { color: var(--link); text-decoration: none; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .12em .4em; border-radius: 5px; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* -------------------------------------------------------------- nav ----- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1.25rem;
}
.brand {
  font-weight: 680; color: var(--heading); font-size: 1.02rem;
  display: inline-flex; align-items: center; gap: .55rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--heading); }
.brand-mark {
  width: 21px; height: 21px; flex: none; display: block;
  overflow: visible;
}
/* binary black holes: two inspiralling discs on a tilted orbital path */
.bbh-orbit {
  fill: none; stroke: var(--teal); stroke-width: 1; opacity: .45;
  transition: opacity .18s ease, stroke .18s ease;
}
.bbh-disc {
  fill: var(--heading); stroke: var(--teal); stroke-width: 1.4;
  paint-order: stroke; stroke-linejoin: round;
  transition: stroke .18s ease;
}
.brand:hover .bbh-orbit { opacity: .9; stroke: var(--teal); }
.brand:hover .bbh-disc { stroke: var(--link-hover); }

.nav-links { margin-left: auto; display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--text-soft); font-weight: 500; font-size: .95rem;
  padding: .35rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--teal); transition: right .22s ease;
}
.nav-links a:hover { color: var(--heading); text-decoration: none; }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--heading); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .menu-toggle {
  background: transparent; border: 1px solid var(--border); border-radius: 9px;
  color: var(--text-soft); width: 38px; height: 38px; display: grid; place-items: center;
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--heading); border-color: var(--teal); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ------------------------------------------------------------ sections -- */
.section { padding-block: var(--sp-section); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.kicker, .eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 .9rem;
}
.section-lead { color: var(--text-soft); font-size: 1.06rem; }

/* --------------------------------------------------------------- hero --- */
.hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(2.75rem, 6vw, 4.25rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.hero-text .lead {
  font-family: var(--font-serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.5; color: var(--heading); font-weight: 400; margin-bottom: 1.1em;
}

/* hero name typing effect (progressive enhancement) */
.js .hero-name { visibility: hidden; }
.hero-name .typed { white-space: pre; }
.hero-name .caret {
  display: inline-block; width: .055em; min-width: 2px; height: .95em;
  margin-left: .06em; vertical-align: -0.08em; border-radius: 1px;
  background: var(--teal);
  animation: caret-blink 1.05s steps(1, end) infinite;
}
.hero-name.typing-done .caret { animation-iteration-count: 8; }
@keyframes caret-blink { 0%, 47% { opacity: 1; } 50%, 97% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-name { visibility: visible; }
  .hero-name .caret { display: none; }
}
.hero-personal {
  margin: 1.5rem 0 1.7rem; padding-left: 1.15rem;
  border-left: 2px solid color-mix(in srgb, var(--teal) 65%, transparent);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.6; color: var(--text-soft);
}
.hero-personal p { margin: 0; }
.hero-personal p::before { content: "\201C"; }
.hero-personal p::after  { content: "\201D"; }

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .88rem; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: .5rem .9rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.3rem; border-radius: 10px; font-weight: 550; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
:root[data-theme="dark"] .btn-primary { background: var(--teal); color: #0c1a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--teal); color: #0c1a12; } }
.btn-primary:hover { box-shadow: var(--shadow-lg); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { color: #0c1a12; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--heading); }
.btn-ghost:hover { border-color: var(--teal); color: var(--heading); }

.hero-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  font-size: .92rem;
}
.hero-links a { color: var(--text-soft); font-weight: 500; }
.hero-links a:hover { color: var(--link-hover); }

.hero-photo { margin: 0; }
.hero-photo img {
  border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 860 / 746; object-fit: cover;
}
.hero-photo figcaption {
  font-size: .8rem; color: var(--text-soft); margin-top: .7rem; text-align: center;
  font-style: italic;
}

/* -------------------------------------------------------------- cards --- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); }
.card h3 { color: var(--navy); }
:root[data-theme="dark"] .card h3 { color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card h3 { color: var(--teal-deep); } }
.card p { margin: 0; font-size: .96rem; color: var(--text-soft); }

.research-note {
  border-left: 3px solid var(--teal); padding: .3rem 0 .3rem 1.1rem;
  color: var(--text-soft); max-width: 46rem;
}

/* ------------------------------------------------------------- motion --- */
.motion { margin-top: 3.5rem; }
.motion-title { font-size: 1.35rem; color: var(--heading); }
.clip {
  margin: 1.75rem 0 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.clip video { width: 100%; height: auto; display: block; background: #fbfaf8; aspect-ratio: 16 / 9; }
.clip figcaption { padding: 1rem 1.25rem 1.2rem; font-size: .92rem; color: var(--text-soft); }
.clip figcaption strong { color: var(--heading); }
.m { font-family: var(--font-mono); font-size: .88em; white-space: nowrap; }

/* --------------------------------------------------------- publications - */
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.pub {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.pub-year { font-family: var(--font-mono); font-size: .95rem; color: var(--teal-deep); padding-top: .15rem; }
.pub-body h3 { margin-bottom: .35rem; line-height: 1.3; }
.pub-authors { margin: 0 0 .5rem; font-size: .95rem; color: var(--text-soft); }
.pub-authors strong { color: var(--heading); }
.pub-meta { margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .78rem; font-family: var(--font-mono);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-soft); padding: .18rem .5rem; border-radius: 6px;
}
.tag-muted { opacity: .8; }
.pub-links { margin: 0; display: flex; gap: 1rem; font-size: .9rem; font-weight: 550; }

/* -------------------------------------------------------------- talks --- */
.talks-group { margin-bottom: 2.75rem; }
.talks-group:last-child { margin-bottom: 0; }
.talks-group > h2,
.talks-group > h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--teal-deep); margin-bottom: 1rem;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem;
  padding: 0 0 1.75rem 1.75rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: 4px; top: 6px; bottom: -1.75rem;
  width: 2px; background: var(--border);
}
.timeline li:first-child::before {
  top: -.9rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.1rem);
          mask-image: linear-gradient(to bottom, transparent, #000 1.1rem);
}
.timeline li:last-child::before { content: none; }
.timeline li::after {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px var(--surface-2);
}
.tl-date { font-family: var(--font-mono); font-size: .85rem; color: var(--text-soft); padding-top: .1rem; }
.tl-title { margin: 0 0 .2rem; font-weight: 550; color: var(--heading); }
.tl-link { margin-left: .35rem; font-family: var(--font-mono); font-size: .82rem; font-weight: 400; color: var(--teal-deep); text-decoration: none; white-space: nowrap; }
.tl-link:hover { text-decoration: underline; }
.tl-where { margin: 0; font-size: .92rem; color: var(--text-soft); }

/* --------------------------------------------------------------- cv ----- */
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.cv-col > h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--teal-deep); margin-bottom: .9rem;
}
.cv-list { list-style: none; margin: 0 0 .5rem; padding: 0; }
.cv-list li { padding: .55rem 0; border-top: 1px solid var(--border); font-size: .94rem; }
.cv-list li:first-child { border-top: 0; }
.cv-when { display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--text-soft); margin-bottom: .1rem; }
.cv-sub { display: block; font-size: .85rem; color: var(--text-soft); }
.cv-skills-head { margin-top: 1.6rem; }
.cv-skills { font-size: .92rem; color: var(--text-soft); }
.cv-download { margin-top: .5rem; }

/* ------------------------------------------------------------ contact --- */
.contact-list { display: grid; gap: 1.5rem; margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.contact-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-deep); padding-top: .15rem; }
.contact-list dd { margin: 0; }
.contact-elsewhere { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-weight: 500; }

/* ------------------------------------------------------------- footer --- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; background: var(--surface-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: baseline; }
.footer-inner p { margin: 0; font-size: .86rem; color: var(--text-soft); }
.colophon a { color: var(--text-soft); font-weight: 550; }

/* --------------------------------------------------------- reveal anim -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===================================================================== */
/*  Subpages (talks / cv / collaborators)                                 */
/* ===================================================================== */
.page-hero { padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.page-hero .eyebrow a { color: inherit; }
.page-hero .eyebrow a:hover { color: var(--link-hover); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.page-hero .lead {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5; color: var(--heading); font-weight: 400; max-width: 44rem;
}
.page-hero .hero-cta { margin-top: 1.5rem; }

.section-more {
  margin: 2.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-weight: 550; font-size: .95rem;
}

.cv-grid-two { grid-template-columns: 1fr 1fr; }
.cv-grid-two .cv-col > h2 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--teal-deep); margin: 0 0 .8rem;
}
.cv-grid-two .cv-col > h2.cv-skills-head { margin-top: 1.6rem; }
.cv-grid-two .cv-skills { margin-bottom: .4rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .86rem; }
.footer-nav a { color: var(--text-soft); font-weight: 550; }
.footer-nav a:hover { color: var(--link-hover); }

/* --------------------------------------------------------- world map --- */
.worldmap {
  margin: 0 0 3rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
}
.worldmap-svg { display: block; width: 100%; height: auto; }
.worldmap .ocean { fill: var(--surface-2); }
.worldmap .graticule line { stroke: var(--border); stroke-width: 1; opacity: .6; }
.worldmap .land { fill: color-mix(in srgb, var(--navy) 16%, var(--surface)); stroke: var(--border); stroke-width: .5; }
:root[data-theme="dark"] .worldmap .land { fill: color-mix(in srgb, var(--navy) 22%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .worldmap .land { fill: color-mix(in srgb, var(--navy) 22%, var(--surface)); } }
.worldmap .links path { stroke: var(--teal); stroke-width: 1.4; opacity: .45; stroke-dasharray: 4 4; }
.worldmap .pin-dot { fill: var(--burgundy); stroke: var(--surface); stroke-width: 1.5; transition: r .15s ease; }
.worldmap .pin-home .pin-dot { fill: var(--teal-deep); }
.worldmap .pin-halo { fill: var(--teal); opacity: .18; }
.worldmap .pin-label {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  fill: var(--heading); text-anchor: middle;
  paint-order: stroke; stroke: var(--surface-2); stroke-width: 3.5px; stroke-linejoin: round;
}
.worldmap .pin-home .pin-label { text-anchor: middle; }
.worldmap .pin { cursor: default; }
.worldmap .pin.is-active .pin-dot { r: 8; }
.worldmap .pin.is-active .pin-label { fill: var(--link-hover); }

.worldmap-legend {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  padding: .9rem 1.25rem; font-size: .84rem; color: var(--text-soft);
  border-top: 1px solid var(--border);
}
.lg { display: inline-flex; align-items: center; gap: .5rem; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.lg-home::before { background: var(--teal-deep); }
.lg-dot::before { background: var(--burgundy); }

/* ------------------------------------------------------ collaborators -- */
.collab-list {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.1rem;
}
.collab {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.2rem; transition: border-color .15s ease, transform .15s ease;
}
.collab:hover, .collab.is-active { border-color: color-mix(in srgb, var(--teal) 50%, var(--border)); transform: translateY(-2px); }
.collab-name { margin: 0 0 .3rem; font-weight: 600; }
.collab-name a { color: var(--heading); }
.collab-name a:hover { color: var(--link-hover); }
.collab-aff { margin: 0 0 .2rem; font-size: .9rem; color: var(--text-soft); }
.collab-loc { margin: 0; font-size: .84rem; color: var(--teal-deep); font-weight: 550; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 3.6rem 0 auto; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem var(--pad) 1rem; box-shadow: var(--shadow-lg);
    transform: translateY(-135%); transition: transform .28s ease; margin: 0;
  }
  .site-nav.menu-open .nav-links { transform: none; }
  .nav-links a { padding: .85rem 0; border-top: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:first-child { border-top: 0; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--teal-deep); }
  .menu-toggle { display: flex; }
  .site-nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; margin-inline: auto; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .cv-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .cv-grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pub { grid-template-columns: 1fr; gap: .5rem; }
  .pub-year { padding-top: 0; }
  .timeline li, .contact-list > div { grid-template-columns: 1fr; gap: .35rem; }
  .worldmap .pin-label { font-size: 20px; }
}
