/* ============ Tokens ============ */
:root {
  --bg: #f7f6f2;
  --bg-alt: #efede6;
  --surface: #ffffff;
  --surface-2: #f9f8f4;
  --ink: #0f1d17;
  --ink-2: #44554d;
  --ink-3: #75847c;
  --line: #e2dfd5;
  --line-2: #d4d0c3;
  --brand: #134e3a;
  --brand-2: #1d6b50;
  --brand-soft: #e3efe8;
  --gold: #c0973c;
  --gold-ink: #8a6a1f;
  --gold-soft: #f5ecd5;
  --hero: #0d2a20;
  --hero-2: #12382b;
  --chart-bar: #1d6b50;
  --chart-bar-hover: #134e3a;
  --chart-grid: #e8e5dc;
  --nav-ind-s: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 29, 23, .06);
  --shadow: 0 1px 2px rgba(15, 29, 23, .04), 0 12px 32px -8px rgba(15, 29, 23, .12);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1310; --bg-alt: #0e1a16; --surface: #12211b; --surface-2: #162820;
    --ink: #e8efeb; --ink-2: #b3c2ba; --ink-3: #82938a; --line: #22342c; --line-2: #2d433a;
    --brand: #5cc29a; --brand-2: #7fd3b1; --brand-soft: #173328;
    --gold: #d6b35f; --gold-ink: #e3c47a; --gold-soft: #2a2414;
    --hero: #07130f; --hero-2: #0c2018;
    --chart-bar: #4fb38c; --chart-bar-hover: #7fd3b1; --chart-grid: #22342c; --nav-ind-s: #24392f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1310; --bg-alt: #0e1a16; --surface: #12211b; --surface-2: #162820;
  --ink: #e8efeb; --ink-2: #b3c2ba; --ink-3: #82938a; --line: #22342c; --line-2: #2d433a;
  --brand: #5cc29a; --brand-2: #7fd3b1; --brand-soft: #173328;
  --gold: #d6b35f; --gold-ink: #e3c47a; --gold-soft: #2a2414;
  --hero: #07130f; --hero-2: #0c2018;
  --chart-bar: #4fb38c; --chart-bar-hover: #7fd3b1; --chart-grid: #22342c; --nav-ind-s: #24392f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--gold-ink); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker.light { color: var(--gold); }
.sub { color: var(--ink-2); margin-top: 14px; font-size: 1.05rem; }
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 52px; max-width: 700px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 12px;
  font: 600 .94rem var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn.sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }
.btn.solid { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn.solid { color: #08130f; }
.btn.solid:hover { background: var(--brand-2); }
.btn.gold { background: var(--gold); color: #1a1408; box-shadow: 0 10px 24px -8px rgba(192, 151, 60, .6); }
.btn.gold:hover { background: #d1a84a; }
.btn.outline-light { border-color: rgba(255, 255, 255, .25); color: #fff; background: rgba(255, 255, 255, .04); }
.btn.outline-light:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.btn.text-light { color: #c9d8d0; background: none; padding-inline: 8px; }
.btn.text-light:hover { color: #fff; }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--brand); }

/* ============ Progress + Header ============ */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), #e6c878); }

/* Utility strip */
.topbar { background: #071a13; color: #9fb8ab; font-size: .78rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 38px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.tb-org { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.tb-org i { font-style: normal; color: #4e6b5d; }
.tb-links { display: flex; gap: 22px; }
.tb-links a { display: inline-flex; align-items: center; gap: 7px; color: #c6d6cd; text-decoration: none; transition: color .2s; }
.tb-links a:hover { color: #fff; }

/* Main bar: blends into the hero at the top, turns into a frosted bar once scrolled */
.nav {
  --nav-h: 76px;
  --nav-ink: #e7efea; --nav-ink-2: #a9c0b4; --nav-pill: rgba(255, 255, 255, .05); --nav-pill-line: rgba(255, 255, 255, .1);
  --nav-ind: rgba(255, 255, 255, .12); --nav-btn: rgba(255, 255, 255, .06); --nav-btn-line: rgba(255, 255, 255, .14);
  position: sticky; top: 0; z-index: 50; color: var(--nav-ink);
  margin-bottom: calc(-1 * var(--nav-h) - 1px);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.nav:not(.at-top) {
  --nav-h: 64px;
  --nav-ink: var(--ink); --nav-ink-2: var(--ink-2); --nav-pill: var(--bg-alt); --nav-pill-line: var(--line);
  --nav-ind: var(--nav-ind-s); --nav-btn: var(--surface); --nav-btn-line: var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(15, 29, 23, .35);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); transition: height .35s var(--ease); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.nav .brand { color: var(--nav-ink); }
.mono {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, #1b5a43, #0d2a20); color: var(--gold);
  font: 700 1rem var(--serif); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(214, 179, 95, .4), 0 6px 14px -6px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease);
}
.brand:hover .mono { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font: 600 1.02rem var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.brand-text small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.nav .brand-text small { color: var(--nav-ink-2); }
.brand-text .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.menu {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--nav-pill); border: 1px solid var(--nav-pill-line); transition: background .35s, border-color .35s;
}
.menu a {
  position: relative; z-index: 1; text-decoration: none; color: var(--nav-ink-2); font-size: .88rem; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; transition: color .2s;
}
.menu a:hover, .menu a.active { color: var(--nav-ink); }
.menu-indicator {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px; opacity: 0;
  background: var(--nav-ind); box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s, background .35s;
}
.menu-indicator::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold);
}

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav .icon-btn { background: var(--nav-btn); border-color: var(--nav-btn-line); color: var(--nav-ink); border-radius: 999px; }
.nav .icon-btn:hover { border-color: var(--gold); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 18px; border-radius: 999px; text-decoration: none;
  font: 600 .88rem var(--sans); color: #1a1408; background: var(--gold); white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(192, 151, 60, .8); transition: transform .2s var(--ease), background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: #d1a84a; }
.nav-cta-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1a1408; color: var(--gold); transition: transform .3s var(--ease); }
.nav-cta-icon svg { width: 15px; height: 15px; }
.nav-cta:hover .nav-cta-icon { transform: rotate(45deg); }
.menu-btn { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.burger i:nth-child(2) { width: 65%; justify-self: end; }

#theme-toggle .i-moon { display: none; }
#theme-toggle svg { transition: transform .5s var(--ease); }
#theme-toggle:hover svg { transform: rotate(30deg); }
:root[data-theme="dark"] #theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) #theme-toggle .i-moon { display: block; }
}

/* Mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(4, 12, 9, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s;
}
.drawer-overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(360px, 88vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4);
  transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .brand { margin: 0; }
.drawer-nav { display: flex; flex-direction: column; padding: 12px; overflow-y: auto; }
.drawer-nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 12px; border-radius: 12px; text-decoration: none;
  font: 600 1.25rem var(--serif); color: var(--ink); transition: background .2s, padding .25s var(--ease);
}
.drawer-nav a span { font: 600 .72rem var(--sans); color: var(--gold-ink); letter-spacing: .08em; }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--bg-alt); padding-left: 18px; }
.drawer.open .drawer-nav a { animation: slideIn .45s var(--ease) both; }
.drawer.open .drawer-nav a:nth-child(2) { animation-delay: .04s; }
.drawer.open .drawer-nav a:nth-child(3) { animation-delay: .08s; }
.drawer.open .drawer-nav a:nth-child(4) { animation-delay: .12s; }
.drawer.open .drawer-nav a:nth-child(5) { animation-delay: .16s; }
.drawer.open .drawer-nav a:nth-child(6) { animation-delay: .2s; }
.drawer.open .drawer-nav a:nth-child(7) { animation-delay: .24s; }
.drawer.open .drawer-nav a:nth-child(8) { animation-delay: .28s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.drawer-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .88rem; }
.drawer-foot a:not(.btn) { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.drawer-foot svg { width: 16px; height: 16px; color: var(--gold-ink); }
.drawer-foot .btn { margin-top: 6px; }
body.lock { overflow: hidden; }

/* ============ Hero ============ */
.hero { position: relative; color: #e7efea; padding: calc(76px + 64px) 0 0; overflow: hidden; background: var(--hero); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 30%, rgba(214, 179, 95, .16), transparent 65%),
    radial-gradient(800px 600px at 10% 0%, rgba(47, 140, 104, .28), transparent 60%),
    linear-gradient(180deg, var(--hero-2), var(--hero));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding-bottom: 56px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 500; color: #cfe0d6;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); color: #fff; margin-top: 24px; font-weight: 600; letter-spacing: -.025em; }
.hero h1 .honorific { color: var(--gold); font-style: italic; font-weight: 500; }
.creds { font-size: .95rem; letter-spacing: .08em; color: #9fb8ab; margin-top: 16px; font-weight: 500; }
.lede { font-size: 1.1rem; color: #c6d6cd; max-width: 56ch; margin-top: 22px; }
.lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; align-items: center; }

.hero-visual { --pt: 28px; --pw: min(300px, 64vw); --gap: 12px; position: relative; justify-self: center; padding: var(--pt) 44px; display: flex; flex-direction: column; align-items: center; }
.portrait {
  position: relative; width: var(--pw); aspect-ratio: 4 / 5; border-radius: 160px 160px 24px 24px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .1);
  background: #dfe8f4;
}
.portrait::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: 2; pointer-events: none;
  box-shadow: inset 0 -80px 60px -40px rgba(13, 42, 32, .35);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-visual::before {
  /* Concentric frame: same gap on every side of the arched portrait */
  content: ""; position: absolute; pointer-events: none;
  top: calc(var(--pt) - var(--gap)); left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) + 2 * var(--gap)); height: calc(var(--pw) * 1.25 + 2 * var(--gap));
  border-radius: calc(160px + var(--gap)) calc(160px + var(--gap)) calc(24px + var(--gap)) calc(24px + var(--gap));
  border: 1px solid rgba(214, 179, 95, .5);
}
/* Credentials panel: docked to the bottom edge of the portrait, never over the face */
.cred-panel {
  position: relative; z-index: 3; list-style: none; margin: -48px 0 0; padding: 14px 6px;
  width: min(380px, 86vw); display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(10, 34, 26, .72); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.cred-panel::before {
  content: ""; position: absolute; top: -1px; left: 24%; right: 24%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cred-panel li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 8px; position: relative; }
.cred-panel li + li::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255, 255, 255, .12); }
.cred-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: rgba(214, 179, 95, .14); color: var(--gold); }
.cred-icon svg { width: 16px; height: 16px; }
.cred-panel b { font: 600 1.05rem/1.2 var(--serif); color: #fff; white-space: nowrap; }
.cred-panel small { font-size: .72rem; color: #a9c0b4; margin-top: 2px; white-space: nowrap; }

.affil {
  position: relative; display: flex; align-items: center; gap: 28px; padding: 22px 0 96px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.affil-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #7f998b; font-weight: 600; flex: none; }
.affil ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.affil li { font-family: var(--serif); font-size: 1.02rem; color: #d4e1da; display: flex; align-items: center; gap: 10px; }
.affil li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ============ Stats ============ */
.stats-wrap { position: relative; margin-top: -64px; z-index: 5; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 28px 30px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.stat b { display: block; font: 700 2.6rem/1 var(--serif); color: var(--brand); letter-spacing: -.02em; }
.stat > span { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink-3); font-weight: 500; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.prose { margin-top: 28px; }
.prose p { color: var(--ink-2); margin-bottom: 18px; font-size: 1.04rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.glance {
  position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.glance h3 { font-size: 1.2rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.glance dl { margin: 0; }
.glance dl div { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.glance dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.glance dd { margin: 4px 0 0; font-weight: 500; color: var(--ink); }
.glance-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; text-decoration: none; color: var(--brand); }
.glance-link svg { width: 18px; height: 18px; transition: transform .2s; }
.glance-link:hover svg { transform: translateX(4px); }

/* ============ Bento ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile h3 { font-size: 1.18rem; margin-top: 18px; }
.tile p { color: var(--ink-2); font-size: .95rem; margin-top: 10px; }
.tile-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tile-icon svg { width: 22px; height: 22px; }
.tile-feature {
  grid-row: span 2; color: #e7efea; border: 0;
  background: radial-gradient(400px 300px at 100% 0%, rgba(214, 179, 95, .22), transparent 60%), linear-gradient(160deg, #164a37, #0d2a20);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 34px;
}
.tile-feature h3 { color: #fff; font-size: 1.6rem; }
.tile-feature p { color: #c6d6cd; font-size: 1rem; }
.tile-feature .tile-icon { background: rgba(214, 179, 95, .16); color: var(--gold); margin-bottom: auto; }
.tile-wide { grid-column: 2 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.tile-wide .tile-icon { grid-row: span 2; }
.tile-wide h3 { margin-top: 0; }
.mini-tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tags li { font-size: .78rem; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e1ebe5; }

/* ============ Career ============ */
.career-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 64px; align-items: start; }
.career-head { position: sticky; top: 110px; }
.career-legend { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; font-size: .88rem; color: var(--ink-2); }
.career-legend span { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.dot.lead { border-color: var(--brand-2); background: var(--brand-2); }
.dot.now { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 104px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--gold), var(--line) 30%); }
.t-item { display: grid; grid-template-columns: 90px 1fr; gap: 40px; position: relative; padding-bottom: 18px; }
.t-item::before {
  content: ""; position: absolute; left: 98px; top: 24px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2); z-index: 1;
}
.t-item.lead::before { background: var(--brand-2); border-color: var(--brand-2); }
.t-item.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.t-when { text-align: right; font-size: .82rem; font-weight: 600; color: var(--ink-3); padding-top: 20px; font-variant-numeric: tabular-nums; }
.t-item.now .t-when { color: var(--gold-ink); }
.t-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.t-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateX(4px); }
.t-item.now .t-card { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: linear-gradient(135deg, var(--gold-soft), var(--surface) 60%); }
.t-card h3 { font-size: 1.22rem; }
.org { color: var(--brand-2); font-weight: 500; font-size: .92rem; margin-top: 4px; }
.t-card p:not(.org) { color: var(--ink-2); font-size: .94rem; margin-top: 8px; }

/* ============ Education steps ============ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 64px 24px 26px; }
.step-yr {
  position: absolute; top: 6px; left: 24px; padding: 6px 14px; border-radius: 999px; font: 700 .82rem var(--sans);
  background: var(--brand); color: #fff;
}
:root[data-theme="dark"] .step-yr { color: #08130f; }
.step h3 { font-size: 1.22rem; }
.step p:not(.org) { color: var(--ink-2); font-size: .92rem; margin-top: 10px; }
.award-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .76rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink);
}
.award-pill::before { content: "★"; }

/* ============ Research ============ */
.research-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.theme {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.theme:hover { border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.theme .num { font: 700 .82rem var(--sans); color: var(--gold-ink); letter-spacing: .1em; }
.theme h3 { font-size: 1.1rem; margin-top: 10px; }
.theme p { color: var(--ink-2); font-size: .9rem; margin-top: 8px; flex: 1; }
.theme-link { margin-top: 14px; font-size: .84rem; font-weight: 600; color: var(--brand); }

.chart-card { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; }
.chart-card figcaption h3 { font-size: 1.15rem; }
.chart-card figcaption p { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.chart { margin-top: 18px; position: relative; }
.chart svg { width: 100%; height: auto; display: block; stroke: none; overflow: visible; }
.chart .grid line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font: 500 11px var(--sans); }
.chart .bar { fill: var(--chart-bar); transition: fill .15s; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .col:hover .bar, .chart .col.on .bar { fill: var(--chart-bar-hover); }
.chart .val { fill: var(--ink); font: 700 12px var(--sans); }
.chart-tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -100%); transition: opacity .12s;
  background: var(--ink); color: var(--bg); font-size: .8rem; padding: 7px 11px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow);
}
.chart-tip b { font-weight: 700; }
.chart-tip.show { opacity: 1; }
.chart-table { margin-top: 10px; font-size: .85rem; }
.chart-table summary { cursor: pointer; color: var(--ink-3); font-weight: 500; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.chart-table th { color: var(--ink-3); font-weight: 600; }

.funding {
  margin-top: 24px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center;
  padding: 34px 38px; border-radius: var(--radius); color: #e7efea;
  background: radial-gradient(500px 200px at 100% 0%, rgba(214, 179, 95, .18), transparent 60%), linear-gradient(135deg, #164a37, #0d2a20);
}
.funding h3 { color: #fff; font-size: 1.4rem; }
.funding ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.funding li { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.funding b { display: block; color: var(--gold); font-size: 1rem; }
.funding li span { display: block; font-size: .84rem; color: #b9cbc1; margin-top: 4px; }

/* ============ Publications ============ */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.feat {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-journal { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.feat h3 { font-size: 1.08rem; line-height: 1.4; flex: 1; }
.feat-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.feat-meta span { color: var(--gold-ink); font-weight: 700; }

.pub-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pub-toolbar { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--bg-alt); border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs button {
  font: 600 .86rem var(--sans); padding: 9px 14px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs .n { font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tabs button[aria-selected="true"] .n { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .tabs button[aria-selected="true"] .n { color: #08130f; }
.pub-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 42px; transition: border-color .2s, box-shadow .2s;
}
.search svg { width: 18px; height: 18px; color: var(--ink-3); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .92rem; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.search kbd { font: 600 .72rem var(--sans); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle input:checked + .switch { background: var(--brand-2); }
.toggle input:checked + .switch::after { transform: translateX(16px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--gold); outline-offset: 2px; }
select {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: 500 .88rem var(--sans); padding: 0 12px; cursor: pointer;
}
.pub-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px; }
.pub-count { color: var(--ink-3); font-size: .84rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem var(--sans); padding: 5px 8px 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft); color: var(--gold-ink);
}
.filter-chip::after { content: "×"; font-size: 1rem; line-height: 1; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .06); }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; padding: 18px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background .15s; }
.pub:hover { background: var(--surface-2); }
.pub:last-child { border-bottom: 0; }
.pub .y { font: 700 1.05rem var(--serif); color: var(--brand); font-variant-numeric: tabular-nums; }
.pub .t { font-weight: 600; color: var(--ink); line-height: 1.45; }
.pub .a { font-size: .86rem; color: var(--ink-3); margin-top: 4px; }
.pub .a mark { background: none; color: var(--ink); font-weight: 700; }
.pub .t mark.hl, .pub .j mark.hl { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.pub .j { font-size: .86rem; color: var(--ink-2); margin-top: 3px; font-style: italic; }
.pub .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); }
.badge.first { background: var(--gold-soft); color: var(--gold-ink); }
.pub-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  font: 600 .78rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .15s;
}
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn:hover { border-color: var(--brand); color: var(--brand); }
.mini-btn.doi { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.empty { text-align: center; padding: 40px 0; color: var(--ink-3); }
.empty .btn { margin-top: 12px; }
.center { text-align: center; margin-top: 20px; }

/* ============ Training tabs ============ */
.tabbed > .tabs { margin-bottom: 24px; }
.tab-panel { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.grid-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.grid-list li:hover { border-color: var(--line-2); }
.grid-list b { display: block; font-weight: 600; font-size: .96rem; line-height: 1.4; }
.grid-list small { display: block; margin-top: 4px; font-size: .84rem; color: var(--ink-3); }
.grid-list.compact li { padding: 14px 18px; }
.flag {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font: 700 .76rem var(--sans); letter-spacing: .06em; background: var(--brand-soft); color: var(--brand);
}
.honours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.honour { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.honour b { display: block; font-family: var(--serif); font-size: 1.2rem; margin-top: 16px; }
.honour p { color: var(--ink-2); font-size: .92rem; margin-top: 8px; }
.medal { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #e9cf86, #b88a2e); color: #fff; box-shadow: 0 8px 20px -6px rgba(184, 138, 46, .6); }
.medal svg { width: 24px; height: 24px; }

/* ============ Gallery ============ */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-head > div { max-width: 640px; }
.gallery-hint { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-3); }
.gallery-hint svg { width: 16px; height: 16px; color: var(--gold-ink); }
.gallery {
  display: grid; gap: 18px;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 280px));
  grid-template-areas: "feat wide wide" "feat a b";
}
.g-feature { grid-area: feat; }
.g-wide { grid-area: wide; }
.g-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--hero); isolation: isolate; box-shadow: var(--shadow-sm); }
.g-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.g-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 18, 13, .35) 62%, rgba(5, 18, 13, .9));
  transition: opacity .4s;
}
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px; color: #fff; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
}
.g-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #1a1408; background: var(--gold); padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
}
.g-item b { font: 600 1.08rem/1.3 var(--serif); }
.g-feature b { font-size: 1.45rem; }
.g-desc {
  font-size: .86rem; color: #cfe0d6; line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s;
}
.g-feature .g-desc { max-height: 4.5em; opacity: 1; }
.g-item:hover .g-open img, .g-open:focus-visible img { transform: scale(1.05); }
.g-item:hover .g-desc, .g-item:focus-within .g-desc { max-height: 4.5em; opacity: 1; }
.g-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: var(--radius); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 64px 1fr;
  align-items: center; background: rgba(4, 12, 9, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.lightbox.show { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #a9c0b4; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background .2s, transform .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-nav { justify-self: center; }
.lb-prev:hover { transform: translateX(-2px); }
.lb-next:hover { transform: translateX(2px); }
.lb-stage { margin: 0; height: 100%; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; }
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 64px - 130px); max-height: calc(100dvh - 64px - 130px); object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transition: opacity .25s, transform .35s var(--ease);
}
.lb-stage img.swap { opacity: 0; transform: scale(.98); }
.lb-stage figcaption { text-align: center; color: #cfe0d6; max-width: 640px; font-size: .92rem; }
.lb-stage figcaption b { display: block; color: #fff; font: 600 1.2rem var(--serif); margin-bottom: 4px; }

@media (max-width: 960px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 240px 220px; grid-template-areas: "feat feat" "wide wide" "a b"; }
}
@media (max-width: 720px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 64px 1fr 72px; }
  .lb-stage { grid-row: 2; grid-column: 1; padding: 0 12px; }
  .lb-nav { grid-row: 3; }
  .lb-prev { grid-column: 1; justify-self: start; margin-left: 20px; }
  .lb-next { grid-column: 1; justify-self: end; margin-right: 20px; }
  .lb-stage img { max-height: calc(100dvh - 64px - 72px - 110px); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 300px; grid-template-areas: none; }
  .g-feature, .g-wide { grid-area: auto; }
  .g-desc { max-height: 4.5em; opacity: 1; }
  .g-feature b { font-size: 1.15rem; }
}

/* ============ Contact ============ */
.contact { padding-bottom: 120px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; border-radius: 28px; color: #e7efea; overflow: hidden; position: relative;
  background: radial-gradient(600px 400px at 0% 100%, rgba(47, 140, 104, .35), transparent 60%), radial-gradient(500px 300px at 100% 0%, rgba(214, 179, 95, .18), transparent 60%), #0d2a20;
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: #fff; }
.contact-intro p:not(.kicker) { color: #c6d6cd; margin-top: 16px; max-width: 46ch; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.contact-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s;
}
.contact-list li:hover { background: rgba(255, 255, 255, .08); }
.c-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(214, 179, 95, .14); color: var(--gold); }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa99b; font-weight: 600; }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.copy {
  font: 600 .78rem var(--sans); padding: 7px 12px; border-radius: 8px; cursor: pointer; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #e7efea !important; transition: background .2s;
}
.copy:hover { background: rgba(255, 255, 255, .16); }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .88rem; color: var(--ink-3); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { margin-right: 0; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-inline: auto; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--brand); }

/* ============ Floating UI ============ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
:root[data-theme="dark"] .to-top { color: #08130f; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow); transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .research-grid { grid-template-columns: 1fr; }
  .funding { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 960px) {
  .menu { display: none; }
  .menu-btn { display: grid; }
  .tb-org { display: none; }
  .topbar-inner { justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .hero-visual { order: -1; --pt: 20px; padding: var(--pt) 40px; }
  .about-grid, .career-grid { grid-template-columns: 1fr; gap: 40px; }
  .glance, .career-head { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-feature { grid-column: span 2; grid-row: auto; min-height: 0; }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .featured { grid-template-columns: 1fr; }
  .honours { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .nav .brand-text small { display: none; }
  .menu a { padding: 8px 12px; }
}
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .topbar { display: none; }
  .section { padding: 80px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 22px 20px; }
  .stat b { font-size: 2.1rem; }
  .affil { flex-direction: column; align-items: flex-start; gap: 12px; }
  .themes, .grid-list { grid-template-columns: 1fr; }
  .funding ul { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .t-item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .t-item::before { left: 1px; top: 4px; }
  .t-when { text-align: left; padding-top: 0; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub-actions { flex-direction: row; margin-top: 6px; }
  .pub-panel { padding: 18px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs button { flex: none; }
}
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .hero { padding-top: calc(76px + 28px); }
  .hero-visual { --pt: 16px; --gap: 10px; padding: var(--pt) 0; }
  .cred-panel { width: 100%; }
  .cred-panel small { font-size: .68rem; }
  .bento, .steps { grid-template-columns: 1fr; }
  .tile-feature, .tile-wide { grid-column: auto; }
  .tile-wide { display: block; }
  .tile-wide h3 { margin-top: 18px; }
  .contact-card { padding: 28px 20px; border-radius: 20px; }
  .contact-list li { grid-template-columns: auto 1fr; }
  .contact-list .copy { grid-column: 2; justify-self: start; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ============ Print (Save as PDF) ============ */
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --surface: #fff; }
  body { font-size: 11pt; }
  .nav, .topbar, .drawer, .drawer-overlay, .lightbox, .gallery-hint, .progress, .hero-actions, .cred-panel, .hero-bg, .pub-toolbar, .center, .to-top, .toast, .footer nav,
  .contact-actions, .copy, .theme-link, .chart-table, .glance-link, .hero-visual::before { display: none !important; }
  .hero { background: #fff; color: #000; padding: 0; }
  .hero h1, .lede strong, .contact-card h2 { color: #000; }
  .lede, .creds, .affil li, .status { color: #333; }
  .hero-grid { grid-template-columns: 2fr 1fr; padding-bottom: 12px; }
  .affil { padding-bottom: 12px; border-color: #ddd; }
  .stats-wrap { margin-top: 0; }
  .section { padding: 18px 0; break-inside: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .tab-panel[hidden] { display: block !important; }
  .tile-feature, .funding, .contact-card { background: #fff !important; color: #000; border: 1px solid #ccc; box-shadow: none; }
  .tile-feature h3, .funding h3, .tile-feature p, .funding li span, .contact-intro p, .contact-list a, .contact-list span, .contact-list small { color: #000 !important; }
  .t-card, .tile, .feat, .step, .theme, .grid-list li, .pub { break-inside: avoid; }
}
