/* ==========================================================================
   RoaRQ — Robust and Reliable Quantum Computing
   Static archive stylesheet
   Palette and typography carried over from the original site.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/outfit-qgyvz_mvcbenp4njtetq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/outfit-qgyvz_mvcbenp4njuktqq4e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/alata-pbytfmztewbioce9zqy.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/alata-pbytfmztewbioceyzqyhqa.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1e1e1e;
  --ink-deep: #121212;
  --body: #333333;
  --muted: #6b7276;
  --line: #e2e6e8;
  --paper: #ffffff;
  --paper-alt: #f4f7f8;
  --accent: #2ad1e9;
  --accent-ink: #0c7d8e;
  --orange: #fe5c1c;
  --grey: #7f7f7f;

  --font-body: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Alata', 'Outfit', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.06), 0 8px 24px rgba(18, 18, 18, 0.06);
  --shadow-lift: 0 2px 6px rgba(18, 18, 18, 0.08), 0 18px 40px rgba(18, 18, 18, 0.12);
}

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

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

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

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.5em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 3rem, 800px); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--ink); color: #d7dcde; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark a { color: var(--accent); }
.section--dark .btn { color: #06323a; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.9rem;
}
.section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 780px; margin-bottom: 2.6rem; }
.section-head p:last-child { margin-bottom: 0; }
.lead { font-size: 1.16rem; color: var(--body); }
.section--dark .lead { color: #c8cfd2; }

.rule {
  width: 56px; height: 3px; background: var(--accent);
  border: 0; margin: 0 0 1.5rem;
}
.rule--orange { background: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  background: var(--accent); color: #06323a; border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; background: #4cdcf1; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-alt); border-color: var(--grey); }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .bar {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.brand img { height: 50px; width: auto; background: #fff; padding: 4px; border-radius: var(--radius); }
.brand > span { display: flex; flex-direction: column; }
.brand b {
  font-family: var(--font-display); font-size: 1.22rem; color: #fff;
  font-weight: 400; letter-spacing: 0.01em; line-height: 1.2;
}
.brand b + span { font-size: 0.7rem; color: #9aa3a7; letter-spacing: 0.06em; line-height: 1.3; }
.brand:hover { text-decoration: none; }

.nav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.55rem 0.85rem; border-radius: var(--radius);
  color: #cfd6d9; font-size: 0.95rem; font-weight: 400;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav a[aria-current='page'] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; border-radius: var(--radius); padding: 0.45rem 0.7rem; cursor: pointer;
  font-size: 1rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: #000;
  min-height: min(78vh, 680px); display: grid; place-items: center;
  text-align: center; color: #fff; padding: 5rem 0;
}
.hero video,
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.45));
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1, .hero .kicker, .hero p.tagline { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero .kicker {
  font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem;
}
.hero p.tagline {
  font-size: clamp(1.05rem, 2vw, 1.4rem); color: #dfe5e7;
  max-width: 720px; margin-inline: auto; margin-bottom: 2rem;
}
.hero .btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Page banner (inner pages) */
.page-hero {
  position: relative; overflow: hidden; background: var(--ink-deep);
  color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.page-hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.32; z-index: 0;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.92) 25%, rgba(18, 18, 18, 0.55));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow,
.page-hero .kicker { color: var(--accent); }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero p { color: #c9d0d3; max-width: 680px; font-size: 1.1rem; margin-bottom: 0; }

/* ---------- Status banner ---------- */
.status-note {
  background: var(--ink);
  color: #b9c1c4;
  font-size: 0.88rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.status-note .wrap { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.status-note strong { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--paper); padding: 1.6rem 1.4rem; }
.stat .num {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--ink);
  line-height: 1; margin-bottom: 0.35rem;
}
.stat .label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #cfd6d9; }
.card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; line-height: 1.32; }
.card .meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.9rem; }
.card .card-link { margin-top: auto; font-size: 0.9rem; font-weight: 500; }
.card .tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); font-weight: 600;
  margin-bottom: 0.6rem;
}

