/* ==========================================================
   KAYDEEHQ — styles
   Brand tokens from KAYDEE-v2: ink #08090C, white #F2F1F4,
   secondary #AAA8B2, body highlights #0B0C10–#24222A,
   indigo #293D78 / deep purple #30203F used only as faint tints.
   ========================================================== */

:root {
  color-scheme: dark;
  --ink: #08090c;
  --ink-2: #0b0c10;
  --surface: rgba(18, 19, 25, 0.72);
  --surface-solid: #111218;
  --surface-2: #16171e;
  --surface-3: #1d1e26;
  --line: rgba(242, 241, 244, 0.08);
  --line-2: rgba(242, 241, 244, 0.15);
  --line-3: rgba(242, 241, 244, 0.28);
  --text: #f2f1f4;
  --text-2: #b4b2bc;
  --text-3: #8d8b97;
  --indigo: #293d78;
  --purple: #30203f;
  --lavender: #b8acec;
  --live: #f0646e;
  --irid: linear-gradient(120deg, #c9c0f2, #a9c6f0 35%, #f2f1f4 55%, #d7b9e8 80%, #b8d4ee);

  --font-display: Bahnschrift, "DIN Alternate", "DIN Next LT Pro", "D-DIN", "Barlow", "Segoe UI", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --r-s: 10px;
  --r: 18px;
  --r-l: 28px;
  --pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --head-h: 64px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 760px at 12% -12%, rgba(41, 61, 120, 0.17), transparent 62%),
    radial-gradient(900px 700px at 105% 18%, rgba(48, 32, 63, 0.24), transparent 60%),
    radial-gradient(900px 600px at 40% 115%, rgba(34, 52, 112, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
::selection { background: rgba(184, 172, 236, 0.35); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-2); }

/* Focus: always visible, never removed */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}
h1:focus, h1:focus-visible { outline: none; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

/* Placeholders stand out so unfinished copy is obvious */
.ph {
  color: var(--text-2);
  background: rgba(184, 172, 236, 0.07);
  border-bottom: 1px dashed rgba(184, 172, 236, 0.5);
  border-radius: 4px;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- ambient layer ---------- */
#ambient {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* ---------- icons ---------- */
.i-arrow, .i-ext, .i-chev {
  width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.i-ext { width: 0.8em; height: 0.8em; margin-left: 0.3em; opacity: 0.7; }
.i-arrow { margin-left: 0.35em; transition: transform var(--dur) var(--ease); }
.sparkle { width: 14px; height: 14px; fill: #f2f1f4; display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.2em;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--pill); border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--primary { background: var(--text); color: var(--ink); }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: rgba(242, 241, 244, 0.04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover, .btn--ghost[aria-current="page"] { border-color: var(--line-3); background: rgba(242, 241, 244, 0.08); }
.btn:hover .i-arrow, .btn:focus-visible .i-arrow, .text-link:hover .i-arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.1em;
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--line-3); text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.text-link:hover { text-decoration-color: var(--text); }

.tag-soon, .badge-soon {
  display: inline-block; vertical-align: middle;
  font: 600 0.62rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 7px; border-radius: var(--pill);
  color: var(--text-2); border: 1px solid var(--line-2);
}
.badge-soon {
  font-size: 0.72rem; padding: 6px 10px; margin-left: 0.4em; vertical-align: 0.5em;
  border-color: transparent;
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--irid) border-box;
  border: 1px solid transparent; color: var(--text);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
/* The blur lives on a separate layer so the header doesn't trap the fixed mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(8, 9, 12, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.site-header.is-scrolled::before, body.menu-open .site-header::before { opacity: 1; }
.site-header.is-scrolled, body.menu-open .site-header { border-bottom-color: var(--line); }
.bar {
  max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter);
  height: var(--head-h); display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; border-radius: 8px; }
.brand__mark { width: 40px; height: auto; fill: var(--text); }
.brand__word { font: 600 1.02rem/1 var(--font-display); letter-spacing: 0.16em; }
.brand__word span { color: var(--text-2); }

.nav-desktop { margin-inline: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 12px; border-radius: var(--pill);
  font: 500 0.95rem/1 var(--font-display); letter-spacing: 0.03em;
  color: var(--text-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(242, 241, 244, 0.05); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--text); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--text);
}
.i-chev { transition: transform var(--dur) var(--ease); }
.more { position: relative; }
.more__btn[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.more__menu {
  list-style: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 190px; padding: 6px; border-radius: 16px;
  background: rgba(17, 18, 24, 0.96); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: pop 180ms var(--ease);
}
.more__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  font: 500 0.95rem/1.2 var(--font-display); color: var(--text-2);
}
.more__link:hover, .more__link:focus-visible { background: rgba(242, 241, 244, 0.06); color: var(--text); }
.more__link[aria-current="page"] { color: var(--text); background: rgba(242, 241, 244, 0.06); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -4px); } }

.bar__end { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav-desktop + .bar__end { margin-left: 0; }

/* Live pill */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px 0 10px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: rgba(242, 241, 244, 0.03);
  font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.live-pill:hover { color: var(--text); border-color: var(--line-3); }
.live-pill__dot, .live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--text-3); background: transparent;
}
.live-pill[data-state="checking"] .live-pill__dot { border-style: dotted; }
.live-pill[data-state="offline"] .live-pill__dot { background: var(--text-3); border-color: var(--text-3); }
.live-pill[data-state="live"] { color: var(--text); border-color: rgba(240, 100, 110, 0.55); background: rgba(240, 100, 110, 0.08); }
.live-pill[data-state="live"] .live-pill__dot, .live-dot--on, [data-state="live"] > .live-dot,
.live-banner .live-dot {
  background: var(--live); border-color: var(--live);
  box-shadow: 0 0 0 0 rgba(240, 100, 110, 0.5);
  animation: livepulse 2.4s ease-out infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 100, 110, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(240, 100, 110, 0); }
}
.live-pill__demo {
  font-size: 0.6rem; letter-spacing: 0.08em; padding: 3px 6px; border-radius: var(--pill);
  background: #f2d479; color: #1a1500;
}

/* Mobile menu */
.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 12px; border-radius: var(--pill);
  background: rgba(242, 241, 244, 0.04); border: 1px solid var(--line-2); cursor: pointer;
  font: 600 0.85rem/1 var(--font-display); letter-spacing: 0.06em;
}
.menu-btn__icon { position: relative; width: 16px; height: 10px; }
.menu-btn__icon span {
  position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-btn__icon span:first-child { top: 1px; }
.menu-btn__icon span:last-child { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:last-child { top: 4px; transform: rotate(-45deg); }

.menu-sheet {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 39;
  background: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-sheet__inner { max-width: 640px; margin-inline: auto; padding: 20px var(--gutter) 48px; }
.sheet-list { list-style: none; display: grid; gap: 2px; }
.sheet-list li { animation: sheetIn 320ms var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(6px); } }
.sheet-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font: 600 1.6rem/1.1 var(--font-display); letter-spacing: 0.01em;
  text-decoration: none; color: var(--text-2);
}
.sheet-link[aria-current="page"] { color: var(--text); }
.sheet-link[aria-current="page"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); flex: none;
}
.sheet-link .tag-soon { margin-left: auto; }
.sheet-link:hover { color: var(--text); }
.sheet-link--sm { font-size: 1.2rem; }
.sheet-label { margin: 28px 4px 6px; font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }

@media (max-width: 1079px) {
  .nav-desktop, .nav-end { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand__word { display: none; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 0 12px; }
}

/* ---------- main + transitions ---------- */
main { display: block; min-height: 70vh; padding-bottom: 96px; view-transition-name: page; overflow-x: clip; }
main:focus { outline: none; }
.page-in { animation: pageIn 260ms var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
::view-transition-old(page) { animation: vtOut 140ms ease-in both; }
::view-transition-new(page) { animation: vtIn 260ms var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- page head ---------- */
.page-head { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 5vw, 56px); }
.page-head__inner { display: grid; gap: 24px; align-items: end; }
.page-head__inner.has-kb { grid-template-columns: minmax(0, 1fr) auto; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 0.74rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 12px rgba(184, 172, 236, 0.6); }
.eyebrow__sep { opacity: 0.5; }
.page-title { font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.02em; line-height: 0.98; }
.lede { max-width: 40rem; margin-top: 20px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--text-2); }

/* ---------- common blocks ---------- */
.card {
  position: relative; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 26px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card--link:hover, .card--link:focus-within { border-color: var(--line-3); transform: translateY(-2px); background: rgba(22, 23, 30, 0.8); }
.card__stretch { text-decoration: none; }
.card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__stretch:focus-visible { outline: none; }
.card--link:has(.card__stretch:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.card__kind, .tl__meta, .media-card__meta, .goal__game {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.card__title, .game__title { font-size: 1.3rem; line-height: 1.2; }
.card__text { margin-top: 10px; color: var(--text-2); }
.card__more { margin-top: 18px; font: 600 0.9rem/1 var(--font-display); letter-spacing: 0.03em; }
.card--link:hover .i-arrow { transform: translateX(3px); }

.section-head { margin-bottom: 22px; }
.section-head h2, .mini-h { display: flex; align-items: center; gap: 12px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mini-h { font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 16px; flex-wrap: wrap; }
.section-sub { margin-top: 8px; color: var(--text-2); max-width: 44rem; }
.node-mark {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--text); box-shadow: 0 0 10px rgba(184, 172, 236, 0.4);
}

.grid { display: grid; gap: 16px; list-style: none; }
.grid--1 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 0.78rem; padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--text-2); }

.detail-list { display: grid; gap: 14px; }
.detail-list > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list dt, .focus-list dt, .goal__meta dt {
  font: 600 0.72rem/1.3 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.detail-list dd { color: var(--text); }

.prose p + p { margin-top: 1em; }
.prose ul { margin-top: 1em; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--text-3); }
.prose p, .prose li { color: var(--text-2); max-width: 44rem; }

.frame { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.frame--empty { display: grid; border-style: dashed; border-color: var(--line-2); background: rgba(242, 241, 244, 0.015); }
.frame__ph { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.frame--square .frame__ph, .frame--square img { aspect-ratio: 1; }
.frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 10px rgba(242, 241, 244, 0.03), 0 0 0 22px rgba(242, 241, 244, 0.02); }
.frame figcaption { padding: 12px 16px 14px; font-size: 0.88rem; color: var(--text-3); border-top: 1px dashed var(--line); }

.empty {
  display: grid; justify-items: start; gap: 14px;
  padding: 26px; border-radius: var(--r); border: 1px dashed var(--line-2);
  background: rgba(242, 241, 244, 0.015); color: var(--text-2);
}
.empty__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chips, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--pill);
  background: rgba(242, 241, 244, 0.03); border: 1px solid var(--line-2); color: var(--text-2);
  font: 500 0.92rem/1 var(--font-display); letter-spacing: 0.03em; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip__n { font-size: 0.75rem; opacity: 0.65; }
.chip--link { color: var(--text); }

/* ---------- Killbot ---------- */
.kb { position: relative; pointer-events: none; user-select: none; }
.kb svg { width: 100%; height: 100%; overflow: visible; }
.kb-pos { transition: transform 900ms var(--ease); }
.kb [data-eye] { transition: transform 600ms var(--ease); }
.kb-sway { transform-origin: 0 0; }
.kb--breathe .kb-sway { animation: breathe 5.5s ease-in-out infinite; }
.kb--sway .kb-sway { animation: sway 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.012, 0.99); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.kb--zz::after {
  content: "z"; position: absolute; right: 18%; top: 22%;
  font: 600 14px/1 var(--font-display); color: var(--text-3);
  animation: zz 4.5s ease-in-out infinite;
}
@keyframes zz { 0% { opacity: 0; transform: translate(0, 6px); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: translate(10px, -18px); } }

/* ---------- HQ (home) ---------- */
.live-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 16px; padding: 12px 18px; max-width: calc(var(--maxw) - 2 * var(--gutter));
  border-radius: var(--pill); border: 1px solid rgba(240, 100, 110, 0.4); background: rgba(240, 100, 110, 0.07);
  text-decoration: none; font-size: 0.95rem;
}
.live-banner[hidden] { display: none; }
.live-banner strong { font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.live-banner__title { color: var(--text-2); }
.live-banner__go { margin-left: auto; font-weight: 600; }
.live-banner:hover .i-arrow { transform: translateX(3px); }

.hq {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(28px, 5vw, 64px);
  min-height: min(calc(100vh - var(--head-h)), 820px);
}
.hq__title {
  position: relative; display: inline-block;
  font-size: clamp(3.6rem, 10vw, 8.2rem); letter-spacing: 0.02em; line-height: 0.9; font-weight: 700;
}
.hq__spark { position: absolute; top: -0.02em; right: -0.32em; width: 0.16em; height: 0.16em; opacity: 0.85; animation: twinkle 7s ease-in-out infinite; }
@keyframes twinkle { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 88% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
.hq__intro .lede { margin-bottom: 30px; }

.hq-map { position: relative; aspect-ratio: 1 / 0.92; width: 100%; max-width: 700px; justify-self: center; }
.hq-map__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hq-map__links line, .hq-map__orbit {
  fill: none; stroke: rgba(242, 241, 244, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke;
  transition: stroke var(--dur) var(--ease);
}
.hq-map__orbit { stroke: rgba(184, 172, 236, 0.07); stroke-dasharray: 2 6; }
.hq-map__links line.is-on { stroke: rgba(242, 241, 244, 0.55); }

.core-wrap { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.core {
  position: absolute; left: -64px; top: -64px; width: 128px; height: 128px;
  border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.core__halo {
  position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 172, 236, 0.16), rgba(41, 61, 120, 0.1) 40%, transparent 70%);
  animation: halo 9s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.08); opacity: 0.8; } }
.core__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(242, 241, 244, 0.18);
  background: radial-gradient(circle at 35% 30%, rgba(242, 241, 244, 0.06), rgba(8, 9, 12, 0.6) 70%);
  transition: border-color var(--dur) var(--ease), transform 400ms var(--ease);
}
.core__ring::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(201, 192, 242, 0.55), rgba(169, 198, 240, 0.4), transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.core__dot {
  position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 24px rgba(242, 241, 244, 0.35), 0 0 60px rgba(184, 172, 236, 0.25);
  transition: transform 400ms var(--ease);
}
.core:hover .core__ring, .core:focus-visible .core__ring, .hq-map.has-focus .core__ring { border-color: rgba(242, 241, 244, 0.38); transform: scale(1.04); }
.core:hover .core__dot, .core:focus-visible .core__dot { transform: scale(1.08); }
.core:focus-visible { outline-offset: 8px; border-radius: 50%; }
.core.is-pinged .core__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(242, 241, 244, 0.6);
  animation: ping 1.1s var(--ease) forwards;
}
@keyframes ping { to { transform: scale(2.1); opacity: 0; } }

