/**
* Layout based on the iPortfolio Bootstrap template (BootstrapMade.com).
*
* v3 design system — dark academia, three accents that carry meaning:
*   lilac = Human-centered AI      teal = Translational / clinical
*   gold  = interactive / emphasis paper = the light "collaborations" band
* Text/background pairs below all clear WCAG AA (most ≥ 7:1).
*/

:root {
  --ink: #151016;
  --ink-2: #1b151d;
  --surface: #1f1820;
  --surface-2: #2a2129;
  --aubergine-900: #24121f;
  --aubergine-700: #3d1f38;
  --aubergine-500: #5a2f5a;
  --parchment: #ebe1cc;
  --parchment-2: #b9ab93;
  --lilac: #c7a6d9;
  --lilac-dim: rgba(199, 166, 217, 0.18);
  --teal: #6fb8ad;
  --teal-dim: rgba(111, 184, 173, 0.16);
  --gold: #c9a45f;
  --gold-light: #ddc08a;
  --gold-dim: rgba(201, 164, 95, 0.14);
  --paper: #f3ecdf;
  --paper-ink: #2b1d2a;
  --rule: rgba(201, 164, 95, 0.22);
  --rule-strong: rgba(201, 164, 95, 0.45);

  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;

  --sidebar: 290px;
  --chipbar: 0px;
  --measure: 75ch;
  --pad: 72px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.75;
  color: var(--parchment);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Faint paper grain (inline SVG noise) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold-light); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; color: var(--parchment); }
strong { font-weight: 600; color: #f4ecda; }
p { margin-bottom: 1rem; }
::selection { background: var(--aubergine-500); color: #fff; }

.sc { font-variant-caps: all-small-caps; letter-spacing: 0.08em; }
.measure { max-width: var(--measure); }
.muted { color: var(--parchment-2); }

.container, .container-fluid { padding-left: 32px; padding-right: 32px; }
#main { margin-left: var(--sidebar); }

@media (max-width: 1199px) {
  :root { --chipbar: 46px; }
  #main { margin-left: 0; }
  .container, .container-fluid { padding-left: 18px; padding-right: 18px; }
}

/*--------------------------------------------------------------
# Sidebar & footer
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar);
  z-index: 9997;
  padding: 0 16px 168px;
  overflow-y: auto;
  scrollbar-width: none; /* still scrolls on short screens, without a visible bar */
  background: linear-gradient(180deg, var(--aubergine-900) 0%, var(--aubergine-700) 100%);
  border-right: 1px solid var(--rule);
  transition: left 0.4s ease;
}
#header::-webkit-scrollbar { display: none; }

#header .profile img {
  display: block;
  margin: 22px auto 12px;
  width: 112px;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

#header .profile h1 { margin: 0; font-size: 27px; font-weight: 700; text-align: center; }
#header .profile h1 a, #header .profile h1 a:hover { color: var(--parchment); }

/* Cormorant's hyphen is a small low wedge; draw a level bar in its place.
   The "-" stays in the text for copying, search and screen readers. */
.hy {
  display: inline-block; width: 0.3em; height: 0.075em; margin: 0 0.05em;
  vertical-align: 0.24em; border-radius: 1px;
  background: currentColor; -webkit-text-fill-color: transparent;
  overflow: hidden; line-height: 0;
}

#header .profile .tagline {
  margin: 4px 0 0;
  padding-bottom: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-variant-caps: all-small-caps;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: var(--gold-light);
}

#header .social-links { display: flex; justify-content: center; gap: 6px; }

#header .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 17px;
  color: var(--parchment);
  border: 1px solid var(--rule-strong);
  transition: background-color 0.2s ease, color 0.2s ease;
}

#header .social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.nav-menu { padding: 18px 0 0; }
.nav-menu * { margin: 0; padding: 0; list-style: none; }

.nav-menu a, .nav-menu a:focus {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px;
  margin-bottom: 2px;
  border-left: 2px solid transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(235, 225, 204, 0.72);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a i { font-size: 19px; color: rgba(201, 164, 95, 0.7); }
.nav-menu a:hover, .nav-menu .active, .nav-menu .active:focus { color: var(--parchment); background: var(--gold-dim); border-left-color: var(--gold); }
.nav-menu a:hover i, .nav-menu .active i { color: var(--gold-light); }

.mobile-nav-toggle {
  position: fixed; right: 12px; top: 4px; z-index: 9999;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 22px; line-height: 0;
  cursor: pointer;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.mobile-nav-active { overflow: hidden; }

@media (max-width: 1199px) {
  #header { left: calc(-1 * var(--sidebar) - 10px); }
  .mobile-nav-active #header { left: 0; }
}

.chipbar {
  position: sticky; top: 0; z-index: 998;
  height: var(--chipbar);
  display: flex; align-items: center; gap: 6px;
  padding: 0 60px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(21, 16, 22, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}

.chipbar::-webkit-scrollbar { display: none; }

.chipbar a {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--parchment);
  white-space: nowrap;
}

.chipbar a.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (min-width: 1200px) { .chipbar { display: none; } }

#footer {
  position: fixed; left: 0; bottom: 0;
  width: var(--sidebar);
  z-index: 9998;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--parchment-2);
  text-align: center;
  background: var(--aubergine-900);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

/* NU logo in a single light tone, directly on the sidebar */
#footer .alma-mater { margin-bottom: 8px; }
#footer .alma-mater img { width: 116px; height: auto; filter: brightness(0) invert(0.88) sepia(0.4); opacity: 0.85; }
#footer .copyright strong { color: var(--parchment); }

@media (max-width: 1199px) { #footer { position: static; width: auto; border-right: 0; padding: 22px 16px; } }

/*--------------------------------------------------------------
# Buttons, chips, cards (the shared components)
--------------------------------------------------------------*/
.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); box-shadow: 0 0 22px rgba(201, 164, 95, 0.3); }
.btn-ghost { background: transparent; color: var(--parchment); border: 1px solid var(--rule-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-dim); }
.btn-ghost[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

.chip {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--parchment);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
}

.chip.human { border-color: rgba(199, 166, 217, 0.5); color: var(--lilac); }
.chip.clinic { border-color: rgba(111, 184, 173, 0.5); color: var(--teal); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  padding: 20px 22px;
}

.panel.human { border-top-color: var(--lilac); }
.panel.clinic { border-top-color: var(--teal); }
.panel h4 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 0 0 0 var(--sidebar);
  background: var(--ink) url("../img/nu-campus.jpg") center 35% / cover no-repeat;
}

#hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 65% 45%, rgba(21, 16, 22, 0) 0%, rgba(21, 16, 22, 0.7) 90%),
    linear-gradient(120deg, rgba(36, 18, 31, 0.9) 0%, rgba(61, 31, 56, 0.62) 50%, rgba(66, 40, 22, 0.38) 100%);
}

#hero > * { position: relative; }
@media (min-width: 1024px) { #hero { background-attachment: fixed; } }

.hero-container { padding: 0 56px; max-width: 980px; margin: auto 0; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-variant-caps: all-small-caps;
  font-size: 19px;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 6px;
}

#hero h1 {
  margin: 0 0 6px;
  font-size: 76px;
  line-height: 1.02;
  color: var(--parchment);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  animation: rise-in 0.9s ease-out both;
}

.hero-typed { font-family: var(--font-display); font-size: 28px; font-style: italic; margin-bottom: 14px; animation: rise-in 0.9s 0.15s ease-out both; }
.hero-typed .typed { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.typed-cursor { color: var(--gold); }

.hero-motto {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-variant-caps: all-small-caps;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--parchment-2);
  animation: rise-in 0.9s 0.3s ease-out both;
}

.hero-motto::before { content: ""; width: 44px; height: 1px; background: var(--gold); }

.hero-alma {
  display: flex; align-items: center; gap: 20px;
  width: fit-content; max-width: 100%;
  margin-top: 26px;
  padding: 16px 24px 16px 18px;
  background: rgba(21, 16, 22, 0.6);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  animation: rise-in 0.9s 0.45s ease-out both;
}
/* The card links to the Northwestern feature (northwestern.html) */
a.hero-alma { color: var(--parchment); position: relative; transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
a.hero-alma:hover { color: var(--parchment); border-color: var(--gold); background: rgba(36, 18, 31, 0.78); transform: translateY(-2px); }
.hero-alma-go { align-self: flex-start; margin-left: 4px; font-size: 16px; color: var(--gold); opacity: 0.6; transition: opacity 0.25s ease, transform 0.25s ease; }
a.hero-alma:hover .hero-alma-go { opacity: 1; transform: translate(2px, -2px); }

/* The seal artwork is untouched: no ring or shadow. It sits on a plain white
   field, which is the seal's own background in official use. */
.hero-alma-logo { flex: 0 0 auto; width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }

.hero-alma-text { display: flex; flex-direction: column; line-height: 1.35; }
.hero-alma-label { font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 16px; letter-spacing: 0.12em; color: var(--gold-light); }
.hero-alma-name { font-family: var(--font-display); font-size: 25px; font-weight: 700; }
.hero-alma-sub { font-size: 14px; color: var(--parchment-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; animation: rise-in 0.9s 0.6s ease-out both; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  background: rgba(21, 16, 22, 0.8);
  border-top: 1px solid var(--rule-strong);
  backdrop-filter: blur(4px);
}

.stat { padding: 22px 12px 20px; text-align: center; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat .num { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--gold-light); }
.stat .label { display: block; margin-top: 8px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-2); }

@media (max-width: 1199px) {
  #hero { padding: 0; min-height: 0; }
  .hero-container { margin: 56px 0 0; padding: 0 20px; }
}

@media (max-width: 767px) {
  #hero h1 { font-size: 46px; }
  .hero-typed { font-size: 21px; }
  .hero-motto { display: block; font-size: 14px; letter-spacing: 0.06em; }
  .hero-motto::before { display: none; }
  .hero-alma { gap: 14px; padding: 12px 16px 12px 12px; }
  .hero-alma-logo { width: 60px; height: 60px; }
  .hero-alma-name { font-size: 20px; }
  .hero-alma-label { font-size: 14px; }
  .hero-alma-sub { font-size: 12.5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
  .stat { padding: 14px 8px; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .stat .num { font-size: 32px; }
  .stat .label { font-size: 10px; }
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section { padding: var(--pad) 0; overflow: hidden; scroll-margin-top: var(--chipbar); }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-title { padding-bottom: 28px; }
.section-title .eyebrow { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.1em; color: var(--gold); line-height: 1; margin: 0 0 4px; }
.section-title h2 { font-size: 46px; line-height: 1.1; margin: 0 0 14px; padding-bottom: 14px; position: relative; }

.section-title h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 4px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.in-view h2::after { width: 84px; }
.section-title p { max-width: var(--measure); margin: 0; color: var(--parchment-2); font-size: 17px; }

.subsection-title { font-family: var(--font-display); font-size: 26px; margin: 8px 0 16px; }
.fleuron { display: block; text-align: center; font-size: 20px; color: var(--gold); opacity: 0.6; padding: 4px 0; line-height: 1; }

@media (max-width: 767px) {
  :root { --pad: 44px; }
  .section-title { padding-bottom: 20px; }
  .section-title h2 { font-size: 36px; }
  .section-title p { font-size: 15.5px; }
  .fleuron { padding: 0; }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.portrait { padding: 8px; border: 1px solid var(--rule-strong); background: var(--surface); }
.portrait img { display: block; width: 100%; filter: sepia(0.1); }

/* Logos in one light parchment tone, like the sidebar footer logo */
.plates { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 24px; }
.plate { display: flex; align-items: center; justify-content: center; width: 100%; }
.plate + .plate { padding-top: 20px; border-top: 1px solid var(--rule); }
.plate img { max-width: 100%; height: auto; filter: brightness(0) invert(0.88) sepia(0.4); opacity: 0.88; }
.plate .nu { width: 200px; }
.plate .feinberg { width: 250px; }

.about-lead { font-family: var(--font-display); font-size: 25px; font-style: italic; line-height: 1.4; margin-bottom: 18px; }
.about-body > p { max-width: var(--measure); }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px;
  margin: 0 0 22px; padding: 14px 0;
  list-style: none;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}

.facts li { display: flex; gap: 10px; font-size: 15px; min-width: 0; }
.facts .k { flex: 0 0 auto; min-width: 92px; font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 17px; letter-spacing: 0.08em; color: var(--gold); }
.facts .v { min-width: 0; overflow-wrap: anywhere; }
.facts li.wide { grid-column: 1 / -1; }

.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 18px; }
.themes .panel h4 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.themes .panel.human h4 i { color: var(--lilac); }
.themes .panel.clinic h4 i { color: var(--teal); }
.themes .panel p { font-size: 15px; color: var(--parchment-2); }

.bio-toggle { display: none; }

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-side { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
  .portrait { padding: 4px; border-radius: 50%; }
  .portrait img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }
  .plates { flex-direction: row; justify-content: flex-start; gap: 18px; margin-top: 0; }
  .plate { width: auto; }
  .plate + .plate { padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--rule); }
  .plate .nu { width: 104px; }
  .plate .feinberg { width: 160px; }
}

@media (max-width: 767px) {
  .facts, .themes { grid-template-columns: 1fr; }
  .about-lead { font-size: 21px; }
  .plates { flex-direction: column; align-items: flex-start; gap: 10px; }
  .plate + .plate { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .plate .nu { width: 96px; }
  .plate .feinberg { width: 150px; }
  .bio-more { display: none; }
  .bio-more.open { display: block; }
  .bio-toggle { display: inline-flex; }
}

/*--------------------------------------------------------------
# Research figure (inline SVG, journal-figure style)
--------------------------------------------------------------*/
.rfigure {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 18px 18px 8px;
}

.rfigure svg { width: 100%; height: auto; display: block; }

.fig-label { font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; fill: var(--parchment); }
.fig-panel { font-family: var(--font-ui); font-size: 12px; font-weight: 600; fill: var(--parchment-2); letter-spacing: 0.08em; }
.fig-small { font-family: var(--font-ui); font-size: 10.5px; fill: var(--parchment-2); }
.fig-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; fill: var(--parchment); }
.fig-line { fill: none; stroke: var(--parchment-2); stroke-width: 1; opacity: 0.55; }
.fig-lead { fill: none; stroke: var(--parchment-2); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.fig-flow { fill: none; stroke-width: 1.5; stroke-dasharray: 5 6; }
.fig-flow.human { stroke: var(--lilac); }
.fig-flow.clinic { stroke: var(--teal); }
.fig-flow.gold { stroke: var(--gold); }
.fig-box { fill: var(--surface-2); stroke: var(--rule-strong); stroke-width: 1; }
.fig-box.human { stroke: var(--lilac); }
.fig-box.clinic { stroke: var(--teal); }
.fig-box.gold { stroke: var(--gold); }
.fig-scene { fill: var(--ink); stroke: var(--rule-strong); }
.fig-ink { fill: var(--parchment); }
.fig-ink-2 { fill: var(--parchment-2); }
.fig-lilac { fill: var(--lilac); }
.fig-teal { fill: var(--teal); }
.fig-gold { fill: var(--gold); }
.fig-stroke { fill: none; stroke: var(--parchment); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-stroke-2 { fill: none; stroke: var(--parchment-2); stroke-width: 1.25; stroke-linecap: round; }
.fig-screen { fill: #0d0a10; stroke: var(--parchment-2); }

.fig-hot { cursor: pointer; transition: opacity 0.25s ease; }
.fig-hot:focus { outline: none; }
.fig-hot:focus-visible rect, .fig-hot:hover rect { stroke-width: 2; }
.rfigure.has-active .fig-hot:not(.active) { opacity: 0.4; }
.fig-hot.active rect { stroke-width: 2; filter: drop-shadow(0 0 8px rgba(201, 164, 95, 0.4)); }

/* Animation */
.fig-flow { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.fig-gantry { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fig-table { animation: slide 9s ease-in-out infinite; }
@keyframes slide { 0%, 15% { transform: translateX(0); } 45%, 60% { transform: translateX(-46px); } 90%, 100% { transform: translateX(0); } }
.fig-slice { opacity: 0; animation: slices 12s steps(1) infinite; }
.fig-slice:nth-child(1) { animation-delay: 0s; }
.fig-slice:nth-child(2) { animation-delay: -10s; }
.fig-slice:nth-child(3) { animation-delay: -8s; }
.fig-slice:nth-child(4) { animation-delay: -6s; }
.fig-slice:nth-child(5) { animation-delay: -4s; }
.fig-slice:nth-child(6) { animation-delay: -2s; }
@keyframes slices { 0% { opacity: 1; } 16.6% { opacity: 0; } 100% { opacity: 0; } }
.fig-mask { animation: mask 3s ease-in-out infinite; }
@keyframes mask { 0%, 25% { opacity: 0; } 55%, 80% { opacity: 0.55; } 100% { opacity: 0; } }
.fig-gaze { animation: gaze 6s steps(1) infinite; }
@keyframes gaze {
  0% { transform: translate(0, 0); } 18% { transform: translate(34px, -10px); } 36% { transform: translate(12px, 18px); }
  55% { transform: translate(44px, 14px); } 75% { transform: translate(-6px, -18px); } 100% { transform: translate(0, 0); }
}
.fig-eeg { stroke-dasharray: 200; animation: eeg 2.4s linear infinite; }
@keyframes eeg { to { stroke-dashoffset: -200; } }
.fig-loop { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }

.fig-caption {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--ink);
  border-left: 3px solid var(--gold);
  min-height: 90px;
}

.fig-caption.human { border-left-color: var(--lilac); }
.fig-caption.clinic { border-left-color: var(--teal); }
.fig-caption h4 { font-size: 21px; margin-bottom: 4px; }
.fig-caption p { font-size: 15px; margin-bottom: 8px; max-width: var(--measure); }
.fig-caption .rep { font-size: 13.5px; color: var(--parchment-2); }
.fig-caption .rep a { font-style: italic; }
.fig-caption .direction { display: inline-block; font-family: var(--font-ui); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.js .fig-src { display: none; }
.no-js .fig-src { margin-top: 12px; padding: 14px 16px; background: var(--ink); border-left: 3px solid var(--gold); }

.fig-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-family: var(--font-ui); font-size: 12px; color: var(--parchment-2); }
.fig-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* Theme blocks under the figure */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.theme-grid .panel h4 { font-size: 23px; }
.theme-grid .panel .lead { font-size: 15px; color: var(--parchment-2); }
.theme-grid .panel ul { padding-left: 18px; margin: 8px 0 10px; font-size: 14.5px; }
.theme-grid .panel ul li::marker { color: var(--gold); }
.theme-grid .panel .rep { font-size: 13.5px; color: var(--parchment-2); margin: 0; }

@media (max-width: 991px) {
  .theme-grid { grid-template-columns: 1fr; }
  .rfigure { padding: 10px 10px 4px; }
}

/*--------------------------------------------------------------
# 3D viewer
--------------------------------------------------------------*/
.viewer { display: grid; grid-template-columns: 1fr 300px; gap: 0; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--teal); margin-top: 28px; }

.viewer-stage { position: relative; min-height: 420px; background: #000; }
.viewer-stage canvas { width: 100%; height: 100%; display: block; }

.viewer-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #000 url("../img/slices/mr_gd-4.webp") center / contain no-repeat;
}

.viewer-poster::before { content: ""; position: absolute; inset: 0; background: rgba(21, 16, 22, 0.55); }
.viewer-poster > * { position: relative; }
.viewer-poster p { font-family: var(--font-ui); font-size: 12.5px; color: var(--parchment-2); margin: 0; text-align: center; max-width: 34ch; }
.viewer-poster[hidden] { display: none; }

.viewer-side { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--rule); }
.viewer-side h4 { font-size: 22px; margin: 0; }
.viewer-side .group { display: flex; flex-wrap: wrap; gap: 6px; }
.viewer-side .group-label { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--parchment-2); margin-bottom: 4px; }
.viewer-status { font-family: var(--font-ui); font-size: 12px; color: var(--teal); min-height: 1.2em; }
.viewer-note { font-size: 14.5px; line-height: 1.6; color: var(--parchment-2); margin: 0; }
.viewer-fine { font-size: 12px; line-height: 1.5; color: var(--parchment-2); margin: auto 0 0; }

/* Human-in-the-loop segmentation demo */
.viewer.seg { border-top-color: var(--lilac); }
.seg .viewer-stage { min-height: 0; display: flex; align-items: center; }
.seg .viewer-stage canvas { height: auto; aspect-ratio: 640 / 440; cursor: crosshair; touch-action: manipulation; }
.seg-hint {
  position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 5px 12px;
  font-family: var(--font-ui); font-size: 12px; color: var(--parchment);
  background: rgba(21, 16, 22, 0.78); border: 1px solid var(--lilac); border-radius: 999px;
  pointer-events: none; transition: opacity 0.3s ease;
}
.seg-hint.gone { opacity: 0; }
.seg-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-family: var(--font-ui); font-size: 12.5px; color: var(--parchment); }
.seg-legend li { display: flex; align-items: center; gap: 8px; }
.seg-legend strong { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg-legend i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; }
.seg-legend .human { border-color: var(--lilac); background: var(--lilac-dim); }
.seg-legend .model { border-color: var(--teal); background: var(--teal-dim); }
.seg-legend .review { border-color: var(--gold); border-style: dashed; background: var(--gold-dim); }
.seg-score { font-family: var(--font-ui); font-size: 12px; color: var(--parchment-2); min-height: 1.2em; }
.seg-score strong { color: var(--gold-light); }

@media (max-width: 991px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer-stage { min-height: 320px; }
  .viewer-side { border-left: 0; border-top: 1px solid var(--rule); }
}

/*--------------------------------------------------------------
# Publications
--------------------------------------------------------------*/
.featured-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured-pub { display: flex; flex-direction: column; }
.fp-venue { font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 16px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 4px; }
.featured-pub h4 { font-size: 20px; line-height: 1.25; }
.featured-pub p { flex: 1 1 auto; font-size: 14px; color: var(--parchment-2); margin-bottom: 10px; }
.featured-pub a { font-family: var(--font-ui); font-size: 13px; font-weight: 600; }
.swipe-hint { display: none; font-family: var(--font-ui); font-size: 12px; color: var(--parchment-2); margin-top: 8px; }

@media (max-width: 991px) {
  .featured-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .featured-pub { scroll-snap-align: start; }
  .swipe-hint { display: block; }
}

.pub-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 14px 16px; margin: 10px 0 12px;
  background: var(--surface); border: 1px solid var(--rule);
}