/* Theme cards (image on top) */
.theme-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 260px; display: flex; align-items: flex-end;
  color: #fff; border: 1px solid var(--line);
}
.theme-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; transition: transform 0.4s ease;
}
.theme-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.1) 35%, rgba(18, 18, 18, 0.88));
}
.theme-card:hover img { transform: scale(1.05); }
.theme-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.theme-card .label {
  position: relative; z-index: 2; padding: 1.3rem; flex: 1;
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25;
  color: #fff;
}

/* Plain list of research themes (About page) */
.theme-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; max-width: 780px; }
.theme-list li {
  border-left: 3px solid var(--accent); padding: 0.35rem 0 0.35rem 1.1rem; margin: 0;
  font-family: var(--font-display); font-size: 1.12rem; color: var(--ink);
}

/* ---------- Person tiles ---------- */
[hidden] { display: none !important; }

.people-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #cfd6d9; }
.person-trigger {
  display: flex; flex-direction: column; flex: 1;
  width: 100%; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.person .photo { display: block; aspect-ratio: 3 / 4; background: var(--paper-alt); overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.person .name { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.25rem; }
.person .role { font-size: 0.83rem; color: var(--muted); line-height: 1.45; margin-bottom: 0.7rem; }
.person .more { margin-top: auto; font-size: 0.82rem; font-weight: 500; color: var(--accent-ink); }
.person-trigger:hover .more { text-decoration: underline; }

/* small circular investigator chips */
.chips { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.4rem; }
.chip { width: 118px; text-align: center; font-size: 0.82rem; color: var(--body); }
.chip img {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  object-position: center top; margin: 0 auto 0.55rem; border: 2px solid var(--line);
}
.chip .who { font-weight: 500; color: var(--ink); display: block; line-height: 1.3; }
.chip .where { color: var(--muted); font-size: 0.78rem; }
.section--dark .chip { color: #c8cfd2; }
.section--dark .chip .who { color: #fff; }
.section--dark .chip img { border-color: rgba(255, 255, 255, 0.18); }

/* founders row on the home page */
.founders { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.founder { text-align: center; }
.founder img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: var(--radius); margin-bottom: 0.8rem;
}
.founder .who { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.founder .where { font-size: 0.83rem; color: var(--muted); line-height: 1.45; }
.section--dark .founder .who { color: #fff; }
.section--dark .founder .where { color: #a9b2b6; }

/* ---------- People page controls ---------- */
.people-tools {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 2rem;
}
.people-tools input[type='search'] {
  flex: 1 1 260px; min-width: 220px;
  padding: 0.7rem 0.95rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink);
}
.people-tools input::placeholder { color: #9aa3a7; }
.people-tools select {
  padding: 0.7rem 0.9rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.people-count { font-size: 0.9rem; color: var(--muted); }

/* ---------- Modal ---------- */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.5rem;
}
.modal .backdrop { position: absolute; inset: 0; background: rgba(12, 14, 15, 0.72); }
.modal .panel {
  position: relative; background: var(--paper); border-radius: var(--radius);
  max-width: 760px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow-lift); padding: 0;
}
.modal .panel-head {
  display: flex; gap: 1.3rem; padding: 1.8rem 2rem 1.2rem; align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.modal .panel-head img {
  width: 108px; height: 140px; object-fit: cover; object-position: center top;
  border-radius: var(--radius); flex: none;
}
.modal .panel-head h3 { margin-bottom: 0.3rem; font-size: 1.5rem; }
.modal .panel-head .role { color: var(--muted); font-size: 0.92rem; margin: 0; }
.modal .panel-body { padding: 1.5rem 2rem 2rem; }
.modal .panel-body p:last-child { margin-bottom: 0; }
.modal .close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; line-height: 1;
  color: var(--ink);
}
.modal .close:hover { background: #e9eef0; }
body.modal-open { overflow: hidden; }

/* ---------- Research page ---------- */
.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 1.4rem 1.6rem;
}
.toc h2 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.toc ol { margin: 0; padding-left: 1.3rem; font-size: 0.94rem; }
.toc li { margin-bottom: 0.45rem; }

.investigation { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.investigation:nth-of-type(even) { background: var(--paper-alt); }
.inv-head {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start; margin-bottom: 2.4rem;
}
.inv-head .figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.inv-head .figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.inv-num {
  font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.7rem;
}
.inv-head h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 0.5rem; }
.inv-team-line { font-size: 0.93rem; color: var(--muted); margin-bottom: 1.3rem; }
.aims { list-style: none; padding: 0; margin: 0; }
.aims li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem;
}
.aims li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; background: var(--accent); border-radius: 2px;
}

.panelset { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.panel-box {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.panel-box.is-orange { border-left-color: var(--orange); }
.panel-box h4 { margin-bottom: 0.5rem; }
.panel-box p:last-child, .panel-box ul:last-child { margin-bottom: 0; }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered li {
  counter-increment: n; position: relative; padding-left: 2.6rem; margin-bottom: 1rem;
}
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-body);
}

.subhead {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin: 2.2rem 0 1rem;
}

.diagram { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--paper); }

/* ---------- Publications ---------- */
.pub-year {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink);
  margin: 2.8rem 0 1.2rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent);
}
.pub-year:first-of-type { margin-top: 0; }
.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pub {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.4rem 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.pub .idx {
  font-family: var(--font-display); color: var(--grey); font-size: 0.95rem;
  padding-top: 0.15rem;
}
.pub .cite { margin: 0 0 0.6rem; }
.pub .cite em { font-style: normal; color: var(--ink); font-weight: 500; }
.pub .go {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem;
  font-weight: 500;
}
.pub .pub-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.pub .pub-kind {
  display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  vertical-align: 0.1em;
}
.pub-jump {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.4rem;
}
.pub-jump a {
  padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-display); color: var(--ink); text-decoration: none;
}
.pub-jump a:hover { border-color: var(--accent); }
.pub-year { scroll-margin-top: 6rem; }

/* ---------- Board list ---------- */
.board { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.board .member {
  border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1.1rem;
}
.board .member strong { display: block; font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: 1.08rem; }
.section--dark .board .member strong { color: #fff; }
.board .member span { font-size: 0.9rem; color: var(--muted); }
.section--dark .board .member span { color: #a9b2b6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 1.4rem; }
.contact-card h4 { margin-bottom: 0.2rem; }
.contact-card .role { font-size: 0.86rem; color: #a9b2b6; margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #9aa3a7; padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.site-footer a { color: #cfd6d9; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 0.45rem; }
.footer-brand img { height: 66px; width: auto; margin-bottom: 0.9rem; background: #fff; padding: 6px; border-radius: var(--radius); }
.footer-bottom {
  padding-top: 1.4rem; display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #7d868a;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .inv-head { grid-template-columns: 1fr; }
  .inv-head .figure { max-width: 330px; }
  .modal .panel-head { flex-direction: column; }
  .modal .panel-head img { width: 120px; height: 150px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-deep); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.5rem 1.1rem; display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0; }
  .site-header .bar { position: relative; }
  .brand b { font-size: 1.05rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 2rem); }
  .pub { grid-template-columns: 1fr; }
  .pub .idx { display: none; }
  .modal .panel-head, .modal .panel-body { padding-inline: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Embedded video */
.video-embed {
  position: relative;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
  box-shadow: var(--shadow-lift);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { margin: 1rem 0 0; }


@media print {
  .site-header, .site-footer, .nav, .people-tools, .status-note, .video-embed { display: none; }
  body { font-size: 11pt; color: #000; }
}