/* Killbot rests at the foot of the core, in the gap left in the ring. */
.kb-home { position: absolute; width: 160px; height: 160px; left: -80px; top: 58px; }

.hq-map__nav { position: absolute; inset: 0; pointer-events: none; }
.hq-map__nav a { pointer-events: auto; }
.hq-nodes { list-style: none; }
.hq-node { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.hq-node a {
  position: absolute; top: 0; transform: translateY(-50%);
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 8px 10px; margin: -8px -10px; border-radius: 14px; width: max-content; max-width: 150px;
}
.hq-node--right a { left: -8px; }
.hq-node--left a { right: -8px; flex-direction: row-reverse; text-align: right; }
.hq-node__dot {
  flex: none; width: 16px; height: 16px; border-radius: 50%; position: relative;
  background: var(--ink); border: 1.5px solid rgba(242, 241, 244, 0.55);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hq-node__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(242, 241, 244, 0.55); transition: background var(--dur) var(--ease); }
.hq-node.is-soon .hq-node__dot { border-style: dashed; border-color: rgba(242, 241, 244, 0.35); }
.hq-node.is-soon .hq-node__dot::after { background: transparent; }
.hq-node__text { display: grid; gap: 3px; }
.hq-node__label { font: 600 1.02rem/1.1 var(--font-display); letter-spacing: 0.03em; }
.hq-node__desc {
  font-size: 0.82rem; line-height: 1.35; color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.hq-node a:hover .hq-node__dot, .hq-node a:focus-visible .hq-node__dot {
  transform: scale(1.25); border-color: var(--text); box-shadow: 0 0 18px rgba(184, 172, 236, 0.45);
}
.hq-node a:hover .hq-node__dot::after, .hq-node a:focus-visible .hq-node__dot::after { background: var(--text); }
.hq-node a:hover .hq-node__desc, .hq-node a:focus-visible .hq-node__desc { color: var(--text-2); }
.hq-node a[aria-current="page"] .hq-node__dot { background: var(--text); }
.hq-node { animation: nodeIn 700ms var(--ease) both; animation-delay: calc(120ms + var(--i) * 45ms); }
@keyframes nodeIn { from { opacity: 0; } }

.hq-lower {
  display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  margin-top: clamp(24px, 4vw, 48px);
}
.feature-list { display: grid; gap: 16px; }
.card--feature .card__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 12px; }
.focus-list { display: grid; gap: 14px; }
.focus-list > div { display: grid; gap: 3px; }
.focus-list dd { font-size: 1.02rem; }

@media (max-width: 1079px) {
  .hq { grid-template-columns: 1fr; min-height: 0; }
  .hq-map { max-width: 560px; }
}
@media (max-width: 760px) {
  .hq-lower { grid-template-columns: 1fr; }
  /* On small screens the map becomes: core + Killbot, then a tidy list of destinations. */
  .hq-map { aspect-ratio: auto; display: grid; gap: 8px; }
  .hq-map__links { display: none; }
  .core-wrap { position: relative; left: auto; top: auto; width: 100%; height: 200px; }
  .core { left: calc(50% + 10px); top: 36px; }
  .kb-home { left: calc(50% - 170px); top: 40px; width: 150px; height: 150px; }
  .core-wrap { margin-bottom: 4px; }
  .hq-map__nav { position: static; }
  .hq-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hq-node { position: static; width: auto; height: auto; }
  .hq-node a, .hq-node--left a, .hq-node--right a {
    position: static; transform: none; margin: 0; max-width: none; width: 100%; height: 100%;
    flex-direction: row; text-align: left; align-items: flex-start;
    padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  }
  .hq-node__dot { margin-top: 2px; width: 14px; height: 14px; }
  .hq-node__dot::after { inset: 3px; }
}
@media (max-width: 380px) {
  .hq-nodes { grid-template-columns: 1fr; }
}

/* ---------- Stream ---------- */
.stream-status {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--text-2); font-size: 0.95rem;
}
.stream-status[data-state="checking"] .live-dot { border-style: dotted; }
.stream-status[data-state="offline"] .live-dot { background: var(--text-3); border-color: var(--text-3); }
.stream-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.stream-grid.has-chat { grid-template-columns: minmax(0, 1fr) 340px; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: #050608; border: 1px solid var(--line);
}
.player iframe, .chat iframe { width: 100%; height: 100%; border: 0; }
.player__state {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 24px; text-align: center; color: var(--text-2);
  background: radial-gradient(circle at 50% 40%, rgba(41, 61, 120, 0.18), transparent 60%);
}
.player__state--offline { gap: 10px; }
.player__mark { width: 96px; fill: var(--text); opacity: 0.9; margin-bottom: 10px; }
.player__h { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--text); }
.player__state .actions { justify-content: center; margin-top: 8px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--text); animation: spin 900ms linear infinite; }
.chat { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0e0e10; min-height: 420px; }
.stream-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; justify-content: flex-end; }
.stream-info { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.stream-card__big { font: 600 1.25rem/1.35 var(--font-display); margin-bottom: 10px; }
.stream-card .muted { margin-bottom: 14px; }
.elsewhere { list-style: none; display: grid; gap: 18px; }
.elsewhere p { color: var(--text-2); font-size: 0.95rem; margin: 2px 0 6px; }
.elsewhere__name { font: 600 1rem/1.2 var(--font-display); }
.stream-card--kb { padding-bottom: 110px; }
.kb-watch { position: absolute; right: 14px; bottom: 6px; width: 110px; height: 110px; }
@media (max-width: 1099px) {
  .stream-grid.has-chat { grid-template-columns: 1fr; }
  .chat { height: 480px; }
  .stream-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .stream-info { grid-template-columns: 1fr; }
  .stream-bar { justify-content: stretch; }
  .stream-bar > * { flex: 1; }
}

/* ---------- About ---------- */
.kb-head { width: 150px; height: 150px; margin-bottom: -10px; }
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.about__toc { position: sticky; top: calc(var(--head-h) + 24px); }
.toc-label { font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.about__toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line-2); }
.about__toc a {
  display: flex; gap: 12px; padding: 8px 14px; margin-left: -1px; border-left: 1px solid transparent;
  text-decoration: none; color: var(--text-2); font: 500 0.95rem/1.3 var(--font-display);
}
.about__toc a span { color: var(--text-3); font-size: 0.8rem; padding-top: 2px; }
.about__toc a:hover { color: var(--text); border-left-color: var(--text); }
.about__body { display: grid; gap: clamp(48px, 7vw, 88px); }
.about-sec { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; }
.about-sec__num { font: 600 0.9rem/1 var(--font-display); color: var(--text-3); letter-spacing: 0.12em; padding-top: 10px; }
.about-sec h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 18px; }
.about-sec .prose p, .about-sec .prose li { font-size: 1.1rem; line-height: 1.7; }
.pull {
  grid-column: 2; margin: 18px 0 0; padding: 4px 0 4px 20px; max-width: 34rem;
  border-left: 2px solid transparent; border-image: var(--irid) 1;
  font: 500 clamp(1.2rem, 2vw, 1.45rem)/1.4 var(--font-display); color: var(--text);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__toc { position: static; }
  .about__toc ol { display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .about__toc a { border: 1px solid var(--line-2); border-radius: var(--pill); margin: 0; padding: 8px 14px; }
  .about-sec { grid-template-columns: 1fr; }
  .about-sec__num { padding: 0; }
  .pull { grid-column: 1; }
}
@media (max-width: 600px) {
  .page-head__inner.has-kb { grid-template-columns: 1fr; }
  .kb-head { width: 110px; height: 110px; order: -1; margin: -20px 0 -10px -14px; }
}

/* ---------- History ---------- */
.timeline { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.timeline__rail { position: relative; }
.timeline__line {
  position: absolute; top: 8px; bottom: 8px; right: 23px; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-2) 6%, var(--line-2) 94%, transparent);
}
.kb-inspect {
  position: absolute; top: 0; left: 0; width: 92px; height: 92px; margin-top: -60px;
  transition: transform 700ms var(--ease);
}
.timeline__list { list-style: none; display: grid; gap: 24px; }
.tl { position: relative; }
.tl__node {
  position: absolute; left: -32px; top: 32px; width: 17px; height: 17px; margin-left: -8px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--line-3);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tl.is-active .tl__node { border-color: var(--text); box-shadow: 0 0 0 5px rgba(242, 241, 244, 0.06), 0 0 18px rgba(184, 172, 236, 0.45); }
