/* ==========================================================================
   Dyonica ICMQG design system
   SpaceX structure (full-bleed heroes, condensed uppercase, outline CTAs, spec
   tables) + RTFKT archive language (mono [BRACKET] labels, filter rails,
   metadata cards, grid / 3D views).
   ========================================================================== */

:root {
  --bg: #000;
  --bg-2: #04060c;
  --panel: #0a0e17;
  --panel-2: #101624;
  --line: rgb(190 215 255 / 0.13);
  --line-strong: rgb(190 215 255 / 0.3);
  --fg: #f5f5f7;
  --fg-dim: #a1a1aa;
  --fg-mute: #6b6b76;

  --violet: hsl(234 92% 76%);
  --cyan: hsl(202 100% 70%);
  --amber: hsl(38 100% 64%);
  --rose: hsl(350 90% 68%);
  --ok: hsl(152 64% 52%);
  --blue: hsl(211 100% 58%);
  --grad: linear-gradient(100deg, var(--violet), var(--blue) 52%, var(--cyan));

  --f-display: "Barlow Condensed", "D-DIN", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 76px;
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #000; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
#main:focus { outline: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- typography ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(min(2.8rem, 10.5vw), 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.bracket { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--fg-dim); max-width: 60ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); }

/* ---------- nav (SpaceX-style transparent bar) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.--solid { background: rgb(0 0 0 / .72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav__logo { display: block; height: clamp(15px, 3.8vw, 21px); flex: none; }
.nav__logo svg, .foot__logo svg { height: 100%; width: auto; display: block; overflow: visible; }
.nav__sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; color: var(--fg-dim); padding: 2px 6px; border: 1px solid var(--line-strong); }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a, .drawer a {
  font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .35s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { scale: 1 1; }
.burger { display: none; width: 32px; height: 24px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg); transition: translate .3s var(--ease), rotate .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 3px; } .burger span:nth-child(2) { top: 11px; } .burger span:nth-child(3) { top: 19px; }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0 8px; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -8px; rotate: -45deg; }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); z-index: 45; background: rgb(8 8 12 / .96); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; gap: 22px; padding: calc(var(--nav-h) + 24px) 36px 36px; border-left: 1px solid var(--line);
  translate: 100% 0; transition: translate .45s var(--ease);
}
.drawer.--open { translate: 0 0; }
.drawer a { font-size: 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
@media (max-width: 860px) { .nav__links { display: none; } .burger { display: block; } .nav { gap: 16px; } }
.nav__logo, .burger, .nav__cta { flex: none; }
@media (max-width: 560px) { .nav__sub { display: none; } }
/* 5 nav links (incl. Conference): tighten between the burger breakpoint and 1100px */
@media (min-width: 861px) and (max-width: 1100px) { .nav__sub { display: none; } .nav__links { gap: clamp(12px, 1.6vw, 22px); } .nav__links a { font-size: .92rem; letter-spacing: .07em; } }

/* ---------- buttons (SpaceX outline CTA) ---------- */
.btn {
  --c: var(--fg);
  display: inline-flex; align-items: center; gap: 12px; position: relative; overflow: hidden; isolation: isolate;
  padding: 15px 34px; border: 2px solid var(--c); color: var(--c);
  font-family: var(--f-display); font-weight: 600; font-size: .98rem; letter-spacing: .16em; text-transform: uppercase;
  transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); translate: 0 101%; transition: translate .35s var(--ease); }
.btn:hover { color: #000; }
.btn:hover::before { translate: 0 0; }
.btn .arrow { transition: translate .35s var(--ease); }
.btn:hover .arrow { translate: 4px 0; }
.btn.--accent { --c: var(--cyan); }
.btn.--sm { padding: 10px 20px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- full-bleed hero sections ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: calc(var(--nav-h) + 40px) var(--pad) clamp(56px, 10vh, 120px);
  overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
}
.hero.--short { min-height: 78svh; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / 0) 75%),
    linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / 0) 40%);
}
.hero.--right { justify-items: end; text-align: right; }
.hero.--right::after { background: linear-gradient(270deg, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / 0) 75%), linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / 0) 40%); }
.hero.--right .btn-row { justify-content: flex-end; }
.hero.--right .lede { margin-left: auto; }
.hero__content { max-width: 680px; display: grid; gap: 22px; }
.hero__date { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .16em; color: var(--fg-dim); text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 22px; height: 36px; border: 2px solid var(--line-strong); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; translate: -50% 0; background: var(--fg); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue 1.8s var(--ease) infinite; }
  @keyframes cue { 0% { opacity: 0; translate: -50% 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: -50% 12px; } }
}

