/* Biase Lab website styles.
   Colors and fonts are defined once below; change them there. */

:root {
  --navy-900: #0a1a2f;
  --navy-800: #10294a;
  --navy-700: #1b3d66;
  --teal-700: #0b6e6b;
  --teal-500: #14a39d;
  --teal-300: #74d6cc;
  --teal-100: #e1f3f0;
  --paper: #f6f4ee;
  --paper-2: #edeae1;
  --card: #ffffff;
  --ink: #132033;
  --muted: #566275;
  --line: #d9d5c8;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 98px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 900px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.icon { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand-logo { width: auto; height: 52px; }
.brand-sub { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); line-height: 2.4; }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 13px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current='page'] { background: var(--navy-900); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 0.98rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--teal-100); color: var(--navy-900); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; margin-top: 20px; }
.text-link:hover { text-decoration: underline; }

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: 32px; }

/* ---------- microscope-view images ---------- */

.scope { position: relative; aspect-ratio: 1; border-radius: 50%; }
.scope img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.scope::before {
  content: ''; position: absolute; inset: -16px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(var(--teal-500) 0 0.5deg, transparent 0.5deg 5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  opacity: 0.6;
}
.scope.is-small { width: 64px; }
.scope.is-small::before { display: none; }

.photo img { width: 100%; border-radius: var(--radius); }
.photo.is-small { width: 64px; aspect-ratio: 1; }
.photo.is-small img { height: 100%; object-fit: cover; border-radius: 50%; }

figcaption { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--muted); margin-top: 18px; }

/* ---------- home: hero ---------- */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 82% 40%, rgba(20, 163, 157, 0.22), transparent 65%),
    var(--navy-900);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-block: 88px 104px; }