.pub-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.pub-filter {
  padding: 5px 13px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--parchment);
  background: transparent;
  border: 1px solid var(--rule-strong); border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pub-filter:hover { border-color: var(--gold); }
.pub-filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pub-filter .count { margin-left: 4px; font-size: 11px; opacity: 0.75; }

.pub-toolbar select, .pub-toolbar input[type="search"] {
  padding: 6px 12px;
  font-family: var(--font-ui); font-size: 13px;
  color: var(--parchment);
  background: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 20px;
}

.pub-toolbar input[type="search"] { flex: 1 1 200px; min-width: 0; }
.pub-toolbar input::placeholder { color: var(--parchment-2); opacity: 0.8; }
.pub-toolbar select:focus, .pub-toolbar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }

.pub-status, .pub-note { font-family: var(--font-ui); font-size: 12.5px; color: var(--parchment-2); margin-bottom: 6px; }
.pub-list-rich { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); max-width: 1000px; }
.pub { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.pub[hidden] { display: none; }
.pub-year-badge { flex: 0 0 52px; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--gold); line-height: 1.4; }
.pub-body { min-width: 0; }
.pub-title { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.pub-authors { font-size: 14px; color: var(--parchment-2); margin-bottom: 3px; line-height: 1.5; }
.pub-authors .me { color: var(--parchment); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.pub-authors sup { color: var(--gold); }
.pub-venue { font-size: 14px; line-height: 1.55; margin: 0; }
.pub-venue-short { font-weight: 600; color: var(--lilac); }
.pub-venue-full { font-style: italic; color: var(--parchment-2); }

.pub-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600; line-height: 1.7;
  border-radius: 3px;
  vertical-align: 1px;
  white-space: nowrap;
}

.tag-first { background: var(--gold); color: var(--ink); }
.tag-highlight { border: 1px solid var(--teal); color: var(--teal); }
.tag-if { background: var(--lilac-dim); color: var(--lilac); }
.tag-workshop { border: 1px solid var(--rule-strong); color: var(--parchment-2); }
.pub-link { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* Paper popularity (site.js): read counts, "Most read" badge and strip */
.pub-reads, .pub-hot { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.pub-reads { color: var(--parchment-2); }
.pub-hot { padding: 1px 8px; color: var(--gold-light); background: var(--gold-dim); border: 1px solid var(--rule-strong); border-radius: 999px; }
.most-read[hidden] { display: none; }
.most-read-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.most-read-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.most-read-list .rank { grid-row: span 2; font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.most-read-list .t { display: block; font-family: var(--font-display); font-size: 18.5px; font-weight: 600; line-height: 1.25; color: var(--parchment); }
.most-read-list a.t:hover { color: var(--gold-light); }
.most-read-list .meta { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--lilac); }
.most-read-list .n { grid-column: 2; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-light); }
@media (max-width: 991px) { .most-read-list { grid-template-columns: 1fr; } }
.pub-empty { padding: 24px; text-align: center; color: var(--parchment-2); }
.scholar-links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 767px) {
  .pub { flex-direction: column; gap: 0; padding: 10px 2px; }
  .pub-year-badge { font-size: 16px; }
  .pub-authors { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
  .pub-venue-full { display: none; }
  .pub-title { font-size: 15px; }
}

/*--------------------------------------------------------------
# News
--------------------------------------------------------------*/
.news-year { border-bottom: 1px solid var(--rule); max-width: 1000px; }
.news-year:first-of-type { border-top: 1px solid var(--rule); }
.news-year summary { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; list-style: none; cursor: pointer; }
.news-year summary::-webkit-details-marker { display: none; }
.news-year summary .y { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.news-year summary .n { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--parchment-2); }
.news-year summary .chev { margin-left: auto; color: var(--gold); transition: transform 0.25s ease; }
.news-year[open] summary .chev { transform: rotate(180deg); }
.news-list { margin: 0 0 18px; padding: 0 4px 0 24px; max-width: var(--measure); }
.news-list li { padding: 5px 0; font-size: 15.5px; }
.news-list li::marker { content: "❧  "; color: var(--gold); }
.news-more-btn { display: none; margin: -6px 0 16px 24px; }

@media (max-width: 767px) {
  .news-year.clamped .news-list li:nth-child(n+5) { display: none; }
  .news-year.clamped .news-more-btn { display: inline-flex; }
  .news-list li { font-size: 14.5px; }
}

/*--------------------------------------------------------------
# Curriculum
--------------------------------------------------------------*/
.tablist { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--rule-strong); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 10px 16px; margin-bottom: -1px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--parchment-2);
  background: none; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tab:hover { color: var(--parchment); }
.tab[aria-selected="true"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.tabpanel > h3.panel-title { display: none; }
.no-js .tabpanel > h3.panel-title { display: block; }
.no-js .tablist { display: none; }
.no-js .tabpanel { margin-bottom: 32px; }

.cv-col-title { font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 20px; letter-spacing: 0.12em; color: var(--gold); margin: 0 0 14px; }

.entry { position: relative; padding: 0 0 18px 20px; border-left: 1px solid var(--rule-strong); }
.entry::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--gold); transform: rotate(45deg); }
.entry:last-child { padding-bottom: 4px; }
.entry h4 { font-size: 21px; line-height: 1.2; margin-bottom: 2px; }
.entry .when { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }
.entry .where { font-style: italic; color: var(--parchment-2); margin: 2px 0 4px; font-size: 15px; }
.entry ul { margin: 0; padding-left: 18px; font-size: 15px; }
.entry ul li::marker { color: var(--gold); }