/* ---------- reveal on scroll (scroll-driven, IO fallback in JS) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise { from { opacity: 0; translate: 0 48px; } }
    .reveal { animation: rise auto var(--ease) backwards; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .no-sda .reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .no-sda .reveal.--in { opacity: 1; translate: 0 0; }
}

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stat { padding: clamp(28px, 4vw, 52px) var(--pad); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; }
.stat__label { margin-top: 10px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- generic sections ---------- */
.section { padding: clamp(72px, 12vh, 140px) var(--pad); border-bottom: 1px solid var(--line); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--fg-dim); margin: 0 0 1.1em; max-width: 68ch; }
.prose strong { color: var(--fg); font-weight: 600; }

/* ---------- SpaceX-style spec table ---------- */
.specs { width: 100%; border-collapse: collapse; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.specs caption { text-align: left; padding-bottom: 14px; font-size: 1.1rem; color: var(--fg-dim); letter-spacing: .14em; }
.specs th, .specs td { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; vertical-align: top; }
.specs th { text-align: left; font-weight: 500; color: var(--fg); }
.specs td { text-align: right; font-weight: 400; color: var(--fg-dim); }
.specs td b { color: var(--fg); font-weight: 600; }
.spec-tabs { display: inline-flex; border: 1px solid var(--line-strong); margin-bottom: 18px; }
.spec-tabs button { padding: 8px 18px; font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.spec-tabs button[aria-pressed="true"] { background: var(--fg); color: #000; }

/* ---------- program cards (home + /programs) ---------- */
.programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pcard { position: relative; background: var(--bg); padding: 28px; min-height: clamp(340px, 32vw, 480px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; isolation: isolate; }
.pcard canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .55; transition: opacity .5s var(--ease), scale .8s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000 10%, rgb(0 0 0 / .1) 70%); }
.pcard:hover canvas { opacity: .95; scale: 1.06; }
.pcard__idx { position: absolute; top: 22px; left: 28px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--fg-mute); }
.pcard p { margin: 0; color: var(--fg-dim); font-size: .95rem; }
.pcard .more { font-family: var(--f-display); letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; display: inline-flex; gap: 8px; }
.pcard:hover .more { color: var(--cyan); }

/* ==========================================================================
   RTFKT-style archive
   ========================================================================== */
.archive { min-height: 100svh; padding: calc(var(--nav-h) + 28px) 0 80px; background: radial-gradient(1200px 600px at 70% -10%, rgb(80 110 250 / .14), transparent 60%), var(--bg); }
.archive__bar { position: sticky; top: var(--nav-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 14px var(--pad); background: rgb(0 0 0 / .7); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.filters, .views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label, .views__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--fg-mute); text-transform: uppercase; margin-right: 6px; }
.chip { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-dim); transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.archive__head { padding: 36px var(--pad) 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.archive__count { font-family: var(--f-mono); color: var(--fg-dim); font-size: .82rem; letter-spacing: .1em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 0 var(--pad); }
.acard { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: translate .4s var(--ease), border-color .4s, box-shadow .4s; }
.acard:hover { translate: 0 -6px; border-color: var(--line-strong); box-shadow: 0 24px 60px -20px rgb(80 110 250 / .45); }
.acard__media { position: relative; aspect-ratio: 4 / 3; background: #050507; overflow: hidden; }
.acard__media canvas, .acard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.acard:hover .acard__media canvas, .acard:hover .acard__media img { scale: 1.05; }
.acard__year { position: absolute; top: 12px; left: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; padding: 4px 8px; background: rgb(0 0 0 / .6); border: 1px solid var(--line); border-radius: 6px; }
.acard__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.acard__title { font-family: var(--f-display); font-size: 1.32rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.acard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--fg-dim); }
.tag.--THEORY { color: var(--violet); border-color: rgb(137 149 250 / .4); }
.tag.--SIMULATION { color: var(--cyan); border-color: rgb(102 199 255 / .4); }
.tag.--MATERIALS { color: var(--amber); border-color: rgb(255 190 92 / .4); }
.tag.--AEROSPACE { color: var(--rose); border-color: rgb(255 110 140 / .4); }
.acard__verdict { font-family: var(--f-mono); font-size: .72rem; color: var(--fg-mute); letter-spacing: .06em; }

/* 3D carousel view (RTFKT "3D" toggle) */
.stage { position: relative; height: min(72vh, 680px); perspective: 1400px; overflow: hidden; touch-action: pan-y; }
.ring { position: absolute; left: 50%; top: 50%; width: 300px; height: 400px; margin: -200px 0 0 -150px; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.ring .acard { position: absolute; inset: 0; backface-visibility: hidden; }
.ring .acard:hover { translate: none; }
.stage__ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px var(--pad) 0; }
.stage__ctrl button { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.2rem; transition: background .25s, color .25s; }
.stage__ctrl button:hover { background: var(--fg); color: #000; }
.stage__label { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; color: var(--fg-dim); min-width: 20ch; text-align: center; text-transform: uppercase; }

/* ---------- RTFKT project page ---------- */
.project-hero { position: relative; min-height: 72svh; display: grid; align-items: end; padding: calc(var(--nav-h) + 40px) var(--pad) 48px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.project-hero canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.project-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .2) 60%); }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; color: var(--fg-dim); text-transform: uppercase; margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--fg); }
.pcardmeta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 8vh, 90px) var(--pad); border-bottom: 1px solid var(--line); max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; }
@media (max-width: 900px) { .pcardmeta { grid-template-columns: 1fr; } }
.metacard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px; align-self: start; position: sticky; top: calc(var(--nav-h) + 20px); }
.metacard dl { margin: 0; display: grid; }
.metacard div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.metacard div:last-child { border-bottom: 0; }
.metacard dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--fg-mute); text-transform: uppercase; padding-top: 2px; }
.metacard dd { margin: 0; text-align: right; font-size: .92rem; overflow-wrap: anywhere; }
.blocks { display: grid; gap: clamp(40px, 6vw, 72px); }
.block { display: grid; gap: 14px; }
.block h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 600; }
.block p { margin: 0; color: var(--fg-dim); max-width: 70ch; }
.block ul { margin: 0; padding-left: 1.1em; color: var(--fg-dim); display: grid; gap: 6px; }
.block .eq { font-family: var(--f-mono); font-size: .9rem; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 8px; padding: 12px 16px; overflow-x: auto; white-space: pre; }
.block figure { margin: 6px 0 0; background: #fff; border-radius: 12px; padding: 10px; }
.block figcaption { font-family: var(--f-mono); font-size: .74rem; color: #333; padding: 8px 4px 2px; }
.verdict { border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px 20px; background: linear-gradient(120deg, rgb(80 110 250 / .12), rgb(102 199 255 / .06)); }
.verdict .bracket { color: var(--violet); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); font-weight: 500; background: var(--panel); }
.tbl td { color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.related { padding: clamp(56px, 9vh, 100px) 0; border-bottom: 1px solid var(--line); }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- simulator ---------- */
.sim { padding: calc(var(--nav-h) + 40px) var(--pad) 80px; max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; }
.sim__layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 980px) { .sim__layout { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel h3 { font-size: 1.15rem; margin-bottom: 14px; letter-spacing: .1em; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); display: flex; justify-content: space-between; }
.field label output { color: var(--fg); }
.field input[type="range"] { width: 100%; accent-color: var(--cyan); }
.field select, .field input[type="number"] { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: .92rem; }
.presets { display: grid; gap: 8px; margin-bottom: 18px; }
.preset { text-align: left; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color .25s, background .25s; }
.preset:hover, .preset[aria-pressed="true"] { border-color: var(--cyan); background: rgb(102 199 255 / .07); }
.preset b { display: block; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.preset span { font-size: .82rem; color: var(--fg-dim); }
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.readout { background: var(--panel); padding: 16px 18px; }
.readout__k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); }
.readout__v { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; margin-top: 4px; }
.readout__v small { font-size: .9rem; color: var(--fg-dim); font-weight: 400; margin-left: 4px; }
.chart { width: 100%; height: 340px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--f-mono); font-size: .74rem; color: var(--fg-dim); }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }
.warn { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--amber); background: rgb(255 190 92 / .08); border-radius: 6px; font-size: .9rem; color: var(--fg); }
.status { font-family: var(--f-mono); font-size: .76rem; color: var(--fg-mute); min-height: 1.2em; }
.status.--err { color: var(--rose); }
.yes { color: var(--ok); font-weight: 600; }

