/* ==========================================================================
   GIBC V2 — design system
   Deep-space canvas, alabaster and Egyptian-blue chapters, off-white type.
   Motion: springs with a hair of overshoot, content arrives out of a short
   blur, nothing bounces. Every page shares this file; see DESIGN-SYSTEM.md.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 500; font-display: swap; src: url(../fonts/cabinet-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 700; font-display: swap; src: url(../fonts/cabinet-grotesk-700.woff2) format('woff2'); }
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 800; font-display: swap; src: url(../fonts/cabinet-grotesk-800.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 400; font-display: swap; src: url(../fonts/satoshi-400.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-display: swap; src: url(../fonts/satoshi-500.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-display: swap; src: url(../fonts/satoshi-700.woff2) format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-weight: 100 800; font-display: swap; src: url(../fonts/martian-mono.woff2) format('woff2'); }

/* ---------- Theme variables. Registered so the whole page can glide
   between chapters when html[data-theme] changes. ---------- */
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #030304; }
@property --fg     { syntax: '<color>'; inherits: true; initial-value: #DADAE0; }
@property --fg-2   { syntax: '<color>'; inherits: true; initial-value: rgba(218, 218, 224, 0.66); }
@property --fg-3   { syntax: '<color>'; inherits: true; initial-value: rgba(218, 218, 224, 0.42); }
@property --line   { syntax: '<color>'; inherits: true; initial-value: rgba(218, 218, 224, 0.13); }
@property --surface{ syntax: '<color>'; inherits: true; initial-value: rgba(218, 218, 224, 0.04); }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #DADAE0; }

:root {
  /* Brand palette (from the GIBC Coolors sheet) */
  --space: #030304;
  --night: #0A0A0D;
  --indigo: #14163A;
  --blue: #1E2260;          /* the logo's navy (V2, sparkles) — an accent, never a fill for whole sections */
  --grape: #5F5980;
  --alabaster: #E6E5EB;
  --graphite: #343434;
  --ink: #0B0C22;
  --star: #DADAE0;
  --signal: #C9C9D1;

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, -apple-system, 'PingFang TC', sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', 'PingFang TC', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --spring: cubic-bezier(0.2, 1.1, 0.3, 1);     /* ~1% overshoot */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);       /* long, soft ease-out */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --nav-h: 64px;
}

/* Chapters. Anything can opt into a theme locally with these classes. */
:root, [data-theme='dark'], .theme-dark {
  --bg: #030304; --fg: #DADAE0;
  --fg-2: rgba(218, 218, 224, 0.66); --fg-3: rgba(218, 218, 224, 0.42);
  --line: rgba(218, 218, 224, 0.13); --surface: rgba(218, 218, 224, 0.04); --accent: #DADAE0; --accent-ink: #030304;
}
[data-theme='light'], .theme-light {
  --bg: #E6E5EB; --fg: #0B0C22;
  --fg-2: rgba(11, 12, 34, 0.68); --fg-3: rgba(11, 12, 34, 0.46);
  --line: rgba(11, 12, 34, 0.13); --surface: rgba(11, 12, 34, 0.04); --accent: #0E34A0; --accent-ink: #FFFFFF;
}
[data-theme='blue'], .theme-blue {
  --bg: #0E34A0; --fg: #F4F5FF;
  --fg-2: rgba(244, 245, 255, 0.76); --fg-3: rgba(244, 245, 255, 0.55);
  --line: rgba(244, 245, 255, 0.22); --surface: rgba(255, 255, 255, 0.07); --accent: #FFFFFF; --accent-ink: #0E34A0;
}
/* Sections carry data-theme only as a cue for the page-level glide; the
   page itself (html[data-theme]) owns the colours. */
:not(html)[data-theme] { --bg: inherit; --fg: inherit; --fg-2: inherit; --fg-3: inherit; --line: inherit; --surface: inherit; --accent: inherit; --accent-ink: inherit; }

html {
  background: var(--bg); color: var(--fg);
  scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: var(--fg-3) transparent;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--font-body); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
@media (min-width: 1400px) { body { font-size: 18px; } }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 700; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain — gives the flat colour a little tooth. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .055;
  background: url(../img/tex/noise.png) 0 0 / 128px;   /* a pre-rendered tile: an SVG noise filter re-rasterised on every repaint */
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 13vw, 190px); }
.section-tight { padding-block: clamp(64px, 8vw, 120px); }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 48px; }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 110px); align-items: start; }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 48px); }
@media (max-width: 960px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-even { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lede { max-width: 44ch; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Type ---------- */
.display { font: 800 clamp(64px, 12.4vw, 204px)/0.84 var(--font-display); letter-spacing: -0.045em; }
.h1 { font: 800 clamp(52px, 8.6vw, 136px)/0.88 var(--font-display); letter-spacing: -0.04em; }
.h2 { font: 800 clamp(40px, 5.8vw, 92px)/0.92 var(--font-display); letter-spacing: -0.035em; }
.h3 { font: 700 clamp(26px, 2.6vw, 40px)/1.04 var(--font-display); letter-spacing: -0.02em; }
.h4 { font: 700 clamp(20px, 1.6vw, 24px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.45; color: var(--fg-2); letter-spacing: -0.012em; max-width: 38ch; }
.body-lg { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; color: var(--fg-2); }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.dim-words em, .h1 em, .h2 em, .display em { font-style: normal; color: var(--fg-3); }
.tnum { font-variant-numeric: tabular-nums; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* Mono labels: the site's "instrument panel" voice. */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
}
.label .star { width: 11px; height: 11px; color: var(--accent); }
.label-index { color: var(--accent); }

/* ---------- Icons ---------- */
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.star { display: inline-block; width: 1em; height: 1em; flex: none; fill: currentColor; }
.star-spin { animation: star-spin 9s linear infinite; }
@keyframes star-spin { to { transform: rotate(360deg); } }

/* Arrow that slides out and back in on hover — used in buttons and links.
   Markup: <span class="arr" aria-hidden="true"></span>  (add .arr-ur for ↗, .arr-down for ↓) */
.arr { position: relative; display: inline-block; width: 1em; height: 1em; overflow: hidden; flex: none; vertical-align: -0.12em; }
.arr::before, .arr::after {
  content: ''; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: var(--arr-icon) center / contain no-repeat; mask: var(--arr-icon) center / contain no-repeat;
  transition: transform .55s var(--spring);
}
.arr { --arr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E"); --arr-from: translateX(-110%); --arr-to: translateX(110%); }
.arr-ur { --arr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); --arr-from: translate(-110%, 110%); --arr-to: translate(110%, -110%); }
.arr-up { --arr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V4M5 11l7-7 7 7'/%3E%3C/svg%3E"); --arr-from: translateY(110%); --arr-to: translateY(-110%); }
.arr-down { --arr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5 13l7 7 7-7'/%3E%3C/svg%3E"); --arr-from: translateY(-110%); --arr-to: translateY(110%); }
.arr::after { transform: var(--arr-from); }
:is(a, button, .hover-arr):hover > .arr::before, :is(a, button, .hover-arr):hover .arr::before { transform: var(--arr-to); }
:is(a, button, .hover-arr):hover > .arr::after, :is(a, button, .hover-arr):hover .arr::after { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--fg); --t: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 26px; border-radius: 99px; white-space: nowrap; cursor: pointer;
  background: var(--b); color: var(--t); font: 700 16px/1 var(--font-body); letter-spacing: -0.005em;
  transition: transform .5s var(--spring), scale .3s var(--spring), background-color .3s, color .3s, box-shadow .4s var(--ease), border-color .3s;
  isolation: isolate; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.btn::before { /* a soft fill that wipes up on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--accent-ink); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { scale: .96; transition-duration: .15s; }
/* While the pointer is on a magnetic button it follows quickly; on leave it springs home. */
.btn.is-magnet { transition-duration: .2s, .15s, .3s, .3s, .4s, .3s; }
.btn-ghost { --b: transparent; --t: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px transparent; }
.btn-blue { --b: var(--blue); --t: #fff; }
.btn-blue::before { background: var(--fg); }
.btn-blue:hover { color: var(--bg); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; gap: 9px; }
.btn-lg { height: 66px; padding: 0 34px; font-size: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Inline text link with a drawn underline. */
.link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform-origin: right; transform: scaleX(0.999); transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); transform-origin: right; animation: link-redraw .9s var(--ease) .25s forwards; }
@keyframes link-redraw { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.prose a, .text-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .3s; }
.prose a:hover, .text-link:hover { text-decoration-color: transparent; }

/* ---------- Chips, status, stats ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.chip-solid { background: var(--fg); color: var(--bg); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot-live { position: relative; background: #DADAE0; }
.dot-live::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid #DADAE0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { display: block; font: 800 clamp(44px, 5.4vw, 84px)/0.9 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 14px; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.card {
  position: relative; border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 40px);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .7s var(--spring), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
a.card:hover, .card-hover:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent); }
/* Pointer spotlight, driven by --mx/--my from [data-tilt] or [data-spot]. */
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.spot:hover::before { opacity: 1; }
/* While tilting, the card tracks the pointer closely; on leave it springs back flat. */
[data-tilt].is-tilting { transition-duration: .25s; transition-timing-function: var(--ease); }

/* Media frames: images arrive by wiping open, then settle from a slight zoom. */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); isolation: isolate; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a:hover .media img, .media:hover img.zoom { transform: scale(1.045); }
.media-cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; }

/* ---------- Rows (hairline lists: judges, team, schedule, specs) ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate; display: grid; grid-template-columns: var(--row-cols, 72px minmax(0, 1fr) auto); gap: 24px; align-items: center;
  padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line);
  transition: color .3s;
}
.row > * { transition: translate .6s var(--spring); }
.row::before { /* hover wash */
  content: ''; position: absolute; inset: 0 calc(-1 * clamp(12px, 1.6vw, 24px)); border-radius: var(--r-md); background: var(--surface);
  opacity: 0; transform: scaleY(.6); transition: opacity .4s var(--ease), transform .6s var(--spring); z-index: -1;
}
a.row:hover::before, .row-hover:hover::before { opacity: 1; transform: none; }
a.row:hover > *, .row-hover:hover > * { translate: 14px 0; }
.row-title { font: 700 clamp(24px, 3vw, 46px)/1.02 var(--font-display); letter-spacing: -0.025em; }
.row-meta { color: var(--fg-2); }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Key/value spec lists */
.spec { display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; border-top: 1px solid var(--line); }
.spec > dt, .spec > dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec > dt { font: 500 11.5px/1.6 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3); padding-top: 19px; }
.spec > dd { color: var(--fg); }

/* Tables (schedules, scoring) */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Long-form text */
.prose { max-width: 68ch; color: var(--fg-2); font-size: clamp(17px, 1.2vw, 19px); line-height: 1.7; }
.prose h2 { font: 800 clamp(30px, 3.4vw, 48px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--fg); margin: 2.2em 0 0.6em; }
.prose h3 { font: 700 clamp(22px, 2vw, 28px)/1.15 var(--font-display); color: var(--fg); margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.prose ul > li::before { content: ''; position: absolute; left: .2em; top: .62em; width: 7px; height: 7px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 500 11px var(--font-mono); color: var(--accent); }
.prose strong { color: var(--fg); font-weight: 700; }

/* Accordion (FAQ) — <details class="acc"><summary>…</summary><div class="acc-body">…</div></details> */
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; font: 700 clamp(19px, 1.7vw, 24px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .6s var(--spring), box-shadow .3s; }
.acc[open] summary::after { transform: rotate(135deg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.acc-body { padding: 0 0 28px; color: var(--fg-2); max-width: 70ch; }
/* Smooth open/close where ::details-content is supported; instant elsewhere. */
:root { interpolate-size: allow-keywords; }
.acc::details-content { height: 0; overflow: clip; transition: height .7s var(--ease), content-visibility .7s allow-discrete; }
.acc[open]::details-content { height: auto; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 10px; }
.field label, .field .field-label { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3); }
.input, .select, .textarea {
  width: 100%; min-height: 56px; padding: 16px 18px; border-radius: var(--r-sm); border: 0; outline: 0;
  background: var(--surface); color: var(--fg); font: 400 17px/1.4 var(--font-body);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), background-color .3s;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:focus, .select:focus, .textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s, box-shadow .25s; cursor: pointer; }
.check input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: none; }

/* ---------- Navigation: a floating capsule that tightens as you scroll ---------- */
.nav {
  position: fixed; z-index: 100; top: 14px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 6px; height: var(--nav-h); padding: 0 10px 0 16px;
  width: min(1120px, calc(100% - 28px)); border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0, 0, 0, .6);
  view-transition-name: site-nav;
  transition: width .8s var(--spring), height .6s var(--spring), top .6s var(--spring), translate .7s var(--ease), background-color .6s;
  animation: nav-in 1.1s var(--spring) .1s backwards;
}
@keyframes nav-in { from { width: 180px; opacity: 0; translate: -50% -24px; } }
.nav.is-compact { width: min(900px, calc(100% - 28px)); height: 56px; top: 10px; }
.nav.is-hidden { translate: -50% calc(-100% - 24px); }
.nav > * { animation: fade-up .7s var(--ease) .55s backwards; }
.nav-brand { display: flex; align-items: center; gap: 10px; padding-right: 10px; font: 800 19px/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.nav-brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav-brand sup { font: 500 9.5px var(--font-mono); letter-spacing: 0.04em; color: var(--accent); margin-left: 2px; vertical-align: 7px; }
.nav-links { position: relative; display: flex; align-items: center; margin-left: auto; }
.nav-links a { position: relative; z-index: 1; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--fg-2); border-radius: 99px; transition: color .3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--fg); }
.nav-links a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-pill { position: absolute; z-index: 0; top: 50%; left: 0; height: 40px; margin-top: -20px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; pointer-events: none;
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: var(--fg); transition: transform .5s var(--spring), top .5s var(--spring); }
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 26px; }
.menu-open .nav-toggle span:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 22.5px; transform: rotate(-45deg); }
@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { width: calc(100% - 24px); }
  .nav.is-compact { width: calc(100% - 20px); }
}