.tl.is-open .tl__node { background: var(--text); }
.tl__card { transition: border-color var(--dur) var(--ease); }
.tl.is-active .tl__card { border-color: var(--line-2); }
.tl__meta { margin-bottom: 12px; }
.tl__when { color: var(--text); }
.tl__tag { padding: 4px 8px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.tl__title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.tl__summary { margin-top: 10px; color: var(--text-2); max-width: 44rem; font-size: 1.05rem; }
.tl__toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  min-height: 40px; padding: 0 14px 0 16px; border-radius: var(--pill);
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  font: 600 0.88rem/1 var(--font-display); letter-spacing: 0.04em;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tl__toggle:hover { border-color: var(--line-3); background: rgba(242, 241, 244, 0.04); }
.tl__plus { position: relative; width: 10px; height: 10px; }
.tl__plus::before, .tl__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 4.2px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease); }
.tl__plus::after { transform: rotate(90deg); }
.tl__toggle[aria-expanded="true"] .tl__plus::after { transform: rotate(0); }
.tl__more { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); animation: pageIn 260ms var(--ease); }
.tl__images { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 16px; }
.dot-note {
  display: flex; gap: 22px; align-items: flex-start; margin: clamp(48px, 7vw, 88px) 0 0 120px; max-width: 46rem;
}
.dot-note__dot { flex: none; width: 22px; height: 22px; margin-top: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 30px rgba(184, 172, 236, 0.5); }
.dot-note h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.dot-note p { color: var(--text-2); font-size: 1.1rem; }
@media (max-width: 720px) {
  .timeline { grid-template-columns: 34px minmax(0, 1fr); }
  .timeline__line { right: 16px; }
  .tl__node { left: -18px; }
  .kb-inspect { display: none; }
  .dot-note { margin-left: 0; }
}