/* ---------- mission / support ---------- */
.alloc { display: grid; gap: 18px; }
.bar { display: grid; gap: 8px; }
.bar__track { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--grad); border-radius: 999px; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fill { from { scale: 0 1; } }
    .bar__fill { animation: fill auto var(--ease) backwards; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
.bar__row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.phase { background: var(--bg); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.phase__n { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--cyan); }
.phase.--now .phase__n::after { content: " · NOW"; color: var(--ok); }
.phase p { margin: 0; color: var(--fg-dim); font-size: .94rem; }
.roadmap.--stack { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .roadmap.--stack { grid-template-columns: 1fr; } }

/* ---------- donate: header CTA (planetary.org-style) ---------- */
.nav__links { margin-left: auto; }
.nav__cta {
  margin-left: clamp(16px, 2.2vw, 32px); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; background: var(--fg); color: #000; border: 1px solid var(--fg);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__cta:hover, .nav__cta[aria-current="page"] { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 28px -4px hsl(202 100% 70% / .6); }
@media (max-width: 860px) { .nav__cta { margin-left: auto; padding: 7px 16px; font-size: .86rem; } }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- donate: hero + panel ---------- */
.donate-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 470px); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: calc(var(--nav-h) + 48px) var(--pad) clamp(56px, 9vh, 110px);
  border-bottom: 1px solid var(--line);
}
.donate-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 45%, hsl(234 92% 76% / .10), transparent 70%),
    linear-gradient(90deg, rgb(0 0 0 / .88) 0%, rgb(0 0 0 / .55) 50%, rgb(0 0 0 / .35) 100%),
    linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / 0) 40%);
}
.donate-hero__copy h1 { margin: 14px 0 22px; font-size: clamp(min(2.6rem, 10.5vw), 6vw, 5rem); }
.donate-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 640px; }
.donate-points li { background: rgb(0 0 0 / .55); padding: 18px 18px 20px; display: grid; gap: 6px; }
.donate-points b { font-family: var(--f-display); font-size: 2rem; font-weight: 600; line-height: 1; }
.donate-points span { color: var(--fg-dim); font-size: .84rem; line-height: 1.4; }
@media (max-width: 980px) {
  .donate-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .donate-hero__panel { max-width: 560px; width: 100%; }
}
@media (max-width: 640px) {
  /* rows: label column sized to the widest label, shared by every row via subgrid */
  .donate-points { grid-template-columns: max-content minmax(0, 1fr); }
  .donate-points li { grid-column: 1 / -1; grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-columns: subgrid; align-items: center; column-gap: 16px; }
  .donate-points b { font-size: 1.75rem; }
}

