/* ==========================================================================
   Intelligent Neuromotor Control Lab, San José State University
   Toned light base with "night sky" bands in SJSU Blue (#0055A2) and SJSU Gold (#E5A823).
   ========================================================================== */
:root {
  --bg: #E9EDF2;          /* page background: soft grey-blue, not white */
  --bg-elev: #F5F7F9;     /* cards, header: off-white */
  --bg-sunk: #DFE5EC;     /* quieter alternate sections */
  /* very faint paper grain, light theme only */
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.26 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink: #16213A;
  --ink-2: #4A5872;
  --ink-3: #56637B;
  --rule: #D3DCE7;
  --blue: #0055A2;
  --blue-deep: #003C73;
  --blue-ink: #0B2A52;
  --blue-tint: #DCE6F3;
  --gold: #E5A823;
  --gold-bright: #F2C14E;
  --gold-text: #7A5609;   /* gold dark enough for small text on the light base */
  --night: #061532;
  --night-2: #0B2A52;
  --night-ink: #EAF0F8;
  --night-ink-2: #C3D0E3;
  --header-bg: rgba(245, 247, 249, 0.92);
  --heading: var(--blue-ink);
  --title-link: var(--blue);
  --title-link-hover: var(--blue-deep);
  --night-heading: #FFFFFF;
  --on-primary: #FFFFFF;
  --on-gold: #0B2A52;
  --art-bg: #DCE6F3;
  --map-land: #D7E2EE;
  --map-land-stroke: #B6C7DB;
  --map-borders: #C3D0DF;
  --map-label: #74829A;
  --map-ocean: #9DAABF;
  color-scheme: light;
  --font: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 82, 0.06), 0 10px 28px rgba(11, 42, 82, 0.08);
  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 0.975rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.3rem);
}

/* Dark theme: applied by the script in head.html (device setting, then local time of day, then the toggle),
   and by the system preference when JavaScript is unavailable. */
:root[data-theme="dark"] {
  --bg: #0F1B33;
  --bg-elev: #162746;
  --bg-sunk: #0B1630;
  --ink: #E8EEF7;
  --ink-2: #B9C6DA;
  --ink-3: #94A4BE;
  --rule: #2B3E62;
  --blue: #7FB6F0;
  --blue-deep: #A9CFF7;
  --blue-ink: #F2F6FB;
  --blue-tint: #1E3359;
  --gold-text: #F2C14E;
  --header-bg: rgba(15, 27, 51, 0.9);
  --heading: #F2C14E;
  --title-link: #F2C14E;
  --title-link-hover: #FFE08A;
  --night-heading: #F2C14E;
  --on-primary: #0B1630;
  --map-land: #243A60;
  --map-land-stroke: #2F4A75;
  --map-borders: #3A5580;
  --map-label: #9FB1CC;
  --map-ocean: #6F84A6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  --texture: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0F1B33;
  --bg-elev: #162746;
  --bg-sunk: #0B1630;
  --ink: #E8EEF7;
  --ink-2: #B9C6DA;
  --ink-3: #94A4BE;
  --rule: #2B3E62;
  --blue: #7FB6F0;
  --blue-deep: #A9CFF7;
  --blue-ink: #F2F6FB;
  --blue-tint: #1E3359;
  --gold-text: #F2C14E;
  --header-bg: rgba(15, 27, 51, 0.9);
  --heading: #F2C14E;
  --title-link: #F2C14E;
  --title-link-hover: #FFE08A;
  --night-heading: #F2C14E;
  --on-primary: #0B1630;
  --map-land: #243A60;
  --map-land-stroke: #2F4A75;
  --map-borders: #3A5580;
  --map-label: #9FB1CC;
  --map-ocean: #6F84A6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  --texture: none;
  color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--texture);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--blue-ink); margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; }
h2, h3 { color: var(--heading); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
address { font-style: normal; }
strong { font-weight: 700; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(100% - 3rem, var(--container)); } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; }
.prose-wide { max-width: 90ch; }
.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.75rem;
}
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }

.skip-link { position: absolute; left: 1rem; top: -10rem; background: var(--blue); color: var(--on-primary); padding: 0.6rem 1rem; border-radius: 0 0 8px 8px; z-index: 100; }
.skip-link:focus { top: 0; }

/* Night-sky band: shared by the home hero, the call-to-action band and the footer ------- */
.night {
  position: relative;
  overflow: hidden;
  color: var(--night-ink);
  background-color: var(--night);
  background-image:
    radial-gradient(75% 70% at 88% 0%, rgba(229, 168, 35, 0.16) 0%, rgba(229, 168, 35, 0) 60%),
    radial-gradient(70% 90% at 5% 100%, rgba(0, 85, 162, 0.55) 0%, rgba(0, 85, 162, 0) 65%),
    url("../img/stars-bright.svg"),
    url("../img/stars-fine.svg"),
    linear-gradient(180deg, #061532 0%, #0B2A52 100%);
  background-size: auto, auto, 900px 900px, 700px 700px, auto;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
}
.night::after {
  /* second copy of the bright stars, offset and slowly pulsing, so the sky appears to twinkle */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/stars-bright.svg"); background-size: 900px 900px; background-position: 437px 263px;
  opacity: 0.35; animation: twinkle 9s ease-in-out infinite alternate;
}
.night > * { position: relative; z-index: 1; }
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .night::after { animation: none; opacity: 0.4; }
  *, *::before, *::after { transition: none !important; }
}
.night h1 { color: #fff; }
.night h2, .night h3 { color: var(--night-heading); }
.night p { color: var(--night-ink-2); }
.night a { color: #fff; }
.night a:hover { color: var(--gold-bright); }
.night .eyebrow { color: var(--gold-bright); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 0.7em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--on-primary); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn--gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--on-gold); }
.night .btn--gold, .night .btn--gold:hover { color: var(--on-gold); }
.night .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.night .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand .brand__art--dark { display: none; }
:root[data-theme="dark"] .brand .brand__art--light { display: none; }
:root[data-theme="dark"] .brand .brand__art--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .brand__art--light { display: none; }
  :root:not([data-theme="light"]) .brand .brand__art--dark { display: block; }
}
.site-header__controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
/* Light/dark switch: an iOS-style sliding toggle. Checked (knob right) = dark. */
.theme-switch { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; border-radius: 999px; display: inline-flex; line-height: 0; -webkit-tap-highlight-color: transparent; }
.theme-switch__track { flex: none; }
.theme-switch__track {
  position: relative; display: block; width: 54px; height: 30px; border-radius: 999px;
  background: #C9D3E0; transition: background-color 0.25s ease;
}
.theme-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.25s ease;
}
.theme-switch__icon { position: absolute; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); transition: opacity 0.25s ease; }
.theme-switch__icon--sun { left: 8px; color: #B07C14; opacity: 1; }
.theme-switch__icon--moon { right: 8px; color: #fff; opacity: 0.55; }
.theme-switch[aria-checked="true"] .theme-switch__track { background: var(--blue); }
.theme-switch[aria-checked="true"] .theme-switch__knob { transform: translateX(24px); }
.theme-switch[aria-checked="true"] .theme-switch__icon--sun { opacity: 0.55; color: #fff; }
.theme-switch[aria-checked="true"] .theme-switch__icon--moon { opacity: 1; }
:root[data-theme="dark"] .theme-switch__track { background: #2B3E62; }
:root[data-theme="dark"] .theme-switch[aria-checked="true"] .theme-switch__track { background: var(--blue); }
:root[data-theme="dark"] .theme-switch[aria-checked="true"] .theme-switch__knob { background: #0B1630; }
.theme-switch:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .theme-switch__track, .theme-switch__knob, .theme-switch__icon { transition: none; } }
.no-js .theme-switch { display: none; }
.brand img { width: 280px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a { display: block; padding: 0.55rem 0.85rem; border-radius: 8px; color: var(--blue-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; background: none; border: 2px solid var(--blue); color: var(--blue);
  font: inherit; font-weight: 700; padding: 0.45rem 0.8rem; border-radius: 8px; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; display: inline-block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
@media (max-width: 860px) {
  .brand img { width: 210px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .theme-switch { order: 1; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-elev); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem; }
  .site-nav a { padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); border-radius: 0; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { flex-basis: 100%; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 0.5rem; }
  .no-js .site-nav a { border-bottom: 0; }
}
@media (max-width: 400px) { .brand img { width: 176px; } }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.no-js .nav-toggle { display: none; }

/* Page header (inner pages) ---------------------------------------------- */
.page-header {
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.page-header h1 { margin-bottom: 0.4em; }
.page-header .lede { margin-bottom: 0; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--elev { background: var(--bg-elev); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--elev + .section--elev { border-top: 0; }
.section__head { max-width: 60ch; margin-bottom: 2rem; }
.section__head h2 { margin-bottom: 0.3em; }
.section__head p { color: var(--ink-2); margin: 0; }

/* Hero (home) ------------------------------------------------------------ */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.hero .hero__mark {
  display: block; margin: 0; position: absolute; z-index: 0; pointer-events: none;
  right: 1%; top: 50%; transform: translateY(-50%); width: clamp(360px, 44vw, 680px); opacity: 0.6;
}
.hero__text { position: relative; z-index: 1; max-width: 58ch; }
.hero__text h1 { max-width: 18ch; }
.hero__text .lede, .hero__sub { color: var(--night-ink-2); max-width: 58ch; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); line-height: 1.6; }
.hero__text .lede { margin-bottom: 0.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 760px) {
  .hero .hero__mark { right: auto; left: 50%; transform: translate(-50%, -50%); width: 92%; opacity: 0.22; }
}

/* Cards / grids ---------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 0.25rem; border-top: 4px solid var(--gold); }
.theme-card__art { margin: -0.25rem 0 0.75rem; background: var(--art-bg); border-radius: 10px; padding: 0.6rem 0.9rem; }
.theme-card__art img { height: 78px; width: auto; margin-inline: auto; }
.theme-card__index { font-weight: 700; color: var(--gold-text); letter-spacing: 0.08em; font-size: var(--step--1); }
.theme-card h3 { margin: 0.25rem 0 0.35rem; }
.theme-card h3 a { text-decoration: none; color: var(--heading); }
.theme-card h3 a:hover { color: var(--title-link-hover); text-decoration: underline; }
.theme-card p { margin: 0; color: var(--ink-2); }

/* World map (collaborators) ---------------------------------------------- */
.map-after { margin-top: 3rem; }
.map-after .world-map { margin-bottom: 0; }
.world-map { margin: 0 0 2.5rem; background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.world-map svg { display: block; width: 100%; height: auto; }
.world-map__land { fill: var(--map-land); stroke: var(--map-land-stroke); stroke-width: 0.6; }
.world-map__borders { fill: none; stroke: var(--map-borders); stroke-width: 0.45; opacity: 0.55; }
.world-map__continent { display: none; font-size: 11px; letter-spacing: 0.14em; }
@media (max-width: 899px) {
  .world-map__country { display: none; }
  .world-map__continent, .world-map__ocean, .world-map__keep { display: block; }
}
.world-map__dot { fill: #F2C14E; stroke: #B07C14; stroke-width: 1.5; }
.world-map__halo { fill: var(--gold); opacity: 0.3; transform-origin: center; transform-box: fill-box; animation: map-pulse 3s ease-out infinite; }
/* Home pin (the lab): larger, gold, glowing, with a twinkling spark */
.world-map__pin--home .world-map__dot { fill: #F2C14E; stroke: #B07C14; stroke-width: 2; }
.world-map__pin--home .world-map__halo { fill: var(--gold); opacity: 0.35; animation-duration: 2.6s; }
.world-map__pin--home .world-map__halo--b { animation-delay: 1.3s; }
.world-map__glow { fill: #FFD978; opacity: 0.55; filter: blur(5px); animation: map-glow 2.6s ease-in-out infinite; }
.world-map__spark { fill: #FFF6D5; transform-origin: center; transform-box: fill-box; animation: map-spark 2.6s ease-in-out infinite; }
@keyframes map-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
@keyframes map-spark { 0%, 100% { transform: scale(0.45) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.world-map__country { font-family: var(--font); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--map-label); }
.world-map__ocean { font-size: 10px; font-weight: 400; font-style: italic; letter-spacing: 0.04em; text-transform: none; fill: var(--map-ocean); }
@keyframes map-pulse { 0% { transform: scale(0.6); opacity: 0.45; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .world-map__halo, .world-map__glow, .world-map__spark { animation: none; } .world-map__halo { opacity: 0.2; } .world-map__spark { transform: scale(0.8); opacity: 0.9; } }
@media (max-width: 640px) {
  .world-map { padding: 0.5rem; }
  .world-map__country { font-size: 12px; }
  .world-map__continent { font-size: 13px; }
  .world-map__dot { r: 6; stroke-width: 2; }
  .world-map__halo { r: 14; }
  .world-map__pin--home .world-map__dot { r: 10; }
  .world-map__pin--home .world-map__halo { r: 22; }
  .world-map__glow { r: 18; }
  .world-map__spark { transform: scale(1.4); }
}

/* Conference map: small gold pins with a gentle, staggered twinkle */
.world-map figcaption { font-size: var(--step--1); color: var(--ink-3); text-align: center; margin-top: 0.6rem; }
.world-map--conf .world-map__dot { fill: #F2C14E; stroke: #B07C14; stroke-width: 1.4; r: 3.4; }
.world-map--conf .world-map__halo { fill: var(--gold); opacity: 0.35; r: 7; animation: map-twinkle 3.2s ease-in-out infinite; }
.world-map--conf .world-map__pin:nth-of-type(3n+1) .world-map__halo { animation-delay: 0s; }
.world-map--conf .world-map__pin:nth-of-type(3n+2) .world-map__halo { animation-delay: 1.1s; }
.world-map--conf .world-map__pin:nth-of-type(3n) .world-map__halo { animation-delay: 2.1s; }
@keyframes map-twinkle { 0%, 100% { transform: scale(0.5); opacity: 0.15; } 50% { transform: scale(1.5); opacity: 0.5; } }
@media (max-width: 640px) {
  .world-map--conf .world-map__dot { r: 5; stroke-width: 2; }
  .world-map--conf .world-map__halo { r: 10; }
}

/* Member cards ----------------------------------------------------------- */
.member-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--blue-tint); display: grid; place-items: center; border: 3px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--rule);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__initials { font-weight: 700; font-size: 2rem; color: var(--blue); letter-spacing: 0.02em; }
.avatar__placeholder { width: 48px; height: 48px; border-radius: 50%; position: relative; background: var(--blue-tint); }
.avatar__placeholder::before { content: ""; position: absolute; left: 50%; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); transform: translateX(-50%); }
.avatar__placeholder::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 36px; height: 24px; border-radius: 18px 18px 0 0; background: var(--ink-3); transform: translateX(-50%); }
.member-card__name { margin: 0 0 0.15rem; font-size: var(--step-1); }
.member-card__name a { text-decoration: none; }
.member-card__name a:hover { text-decoration: underline; }
.member-card__role { font-weight: 600; color: var(--blue); margin: 0 0 0.25rem; }
.member-card__meta { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.member-card__bio { margin: 0.5rem 0 0; color: var(--ink-2); }
.member-card__links { margin: 0.5rem 0 0; font-size: var(--step--1); }
/* Two cards per row on phones for people and collaborators */
@media (max-width: 640px) {
  .grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .grid--compact .member-card { padding: 1rem 0.85rem; gap: 0.75rem; }
  .grid--compact .avatar { width: 84px; height: 84px; }
  .grid--compact .avatar__initials { font-size: 1.5rem; }
  .grid--compact .member-card__name { font-size: 1.05rem; overflow-wrap: anywhere; }
  .grid--compact .member-card__role { font-size: 0.92rem; }
  .grid--compact .member-card__meta { font-size: 0.85rem; }
}
.member-card--placeholder { border-style: dashed; box-shadow: none; background: transparent; }
.member-card--placeholder .avatar { background: var(--bg-sunk); border-style: dashed; border-color: var(--rule); }
.member-card--placeholder .member-card__name, .member-card--placeholder .member-card__role { color: var(--ink-2); }

.empty-state { border: 1px dashed var(--rule); background: var(--bg-elev); border-radius: var(--radius); padding: 1.5rem; max-width: 70ch; color: var(--ink-2); }
.empty-state p { margin: 0; }

/* PI teaser (home) and profile (people) ---------------------------------- */
.pi-teaser, .pi-profile { display: grid; gap: 2rem; align-items: start; }
.pi-teaser__photo img, .pi-profile__photo img { width: 100%; max-width: 360px; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; }
.pi-teaser__title, .pi-profile__title { color: var(--ink-2); font-weight: 600; margin-top: -0.25rem; }
@media (min-width: 760px) {
  .pi-teaser { grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
  .pi-profile { grid-template-columns: 320px 1fr; gap: 3.5rem; }
}
.pi-profile__links { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pi-profile__links li { color: var(--ink-2); }

/* Research page themes ---------------------------------------------------- */
.theme-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.theme { background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); scroll-margin-top: 6rem; }
.theme--with-art { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .theme--with-art { grid-template-columns: 1fr 300px; gap: 2.5rem; } .theme__art { order: 2; } }
.theme__art { background: var(--art-bg); border-radius: var(--radius); padding: 1.25rem; }
.theme__art img { width: 100%; height: auto; }
.theme__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.theme__head h2 { margin: 0; font-size: var(--step-2); }
.theme__index { font-weight: 700; color: var(--gold-text); letter-spacing: 0.08em; }
.theme__summary { font-size: var(--step-1); color: var(--ink-2); }
.theme__body h3 { margin-top: 1.25em; font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.theme__body ul { margin-bottom: 0; }

/* News ------------------------------------------------------------------- */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 70ch; }
.news-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.news-item time { color: var(--ink-3); font-weight: 600; font-size: var(--step--1); }
.news-item p { margin: 0; }
@media (max-width: 500px) { .news-item { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Call-to-action panel ---------------------------------------------------- */
.section--cta { padding-top: 0; }
.cta-panel { border-radius: calc(var(--radius) + 6px); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); }
.cta-panel__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-panel h2 { margin-bottom: 0.3em; }
.cta-panel p { margin: 0; max-width: 60ch; }

/* Publications ----------------------------------------------------------- */
.pub-columns { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .pub-columns { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.pub-col h2 { font-size: var(--step-2); padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); margin-bottom: 1.25rem; }
.pub-year { font-size: var(--step-1); color: var(--blue); margin: 1.5rem 0 0.75rem; }
.pub-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.pub { padding-left: 1rem; border-left: 3px solid var(--blue-tint); font-size: var(--step--1); line-height: 1.5; }
.pub__authors { display: block; color: var(--ink-2); margin: 0.15rem 0; font-size: 0.88em; }
.pub__where { display: block; }
.pub__title { display: block; font-weight: 600; font-size: var(--step-0); margin: 0; color: var(--heading); }
.pub__title a { text-decoration: none; color: var(--title-link); }
.pub__title a:hover { color: var(--title-link-hover); }
.pub__title a:hover { text-decoration: underline; }
.pub__venue { color: var(--ink-2); }
.pub__note { display: inline-block; font-size: var(--step--1); color: var(--ink-3); margin-left: 0.25rem; }
.pub__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; font-size: var(--step--1); }
.pub__links a { border: 1px solid var(--rule); background: var(--bg-elev); border-radius: 999px; padding: 0.15em 0.7em; text-decoration: none; }
.pub__links a:hover { border-color: var(--blue); }
.pub-more { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.pub-more > summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 0.6rem 0; list-style: none; display: flex; align-items: center; gap: 0.6rem; }
.pub-more > summary::-webkit-details-marker { display: none; }
.pub-more > summary::before { content: ""; width: 0.55em; height: 0.55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s ease; flex-shrink: 0; }
.pub-more[open] > summary::before { transform: rotate(45deg); }
.pub-more > summary:hover { color: var(--blue-deep); }

/* Join page -------------------------------------------------------------- */
.join-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 320px; gap: 4rem; } }
.contact-card { background: var(--bg-elev); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 6rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.contact-card address { margin-bottom: 1rem; }
.contact-card .btn { word-break: break-all; }
.contact-card p:last-child { margin-bottom: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer { padding: 3.5rem 0 1.5rem; border-top: 3px solid var(--gold); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-footer__brand img, .site-footer__logo { width: 260px; margin-bottom: 1rem; }
.site-footer__heading, .night .site-footer__heading { color: var(--gold-bright); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer address { color: var(--night-ink-2); }
.site-footer__meta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: var(--step--1); }
.site-footer__meta p { margin: 0; color: rgba(255, 255, 255, 0.7); }

/* Sticky header offsets for anchor targets, the skip link, and the sticky contact card ---- */
[id], main { scroll-margin-top: 6rem; }
@media (min-width: 861px) {
  [id], main { scroll-margin-top: 8rem; }
  .contact-card { top: 8rem; }
}

/* Gilded logos: the PNG's alpha masks a metallic gradient; a soft band of light drifts across slowly ---- */
.gild { position: relative; display: block; }
.gild__fallback { display: block; width: 100%; height: auto; }
.brand__art { display: block; position: relative; line-height: 0; }
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .gild {
    -webkit-mask-image: var(--mask-url); mask-image: var(--mask-url);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    background-size: 300% 300%; background-position: 0% 50%;
    animation: gild-flow 18s ease-in-out infinite alternate;
  }
  .gild__fallback { visibility: hidden; }
  .gild--gold {
    background-image: linear-gradient(120deg,
      #6e4a06 0%, #a8770f 14%, #e5a823 28%, #ffe9a6 40%, #e5a823 50%,
      #b7821a 62%, #ffd978 76%, #c4901c 88%, #6e4a06 100%);
  }
  .gild--silver {
    background-image: linear-gradient(120deg,
      #7c8696 0%, #b9c2cf 16%, #f5f7fa 32%, #c6ced9 46%, #ffffff 58%,
      #9aa5b5 72%, #e6eaf0 86%, #7c8696 100%);
  }
  .gild::after, .gild-sheen::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
    background-size: 300% 100%; background-position: 250% 0; background-repeat: no-repeat;
    animation: gild-drift 16s ease-in-out 3s infinite;
  }
  .gild-sheen::after {
    -webkit-mask-image: var(--mask-url); mask-image: var(--mask-url);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    opacity: 0.55; mix-blend-mode: soft-light; animation-duration: 20s; animation-delay: 6s;
  }
  .gild.is-shimmer::after, .gild-sheen.is-shimmer::after { animation: gild-sweep 3.5s ease-in-out 1; }
  @keyframes gild-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
  @keyframes gild-sweep { from { background-position: 250% 0; } to { background-position: -150% 0; } }
  @keyframes gild-drift { 0% { background-position: 250% 0; } 40% { background-position: -150% 0; } 100% { background-position: -150% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .gild { animation: none; background-position: 50% 50%; }
    .gild::after, .gild-sheen::after, .gild.is-shimmer::after, .gild-sheen.is-shimmer::after { animation: none; }
  }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .nav-toggle, .section--cta, .hero__mark, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .night, .night * { color: #000 !important; }
  .night { background: #fff !important; }
  .night .btn { border-color: #000; background: none !important; }
  .night::after { display: none; }
  a { color: #000; text-decoration: underline; }
}