/* ---------- Games ---------- */
.games { display: grid; gap: clamp(48px, 7vw, 80px); }
.game--now { padding-top: 22px; }
.game--now::before {
  content: "Now"; display: inline-block; margin-bottom: 12px;
  font: 600 0.68rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2); padding: 5px 9px; border-radius: var(--pill); border: 1px solid var(--line-2);
}
.game__img { margin: -8px -8px 16px; }
.milestones { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.milestone { padding-top: 34px; }
.milestone__node { position: absolute; top: 16px; left: clamp(18px, 2.4vw, 26px); width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text); }
.goals__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kb-observe { flex: none; width: 110px; height: 110px; margin-bottom: -8px; }
.goal__top { display: grid; gap: 8px; margin-bottom: 22px; }
.track { position: relative; height: 8px; border-radius: var(--pill); background: rgba(242, 241, 244, 0.06); }
.track__fill { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--irid); opacity: 0.8; }
.track__marker { position: absolute; top: 50%; left: var(--p); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 16px rgba(184, 172, 236, 0.6); }
.track--none { background: repeating-linear-gradient(90deg, rgba(242, 241, 244, 0.12) 0 6px, transparent 6px 12px); height: 2px; margin-block: 3px; }
.goal__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.goal__meta dd { margin-top: 4px; font-size: 0.95rem; }
@media (max-width: 520px) {
  .goal__meta { grid-template-columns: 1fr; }
  .kb-observe { width: 84px; height: 84px; }
}