.give {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: clamp(18px, 3vw, 32px);
  background: linear-gradient(180deg, rgb(22 22 30 / .78), rgb(9 9 13 / .88));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-strong); border-radius: 6px;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .06);
}
.give::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; border-radius: 6px 6px 0 0; background: var(--grad); }
.give.--flash { animation: give-flash 1.1s var(--ease); }
@keyframes give-flash { 30% { box-shadow: 0 0 0 2px var(--cyan), 0 0 60px -6px hsl(202 100% 70% / .55); } }
.give__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.give__env { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; color: var(--amber); border: 1px solid hsl(38 100% 64% / .5); padding: 3px 8px; border-radius: 3px; }
.give__label { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.give__field { display: block; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; isolation: isolate; }
.seg button { position: relative; z-index: 1; padding: 11px 10px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); transition: color .3s var(--ease); }
.seg button[aria-pressed="true"] { color: #000; }
.seg__thumb { position: absolute; z-index: 0; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--fg); transition: translate .4s var(--ease); }
.seg[data-mode="once"] .seg__thumb { translate: 100% 0; }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiers > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.tier {
  position: relative; text-align: left; display: grid; gap: 6px; align-content: start; padding: 14px 16px 15px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: rgb(255 255 255 / .02);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), translate .25s var(--ease);
}
.tier:hover { border-color: var(--fg-dim); translate: 0 -1px; }
.tier[aria-pressed="true"] { border-color: var(--cyan); background: hsl(202 100% 70% / .08); box-shadow: inset 0 0 0 1px var(--cyan), 0 10px 30px -14px hsl(202 100% 70% / .55); }
.tier__amt { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1; }
.tier__amt small { font-family: var(--f-mono); font-size: .7rem; color: var(--fg-dim); margin-left: 3px; font-weight: 400; }
.tier__impact { font-size: .8rem; line-height: 1.35; color: var(--fg-dim); }
.tier[aria-pressed="true"] .tier__impact { color: var(--fg); }
.tier__badge { position: absolute; top: 0; right: 10px; translate: 0 -50%; padding: 1px 6px; border-radius: 3px; background: var(--panel, #0c0c11); box-shadow: 0 0 0 1px hsl(202 100% 70% / .35); font-family: var(--f-mono); font-size: .58rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }

.money { display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgb(0 0 0 / .35); transition: border-color .25s; }
.money:focus-within { border-color: var(--cyan); outline: 2px solid hsl(202 100% 70% / .35); outline-offset: 2px; }
.money__sym { font-family: var(--f-display); font-size: 1.5rem; color: var(--fg-dim); }
.money input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); padding: 12px 2px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; letter-spacing: .02em; }
.money input::placeholder { color: var(--fg-mute); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.money__per { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--fg-mute); text-transform: uppercase; white-space: nowrap; }
.give select, .tribute input {
  width: 100%; color: var(--fg); background-color: rgb(0 0 0 / .35); border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 14px; font: inherit; font-size: .95rem;
}
.give select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1aa' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.give select option { background: var(--panel); }
.give select:focus-visible, .tribute input:focus-visible { border-color: var(--cyan); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; cursor: pointer; font-size: .92rem; color: var(--fg-dim); }
.check input { width: 20px; height: 20px; accent-color: var(--cyan); margin: 0; }
.tribute { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin-top: 12px; }
.tribute[hidden] { display: none; }
@media (max-width: 420px) { .tribute { grid-template-columns: 1fr; } }

