/* ============================================================
   Vincent S. Alexander — personal site
   Design: modern & bold  (Mayo Clinic cobalt + midnight blue)
   ============================================================ */

:root {
  /* Colors */
  --ink:        #010f2b;
  --ink-2:      #012d61;
  --ink-soft:   #0a3d74;
  --paper:      #ffffff;
  --paper-2:    #f2f6fc;
  --line:       #e1e8f2;

  --text:       #121a2b;
  --text-soft:  #424c63;
  --muted:      #6b7488;
  --on-dark:    #eaf0fb;
  --on-dark-mut:#9aa6bd;

  --accent:     #2f7bd6;   /* Mayo light blue */
  --accent-2:   #003da5;   /* Mayo cobalt (primary) */
  --accent-3:   #012d61;   /* Mayo midnight blue */

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 18px 50px -22px rgba(15, 23, 42, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--paper-2);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  color: var(--accent-2);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 61, 165, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0, 61, 165, 0.85); }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: #fff; transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; margin-top: 1.25rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
  padding: 0.7rem 0;
}
.nav--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__brand { display: flex; align-items: center; gap: 0.65rem; color: var(--on-dark); transition: color 0.3s var(--ease); }
.nav--scrolled .nav__brand { color: var(--text); }
.nav__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; letter-spacing: 0.02em;
}
.nav__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }

.nav__links { display: flex; align-items: center; gap: 0.4rem; }
.nav__link {
  position: relative;
  font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--on-dark-mut);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav--scrolled .nav__link { color: var(--text-soft); }
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav--scrolled .nav__link:hover, .nav--scrolled .nav__link.is-active { color: var(--accent-2); }
.nav__cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff !important; margin-left: 0.3rem;
}
.nav__cta:hover { transform: translateY(-1px); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2.5px; border-radius: 2px;
  background: var(--on-dark); transition: all 0.3s var(--ease);
}
.nav--scrolled .nav__toggle span { background: var(--text); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 120% at 80% 0%, var(--ink-2) 0%, var(--ink) 55%);
  color: var(--on-dark);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 18%, rgba(47, 123, 214, 0.24), transparent 60%),
    radial-gradient(520px 420px at 12% 90%, rgba(0, 61, 165, 0.22), transparent 60%);
}
.hero::after {
  /* subtle grid */
  content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 56px; align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem;
  color: var(--accent); margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 700; margin-bottom: 1.4rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--on-dark-mut); max-width: 34ch; margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero .btn--ghost { color: var(--on-dark); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__meta { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-num { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.hero__meta-label { font-size: 0.82rem; color: var(--on-dark-mut); letter-spacing: 0.02em; }

/* Portrait */
.hero__portrait { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: min(360px, 80vw); aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-soft), var(--ink-2));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(47,123,214,0.18), transparent 50%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; text-align: center; padding: 1.5rem;
  color: var(--on-dark-mut);
}
.portrait__placeholder span { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--on-dark); }
.portrait__placeholder small { font-size: 0.78rem; max-width: 22ch; line-height: 1.5; }

/* Scroll cue */
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 3px; background: var(--accent);
  animation: scrollcue 1.6s var(--ease) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section--alt { background: var(--paper-2); }