/* ---------- Media ---------- */
.media-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.channel-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.media-stage { position: relative; padding-top: 58px; }
.kb-peek-wrap { position: absolute; top: 0; right: clamp(20px, 6vw, 80px); width: 120px; height: 62px; overflow: hidden; }
.kb-peek { position: absolute; left: 0; top: 30px; width: 120px; height: 120px; transition: transform 500ms var(--ease); }
.kb-peek.kb--up { transform: translateY(-20px); }
.media-grid { list-style: none; position: relative; z-index: 1; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.media-grid:empty { display: none; }
.media-card {
  display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.media-card:hover, .media-card:focus-within { border-color: var(--line-3); transform: translateY(-2px); }
.media-card[hidden] { display: none; }
.media-card__frame { position: relative; aspect-ratio: 16 / 9; background: #050608; }
.media-card__frame iframe { width: 100%; height: 100%; border: 0; }
.media-card__play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; text-decoration: none; overflow: hidden;
}
.media-card__play.is-static { cursor: default; }
.media-card__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease), opacity var(--dur); opacity: 0.85; }
.media-card__play:hover img, .media-card__play:focus-visible img { transform: scale(1.03); opacity: 1; }
.media-card__play:focus-visible { outline-offset: -4px; }
.media-card__tile { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(41, 61, 120, 0.25), transparent 65%), #0b0c10; }
.media-card__mark { width: 64px; fill: var(--text); opacity: 0.35; }
.play-btn {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: var(--pill);
  background: rgba(8, 9, 12, 0.78); border: 1px solid var(--line-3); color: var(--text);
  font: 600 0.85rem/1 var(--font-display); letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background var(--dur) var(--ease);
}
.play-btn svg { width: 18px; height: 18px; fill: currentColor; }
.media-card__play:hover .play-btn, .media-card__play:focus-visible .play-btn { background: var(--text); color: var(--ink); }
.media-card__body { padding: 16px 18px 20px; }
.media-card__meta { margin-bottom: 8px; gap: 8px; }
.media-card__meta span + span::before { content: "·"; margin-right: 8px; }
.media-card__title { font-size: 1.15rem; line-height: 1.25; }
.media-card--ph { border-style: dashed; border-color: var(--line-2); background: rgba(242, 241, 244, 0.015); }
.media-card--ph .media-card__frame { display: grid; place-items: center; background: transparent; border-bottom: 1px dashed var(--line); }
.media-note { margin-top: 20px; font-size: 0.88rem; }
.shot-dialog {
  max-width: min(1100px, 94vw); padding: 16px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface-solid); color: var(--text);
}
.shot-dialog::backdrop { background: rgba(4, 5, 7, 0.85); }
.shot-dialog img { max-height: 78vh; width: auto; margin: 12px auto; border-radius: var(--r-s); }
.shot-dialog form { display: flex; justify-content: flex-end; }
@media (max-width: 600px) { .kb-peek-wrap { right: 12px; } }