.award-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.award { padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-left: 2px solid var(--rule-strong); }
.award.top { border-left-color: var(--gold); }
.award .when { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); }
.award h4 { font-size: 19px; line-height: 1.25; margin: 2px 0; }
.award h4 i { color: var(--gold); }
.award p { margin: 0; font-size: 14px; color: var(--parchment-2); }
.award a { font-family: var(--font-ui); font-size: 12px; font-weight: 600; }

.svc-list { list-style: none; padding: 0; margin: 0 0 22px; }
.svc-list li { padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.svc-list li:last-child { border-bottom: 0; }
.svc-list .when { display: inline-block; min-width: 58px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--gold); }

@media (max-width: 767px) {
  .award-list { grid-template-columns: 1fr; }
  .tab { font-size: 17px; padding: 8px 12px; }
  .entry ul { display: none; }
  .entry { padding-bottom: 12px; }
  .entry h4 { font-size: 19px; }
  .entry .where { font-size: 14px; margin-bottom: 0; }
}

.aima-band {
  display: grid; grid-template-columns: 1fr auto; gap: 20px 30px; align-items: center;
  padding: 26px 28px;
  background: linear-gradient(120deg, var(--aubergine-700) 0%, var(--aubergine-900) 100%);
  border: 1px solid var(--rule-strong);
}