.give__summary { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--fg-dim); min-height: 1.5em; }
.give__summary b { color: var(--fg); font-weight: 600; }
.give__summary .dim { color: var(--fg-mute); }
.give__pay { min-height: 150px; position: relative; z-index: 0; }
.give__pay:has(.pp-go), .give__pay:has(.give__note) { min-height: 0; }
.give__pay > [hidden] { display: none; }
.give.--done > :not(#give-thanks) { display: none; }
.give__skeleton { display: grid; gap: 10px; }
.give__skeleton span { height: 48px; border-radius: 4px; background: linear-gradient(90deg, rgb(255 255 255 / .05), rgb(255 255 255 / .12), rgb(255 255 255 / .05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.give__note { margin: 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 4px; color: var(--fg-dim); font-size: .9rem; }
.give__note.--busy { border-style: solid; background: linear-gradient(90deg, rgb(255 255 255 / .02), rgb(255 255 255 / .07), rgb(255 255 255 / .02)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.linkish { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
/* hosted PayPal checkout button (used when the in-page SDK can't load) */
.pp-go {
  position: relative; width: 100%; min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; border-radius: 4px; background: #ffc439; color: #111827; font: inherit; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 10px 30px -14px rgb(255 196 57 / .55);
  transition: filter .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}
.pp-go:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 14px 34px -14px rgb(255 196 57 / .7); }
.pp-go:active { transform: translateY(0); filter: brightness(.97); }
.pp-go:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pp-go .arrow { font-size: 1.15rem; transition: translate .2s var(--ease); }
.pp-go:hover .arrow { translate: 3px 0; }
.pp-go__mark { font-weight: 800; font-style: italic; letter-spacing: -.01em; color: #003087; }
.pp-go[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.pp-go.--busy { cursor: progress; }
.pp-go.--busy .arrow { visibility: hidden; }
.pp-go.--busy::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid rgb(17 24 39 / .25); border-top-color: #111827; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.give__alt { margin: 10px 0 0; font-size: .82rem; line-height: 1.5; color: var(--fg-mute); }
@media (prefers-reduced-motion: reduce) {
  .pp-go, .pp-go .arrow { transition: none; }
  .pp-go:hover { transform: none; }
  .give__note.--busy { animation: none; }
  .pp-go.--busy::after { animation-duration: 2.4s; }
}
.give__secure { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-family: var(--f-mono); font-size: .7rem; line-height: 1.5; letter-spacing: .02em; color: var(--fg-mute); }
.give__secure svg { flex: none; margin-top: 2px; color: var(--ok); }
.give__tax { margin: 0; font-size: .78rem; color: var(--fg-mute); }

/* thank-you */
.thanks { display: grid; gap: 16px; outline: none; }
.thanks h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.thanks .lede { margin: 0; font-size: 1rem; }
.thanks__orbit { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); border: 1px solid hsl(152 64% 52% / .35); box-shadow: 0 0 40px -8px hsl(152 64% 52% / .5); }
.thanks__orbit svg { width: 44px; height: 44px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease) forwards; }
.thanks__orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform-origin: 4px 42px; animation: orbit 3.2s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes orbit { to { rotate: 360deg; } }
.thanks__dl { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.thanks__dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; background: rgb(0 0 0 / .45); }
.thanks__dl dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.thanks__dl dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }

/* program give-cards */
.gcard { min-height: 320px; }
.gcard__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.gcard__actions .more:hover { color: var(--cyan); }

/* FAQ */
.faq-wrap { max-width: 920px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: .06em; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.2rem; color: var(--cyan); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--cyan); }
.faq details p { margin: 0 0 24px; color: var(--fg-dim); max-width: 72ch; }

@media (prefers-reduced-motion: reduce) {
  .give__skeleton span, .thanks__orbit::after { animation: none; }
  .thanks__orbit svg { animation: none; stroke-dashoffset: 0; }
  .seg__thumb, .tier { transition: none; }
}

/* ---------- footer ---------- */
.foot { padding: 40px var(--pad) 48px; background: var(--bg); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__brand { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; color: var(--fg-dim); }
.foot__logo { display: block; height: 16px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--fg-dim); }
.foot__links a { display: inline-block; padding: 5px 0; }
.foot__links a:hover { color: var(--fg); }
.foot__fine { margin: 22px 0 0; font-size: .8rem; color: var(--fg-mute); max-width: 90ch; }

/* ---------- view transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.vt-hero { view-transition-name: hero-media; }

/* ---------------- members gating + research focus (public) ---------------- */
.lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.btn .lock { margin-right: 2px; }
.focus { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.focus li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.focus li:first-child { border-top: 1px solid var(--line); }
.focus__n { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; color: var(--cyan); }
.acard.--locked .acard__media { position: relative; }
.acard.--locked .acard__media canvas { filter: saturate(.7) brightness(.8); transition: filter .4s var(--ease); }
.acard.--locked:hover .acard__media canvas, .acard.--locked:focus-visible .acard__media canvas { filter: none; }
.acard__lock { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font: 500 .62rem/1 var(--f-mono); letter-spacing: .14em; color: var(--fg); background: rgb(0 0 0 / .55); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gate { margin: clamp(36px, 6vw, 72px) var(--pad) 0; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(600px circle at 0% 0%, rgb(137 149 250 / .14), transparent 60%), radial-gradient(500px circle at 100% 100%, rgb(102 199 255 / .1), transparent 60%), rgb(255 255 255 / .02); }
.section .gate { margin-left: 0; margin-right: 0; }
.gate h2 { margin: 10px 0 10px; }
.gate p { margin: 0; color: var(--fg-dim); max-width: 60ch; }
.lab-wrap { border-top: 1px solid var(--line); }
.drawer__members { color: var(--cyan) !important; }
@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; }
  .gate .btn-row, .gate .btn { width: 100%; }
  .gate .btn { justify-content: center; }
  .focus li { grid-template-columns: 34px 1fr; font-size: .98rem; }
}

/* mobile menu open: freeze the page behind it */
html.--drawer-open { overflow: hidden; }

/* ---------------- Conference page (NYUAD CQTS event format) ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.conf-hero .hero__content { max-width: 780px; }
.conf-sub { margin: -8px 0 0; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--cyan); }
.countdown { display: flex; gap: 1px; width: fit-content; max-width: 100%; background: var(--line); border: 1px solid var(--line); }
.countdown__cell { background: rgb(4 6 12 / .72); backdrop-filter: blur(6px); padding: 12px 18px 10px; display: grid; justify-items: center; gap: 2px; min-width: 76px; }
.countdown__cell b { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown__cell span, .countdown__live { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); }
.countdown__live { padding: 12px 18px; color: var(--ok); }

/* NYUAD-style event card: title bar, conference diagram, WHEN / WHERE / WHO / BY INVITATION */
.conf-info { padding-block: clamp(40px, 7vh, 80px); background: var(--bg-2); }
.conf-event { border: 1px solid var(--line-strong); background: var(--bg); }
.conf-event__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 20px clamp(18px, 3vw, 32px); background: linear-gradient(100deg, hsl(234 60% 22% / .9), hsl(211 80% 22% / .75) 55%, hsl(202 80% 20% / .6)); border-bottom: 1px solid var(--line-strong); }
.conf-event__bar h2 { font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 0; }
.conf-event__bar span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.conf-event__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.conf-event__body > * { min-width: 0; }
.conf-fig { margin: 0; padding: clamp(14px, 2.4vw, 28px); display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.conf-fig__open { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #04060c; cursor: zoom-in; overflow: hidden; }
.conf-fig__open img { display: block; width: 100%; height: auto; transition: scale .6s var(--ease); }
.conf-fig__open:hover img { scale: 1.015; }
.conf-fig__open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.conf-fig__zoom { position: absolute; right: 8px; top: 8px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); background: rgb(4 6 12 / .8); border: 1px solid var(--line-strong); padding: 6px 10px; opacity: .85; transition: opacity .2s, border-color .2s; }
.conf-fig__open:hover .conf-fig__zoom, .conf-fig__open:focus-visible .conf-fig__zoom { opacity: 1; border-color: var(--cyan); }
.conf-fig figcaption { font-size: .82rem; line-height: 1.5; color: var(--fg-mute); max-width: 90ch; }
.conf-fig figcaption a { color: var(--fg-dim); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.conf-fig figcaption a:hover { color: var(--cyan); }
.conf-facts { margin: 0; display: grid; align-content: start; background: hsl(222 40% 7%); }
.conf-facts > div { padding: 22px 24px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.conf-facts > div:last-child { border-bottom: 0; }
.conf-facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.conf-facts dd { margin: 0; font-family: var(--f-display); font-size: clamp(1.08rem, 1.5vw, 1.25rem); letter-spacing: .03em; text-transform: uppercase; line-height: 1.25; color: var(--fg); overflow-wrap: anywhere; }
.conf-facts dd a { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--cyan); display: block; margin-top: 6px; }
@media (max-width: 900px) {
  .conf-event__body { grid-template-columns: minmax(0, 1fr); }
  .conf-fig { border-right: 0; border-bottom: 1px solid var(--line); }
  .conf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conf-facts > div { border-right: 1px solid var(--line); }
  .conf-facts > div:nth-child(2n) { border-right: 0; }
  .conf-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .conf-facts { grid-template-columns: minmax(0, 1fr); }
  .conf-facts > div { border-right: 0; padding: 18px; }
  .conf-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* diagram lightbox */
.conf-lightbox { width: min(1500px, 96vw); max-width: none; max-height: 94dvh; padding: 0; border: 1px solid var(--line-strong); background: #04060c; color: var(--fg); overflow: hidden; display: none; flex-direction: column; }
.conf-lightbox[open] { display: flex; }
.conf-lightbox::backdrop { background: rgb(0 0 0 / .82); backdrop-filter: blur(6px); }
.conf-lightbox.--light, .conf-lightbox.--light .conf-lightbox__scroll { background: #fff; }
.conf-lightbox__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.conf-lightbox__bar .bracket { margin-right: auto; }
.conf-lightbox__x { width: 40px; height: 40px; font-size: 1.1rem; color: var(--fg-dim); border: 1px solid var(--line-strong); }
.conf-lightbox__x:hover, .conf-lightbox__x:focus-visible { color: var(--fg); border-color: var(--fg); }
.conf-lightbox__scroll { overflow: auto; overscroll-behavior: contain; padding: 12px; }
.conf-lightbox__scroll img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94dvh - 96px); margin: 0 auto; }
@media (max-width: 1000px) { .conf-lightbox__scroll img { width: 900px; max-width: none; max-height: none; } }
@media (max-width: 520px) { .conf-fig__zoom { font-size: .6rem; padding: 4px 7px; } }
@media (prefers-reduced-motion: no-preference) { .conf-lightbox[open] { animation: lb-in .35s var(--ease); } @keyframes lb-in { from { opacity: 0; scale: .97; } } }

/* main + sidebar */
.conf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.conf-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); min-width: 0; }
.conf-main > *, .conf-layout > * { min-width: 0; }
.conf-side { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); position: sticky; top: calc(var(--nav-h) + 20px); }
.conf-card { background: var(--bg); padding: 22px; display: grid; gap: 10px; justify-items: start; }
.conf-card p { margin: 0; color: var(--fg-dim); font-size: .94rem; }
.conf-card .conf-card__t { color: var(--fg); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; line-height: 1.2; }
.conf-card__t span { color: var(--fg-dim); }
.conf-card a:not(.btn) { color: var(--cyan); font-size: .94rem; overflow-wrap: anywhere; }
@media (max-width: 980px) { .conf-layout { grid-template-columns: minmax(0, 1fr); } .conf-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* tabs */
.conf-tablist { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.conf-tablist::-webkit-scrollbar { display: none; }
.conf-tab { flex: none; scroll-snap-align: start; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--fg-dim); padding: 14px 18px 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; white-space: nowrap; }
.conf-tab:hover { color: var(--fg); }
.conf-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--cyan); }
.conf-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.conf-panel { padding-top: 28px; }
.conf-panel:focus-visible { outline: 1px dashed var(--line-strong); outline-offset: 6px; }
.conf-tba { border: 1px dashed var(--line-strong); padding: clamp(22px, 4vw, 36px); display: grid; gap: 10px; }
.conf-tba p { margin: 0; color: var(--fg-dim); font-size: 1.02rem; }

/* speakers & abstracts accordion */
.conf-acc-tools { display: flex; gap: 8px; margin-bottom: 16px; }
.conf-acc__sep { color: var(--fg-mute); margin: 0 .3em; }
.conf-abs { margin: 0 0 22px; display: grid; gap: 12px; }
.conf-abs > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.conf-abs dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding-top: 3px; }
.conf-abs dd { margin: 0; color: var(--fg-dim); }
.conf-abs dd b { color: var(--fg); }
@media (max-width: 520px) { .conf-abs > div { grid-template-columns: 1fr; gap: 4px; } }

/* agenda */
.conf-agenda { display: grid; gap: 34px; }
.conf-day h3 { display: grid; gap: 6px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 12px; }
.conf-day__tba { margin: 0; color: var(--fg-dim); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.conf-sched { width: 100%; border-collapse: collapse; }
.conf-sched th { text-align: left; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); font-weight: 400; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.conf-sched td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-dim); }
.conf-sched td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: .82rem; color: var(--cyan); width: 9.5em; }
.conf-sched td b { color: var(--fg); font-weight: 600; }
.conf-sched td em { display: block; font-style: normal; margin-top: 4px; }
.conf-sched tr.--break td { color: var(--fg-mute); }
.conf-people td:first-child { font-family: var(--f-body); font-size: inherit; color: var(--fg); white-space: normal; width: 55%; }
.conf-people a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.conf-people a:hover { text-decoration-color: var(--cyan); }

/* previous editions */
.editions { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.edition { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.edition__y { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--fg-dim); }
.edition__d { color: var(--fg-dim); }
.edition__m { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); white-space: nowrap; }
a.edition__m { color: var(--fg-dim); padding: 6px 0; }
a.edition__m:hover { color: var(--cyan); }
.edition.--next .edition__y { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.edition.--next .edition__d { color: var(--fg); }
.edition.--next .edition__m { color: var(--ok); }
@media (max-width: 640px) {
  .edition { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .edition__d { grid-column: 1 / -1; grid-row: 2; font-size: .94rem; }
  .countdown__cell { min-width: 64px; padding: 10px 12px 8px; }
}
.conf-tabs { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 640px) { .conf-tablist { mask-image: linear-gradient(90deg, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); } .conf-tab { padding-inline: 14px; } }