/* ---------- Play ---------- */
.play { display: grid; gap: clamp(48px, 7vw, 80px); }
.portal-scene { position: relative; height: clamp(260px, 36vw, 380px); display: grid; place-items: center; }
.portal { position: relative; width: clamp(200px, 28vw, 300px); aspect-ratio: 1; }
.portal__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(242, 241, 244, 0.22);
  background: radial-gradient(circle, rgba(8, 9, 12, 0.95) 45%, rgba(41, 61, 120, 0.2) 70%, transparent 71%);
  box-shadow: 0 0 60px rgba(41, 61, 120, 0.18);
}
.portal__ring--2 { inset: 14%; border-style: dashed; border-color: rgba(184, 172, 236, 0.26); box-shadow: none; animation: spin 90s linear infinite; background: none; }
.portal__core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 172, 236, 0.2), transparent 70%);
  animation: dormant 8s ease-in-out infinite;
}
@keyframes dormant { 50% { opacity: 0.35; transform: scale(0.94); } }
.kb-portal { position: absolute; width: clamp(130px, 16vw, 170px); height: clamp(130px, 16vw, 170px); left: calc(50% - clamp(210px, 27vw, 290px)); bottom: 6%; }
.portal-scene__cap {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font: 600 0.7rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
}
.updates { list-style: none; display: grid; gap: 12px; }
.access { display: grid; gap: 12px; justify-items: start; }
.access p { color: var(--text-2); }
.access__state { display: inline-flex; align-items: center; gap: 10px; font: 600 0.8rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.access__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed var(--text-3); }
@media (max-width: 560px) { .kb-portal { left: 2%; } }