.aima-band h3 { font-size: 30px; margin-bottom: 4px; }
.aima-band p { margin: 0; color: var(--parchment-2); font-size: 15px; max-width: 70ch; }
.aima-band .nums { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 12px; }
.aima-band .nums strong { font-family: var(--font-display); font-size: 30px; color: var(--gold-light); line-height: 1; }
.aima-band .nums span { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--parchment-2); margin-left: 6px; }
@media (max-width: 767px) { .aima-band { grid-template-columns: 1fr; padding: 20px; } .aima-band h3 { font-size: 25px; } }

/*--------------------------------------------------------------
# Collaborations: logo marquees over the library photo
--------------------------------------------------------------*/
/* Library photo behind Collaborations and Contact, treated like the hero */
.library-band {
  position: relative;
  background: var(--ink) url("../img/nu-library.jpg") center 55% / cover no-repeat;
  border-top: 1px solid var(--rule);
}
.library-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 16, 22, 0.9) 0%, rgba(21, 16, 22, 0.6) 30%, rgba(21, 16, 22, 0.72) 65%, rgba(21, 16, 22, 0.94) 100%),
    linear-gradient(120deg, rgba(36, 18, 31, 0.55) 0%, rgba(66, 40, 22, 0.25) 100%);
}
.library-band > * { position: relative; }
@media (min-width: 1024px) { .library-band { background-attachment: fixed; } }

.marquee { overflow: hidden; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 110s linear infinite; }
/* Rows are children 2-5 (after the title container); alternate direction and pace */
.marquee:nth-child(3) .marquee-track { animation-direction: reverse; animation-duration: 124s; }
.marquee:nth-child(4) .marquee-track { animation-duration: 132s; }
.marquee:nth-child(5) .marquee-track { animation-direction: reverse; animation-duration: 118s; }
/* AIMA network rows hold 7-8 logos, so they need longer loops for the same pace */
#network .marquee-track { animation-duration: 176s; }
#network .marquee:nth-child(3) .marquee-track { animation-duration: 196s; }
#network .marquee:nth-child(4) .marquee-track { animation-duration: 188s; }
#network .marquee:nth-child(5) .marquee-track { animation-duration: 168s; }
/* Even out optical size: boxed and stacked marks run smaller or larger */
.marquee-track img[src$="swinburne.svg"] { height: 34px; }
.marquee-track img[src$="tmu.svg"], .marquee-track img[src$="bourgogne-europe.svg"] { height: 48px; }
.marquee-track img[src$="sejong.png"], .marquee-track img[src$="mbzuai.png"], .marquee-track img[src$="aalto.svg"] { height: 40px; }
.marquee-track img[src$="ncku.svg"] { height: 54px; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

/* Logos in one light parchment tone: grayscale + invert keeps the inner
   detail of crests and seals; brighten slightly on hover */
.marquee-track img {
  height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block;
  filter: grayscale(1) invert(1) contrast(1.35) brightness(1.1) sepia(0.3);
  opacity: 0.8;
  transition: opacity 0.25s ease;
}
.marquee-track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }


@media (max-width: 767px) {
  .marquee-track { gap: 44px; }
  .marquee-track img { height: 32px; max-width: 150px; }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact { padding-bottom: 90px; }
.contact-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 24px; background: rgba(31, 24, 32, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.contact-item .k { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 18px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 4px; }
.contact-item .v { font-size: 15.5px; overflow-wrap: anywhere; }
.contact-item .v a { color: var(--parchment); border-bottom: 1px solid var(--rule-strong); }
.contact-item .v a:hover { color: var(--gold-light); border-color: var(--gold); }
.contact-item small { display: block; color: var(--parchment-2); font-size: 13px; }
.contact-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule); }
@media (max-width: 991px) { .contact-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; } }

/*--------------------------------------------------------------
# Scroll progress, back to top, motion
--------------------------------------------------------------*/
#scroll-progress { position: fixed; top: 0; left: 0; z-index: 10000; width: 0; height: 2px; background: linear-gradient(90deg, var(--lilac), var(--gold), var(--teal)); }

.back-to-top {
  position: fixed; right: 14px; bottom: 14px; z-index: 996;
  width: 40px; height: 40px; border-radius: 50%;
  visibility: hidden; opacity: 0;
  background: var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top i { font-size: 26px; color: var(--ink); line-height: 0; }
.back-to-top.active { visibility: visible; opacity: 1; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .section-title h2::after { width: 84px; }
  #hero, .library-band { background-attachment: scroll; }
  .fig-slice { opacity: 0; }
  .fig-slice:first-child { opacity: 1; }
  .fig-mask { opacity: 0.45; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
  .marquee-track .dup { display: none; }
}

/*--------------------------------------------------------------
# AIMA page
--------------------------------------------------------------*/
.page-hero { position: relative; padding: 90px 0 56px; background: var(--ink) url("../img/nu-campus.jpg") center 40% / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(36, 18, 31, 0.93), rgba(61, 31, 56, 0.8) 60%, rgba(66, 40, 22, 0.7)); }
.page-hero .container { position: relative; }
.page-hero .crumb { font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 18px; letter-spacing: 0.12em; color: var(--gold-light); margin-bottom: 4px; }
.page-hero .crumb a { color: var(--gold-light); }
.page-hero h1 { font-size: 60px; margin-bottom: 6px; }
.page-hero p { max-width: 68ch; margin: 0; font-size: 18px; }

@media (max-width: 767px) {
  .page-hero { padding: 50px 0 36px; }
  .page-hero h1 { font-size: 42px; }
  .page-hero p { font-size: 16px; }
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.feature i { font-size: 24px; color: var(--gold); }
.feature h4 { font-size: 23px; margin: 8px 0 4px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--parchment-2); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 26px; }
.person { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); }
.person .avatar { flex: 0 0 42px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); background: var(--gold); }
.person h5 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; margin: 0 0 1px; }
.person p { margin: 0; font-size: 13.5px; color: var(--parchment-2); line-height: 1.45; }
.person .since { font-family: var(--font-ui); font-size: 11.5px; color: var(--gold); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 3px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.project .meta { font-family: var(--font-display); font-variant-caps: all-small-caps; font-size: 16px; letter-spacing: 0.1em; color: var(--gold); }
.project h4 { font-size: 22px; line-height: 1.2; margin: 4px 0 8px; }
.project p { flex: 1 1 auto; font-size: 14.5px; color: var(--parchment-2); margin-bottom: 10px; }
.project a { font-family: var(--font-ui); font-size: 13px; font-weight: 600; }

@media (max-width: 767px) { .feature-grid, .project-grid { grid-template-columns: 1fr; } }

/* AIMA page: hero stats, steps, theme map, project prototypes, network */
.page-hero .aima-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 22px 0 0; padding: 0; list-style: none; }
.page-hero .aima-stats strong { display: block; font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--gold-light); }
.page-hero .aima-stats span { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--parchment-2); }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--rule); }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 26px; z-index: 1; font-family: var(--font-ui); color: var(--gold); }
.steps .n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); background: var(--gold); }
.steps h4 { font-size: 23px; margin: 10px 0 4px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--parchment-2); }

.theme-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.theme-col { padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--teal); }
.theme-col[data-theme="human"] { border-top-color: var(--lilac); }
.theme-col.frontier { border-top-color: var(--gold); background: linear-gradient(180deg, var(--gold-dim), var(--surface) 70%); }
.theme-col h4 { font-size: 20px; line-height: 1.2; margin: 0 0 10px; }
.theme-col h4 i { color: var(--teal); margin-right: 4px; }
.theme-col[data-theme="human"] h4 i { color: var(--lilac); }
.theme-col.frontier h4 i { color: var(--gold); }
.theme-col ul { margin: 0; padding: 0; list-style: none; }
.theme-col li { padding: 5px 0; font-size: 14.5px; line-height: 1.4; border-top: 1px solid var(--rule); }
.theme-col li:first-child { border-top: 0; }
.theme-col a { color: var(--parchment); }
.theme-col a:hover { color: var(--gold-light); }
.new { display: inline-block; padding: 0 7px; font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 3px; vertical-align: 2px; }

.proto-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.proto-status { min-height: 1.4em; margin: 10px 0 14px; font-family: var(--font-ui); font-size: 12.5px; color: var(--parchment-2); }
.proto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proto { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--teal); scroll-margin-top: calc(var(--chipbar) + 16px); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.proto[data-theme="human"] { border-top-color: var(--lilac); }
.proto[data-theme="frontier"] { border-top-color: var(--gold); }
.proto:hover { border-color: var(--rule-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.proto[hidden] { display: none; }
.proto figure { margin: 0; aspect-ratio: 960 / 500; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--rule); }
.proto figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proto .body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }
.proto .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.proto[data-theme="human"] .meta { color: var(--lilac); }
.proto[data-theme="frontier"] .meta { color: var(--gold); }
.proto .meta .lvl { color: var(--parchment-2); font-weight: 500; }
.proto .meta .lvl::before { content: "·"; margin-right: 8px; }
.proto h3 { font-size: 25px; line-height: 1.15; margin: 0 0 8px; }
.proto p { font-size: 15px; margin-bottom: 10px; }
.proto .learn { flex: 1 1 auto; font-size: 14px; color: var(--parchment-2); }
.proto .learn strong { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--parchment); margin-right: 4px; }
.proto-note { margin: 18px 0 0; font-family: var(--font-ui); font-size: 12.5px; color: var(--parchment-2); }

