/* =========================================================
   Long Covid-19 Foundation: site stylesheet
   Theme A "Bold sci" (dark), v2.0, Nov 2026. Shared by every page.
   No inline styles anywhere: CSP is style-src 'self'.
   ========================================================= */

/* ---------- Fonts (self-hosted: no Google requests, no cookies; both SIL OFL 1.1) ---------- */
@font-face { font-family: "Raleway"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/raleway-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0d0b1a;
  --bg-2: #100d1f;
  --bg-3: #120f22;
  --surface: #17142a;
  --surface-2: #1f1a38;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.18);
  --text: #ece9f5;
  --text-2: #d6d2e6;
  --muted: #bdb8d1;
  --faint: #a8a3bd;
  --teal: #5fd6d0;
  --violet: #c9a8f0;
  --purple: #6a2c8f;
  --purple-deep: #3b1f5c;
  --yellow: #f5c518;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --font: "Raleway", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 400; color: var(--text); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 300; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { color: var(--text); }
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #17140a; padding: .6rem 1rem; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet); color: var(--bg); }

.eyebrow { margin: 0 0 .7rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.mono { font-family: var(--mono); }
main { counter-reset: sec; }
.eyebrow.num::before { counter-increment: sec; content: counter(sec, decimal-leading-zero) " / "; }
.section { padding: 6rem 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .85rem 1.8rem; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: .01em; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-donate { background: var(--yellow); color: #17140a; }
.btn-donate:hover { background: #ffd43b; color: #17140a; box-shadow: 0 10px 30px rgba(245,197,24,.25); }
.btn-outline { border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.btn-outline:hover { border-color: var(--teal); color: var(--text); background: rgba(95,214,208,.08); }
.btn-ghost { border: 1px solid var(--teal); color: var(--teal); background: transparent; font-weight: 600; }
.btn-ghost:hover { background: var(--teal); color: var(--bg); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.4rem; }

/* ---------- Header (sticky glass bar) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,11,26,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.8rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .brand-fallback, .brand .brand-name { display: inline; font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: .01em; white-space: nowrap; }
.brand:hover .brand-name { color: var(--violet); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.6rem; }
.main-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .97rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"], .main-nav .is-section > a { color: var(--text); border-bottom-color: var(--teal); }
.main-nav .nav-donate { color: #17140a; background: var(--yellow); padding: .45rem 1.1rem; border-radius: 999px; border: 0; }
.main-nav .nav-donate:hover { color: #17140a; background: #ffd43b; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); opacity: .7; }
.sub { position: absolute; top: calc(100% + .4rem); left: -1rem; min-width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .5rem 0; display: none !important; flex-direction: column; gap: 0 !important; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.sub a { display: block; color: var(--text-2); padding: .55rem 1.1rem; border: 0; font-weight: 400; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex !important; }
.social { display: flex; align-items: center; gap: 1rem; }
.social a { color: var(--faint); display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .9rem; }
.social a:hover { color: var(--text); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }

/* ---------- Home hero ---------- */
.hero-sci { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 520px at 78% 40%, rgba(106,44,143,.45), transparent 70%), radial-gradient(700px 420px at 12% 95%, rgba(31,143,143,.22), transparent 70%), var(--bg); }
.hero-sci::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding-block: 6rem 5.5rem; }
.hero-sci h1 { font-weight: 300; font-size: clamp(2.6rem, 5.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.hero-sci h1 span { display: block; font-weight: 700; color: var(--violet); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--muted); max-width: 580px; margin-bottom: 1.4rem; }
.hero-vision { font-size: .98rem; color: var(--faint); max-width: 580px; border-left: 2px solid var(--teal); padding-left: 1rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-figure { margin: 0; animation: drift 9s ease-in-out infinite; }
.hero-figure svg { width: 100%; height: auto; overflow: visible; }
.net-line { stroke: rgba(201,168,240,.35); stroke-width: 1; }
.net-ring { stroke: rgba(201,168,240,.22); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.net-core { fill: rgba(106,44,143,.38); stroke: var(--violet); stroke-width: 1.5; }
.net-core-text { fill: var(--text); font-family: var(--font); font-size: 16px; font-weight: 700; }
.net-node { fill: var(--bg); stroke: var(--teal); stroke-width: 1.5; }
.net-node-pulse { fill: none; stroke: var(--teal); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 4s ease-out infinite; }
.net-label { fill: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.hero-figure a:hover .net-label, .hero-figure a:focus .net-label { fill: var(--teal); }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }

/* ---------- Status strip (generated) ---------- */
.status-strip { background: var(--bg-3); border-bottom: 1px solid var(--line); }
.status-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; padding-block: 1.2rem; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.status-strip strong { color: var(--text); font-size: 1.25rem; font-weight: 500; margin-right: .3rem; }
.status-strip .status-last { margin-left: auto; }
.live-dot { display: inline-flex; align-items: center; gap: .6rem; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,214,208,.55); } 70% { box-shadow: 0 0 0 10px rgba(95,214,208,0); } 100% { box-shadow: 0 0 0 0 rgba(95,214,208,0); } }

/* ---------- Latest (generated) ---------- */
.latest { padding: 6rem 0; border-bottom: 1px solid var(--line); }
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.latest-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.latest-col:hover { border-color: var(--line-2); transform: translateY(-3px); }
.latest-col h3 { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.latest-col ul { list-style: none; margin: 0 0 1.2rem; padding: 0; flex: 1; }
.latest-col li { padding: .9rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.latest-col li:first-child { border-top: 0; padding-top: 0; }
.latest-col li a { color: var(--text); text-decoration: none; font-size: 1rem; }
.latest-col li a:hover { color: var(--teal); }
.latest-col li span { display: block; margin-top: .35rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.latest-more { font-weight: 600; text-decoration: none; font-size: .95rem; }
.latest-note { font-size: .84rem; color: var(--faint); margin: 1.4rem 0 0; }

/* ---------- Mechanism tabs ---------- */
.tabs-section { padding: 6rem 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.tablist { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.tab { min-height: 44px; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .6rem 1.25rem; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tab:hover { border-color: var(--violet); color: var(--text); }
.tab[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: var(--surface); }
.tabpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; color: var(--text-2); animation: fade .35s ease; }
.tabpanel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabpanel h3 { color: var(--violet); font-size: 1.15rem; font-weight: 600; margin: 1.6rem 0 .6rem; }
.cols-2 { columns: 2; column-gap: 3rem; padding-left: 1.2rem; margin: 1rem 0 1.4rem; }
.cols-2 li { break-inside: avoid; margin-bottom: .55rem; }
.list { padding-left: 1.2rem; margin: .6rem 0 1.4rem; }
.list li { margin-bottom: .55rem; }
.tabpanel li::marker, .prose li::marker { color: var(--teal); }
.med-note { border: 1px solid rgba(245,197,24,.35); background: rgba(245,197,24,.06); padding: 1rem 1.3rem; border-radius: var(--radius-sm); font-size: .95rem; margin-top: 1.4rem; color: var(--text-2); }
.med-note strong { color: var(--yellow); }

/* ---------- What we do ---------- */
.intro-text { max-width: 860px; color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.4rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card svg { width: 40px; height: 40px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-blue svg { stroke: var(--teal); }
.card-red svg { stroke: var(--violet); }
.card-yellow svg { stroke: var(--yellow); }
.card h3 { font-size: 1.25rem; font-weight: 600; margin: 1.1rem 0 .6rem; }
.card p { margin: 0; font-size: .97rem; color: var(--muted); line-height: 1.7; }

/* ---------- Featured research ---------- */
.research { padding: 6rem 0; border-bottom: 1px solid var(--line); }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.research-item { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.research-item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.research-img { position: relative; aspect-ratio: 16 / 7; background: radial-gradient(circle at 30% 30%, rgba(201,168,240,.35), transparent 60%), linear-gradient(135deg, var(--purple-deep), #1d4f5a); overflow: hidden; }
.research-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s, opacity .3s; }
.research-item:hover .research-img img { transform: scale(1.04); opacity: 1; }
.research-text { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.research-text a { color: var(--text); text-decoration: none; font-size: 1.12rem; line-height: 1.5; font-weight: 600; }
.research-text a::after { content: ""; position: absolute; inset: 0; }
.research-text a:hover { color: var(--teal); }
.research-text .arrow { display: inline-block; transition: transform .2s; color: var(--teal); }
.research-item:hover .arrow { transform: translateX(4px); }
.badge { align-self: flex-start; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 999px; background: var(--teal); color: var(--bg); }
.bg-purple .badge { background: var(--violet); }

/* ---------- Team chips ---------- */
.team-strip .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; align-items: center; }
.team-strip h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1rem .35rem .35rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; color: var(--text-2); }
.chip::before { content: attr(data-initials); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--violet); display: inline-grid; place-items: center; font-family: var(--mono); font-size: .7rem; }

/* ---------- Testimonial ---------- */
.testimonial { padding: 6rem 0; border-bottom: 1px solid var(--line); background: radial-gradient(800px 400px at 50% 0%, rgba(106,44,143,.28), transparent 70%), var(--bg); }
.testimonial blockquote { position: relative; margin: 0 auto; max-width: 880px; font-size: 1.08rem; color: var(--text-2); text-align: center; }
.testimonial blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--violet); margin-bottom: .8rem; font-weight: 700; }
.testimonial cite { display: block; font-style: normal; margin-top: 1.2rem; font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; color: var(--teal); }

/* ---------- Statistics ---------- */
.stats { padding: 6rem 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; color: var(--muted); }

/* ---------- Donate band ---------- */
.donate-band { padding: 6rem 0; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(700px 320px at 50% 100%, rgba(245,197,24,.12), transparent 70%), var(--bg); }
.donate-band h2 { max-width: 760px; margin: 0 auto 1rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.donate-band h2 span { font-weight: 700; color: var(--yellow); }
.donate-band p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #09080f; color: var(--faint); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 90px 1fr auto; gap: 2.4rem; align-items: start; }
.footer-logo img { width: 72px; height: 72px; object-fit: contain; opacity: .9; }
.site-footer strong { color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; }

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding: 5rem 0 3.6rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 380px at 88% 0%, rgba(106,44,143,.42), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(31,143,143,.16), transparent 70%), var(--bg); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; margin: 0; }
.crumb { margin: 0 0 .8rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.page-body { padding: 3.5rem 0 6rem; }
.prose { max-width: 900px; color: var(--text-2); }
.prose h2 { font-size: 1.65rem; margin: 2.6rem 0 .9rem; color: var(--text); font-weight: 400; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 1.8rem 0 .6rem; color: var(--violet); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose .nested ul { margin: .5rem 0 .6rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: .1rem .35rem; border-radius: 4px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.refs { font-size: .93rem; color: var(--faint); }
.refs a { word-break: break-all; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.team-card { margin: 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.2rem; transition: border-color .2s, transform .2s; }
.team-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.team-photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--purple-deep), #1d4f5a); max-width: 150px; margin: 0 auto; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px rgba(201,168,240,.06); }
.team-photo::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); font-size: 2.2rem; font-weight: 300; letter-spacing: .05em; }
.team-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.team-card figcaption { margin-top: 1rem; line-height: 1.45; }
.team-card strong { display: block; font-weight: 600; color: var(--text); }
.team-card span { display: block; color: var(--faint); font-size: .9rem; margin-top: .2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.6rem 0 1rem; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.9rem; }
.contact-box h2 { margin-top: 0 !important; font-size: 1.3rem !important; }
.contact-box p:last-child { margin-bottom: 0; }
.form-note { font-size: .9rem; color: var(--faint); margin: .8rem 0 0; }
.email-big { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: 1.35rem; font-weight: 600; margin-top: -.2rem; }
.email-big a { text-decoration: none; }
.email-big a:hover { text-decoration: underline; }
.email-options { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0 1.4rem; }
.copy-btn { font: inherit; font-size: .88rem; font-weight: 600; padding: .45rem 1rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; }
.copy-btn:hover { border-color: var(--teal); color: var(--text); }
.copy-btn.copied { background: var(--teal); border-color: var(--teal); color: var(--bg); }

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.res-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.res-box h2 { margin: 0 0 .8rem !important; font-size: 1.2rem !important; color: var(--violet) !important; }
.res-box ul { margin: 0; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; margin: 1.6rem 0 .6rem; }
.video { margin: 0; }
.video-play, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); overflow: hidden; }
.video-play { position: relative; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--purple-deep), #1d4f5a); border: 1px solid var(--line); }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-play:hover img { transform: scale(1.04); }
.play-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); background: rgba(13,11,26,.78); border: 1px solid var(--line-2); border-radius: 12px; transition: background .2s; }
.play-icon::after { content: ""; position: absolute; left: 25px; top: 11px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.video-play:hover .play-icon { background: #e62117; }
.video-title { margin: .7rem 0 0; font-weight: 600; line-height: 1.4; }
.video-title a { color: var(--text); text-decoration: none; }
.video-title a:hover { color: var(--teal); }
.video-note { font-size: .88rem; color: var(--faint); }

/* =========================================================
   Auto-updated feeds (news / research / trials)
   ========================================================= */
.pill { display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 999px; border: 1px solid rgba(201,168,240,.4); color: var(--violet); margin-left: .4rem; vertical-align: middle; line-height: 1.5; }
.pill-new { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.pill-warn { border-color: rgba(245,197,24,.5); color: var(--yellow); }
.pill-live { border: 0; color: var(--teal); margin-left: 0; padding-left: 0; }
.pill-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: .55em; vertical-align: .05em; animation: pulse 2.2s infinite; }
.pill-status { border-color: rgba(95,214,208,.4); color: var(--teal); }
.pill-recruiting, .pill-not_yet_recruiting, .pill-enrolling_by_invitation { border-color: rgba(120,220,150,.5); color: #8fe3a8; }
.pill-completed { border-color: var(--line-2); color: var(--faint); }
.feed-list { display: grid; gap: 1rem; margin: 1.6rem 0; }
.feed-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.8rem; transition: border-color .2s, transform .2s; }
.feed-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feed-card h3 { font-size: 1.15rem !important; margin: .5rem 0 .5rem !important; line-height: 1.45; color: var(--text) !important; font-weight: 600 !important; }
.feed-card h3 a { color: var(--text); text-decoration: none; }
.feed-card h3 a:hover { color: var(--teal); }
.feed-meta { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.feed-meta .pill:first-of-type { margin-left: .7rem; }
.feed-authors, .feed-venue { font-size: .94rem; color: var(--muted); margin: 0 0 .2rem; }
.feed-authors strong { color: var(--text); }
.feed-credit { font-size: .8rem; color: var(--faint); margin: .7rem 0 0; }
.feed-notice { font-size: .9rem; color: var(--muted); border: 1px solid rgba(245,197,24,.3); padding: 1.1rem 1.4rem; background: var(--bg-3); border-radius: var(--radius-sm); margin-top: 2rem; }
.feed-last { font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.feed-empty { color: var(--faint); font-style: italic; }
.feed-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.feed-chips .pill { margin: 0; text-transform: none; font-family: var(--font); font-size: .85rem; font-weight: 600; letter-spacing: 0; padding: .35rem .95rem; color: var(--text-2); border-color: var(--line-2); }


/* ---------- Featured video ---------- */
.featured-video { background: radial-gradient(700px 360px at 20% 50%, rgba(106,44,143,.3), transparent 70%), var(--bg); }
.fv-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.fv-player .video-play, .fv-player iframe, .fv-wide .video-play, .fv-wide iframe { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px rgba(0,0,0,.45); }
.fv-player .play-icon, .fv-wide .play-icon { width: 84px; height: 58px; border-radius: 16px; }
.fv-player .play-icon::after, .fv-wide .play-icon::after { left: 34px; top: 17px; border-width: 12px 0 12px 19px; }
.fv-text h2 { margin-bottom: .6rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.25; }
.fv-orig { font-size: .88rem; font-style: italic; color: var(--faint); margin-bottom: 1rem; }
.fv-meta a { color: var(--teal); }
.fv-meta { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.fv-meta .pill { margin: 0 .6rem 0 0; }
.fv-desc { color: var(--muted); margin-bottom: 1.6rem; }
.fv-note { font-size: .82rem; color: var(--faint); margin: 1.2rem 0 0; }
.fv-wide { margin: 1.4rem 0 2.4rem; max-width: 900px; }
@media (max-width: 900px) { .fv-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav { flex-basis: 100%; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .6rem; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .sub { position: static; display: flex !important; box-shadow: none; background: transparent; border: 0; padding: 0 0 .4rem 1rem; min-width: 0; }
  .sub::before { display: none; }
  .sub a { padding: .3rem 0; }
  .sub a:hover { background: transparent; }
  .has-sub > a::after { display: none; }
  .social { order: 2; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 4rem 3.5rem; }
  .hero-figure { max-width: 460px; margin-inline: auto; }
  .cards, .latest-grid, .research-grid { grid-template-columns: 1fr; }
  .team-strip .wrap { grid-template-columns: 1fr; }
  .stats .cols { grid-template-columns: 1fr; gap: 0; }
  .cols-2 { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .status-strip .status-last { margin-left: 0; }
  .section, .latest, .tabs-section, .research, .testimonial, .stats, .donate-band { padding: 4rem 0; }
  .tabpanel { padding: 1.6rem; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .social a span { display: none; }
  .brand .brand-name { font-size: 1rem; }
  .page-hero { padding: 3.5rem 0 2.6rem; }
  .feed-card { padding: 1.2rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body, .page-body, .page-hero { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .hero-figure, .status-strip { display: none; }
  .prose, .prose h2, .prose h3, h1 { color: #000 !important; }
}