/* ---------- Music ---------- */
.music { display: grid; gap: clamp(40px, 6vw, 72px); }
.listen-scene { position: relative; height: 220px; display: grid; place-items: center; }
.listen-scene__ring { position: absolute; width: 200px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(242, 241, 244, 0.06); animation: listen 10s ease-in-out infinite; }
.listen-scene__ring--2 { width: 300px; border-color: rgba(184, 172, 236, 0.05); animation-delay: -5s; }
@keyframes listen { 50% { transform: scale(1.05); opacity: 0.6; } }
.kb-listen { width: 170px; height: 170px; margin-top: -20px; }
.split--music { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.tracks { list-style: none; display: grid; }
.track-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.track-row__n { color: var(--text-3); font-family: var(--font-display); }
@media (max-width: 760px) { .split--music { grid-template-columns: 1fr; } }

/* ---------- Killbot page ---------- */
.kbp { display: grid; gap: clamp(48px, 7vw, 80px); }
.kbp-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.kbp-stage {
  position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(41, 61, 120, 0.2), rgba(48, 32, 63, 0.12) 45%, transparent 70%);
}
.kbp-stage__floor { position: absolute; left: 18%; right: 18%; bottom: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-3), transparent); }
.kb-show { position: absolute; inset: 4%; }
.kbp-controls .muted { margin: -6px 0 16px; }
.kbp-facts { margin-top: 32px; }
.emotes { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.emote { display: grid; place-items: center; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.emote img { width: 80px; height: 80px; }
.kbp-chat p { color: var(--text-2); }
@media (max-width: 860px) { .kbp-show { grid-template-columns: 1fr; } .kbp-stage { max-width: 360px; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(40px, 6vw, 64px); }
.socials { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.social__handle { margin-top: 14px; font-size: 0.85rem; color: var(--text-3); word-break: break-all; }
.business { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; align-items: end; padding: clamp(24px, 4vw, 44px); }
.business__text { font-size: 1.12rem; color: var(--text-2); max-width: 40rem; }
.business__email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0; }
.business__email .btn--primary { white-space: normal; text-align: left; min-height: 48px; }
.copy-note { font-size: 0.9rem; color: var(--text-2); }
.business__hint { margin-bottom: 8px; font-size: 0.92rem; }
.checks { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; }
.checks li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); }
.checks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--text-2); flex: none; transform: translateY(-1px); }
.kb-ack { width: 150px; height: 150px; }
@media (max-width: 700px) {
  .business { grid-template-columns: 1fr; }
  .kb-ack { width: 100px; height: 100px; justify-self: end; margin-top: -20px; }
}

/* ---------- 404 ---------- */
.lost { display: grid; gap: 24px; justify-items: start; }
.kb-lost { width: 200px; height: 200px; margin: -40px 0 -30px -20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(to bottom, rgba(8, 9, 12, 0.4), rgba(8, 9, 12, 0.9)); padding-top: 48px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1.4fr 1fr; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1rem/1 var(--font-display); letter-spacing: 0.16em; border-radius: 6px; }
.footer-brand > span > span { color: var(--text-2); }
.footer-brand__mark { width: 44px; fill: var(--text); }
.footer-note { margin-top: 16px; color: var(--text-3); max-width: 22rem; font-size: 0.95rem; }
.footer-h { font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  color: var(--text-2); text-decoration: none; font-size: 0.97rem;
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-id { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- static fallback (before the app loads / no JavaScript) ---------- */
.static-note { margin-top: 20px; color: var(--text-2); }
.static-note a { color: var(--text); }

/* ---------- reduced motion: keep content, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .kb--zz::after { display: none; }
  ::view-transition-old(page), ::view-transition-new(page) { animation: none; }
}