/* Full-screen menu (mobile, and the "index" on desktop) */
.menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 32px; background: var(--space); color: var(--star);
  clip-path: inset(0 0 100% 0 round 0 0 40px 40px); visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s; overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0 0 0 0 round 0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 6px 0; font: 800 clamp(40px, 9vw, 72px)/1 var(--font-display); letter-spacing: -0.035em;
  opacity: 0; transform: translateY(40px); transition: opacity .5s var(--ease), transform .8s var(--spring), color .3s; transition-delay: 0s; }
.menu-links a small { font: 500 11px var(--font-mono); color: var(--signal); letter-spacing: .04em; }
.menu-links a:hover { color: var(--signal); }
.menu-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + .25s); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(238, 237, 244, .14); font: 500 12px var(--font-mono); color: rgba(238, 237, 244, .6); text-transform: uppercase; letter-spacing: .04em; }
.menu-open { overflow: hidden; }
.menu-open .nav { --bg: #07081A; --fg: #EEEDF4; --fg-2: rgba(238, 237, 244, .66); --line: rgba(238, 237, 244, .14); --surface: rgba(238, 237, 244, .05); --accent: #8EA2FF; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; min-height: min(86svh, 880px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 96px) 0 clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.page-hero .h1, .page-hero .display { margin-top: 26px; max-width: 14ch; }
.page-hero .lede { margin-top: 30px; }
.page-hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; margin-top: clamp(40px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 500 11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: .5; }
.bg-stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none; filter: blur(40px);
  background: radial-gradient(closest-side, rgba(14, 52, 160, .55), rgba(47, 48, 97, .25) 55%, transparent); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: var(--gap, clamp(40px, 6vw, 96px)); padding-right: var(--gap, clamp(40px, 6vw, 96px)); }