/* Mentors: two rows that loop like the logo marquees, in opposite directions */
.mentor-rail { display: grid; gap: 12px; padding: 4px 0 26px; }
.mentor-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.mentor-track { display: flex; gap: 12px; width: max-content; animation: marquee 80s linear infinite; }
.mentor-row:nth-child(2) .mentor-track { animation-direction: reverse; animation-duration: 88s; }
.mentor-track .person { flex: 0 0 270px; }
.mentor-row:hover .mentor-track, .mentor-row:focus-within .mentor-track { animation-play-state: paused; }
/* Each mentor card carries its institution: brand color on the initials,
   a top rule and a faint tint, and the logo in the page's parchment tone.
   Brand colors are lightened where they would vanish on the dark card. */
.person.mentor {
  border-top: 3px solid color-mix(in srgb, var(--brand) 60%, #fff);
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 26%, var(--surface)) 0%, var(--surface) 70%);
}
.person.mentor .avatar {
  color: #fff; background: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 45%, #fff);
}
.person.mentor > div { display: flex; flex-direction: column; min-width: 0; }
.person.mentor .inst {
  display: block; align-self: flex-start; height: 20px; width: auto; max-width: 150px; object-fit: contain;
  margin-top: auto; padding-top: 12px; box-sizing: content-box;
  filter: grayscale(1) invert(1) contrast(1.35) brightness(1.1) sepia(0.3); opacity: 0.72;
}
/* Illustrated avatars (tools/make_aima_avatars.py) replace the initials */
.person.mentor img.avatar { flex-basis: 60px; width: 60px; height: 60px; object-fit: cover; background: #221a24; }
/* Even out optical size: stacked logos run larger, bold wordmarks smaller */
.person.mentor .inst[src$="mayo-clinic.svg"], .person.mentor .inst[src$="md-anderson.svg"] { height: 32px; }
.person.mentor .inst[src$="unc-chapel-hill.svg"], .person.mentor .inst[src$="nc-at.svg"] { height: 28px; }
.person.mentor .inst[src$="yale.svg"], .person.mentor .inst[src$="duke.svg"] { height: 17px; }
.person.mentor .inst[src$="northwestern.svg"] { height: 15px; }
@media (max-width: 1199px) { .mentor-track .person { flex-basis: 240px; } }
@media (prefers-reduced-motion: reduce) {
  .mentor-row { mask-image: none; -webkit-mask-image: none; }
  .mentor-track { width: auto; flex-wrap: wrap; padding: 0 18px; }
  .mentor-track .dup { display: none; }
}

.past-cohort {margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 16px; }
.past-cohort summary { cursor: pointer; font-family: var(--font-display); font-size: 22px; color: var(--parchment); }
.past-cohort summary:hover { color: var(--gold-light); }
.past-cohort[open] summary { margin-bottom: 12px; }

/* Network: numbers strip, world map from three Vietnamese hubs, region lists */
.net-stats { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 16px; padding: 0; border: 1px solid var(--rule); background: rgba(31, 24, 32, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.net-stats li { padding: 14px 18px; border-left: 1px solid var(--rule); }
.net-stats li:first-child { border-left: 0; }
.net-stats strong { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--gold-light); font-variant-numeric: lining-nums; }
.net-stats span { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--parchment-2); }
.net-map { position: relative; overflow: hidden; background: #120e13; border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.net-map svg { display: block; width: 100%; height: auto; }
.net-status { margin: 0; padding: 120px 20px; text-align: center; font-family: var(--font-ui); font-size: 13px; color: var(--parchment-2); }
.net-caption { margin: 10px 0 0; font-family: var(--font-ui); font-size: 12.5px; color: var(--parchment-2); }
.net-caption i { color: var(--gold); margin-right: 4px; }
.nm-sphere { fill: #16111a; stroke: var(--rule); }
.nm-grid { fill: none; stroke: rgba(201, 164, 95, 0.07); stroke-width: 0.6; }
.nm-land path { fill: #2b2230; stroke: #3d3140; stroke-width: 0.5; }
.nm-arc { fill: none; stroke: var(--gold); stroke-width: 1; stroke-opacity: 0.5; stroke-linecap: round; }
.nm-site { cursor: default; outline: none; }
.nm-site .halo { fill: rgba(111, 184, 173, 0.14); }
.nm-site .core { fill: var(--teal); stroke: #f4ecda; stroke-width: 0.7; }
.nm-site:hover .core, .nm-site:focus .core { fill: var(--gold-light); stroke-width: 1.2; }
.nm-hub { cursor: default; outline: none; }
.nm-hub .ring { fill: rgba(221, 192, 138, 0.14); stroke: var(--gold-light); stroke-width: 0.8; stroke-opacity: 0.6; }
.nm-hub .core { fill: var(--gold-light); stroke: #fff; stroke-width: 1; }
.nm-hub-label { font-family: var(--font-ui); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; fill: var(--parchment); paint-order: stroke; stroke: #120e13; stroke-width: 3px; stroke-linejoin: round; }
.nm-region { font-family: var(--font-ui); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--parchment-2); paint-order: stroke; stroke: #120e13; stroke-width: 3px; stroke-linejoin: round; }
.nm-region .n { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0; fill: var(--gold-light); }
.net-tip {
  position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; white-space: nowrap;
  padding: 6px 11px; font-family: var(--font-ui); font-size: 12px; line-height: 1.4; color: var(--parchment);
  background: rgba(21, 16, 22, 0.94); border: 1px solid var(--rule-strong); border-radius: 4px;
}
.net-tip strong { display: block; font-weight: 600; color: var(--gold-light); }
.net-tip span { display: block; color: var(--parchment-2); }
.net-tip[hidden] { display: none; }
.region-row { display: grid; grid-template-columns: 2.6fr 1.2fr 0.9fr 1.6fr 1.2fr; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--parchment); }
.region-row .region { display: block; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }

@media (max-width: 1199px) { .theme-map { grid-template-columns: repeat(3, minmax(0, 1fr)); } .region-row { grid-template-columns: 1fr 1fr; } .region-row > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 991px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .proto-grid { grid-template-columns: 1fr; }
  .region-row { grid-template-columns: 1fr; gap: 10px; }
  .net-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .net-stats li:nth-child(4) { border-left: 0; }
  .net-stats li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .net-stats strong { font-size: 26px; }
  /* The map shrinks to a third: bigger region counts, no hub labels */
  .nm-region { font-size: 15px; }
  .nm-region .n { font-size: 30px; }
  .nm-hub-label { display: none; }
  .nm-site .core { r: 4.2; }
}
@media (max-width: 767px) {
  .theme-map { grid-template-columns: 1fr 1fr; }
  .theme-col.frontier { grid-column: 1 / -1; }
  .page-hero .aima-stats strong { font-size: 30px; }
  .proto h3 { font-size: 22px; }
}
@media (max-width: 479px) { .steps, .theme-map { grid-template-columns: 1fr; } }

/* Phones: the figure captions carry the detail, so theme bullets fold away */
@media (max-width: 767px) {
  .theme-grid .panel ul { display: none; }
  .theme-grid .panel .lead { margin-bottom: 0; }
  .viewer-stage { min-height: 280px; }
}

/* Small screens: the figure's labels are too small to tap, so they repeat as chips */
.fig-chips { display: none; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.fig-chips button { padding: 4px 11px; font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--parchment); background: transparent; border: 1px solid var(--rule-strong); border-radius: 14px; cursor: pointer; }
.fig-chips button.human { border-color: rgba(199, 166, 217, 0.6); }
.fig-chips button.clinic { border-color: rgba(111, 184, 173, 0.6); }
.fig-chips button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (max-width: 991px) { .fig-chips { display: flex; } .fig-legend { display: none; } }

/*--------------------------------------------------------------
# Visitor map (visitors.html, reached from the sidebar footer)
--------------------------------------------------------------*/
body.solo #main { margin-left: 0; }
.visitors { padding: 44px 0 70px; }
.vm-demo { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 18px; padding: 6px 14px; font-family: var(--font-ui); font-size: 12.5px; color: var(--gold-light); background: var(--gold-dim); border: 1px solid var(--rule-strong); border-radius: 999px; }
.vm-demo[hidden] { display: none; }
.vm-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; border: 1px solid var(--rule); background: var(--surface); }
.vm-stats li { padding: 16px 20px; border-left: 1px solid var(--rule); }
.vm-stats li:first-child { border-left: 0; }
.vm-stats strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--gold-light); font-variant-numeric: lining-nums; }
.vm-stats span { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--parchment-2); }

.vm-map { position: relative; background: #120e13; border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.vm-map svg { display: block; width: 100%; height: auto; }
.vm-status { margin: 0; padding: 120px 20px; text-align: center; font-family: var(--font-ui); font-size: 13px; color: var(--parchment-2); }
.vm-sphere { fill: #16111a; stroke: var(--rule); }
.vm-grid { fill: none; stroke: rgba(201, 164, 95, 0.08); stroke-width: 0.6; }
.vm-land path { fill: #2b2230; stroke: #3d3140; stroke-width: 0.5; }
.vm-dot { cursor: default; outline: none; }
.vm-dot .halo { fill: rgba(221, 192, 138, 0.16); }
.vm-dot .core { fill: var(--gold); fill-opacity: 0.85; stroke: #f4ecda; stroke-width: 0.8; }
.vm-dot:hover .core, .vm-dot:focus .core { fill: var(--gold-light); fill-opacity: 1; stroke-width: 1.4; }
.vm-tip {
  position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; white-space: nowrap;
  padding: 5px 10px; font-family: var(--font-ui); font-size: 12px; color: var(--parchment);
  background: rgba(21, 16, 22, 0.94); border: 1px solid var(--rule-strong); border-radius: 4px;
}

.vm-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 28px 0 10px; }
.vm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vm-bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14.5px; }
.vm-bars .val { font-family: var(--font-ui); font-size: 12.5px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.vm-bars .bar { grid-column: 1 / -1; height: 4px; background: rgba(201, 164, 95, 0.12); border-radius: 2px; overflow: hidden; }
.vm-bars .bar i { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.vm-bars .empty { color: var(--parchment-2); }
.vm-note { margin: 20px 0 22px; max-width: var(--measure); font-size: 13.5px; color: var(--parchment-2); }

@media (max-width: 767px) {
  .vm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-stats li:nth-child(3) { border-left: 0; }
  .vm-stats li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .vm-lists { grid-template-columns: 1fr; }
}

/* Small globe link to the visitor map, in the sidebar footer */
.vm-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 6px; vertical-align: -6px; border-radius: 50%; color: var(--parchment-2); opacity: 0.55; transition: opacity 0.2s ease, color 0.2s ease; }
.vm-link:hover, .vm-link:focus-visible { opacity: 1; color: var(--gold-light); }

/*--------------------------------------------------------------
# AIMA 2026 entry points (aima.html)
--------------------------------------------------------------*/
.aima26-feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 18px; max-width: 620px; margin-top: 26px; padding: 14px 22px 14px 14px;
  border-radius: 999px; background: rgba(21, 16, 22, 0.72); color: var(--parchment);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.aima26-feature::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--rule-strong); z-index: -2; }
.aima26-feature .ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--a26, 0deg), transparent 0 55%, #ecd29b 70%, var(--lilac) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: a26-spin 3.2s linear infinite;
}
@property --a26 { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes a26-spin { to { --a26: 360deg; } }
.aima26-feature img { flex: none; width: 64px; height: 64px; border-radius: 50%; transition: transform 0.8s ease; }
.aima26-feature .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aima26-feature .tag { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.aima26-feature strong { font-family: var(--font-display); font-size: 23px; line-height: 1.1; color: var(--parchment); }
.aima26-feature .sub { font-size: 14px; line-height: 1.35; color: var(--parchment-2); }
.aima26-feature .go { margin-left: auto; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 20px; transition: transform 0.35s ease; }
.aima26-feature:hover { color: var(--parchment); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(201, 164, 95, 0.08), 0 18px 50px -14px rgba(199, 166, 217, 0.45); }
.aima26-feature:hover img { transform: rotate(-30deg); }
.aima26-feature:hover .go { transform: translateX(4px); }
.nav-menu a.nav-2026 { color: var(--gold-light); }
.chipbar a.chip-2026 { border-color: var(--gold); color: var(--gold-light); }
@media (max-width: 575px) {
  .aima26-feature { border-radius: 18px; padding: 14px; gap: 14px; }
  .aima26-feature img { width: 52px; height: 52px; }
  .aima26-feature strong { font-size: 20px; }
  .aima26-feature .go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aima26-feature .ring { animation: none; } }