.section__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 3rem; }
.section__index {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--accent-2); letter-spacing: 0.05em;
}
.section__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
.section__title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 0.8rem;
  border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section__intro { font-size: 1.1rem; color: var(--text-soft); max-width: 60ch; margin-bottom: 2.5rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about__lead { font-size: 1.3rem; font-family: var(--font-display); font-weight: 500; color: var(--text); line-height: 1.4; margin-bottom: 1.4rem; }
.about__body p { color: var(--text-soft); font-size: 1.05rem; }

.about__facts {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.about__facts-title { font-size: 1.1rem; margin-bottom: 1.1rem; }
.facts { display: flex; flex-direction: column; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts li:last-child { border-bottom: 0; }
.facts__k { color: var(--muted); }
.facts__v { color: var(--text); font-weight: 500; text-align: right; }
.about__cv-note { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; text-align: center; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -28px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-2); box-shadow: 0 0 0 4px rgba(0,61,165,0.12);
}
.timeline__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.timeline__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.section--alt .timeline__card { background: #fff; }
.timeline__date { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--accent-2); letter-spacing: 0.04em; text-transform: uppercase; }
.timeline__role { font-size: 1.25rem; margin: 0.35rem 0 0.2rem; }
.timeline__org { font-weight: 600; color: var(--text); margin: 0 0 0.5rem; }
.timeline__detail { color: var(--text-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Publications ---------- */
.research__group {
  font-size: 1.35rem; margin: 2.6rem 0 1.2rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.research__group::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.research__group:first-of-type { margin-top: 0; }

.pubs { display: flex; flex-direction: column; gap: 0.9rem; }
.pubs__item {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem 1.2rem 3.2rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pubs__item::before {
  counter-increment: pub; content: counter(pub);
  position: absolute; left: 1.1rem; top: 1.15rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--accent-2);
  width: 1.4rem; text-align: center;
}
.pubs__item:hover { transform: translateX(3px); box-shadow: var(--shadow); border-color: #cdd8ec; }
.pubs__cite { margin: 0; color: var(--text-soft); font-size: 0.98rem; }
.pubs__cite strong { color: var(--text); }
.pubs__link { display: inline-block; margin-top: 0.55rem; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--accent-2); }
.pubs__link:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card__text { color: var(--text-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Contact ---------- */
.section--contact {
  background: radial-gradient(120% 120% at 50% 0%, var(--ink-2) 0%, var(--ink) 60%);
  color: var(--on-dark);
}
.contact__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.section--contact .section__index { color: var(--accent); display: block; margin-bottom: 0.8rem; }
.contact__title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 1.1rem; }
.contact__lead { color: var(--on-dark-mut); font-size: 1.1rem; max-width: 48ch; margin: 0 auto 2.2rem; }
.contact__email {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: #fff; padding-bottom: 0.3rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  border-bottom: 2px solid transparent; transition: border-color 0.25s var(--ease);
}
.contact__email:hover { border-color: var(--accent); }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2.2rem; }
.contact__chip {
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem;
  padding: 0.6rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); color: var(--on-dark);
  transition: all 0.25s var(--ease);
}
.contact__chip:hover { background: rgba(47,123,214,0.16); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-mut); padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__name { font-family: var(--font-display); font-weight: 600; color: var(--on-dark); }
.footer__copy { font-size: 0.88rem; }

/* ---------- Hero role line ---------- */
.hero__title { margin-bottom: 0.55rem; }
.hero__role { font-family: var(--font-display); font-weight: 600; color: #dfe8fb; font-size: clamp(1rem, 1.7vw, 1.25rem); margin: 0 0 1.5rem; }

/* ---------- Honors ---------- */
.honors { display: flex; flex-direction: column; gap: 0.8rem; }
.honor {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent-2);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.honor:hover { transform: translateX(3px); box-shadow: var(--shadow-lg); }
.honor__title { font-size: 1.08rem; margin: 0 0 0.2rem; line-height: 1.3; }
.honor__org { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.honor__date { flex-shrink: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--accent-2); white-space: nowrap; padding-top: 0.15rem; }

/* ---------- Research extras ---------- */
.research__more { color: var(--text-soft); font-size: 0.98rem; margin-top: 1.1rem; font-style: italic; }
.research__sub { color: var(--text-soft); margin: -0.4rem 0 1rem; }
.chapters { display: flex; flex-direction: column; gap: 0.6rem; }
.chapters li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.2rem; color: var(--text-soft); font-size: 0.96rem; }
.chapters li strong { color: var(--text); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; padding: 0.55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-soft); box-shadow: var(--shadow); }

/* ---------- Experience grid ---------- */
.exp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.exp__heading { font-size: 1.25rem; margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 0.5rem; }
.exp__heading::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.exp__item { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.exp__item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.exp__role { font-size: 1.02rem; margin: 0 0 0.15rem; font-family: var(--font-display); }
.exp__org { margin: 0; color: var(--text); font-size: 0.9rem; font-weight: 500; }
.exp__date { margin: 0.2rem 0 0; color: var(--accent-2); font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }
.exp__detail { margin: 0.5rem 0 0; color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Contact form ---------- */
.form { text-align: left; margin: 2.4rem auto 0; max-width: 620px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.form__field label { font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; color: var(--on-dark); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.form__field input, .form__field textarea {
  font-family: var(--font-body); font-size: 1rem; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 0.8rem 1rem; resize: vertical;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.form .btn--primary { margin-top: 0.3rem; width: 100%; }
.form__status { margin: 1rem 0 0; font-size: 0.95rem; min-height: 1.2em; font-weight: 500; }
.form__status--ok { color: #5ee0a0; }
.form__status--error { color: #ff9b9b; }

/* ---------- Reveal animation ----------
   Only hidden when JS is available (html.js). Without JS, content shows normally. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__portrait { order: -1; }
  .portrait { width: min(280px, 70vw); }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .exp__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: rgba(1, 15, 43, 0.97); backdrop-filter: blur(16px);
    padding: 92px 24px 28px;
    transform: translateY(-100%); transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { color: var(--on-dark) !important; font-size: 1.1rem; padding: 0.9rem 1rem; border-radius: 12px; }
  .nav__link:hover { background: rgba(255,255,255,0.06); }
  .nav__cta { text-align: center; margin: 0.6rem 0 0; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .hero__meta { gap: 1.4rem; }
  .section__head { margin-bottom: 2rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .form__row { grid-template-columns: 1fr; }
  .honor { flex-direction: column; gap: 0.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Additions: accessibility, publications grouping, polish
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--accent-2); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.1rem; border-radius: 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Visible keyboard focus */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nav--scrolled .nav__link:focus-visible,
.about__facts a:focus-visible,
.timeline__card a:focus-visible,
.pubs__item a:focus-visible { outline-color: var(--accent-2); }
main:focus, main:focus-visible { outline: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Publications: year groups, first-author tags, under review */
.pubs-groups { counter-reset: pub; }
.pubs__year {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em; color: var(--accent-2);
  margin: 1.8rem 0 0.9rem; display: flex; align-items: center; gap: 0.85rem;
}
.pubs__year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pubs-groups > .pubs__year:first-child { margin-top: 0; }
.pubs__tag {
  display: inline-block; margin: 0.55rem 0.6rem 0 0;
  font-family: var(--font-display); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(0, 61, 165, 0.08);
  border: 1px solid rgba(0, 61, 165, 0.18); border-radius: 999px;
  padding: 0.18rem 0.62rem; vertical-align: middle;
}
.pubs--plain .pubs__item { padding-left: 1.4rem; }
.pubs--plain .pubs__item::before { content: none; }

/* hCaptcha widget in the dark contact form */
.form .h-captcha { margin: 0 0 1.1rem; min-height: 78px; }