.hero .eyebrow { color: var(--teal-300); }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.06; letter-spacing: -0.022em; }
.hero-lede { margin-top: 26px; max-width: 34em; font-size: 1.16rem; color: rgba(255, 255, 255, 0.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-primary { background: var(--teal-300); color: var(--navy-900); }
.hero .btn-primary:hover { background: #fff; color: var(--navy-900); }

.hero-figure { position: relative; width: min(100%, 440px); margin-inline: auto; }
.scope-hero img { object-position: 62% 50%; }
.scope-hero::before { background: repeating-conic-gradient(var(--teal-300) 0 0.5deg, transparent 0.5deg 5deg); }
.hero-scopes { position: relative; }
.scope-inset { position: absolute; width: 36%; left: -7%; bottom: -5%; box-shadow: 0 0 0 7px var(--navy-900); }
.scope-inset::before { display: none; }
.hero-figure figcaption { text-align: right; color: rgba(255, 255, 255, 0.6); margin-top: 34px; padding-left: 34%; }

/* ---------- home: research cards ---------- */

.area-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.area-card a:hover { border-color: var(--teal-500); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(10, 26, 47, 0.45); }
.area-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.area-num { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: var(--teal-700); }
.area-card h3 { margin-bottom: 10px; }
.area-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.area-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-size: 0.9rem; font-weight: 500; color: var(--teal-700); }

.glyph { width: 64px; height: 64px; }

/* ---------- home: fact band ---------- */

.band { padding: 72px 0; }
.band-fact { background: var(--navy-800); color: #fff; }
.fact-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; margin-bottom: 52px; }
.fact-head p { color: rgba(255, 255, 255, 0.82); }
.fact-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.fact-figure { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.fact-stage { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-300); }
.fact-value { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(2.7rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.fact-label { margin-top: 14px; font-size: 0.96rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }

/* ---------- home: publications + approaches ---------- */

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 72px; }
.pub-compact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.pub-compact-list li:last-child { border-bottom: 1px solid var(--line); }
.pub-compact a { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.pub-compact a:hover { color: var(--teal-700); text-decoration: underline; }
.pub-compact-meta { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }

.approach-list li { position: relative; padding: 14px 0 14px 22px; border-top: 1px solid var(--line); font-weight: 500; }
.approach-list li:last-child { border-bottom: 1px solid var(--line); }
.approach-list li::before { content: ''; position: absolute; left: 0; top: 1.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }

/* ---------- home: news feature, funding, join band ---------- */

.news-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.news-feature h2 { margin-bottom: 16px; }
.news-feature h2 a { color: var(--ink); text-decoration: none; }
.news-feature h2 a:hover { color: var(--teal-700); }
.news-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }

.section-funding { padding: 64px 0; }
.funder-list { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.funder-list li { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; }

.band-join { background: var(--teal-700); color: #fff; }
.band-join-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band-join h2 { margin-bottom: 10px; }
.band-join p { max-width: 40em; color: rgba(255, 255, 255, 0.88); }
.band-join .btn { flex: none; }

/* ---------- inner pages: title band ---------- */

.page-head { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding: 76px 0 64px; }
.page-head::after {
  content: ''; position: absolute; right: -70px; top: -90px; width: 380px; height: 380px; border-radius: 50%;
  background: repeating-conic-gradient(var(--teal-300) 0 0.5deg, transparent 0.5deg 5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  opacity: 0.4;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--teal-300); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.02em; }
.page-intro { margin-top: 18px; max-width: 38em; font-size: 1.12rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- research ---------- */

.section-mission { padding-bottom: 56px; }
.mission { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.5; }
.area-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 44px; }
.area-index a { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.area-index a:hover { color: var(--teal-700); }
.area-index span { font-family: var(--mono); font-size: 0.8rem; color: var(--teal-700); padding-top: 3px; }

.area { border-top: 1px solid var(--line); }
.area-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
.area-flip .area-figure { order: -1; }
.area-copy h2 { margin: 10px 0 20px; }
.area-figure .scope { width: min(100%, 380px); margin: 16px auto 0; }
.area-figure figcaption { text-align: center; margin-top: 30px; }
.area-figure .photo + figcaption, .area-figure .figure-diagram + figcaption { margin-top: 14px; }
.related { margin-top: 32px; }
.related h3 { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.related .pub-compact a { font-size: 1rem; }
.related .pub-compact-list li { padding: 13px 0; }

.figure-diagram { background: var(--navy-800); border-radius: var(--radius); padding: 28px; }
.diagram { width: 100%; height: auto; }
.d-conceptus, .d-arrow { stroke: var(--teal-300); stroke-width: 2; }
.d-endo { stroke: rgba(255, 255, 255, 0.75); stroke-width: 2; }
.d-endo-fill { fill: rgba(255, 255, 255, 0.07); stroke: none; }
.d-dots { fill: var(--teal-300); opacity: 0.65; }
.d-label { fill: #fff; font: 600 19px var(--serif); }
.d-note { fill: rgba(255, 255, 255, 0.62); font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.grants { display: grid; gap: 28px; margin-top: 28px; }
.funder h3 { margin-bottom: 12px; }
.funder li { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.grant-id { font-family: var(--mono); font-size: 0.84rem; color: var(--teal-700); padding-top: 2px; }
.funder li > span:only-child { grid-column: 1 / -1; }

/* ---------- team ---------- */

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; margin-bottom: 22px; }
.portrait-blank { display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); font: 600 2.4rem var(--serif); letter-spacing: 0.02em; }
.person h3 { font-size: 1.35rem; }
.person-role { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-700); margin-top: 6px; }
.person-detail { margin-top: 14px; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.person-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 0.92rem; font-weight: 500; }

.alumni li { display: grid; grid-template-columns: 76px 1fr 1.4fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.alumni li:last-child { border-bottom: 1px solid var(--line); }
.alumni-year { font-family: var(--mono); font-size: 0.88rem; color: var(--teal-700); }
.alumni-degree { margin-left: 8px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.alumni-next { color: var(--muted); }

/* ---------- publications ---------- */

.pub-sources { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 500; }
.pub-sources a { display: inline-flex; align-items: center; gap: 5px; }
.pub-controls { margin-top: 32px; display: grid; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font: 500 0.88rem var(--sans); color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--teal-500); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pub-search input {
  width: 100%; max-width: 420px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font: 400 0.98rem var(--sans); color: var(--ink);
}
.pub-search input:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; }
.pub-count { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }

.pub-year { display: grid; grid-template-columns: 110px 1fr; gap: 24px; margin-top: 44px; }
.pub-year h2 { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--teal-700); padding-top: 22px; border-top: 2px solid var(--teal-500); align-self: start; }
.pub { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.pub-title { font-size: 1.16rem; line-height: 1.35; text-wrap: pretty; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--teal-700); text-decoration: underline; }
.pub-authors { margin-top: 8px; font-size: 0.93rem; color: var(--muted); }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 6px; font-size: 0.9rem; }
.pub-doi { font-family: var(--mono); font-size: 0.8rem; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags li { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); border-radius: 999px; padding: 2px 9px; }
.pub-empty { margin-top: 40px; color: var(--muted); }

/* ---------- resources ---------- */

.resource-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.resource-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.resource-card .resource-source { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; }
.resource-card h3 { margin-bottom: 12px; }
.resource-card h3 a { color: var(--ink); text-decoration: none; }
.resource-card h3 a:hover { color: var(--teal-700); }
.resource-card p { color: var(--muted); font-size: 0.96rem; }
.resource-card .text-link { margin-top: auto; padding-top: 20px; }

.code-list { margin-top: 28px; }
.code-list li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.code-list li:last-child { border-bottom: 1px solid var(--line); }
.code-list h3 { font-size: 1.1rem; }
.code-paper { margin-top: 4px; font-size: 0.9rem; color: var(--muted); }
.code-links { display: flex; gap: 18px; flex: none; font-size: 0.92rem; font-weight: 500; margin: 0; }
.code-links a { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- news ---------- */

.news-item { padding: 36px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item.has-image { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.news-meta time { color: var(--teal-700); }
.news-item h2 { font-size: 1.5rem; margin-bottom: 14px; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--teal-700); }
.news-item blockquote { border-left: 3px solid var(--teal-500); padding-left: 20px; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.news-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.news-foot .text-link { margin-top: 0; }

/* ---------- join ---------- */

.join-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.lead { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; }
.join-copy h2 { margin: 44px 0 14px; }
.program-list { margin-top: 16px; }
.program-list li { border-top: 1px solid var(--line); }
.program-list li:last-child { border-bottom: 1px solid var(--line); }
.program-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; font-weight: 500; text-decoration: none; }
.program-list a:hover { text-decoration: underline; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-card .btn { margin: 20px 0 28px; }
.contact-card address { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.96rem; }
.contact-card address strong { color: var(--ink); }

.visit-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.map-static img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.map-static figcaption { margin-top: 10px; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); padding: 68px 0 28px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { width: auto; height: 68px; }
.footer-tagline { margin: 14px 0 20px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--teal-300); text-decoration: underline; }
.footer-col h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 16px; }
.footer-col li + li { margin-top: 9px; }
.footer-legal { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.84rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .area-card a { transition: none; }
}

/* ---------- smaller screens ---------- */

@media (max-width: 1020px) {
  .area-cards { grid-template-columns: 1fr 1fr; }
  .fact-figures { gap: 32px; }
  .hero-grid { gap: 40px; }
  .split { gap: 48px; }
  .area-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.02rem; }

  .section { padding: 60px 0; }
  .band { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 56px 72px; }
  .hero-figure { width: min(78%, 360px); margin-top: 12px; }
  .fact-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .split, .news-feature, .area-grid, .join-grid, .visit-grid, .news-item.has-image { grid-template-columns: 1fr; gap: 40px; }
  .area-flip .area-figure { order: 0; }
  .band-join-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .fact-figures { grid-template-columns: 1fr; }
  .page-head { padding: 56px 0 48px; }
  .page-head::after { width: 260px; height: 260px; right: -110px; top: -100px; }
  .pub-year { grid-template-columns: 1fr; gap: 0; }
  .pub-year h2 { padding: 0 0 12px; border-top: 0; border-bottom: 2px solid var(--teal-500); }
  .pub-year .pub:first-child { border-top: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .area-cards, .resource-cards, .area-index { grid-template-columns: 1fr; }
  .fact-figures { gap: 28px; }
  .brand-logo { height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .alumni li { grid-template-columns: 56px 1fr; }
  .alumni-next { grid-column: 2; }
  .funder li { grid-template-columns: 1fr; gap: 4px; }
  .code-list li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand-sub { display: none; }
}