.marquee-word { display: inline-flex; align-items: center; gap: var(--gap, clamp(40px, 6vw, 96px)); font: 800 clamp(48px, 8vw, 128px)/1.05 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }
.marquee-word .star { width: .32em; height: .32em; color: var(--accent); }
.logo-mark { height: clamp(26px, 2.6vw, 38px); width: auto; opacity: .86; transition: opacity .3s; }
.theme-light .logo-mark, [data-theme='light'] .logo-mark { filter: invert(1) brightness(.1); }
.logo-mark:hover { opacity: 1; }

/* ---------- Countdown (rolling digits) ---------- */
.countdown { display: inline-flex; align-items: baseline; gap: 14px; font: 500 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.cd-unit { display: inline-flex; align-items: baseline; gap: 5px; }
.cd-unit small { font-size: 10px; color: var(--fg-3); letter-spacing: .06em; }
.cd-digit { position: relative; display: inline-block; width: 1ch; height: 1.15em; overflow: hidden; vertical-align: -0.15em; }
.cd-digit > span { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; line-height: 1.15em; transition: transform .7s var(--spring); }

/* ---------- Floating cursor label + hover image ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 99px; background: var(--fg); color: var(--bg); font: 700 13.5px var(--font-body);
  opacity: 0; scale: .4; transition: opacity .3s var(--ease), scale .5s var(--spring); white-space: nowrap; }
.cursor.is-on { opacity: 1; scale: 1; }
.hover-img { position: fixed; left: 0; top: 0; z-index: 80; width: clamp(200px, 18vw, 280px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; pointer-events: none;
  opacity: 0; scale: .7; transition: opacity .35s var(--ease), scale .6s var(--spring); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hover-img.is-on { opacity: 1; scale: 1; }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; left: 0; top: 0; z-index: 120; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Stacked sticky cards ---------- */
.stack { position: relative; }
.stack-card { position: sticky; top: calc(var(--nav-h) + 40px + var(--i, 0) * 18px); transform-origin: 50% 0; will-change: transform; }
.stack-card + .stack-card { margin-top: clamp(40px, 8vh, 96px); }

/* ---------- Horizontal pinned scroller ---------- */
.hs { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hs-track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.hs.is-static { height: auto !important; }
.hs.is-static .hs-sticky { position: static; height: auto; overflow: visible; }
.hs.is-static .hs-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.hs.is-static .hs-track > * { scroll-snap-align: start; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 12vw, 180px) 0 28px; }
.footer-cta { display: grid; gap: 36px; }
.footer-cta .display { max-width: 11ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin-top: clamp(72px, 10vw, 140px); padding-top: 36px; border-top: 1px solid var(--line); }
.footer-grid h3 { font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--fg-2); transition: color .25s; }
.footer-grid a:hover { color: var(--fg); }
.footer-base { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; margin-top: 64px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.footer-word { margin-top: 48px; font: 800 clamp(96px, 27vw, 440px)/0.78 var(--font-display); letter-spacing: -0.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none; white-space: nowrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Motion. Everything below is inert until gibc.js adds .js to <html>
   (an inline snippet does that before first paint).
   ========================================================================== */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes fade-in { from { opacity: 0; } }

.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .8s var(--ease), transform 1.05s var(--spring), filter .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal-scale { transform: translateY(30px) scale(.94); }
/* Images and panels wipe open from the bottom edge. */
.js .reveal-clip { clip-path: inset(100% 0 0 0 round var(--clip-r, var(--r-lg))); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-clip img { transform: scale(1.18); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-clip.in { clip-path: inset(0 0 0 0 round var(--clip-r, var(--r-lg))); }
.js .reveal-clip.in img { transform: none; }
/* Lines that draw themselves */
.js .reveal-line { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-line.in { transform: none; }

/* Split headlines: words rise out of their own line box. */
[data-split] .wm { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .w { display: inline-block; transform: translateY(108%) rotate(3deg); transform-origin: 0 100%; opacity: 0;
  transition: transform 1.05s var(--spring), opacity .5s var(--ease); transition-delay: calc(min(var(--i), 12) * 50ms + var(--base, 0ms)); }
.js [data-split].in .w { transform: none; opacity: 1; }

/* Scroll-scrubbed statement text: each word brightens as you read. */
[data-scrub] .sw { color: var(--fg); opacity: .16; transition: opacity .45s var(--ease); }
[data-scrub] .sw.on { opacity: 1; }

/* Stagger helper for groups that should cascade (applied via JS). */
.js [data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .95s var(--spring); transition-delay: calc(var(--si, 0) * 60ms + var(--base, 0ms)); }
.js [data-stagger].in > * { opacity: 1; transform: none; }

/* Page arrival when the browser has no cross-document view transitions. */
.no-vt body { animation: page-in .8s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; } }
.is-leaving body { opacity: 0; transform: translateY(-14px); filter: blur(6px); transition: opacity .35s var(--ease), transform .45s var(--ease), filter .35s; }

/* Cross-document view transitions (Chrome, Edge, Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease) both; }
::view-transition-group(site-nav) { animation-duration: .7s; animation-timing-function: var(--spring); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-20px) scale(.99); filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } }

/* ---------- Intro (home, once per session) ---------- */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--space); color: var(--star);
  transition: clip-path 1s var(--ease); clip-path: inset(0 0 0 0); }
.intro.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro .star { width: 54px; height: 54px; color: var(--signal); animation: intro-star 1.4s var(--spring) both; }
@keyframes intro-star { from { transform: scale(0) rotate(-120deg); } 60% { transform: scale(1.08) rotate(10deg); } to { transform: none; } }
.intro-word { font: 800 clamp(44px, 7vw, 92px)/1 var(--font-display); letter-spacing: -0.04em; overflow: hidden; }
.intro-word span { display: inline-block; animation: intro-rise 1s var(--spring) .25s both; }
@keyframes intro-rise { from { transform: translateY(110%); } }
.intro-bar { width: 160px; height: 1.5px; background: rgba(238, 237, 244, .15); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; animation: intro-bar 1.2s var(--ease-io) .2s both; }
@keyframes intro-bar { from { transform: scaleX(0); } }
.intro-meta { font: 500 11px var(--font-mono); letter-spacing: .08em; color: rgba(238, 237, 244, .5); text-transform: uppercase; }

/* ---------- Reduced motion: keep the fades, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal, .js [data-split] .w, .js [data-stagger] > * { transform: none !important; filter: none !important; transition: opacity .4s linear !important; }
  .js .reveal-clip, .js .reveal-clip img, .js .reveal-line { clip-path: none !important; transform: none !important; }
  .star-spin { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Pieces wired up by gibc.js ---------- */
/* Lazy images fade in once decoded instead of popping in. */
.js img.img-wait { opacity: 0; }
.js img.img-in { animation: fade-in .7s var(--ease) both; }
.intro-seen .intro { display: none; }
.marquee.is-static { -webkit-mask: none; mask: none; }
.marquee.is-static .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
.stack-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #04050f; opacity: var(--dim, 0); pointer-events: none; }

/* Track visuals: [data-viz] (colour follows var(--accent)) */
[data-viz] { position: relative; color: var(--accent); }
[data-viz='tokens'] { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 6px; font: 500 10.5px/1 var(--font-mono); }
[data-viz='tokens'] span { display: grid; place-items: center; height: 40px; padding: 0 4px; border-radius: 9px; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; overflow: hidden; animation: attn 5.2s var(--ease-io) infinite; animation-delay: var(--delay); }
@keyframes attn {
  0%, 100% { background-color: transparent; color: var(--fg-3); }
  10% { background-color: var(--accent); color: var(--accent-ink); }
  28% { background-color: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--fg-2); }
  48% { background-color: transparent; color: var(--fg-3); }
}
[data-viz='pulse'] { -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); overflow: hidden; }
[data-viz='pulse'] svg { width: 100%; height: 100%; overflow: visible; }
[data-viz='pulse'] path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.viz-ecg path { stroke: var(--accent); stroke-width: 2.2; }
.viz-mkt path { stroke: var(--fg-3); stroke-width: 1.4; stroke-dasharray: 2 6; animation: march 1.6s linear infinite; }
.viz-ecg { animation: ecg 3.4s linear infinite; }
@keyframes ecg { to { transform: translateX(-320px); } }
@keyframes march { to { stroke-dashoffset: -16; } }
[data-viz='orbit'] canvas { width: 100%; height: 100%; }

/* Halftone globe (home hero, online venue) */
.globe { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe.is-dragging { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  [data-viz='tokens'] span, .viz-ecg, .viz-mkt path { animation: none !important; }
}

/* ==========================================================================
   Space. Every page sits on the same night sky: a CSS gradient that glows
   blue at the horizon (like the poster) with the WebGL starfield on top.
   Sections may set data-tint="blue | indigo | grape | deep" to shift the glow.
   ========================================================================== */
/* The sky lives on its own fixed, GPU-composited layer: scrolling never repaints it, and a
   tint change only animates this one layer (a fixed background on <html> repainted the whole
   screen every scroll frame). --sky does not inherit, so the glide restyles nothing else. */
@property --sky { syntax: '<color>'; inherits: false; initial-value: #12164A; }
html { background: #010102; }
body { background: transparent; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; height: 100lvh;
  --sky: #12164A;
  background: radial-gradient(140% 70% at 34% 124%, var(--sky) 0%, #06070F 42%, #010102 76%);
  transform: translateZ(0); transition: --sky 1.4s var(--ease);
}
html[data-tint='indigo'] body::before { --sky: #0E1032; }
html[data-tint='grape'] body::before { --sky: #120F26; }
html[data-tint='deep'] body::before { --sky: #07070D; }
html[data-tint='blue'] body::before { --sky: #12164A; }
body::after { opacity: .045; transform: translateZ(0); }
.space-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100lvh; pointer-events: none; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Logo */
.nav-brand img { width: auto; height: 30px; border-radius: 0; }
.logo-glow { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); }
.intro img { width: min(62vw, 520px); height: auto; animation: intro-logo 1.4s var(--spring) both; }
@keyframes intro-logo { from { opacity: 0; transform: scale(.82) translateY(20px); filter: blur(14px); } }
.footer-logo { display: block; width: min(1100px, 92%); margin: 64px auto 0; opacity: .12; -webkit-mask: linear-gradient(#000 30%, transparent 92%); mask: linear-gradient(#000 30%, transparent 92%); user-select: none; pointer-events: none; }

/* HUD panels: hairline frames that let the sky show through */
.hud { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(20, 26, 80, .38), rgba(8, 10, 32, .30)); box-shadow: inset 0 0 0 1px rgba(142, 162, 255, .16), 0 30px 80px -40px rgba(0, 0, 0, .8); }
.hud::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(142, 162, 255, .12), transparent 60%); opacity: 0; transition: opacity .5s var(--ease); }
.hud:hover::after { opacity: 1; }
.hud-corners { position: relative; }
.hud-corners::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(#8EA2FF, #8EA2FF) 0 0 / 18px 1.5px, linear-gradient(#8EA2FF, #8EA2FF) 0 0 / 1.5px 18px, linear-gradient(#8EA2FF, #8EA2FF) 100% 100% / 18px 1.5px, linear-gradient(#8EA2FF, #8EA2FF) 100% 100% / 1.5px 18px;
  background-repeat: no-repeat; opacity: .7; }
.glow-text { text-shadow: 0 0 40px rgba(100, 130, 255, .35); }
