/* ==========================================================================
   VaultFN
   Layout: a TURA-style presentation sheet. Each section is a framed dark
   "screen" numbered .01, .02 … on a wave-textured stage. Socials rail on the
   left edge, page pager 01–05 on the right, a soft spotlight follows the
   pointer across each screen. One look, dark by design.
   ========================================================================== */
:root {
  /* color */
  --stage: #0a0b0e;
  --slab: #131418;
  --slab-hi: #1c1d23;
  --well: #0d0e11;
  --line: #26282f;
  --line-hi: #393b44;
  --fg: #efeee9;
  --fg-2: #c3c2bd;
  --muted: #868893;
  --void: #9d60f4;
  --comp: #5edca6;
  --vip: #ff5fae;
  --vip-2: #45b5ff;
  --agency: #dfe2e8;
  --twitch: #a774ff;
  --tiktok: #25f4ee;
  --tiktok-2: #fe2c55;
  --blurple: #5865f2;
  --ok: #5edca6;
  --warn: #e8b64c;
  --danger: #ff7a85;
  --syn-k: #c49bff;
  --syn-s: #8fe3bd;
  --syn-d: #f2c879;
  --syn-n: #ff9cc9;

  /* type */
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-xs: .6875rem;
  --t-sm: .875rem;
  --t-md: 1rem;
  --t-lg: 1.1875rem;
  --t-xl: 1.5rem;
  --t-2xl: clamp(1.9rem, 4.4vw, 3rem);
  --t-3xl: clamp(2.6rem, 8vw, 5.4rem);

  /* frame */
  --gutter: 16px;
  --max: 1120px;
  --pad: clamp(24px, 5.2vw, 64px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--stage);
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--stage);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.65;
  padding-inline: var(--gutter);
  padding-block: 0 40px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--stage); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  padding: 10px 14px; border-radius: 3px;
  background: var(--fg); color: var(--stage);
  font-family: var(--mono); font-size: 12px; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- stage: wave texture + grain ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--stage) url("img/waves.webp") center 30% / cover no-repeat;
}
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 65% at 50% 0%, rgba(10, 11, 14, .62), rgba(10, 11, 14, .9) 62%, rgba(10, 11, 14, .97));
}
.backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type utilities ---------- */
.eyebrow {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.display {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0; line-height: .92;
}
.lede { font-size: var(--t-lg); color: var(--fg-2); max-width: 52ch; }
.lede strong { color: var(--fg); font-weight: 500; }
.muted { color: var(--muted); }

/* ---------- buttons, pills ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  --b: var(--line-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--well);
  border: 1px solid var(--b); border-radius: 3px; cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .95);
  transition: transform .2s var(--ease), border-color .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); --b: var(--muted); }
.btn:active { transform: none; }
.btn-solid { --b: var(--fg); background: var(--fg); color: var(--stage); }
.btn-solid:hover { --b: #fff; background: #fff; }
.btn-accent { --b: var(--accent, var(--fg)); background: var(--well); }
@supports (background: color-mix(in srgb, red 10%, blue)) {
  .btn-accent { background: color-mix(in srgb, var(--accent, var(--fg)) 15%, var(--well)); }
  .btn-accent:hover { background: color-mix(in srgb, var(--accent, var(--fg)) 26%, var(--well)); --b: var(--accent, var(--fg)); }
}
.btn-sm { min-height: 38px; padding: 0 16px; }
.btn .arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-hi); border-radius: 999px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-2);
}
.pill-accent { color: var(--accent, var(--fg)); border-color: var(--accent, var(--fg)); }
.pill-accent::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, var(--fg)); box-shadow: 0 0 10px var(--accent, var(--fg));
}


.copy-btn {
  flex: none; background: none; cursor: pointer;
  border: 1px solid var(--line-hi); border-radius: 3px; padding: 6px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--fg); border-color: var(--muted); }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
}
.top::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 14, .95), rgba(10, 11, 14, .7) 70%, rgba(10, 11, 14, 0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask: linear-gradient(#000 62%, transparent); mask: linear-gradient(#000 62%, transparent);
}
.top-in {
  position: relative; max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 20px 24px;
}
.mark {
  display: inline-grid; grid-template-columns: auto auto; gap: 2px 3px;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 15px; line-height: .9;
  text-decoration: none;
}
.mark span:last-child { grid-column: 1 / -1; justify-self: center; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
.nav a:not(.btn) {
  position: relative; padding-block: 8px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn {
  display: none; align-items: center; gap: 12px; min-height: 42px; padding: 0 16px;
  background: var(--well); border: 1px solid var(--line-hi); border-radius: 3px; cursor: pointer;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
}
.menu-btn .bars { width: 16px; height: 8px; border-block: 1.5px solid currentColor; }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 11, 14, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.menu-head { display: flex; align-items: center; justify-content: space-between; padding-block: 10px 14px; }
.menu .menu-btn { display: inline-flex; }
.menu-links { display: grid; margin-top: 18px; list-style: none; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 16px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg-2);
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 8.6vw, 44px); line-height: 1;
  animation: menuIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.menu-links a .eyebrow { flex: none; width: 2.2em; font-weight: 500; }
.menu-links a[aria-current="page"] { color: var(--fg); }
.menu-foot { margin-top: auto; padding-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes menuIn { from { transform: translateY(14px); opacity: .25; } }

/* ---------- side rails (wide screens) ---------- */
.rail {
  position: fixed; top: 50%; z-index: 20; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 14px;
}
@media (min-width: 1320px) { .rail { display: flex; } }
.rail-l { left: 28px; }
.rail-l::before, .rail-l::after { content: ""; width: 1px; height: 56px; }
.rail-l::before { background: linear-gradient(transparent, var(--line-hi)); }
.rail-l::after { background: linear-gradient(var(--line-hi), transparent); }
.rail-l a {
  padding: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.rail-l a:hover { color: var(--fg); }
.rail-r { right: 24px; }
.pager-n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.pager { display: grid; gap: 6px; list-style: none; }
.pager a { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
.pager a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  transition: transform .2s var(--ease), background-color .2s;
}
.pager a:hover::before { background: var(--fg); transform: scale(1.4); }
.pager a[aria-current="page"]::before {
  width: 14px; height: 14px; transform: none;
  border: 1.5px solid var(--fg);
  background: radial-gradient(circle, var(--fg) 0 2.4px, transparent 3px);
}
.pager a::after {
  content: attr(data-label);
  position: absolute; right: 30px; top: 50%; transform: translate(6px, -50%);
  padding: 5px 8px; white-space: nowrap; pointer-events: none; opacity: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); background: var(--slab); border: 1px solid var(--line-hi); border-radius: 3px;
  transition: opacity .2s, transform .2s var(--ease);
}
.pager a:hover::after, .pager a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- screens ---------- */
main { position: relative; z-index: 1; max-width: var(--max); margin-inline: auto; display: grid; gap: 76px; }
.screen {
  position: relative; isolation: isolate; container-type: inline-size;
  padding: var(--pad);
  background: var(--slab);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 60px 100px -50px rgba(0, 0, 0, .95);
}
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(75% 60% at 50% -8%, var(--slab-hi), transparent 72%);
}
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .05), transparent 62%);
  opacity: 0; transition: opacity .5s;
}
.screen.is-lit::after { opacity: 1; }
.screen-no {
  position: absolute; left: 2px; bottom: -32px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted);
}
.deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }

@keyframes rise { from { opacity: .45; transform: translateY(18px); } }
main > * { animation: rise .9s var(--ease) both; }
main > :nth-child(2) { animation-delay: .07s; }
main > :nth-child(3) { animation-delay: .14s; }
main > :nth-child(n+4) { animation-delay: .2s; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 32px; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { max-width: 46ch; color: var(--muted); }

/* ---------- sheet header (top of inner pages) ---------- */
.sheet { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); padding-block: clamp(12px, 3vw, 28px) 0; }
.sheet-title { align-self: center; display: grid; gap: 8px; text-align: center; }
.sheet-title > .eyebrow:first-child { justify-self: start; }
.sheet-title > .eyebrow:last-child { justify-self: end; }
.sheet-h { font-size: var(--t-3xl); text-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
.sheet-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.sheet-cell { display: grid; gap: 8px; min-width: 0; }
.sheet-cell.end { justify-items: end; text-align: right; }
.sheet-val {
  font-family: var(--display); font-stretch: 125%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: .02em; line-height: 1.2; overflow-wrap: anywhere;
}
.sheet-val.lower { text-transform: none; font-stretch: 112%; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-hi); border-radius: 999px; text-decoration: none;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
  transition: border-color .2s, color .2s;
}
.swatch::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.swatch:hover { border-color: var(--c); color: var(--fg); }

/* ---------- home: hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
  padding-block: clamp(44px, 7vw, 96px);
}
.ghost {
  position: absolute; top: -.2em; right: -.05em;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(150px, 26vw, 330px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 238, 233, .055); user-select: none;
}
.hero-copy { container-type: inline-size; min-width: 0; display: grid; gap: 28px; justify-items: start; }
.name {
  display: grid;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  line-height: .86; letter-spacing: -.005em;
  font-size: clamp(54px, 11vw, 140px);
  font-size: clamp(54px, 23cqi, 156px);
  margin-top: -6px;
}
.name-1 { text-shadow: 0 24px 48px rgba(0, 0, 0, .6); }
.name-2 { display: flex; align-items: flex-end; gap: .2em; }
.name-2 .fn { color: transparent; -webkit-text-stroke: max(1.5px, .016em) var(--fg); }
.roles {
  list-style: none; display: grid; gap: 3px; padding-bottom: .08em;
  font-family: var(--mono); font-stretch: normal; font-weight: 400; font-size: 11px; line-height: 1.55;
  letter-spacing: .18em; color: var(--fg-2);
}
.roles > span { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.roles > span::before { content: ""; width: 14px; height: 1px; background: var(--muted); }

.vault {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 4 / 5;
  border: 1px solid var(--line-hi); border-radius: 4px;
  background: var(--well) url("img/waves.webp") center / cover;
  box-shadow: 0 44px 80px -30px rgba(0, 0, 0, .95);
}
.vault::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(68% 52% at 50% 46%, rgba(10, 11, 14, .1), rgba(10, 11, 14, .8));
}
.dial {
  position: relative; width: 84%; aspect-ratio: 1; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .75));
}
.dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dial:focus-visible { outline-offset: 8px; border-radius: 50%; }
.d-bezel { fill: #0f1013; stroke: var(--line-hi); stroke-width: 1.5; }
.d-face { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.d-tick { stroke: var(--fg-2); stroke-linecap: round; }
.d-tick.s { stroke-width: 1; opacity: .4; }
.d-tick.m { stroke-width: 1.5; opacity: .7; }
.d-tick.l { stroke-width: 2.6; }
.d-num { fill: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.d-ring { transform-origin: 200px 200px; }
.d-inner { fill: none; stroke: var(--line-hi); stroke-width: 1; }
.d-knob { stroke: #2d2f37; stroke-width: 1; }
.d-knurl { stroke: rgba(255, 255, 255, .09); stroke-width: 1.3; }
.d-v { fill: var(--fg); transition: fill .4s; }
.d-mark { fill: var(--fg); }
.dial.is-locking .d-v { fill: #64666f; }
.dial.is-open .d-v { animation: unlock 1.3s var(--ease); }
@keyframes unlock {
  0% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  30% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, .6)); }
  100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
}
.vault-state {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2);
}
.vault-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.vault.is-locking .vault-state::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.tag {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; white-space: nowrap;
  font-size: var(--t-sm); font-weight: 500;
  background: rgba(19, 20, 24, .88); border: 1px solid var(--line-hi); border-radius: 3px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .9);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.tag-1 { top: 8%; right: 5%; }
.tag-2 { top: 57%; left: 4%; }
.tag-3 { bottom: 8%; right: 6%; }
.scroll-cue {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue::after {
  content: ""; width: 1px; height: 44px; transform-origin: top;
  background: linear-gradient(var(--muted), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- home: at a glance ---------- */
.glance { display: grid; gap: clamp(40px, 6vw, 64px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: grid; gap: 10px; align-content: start; padding: 4px clamp(18px, 3vw, 40px); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-n {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 7cqi, 86px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.stat-l { max-width: 26ch; color: var(--muted); font-size: var(--t-sm); }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.channel {
  --c: var(--fg);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: end; gap: 8px; min-height: 240px; padding: 28px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--well); text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease);
}
.channel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; transition: opacity .3s;
  background: radial-gradient(90% 85% at 88% 112%, var(--c), transparent 70%);
}
.channel:hover { transform: translateY(-3px); border-color: var(--c); }
.channel:hover::before { opacity: 1; }
.channel > .eyebrow { position: absolute; top: 26px; left: 28px; }
.channel-go {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.channel:hover .channel-go { color: var(--fg); }
.channel-name {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 6.6cqi, 72px); line-height: .95;
}
.channel-handle { font-family: var(--mono); font-size: var(--t-sm); color: var(--fg-2); overflow-wrap: anywhere; }
.channel.twitch { --c: rgba(167, 116, 255, .42); }
.channel.twitch .channel-name { text-shadow: 0 0 34px rgba(167, 116, 255, .55); }
.channel.tiktok { --c: rgba(37, 244, 238, .22); }
.channel.tiktok::before {
  background:
    radial-gradient(70% 75% at 100% 115%, rgba(254, 44, 85, .34), transparent 70%),
    radial-gradient(70% 75% at 66% 125%, rgba(37, 244, 238, .26), transparent 70%);
}
.channel.tiktok .channel-name { text-shadow: -.035em -.02em 0 var(--tiktok), .035em .02em 0 var(--tiktok-2); }

/* ---------- home: roster ---------- */
.roster { list-style: none; display: grid; border-top: 1px solid var(--line); }
.roster li {
  --accent: var(--fg);
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 18px 14px; margin-inline: -14px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
@supports (background: color-mix(in srgb, red 10%, blue)) {
  .roster li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
}
.roster img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-hi); transition: transform .3s var(--ease); }
.roster li:hover img { transform: scale(1.06); }
.r-name { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.r-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.r-meta .role { color: var(--accent); }
.r-go {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.r-go::after { content: ""; position: absolute; inset: 0; }
.roster li:hover .r-go { color: var(--fg); }

/* ---------- home: hire ---------- */
.cta-slab { display: grid; justify-items: center; gap: 24px; text-align: center; padding-block: clamp(64px, 10vw, 120px); }
.cta-slab h2 { font-size: clamp(46px, 10.5cqi, 128px); }
.cta-slab p { max-width: 46ch; color: var(--fg-2); font-size: var(--t-lg); }
.cta-slab .cta-row { justify-content: center; }
.ring-bg {
  position: absolute; left: 50%; top: 50%; width: min(980px, 150%); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(239, 238, 233, .11) 0 .35deg, transparent .35deg 3.6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 59%, #000 59.5% 66%, transparent 66.5%);
  mask: radial-gradient(circle, transparent 0 59%, #000 59.5% 66%, transparent 66.5%);
  animation: slowspin 160s linear infinite;
}
@keyframes slowspin { to { rotate: 360deg; } }

/* ---------- servers ---------- */
.server.void { --accent: var(--void); }
.server.comp { --accent: var(--comp); }
.server.agency { --accent: var(--agency); }
.server.vip { --accent: var(--vip); }
.glow { position: absolute; inset: 0; }
@supports (background: color-mix(in srgb, red 10%, blue)) {
  .glow { background: radial-gradient(55% 55% at var(--gx, 50%) var(--gy, 32%), color-mix(in srgb, var(--accent) 17%, transparent), transparent 72%); }
  .vip .glow {
    background:
      radial-gradient(40% 45% at 22% 28%, color-mix(in srgb, var(--vip) 15%, transparent), transparent 72%),
      radial-gradient(40% 45% at 30% 78%, color-mix(in srgb, var(--vip-2) 14%, transparent), transparent 72%);
  }
}
.server-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: .92; }
.server-desc { max-width: 56ch; color: var(--fg-2); }
.invite { font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); overflow-wrap: anywhere; }

.stage {
  position: relative; max-width: 1000px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) minmax(0, 1fr); align-items: center;
}
.stage-card {
  position: relative; overflow: hidden; border-radius: 4px; background: var(--well);
  border: 1px solid var(--line-hi); box-shadow: 0 34px 64px -26px rgba(0, 0, 0, .95);
}
.stage-main { z-index: 2; }
.stage-main img { width: 100%; aspect-ratio: 1024 / 361; object-fit: cover; }
.stage-side { z-index: 1; transition: transform .6s var(--ease), filter .6s; }
.stage-l { margin-right: -16%; transform: scale(.88); transform-origin: right center; filter: brightness(.8); }
.stage-l img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stage-r { margin-left: -16%; transform: scale(.88); transform-origin: left center; }
.stage:hover .stage-l { transform: scale(.93); filter: brightness(1); }
.stage:hover .stage-r { transform: scale(.93); }
.stage-stat {
  aspect-ratio: 1; display: grid; align-content: center; justify-items: center; gap: 6px;
  padding: 12px 12px 12px 20%; text-align: center;
  background: radial-gradient(110% 90% at 60% 0%, rgba(157, 96, 244, .38), var(--well) 75%);
}
.stage-stat .num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 5.4cqi, 60px); line-height: 1; }
.stage-stat .eyebrow { color: var(--fg-2); }
.stage-name { position: relative; z-index: 3; margin-top: -.4em; text-align: center; font-size: clamp(40px, 9.4cqi, 124px); text-shadow: 0 20px 44px rgba(0, 0, 0, .85); }
.stage-body { display: grid; justify-items: center; gap: 18px; margin-top: 22px; text-align: center; }
.stage-body .pills { justify-content: center; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip .server-art { order: 2; }
.server-art { position: relative; }
.server-art::before {
  content: ""; position: absolute; inset: 6% 6% -8%; z-index: -1; border-radius: 50%;
  background: var(--accent); opacity: .3; filter: blur(46px);
}
.vip .server-art::before { background: linear-gradient(135deg, var(--vip), var(--vip-2)); }
.agency .server-art::before { opacity: .14; }
.server-art img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line-hi); box-shadow: 0 44px 74px -30px rgba(0, 0, 0, .95);
  transition: transform .6s var(--ease);
}
.server-art:hover img { transform: translateY(-4px) rotate(-1deg); }
.server-body { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.split .server-name { font-size: clamp(34px, 6.2cqi, 70px); }

/* ---------- developer ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.intro-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.intro-copy h2 { font-size: clamp(40px, 7cqi, 86px); }
.demo { position: relative; min-width: 0; }
.window {
  overflow: hidden; border: 1px solid var(--line-hi); border-radius: 6px; background: var(--well);
  box-shadow: 0 44px 80px -36px rgba(0, 0, 0, .95);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; flex: none; margin-right: 8px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-hi); }
.tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 5px 11px; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  transition: color .2s, background-color .2s, border-color .2s;
}
.tab:hover { color: var(--fg-2); }
.tab[aria-selected="true"] { color: var(--fg); background: var(--slab); border-color: var(--line-hi); }
.out-web { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #141519; }
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-hi); }
.mini-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mini-page {
  flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 22px 16px 26px; text-align: center;
  background: radial-gradient(80% 90% at 50% 0%, var(--slab-hi), #111216);
}
.mini-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1; }
.mini-btn { margin-top: 6px; padding: 7px 14px; border-radius: 3px; background: var(--fg); color: var(--stage); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.out-js { display: flex; flex-direction: column; }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console {
  flex: 1; margin: 12px 0 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--syn-s);
  background: #111216; border: 1px solid var(--line); border-radius: 4px;
}
.build-group + .build-group { margin-top: 30px; }
.group-label { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code {
  margin: 0; padding: 18px 20px 56px; overflow-x: auto; min-height: calc(29.75em + 74px);
  font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--fg-2); tab-size: 4;
}
.code code { font: inherit; }
.tk { color: var(--syn-k); } .ts { color: var(--syn-s); } .td { color: var(--syn-d); }
.tc { color: var(--muted); } .tn { color: var(--syn-n); } .tf { color: var(--fg); }
.reply {
  position: relative; z-index: 2; width: min(92%, 400px); min-height: 264px; margin: -40px 18px 0 auto;
  padding: 14px 16px 16px; border-radius: 8px;
  background: #1b1c21; border: 1px solid var(--line-hi);
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 1);
}
.used { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.used::before {
  content: ""; width: 26px; height: 11px; margin: 7px 0 0 18px; flex: none;
  border-left: 2px solid var(--line-hi); border-top: 2px solid var(--line-hi); border-top-left-radius: 6px;
}
.used code { font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--stage);
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 17px;
}
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.app-tag { padding: 1px 5px; border-radius: 3px; background: var(--blurple); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.embed { display: grid; gap: 10px; margin-top: 8px; padding: 10px 14px 12px; border-left: 4px solid var(--void); border-radius: 4px; background: #141519; }
.embed-title { font-size: 15px; font-weight: 600; }
.embed-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.embed-fields b { display: block; font-size: 13px; font-weight: 600; }
.embed-fields span { display: block; font-size: 13.5px; color: var(--fg-2); overflow-wrap: anywhere; }
.embed-fields .wide { grid-column: 1 / -1; }

.tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: 4px;
}
.tile { display: grid; align-content: start; gap: 8px; padding: 26px 22px 30px; background: var(--slab); transition: background-color .25s; }
.tile:hover { background: var(--slab-hi); }
.tile svg { width: 28px; height: 28px; margin-bottom: 10px; color: var(--fg-2); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: color .25s; }
.tile:hover svg { color: var(--fg); }
.tile h3 { font-size: 1.125rem; font-weight: 600; }
.tile p { font-size: var(--t-sm); color: var(--muted); }


.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { display: grid; align-content: start; gap: 10px; padding-right: 22px; }
.step-n { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; color: var(--muted); }
.step-n::after { content: ""; flex: 1; height: 1px; background: var(--line-hi); }
.step:last-child .step-n::after { background: linear-gradient(90deg, var(--line-hi), transparent); }
.step h3 { font-size: 1.25rem; font-weight: 600; }
.step p { font-size: var(--t-sm); color: var(--muted); overflow-wrap: anywhere; }
.free {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 40px;
  margin-top: clamp(44px, 6vw, 68px); padding-top: clamp(32px, 5vw, 52px); border-top: 1px solid var(--line);
}
.free-word { font-size: clamp(60px, 11cqi, 136px); }
.free p { max-width: 40ch; color: var(--fg-2); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 20px; min-width: 0; }
.contact-info h2 { font-size: var(--t-2xl); }
.info-list { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.info { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.info dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; font-size: 1.0625rem; }
.info dd > span, .info dd > a { min-width: 0; overflow-wrap: anywhere; }
.info dd a { text-decoration: none; }
.info dd a:hover { text-decoration: underline; }
.hint { font-size: var(--t-sm); color: var(--muted); max-width: 48ch; }
.form-card {
  padding: clamp(24px, 4vw, 40px); border-radius: 6px;
  background: var(--well); border: 1px solid var(--line-hi);
  box-shadow: 0 44px 80px -40px rgba(0, 0, 0, 1);
}
.form-card h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; text-align: center; font-size: clamp(22px, 3cqi, 32px); }
.field { display: grid; gap: 4px; margin-top: 22px; }
.field label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 0 10px;
  font: inherit; font-size: 1rem; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-hi); border-radius: 0; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5d5f68; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--fg); box-shadow: 0 1px 0 var(--fg); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.field textarea { min-height: 116px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23868893' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 2px center;
}
.field select option { background: var(--slab); color: var(--fg); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.form-status { min-height: 1.6em; margin-top: 14px; font-size: var(--t-sm); color: var(--fg-2); text-align: center; }
.form-note { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.msg-preview {
  margin: 4px 0 12px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--fg-2);
  border: 1px dashed var(--line-hi); border-radius: 4px; user-select: all;
}
.msg-preview:empty { display: none; }

/* ---------- terms ---------- */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(104px + env(safe-area-inset-top, 0px)); display: grid; }
.toc a { display: flex; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); text-decoration: none; transition: color .2s; }
.toc a:first-child { border-top: 1px solid var(--line); }
.toc a span { font-family: var(--mono); font-size: var(--t-xs); padding-top: 2px; }
.toc a:hover { color: var(--fg); }
.legal { max-width: 70ch; min-width: 0; }
.legal section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal h2 {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3.2cqi, 30px);
}
.legal h2 .num { font-family: var(--mono); font-stretch: normal; font-size: var(--t-xs); font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.legal h3 { margin: 26px 0 8px; font-size: 1.0625rem; font-weight: 600; }
.legal p, .legal li { color: var(--fg-2); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 1.2em; }
.legal li::marker { color: var(--muted); }
.legal .cta-row { margin-top: 20px; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--t-sm); }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--well); }
td { color: var(--fg-2); }
tr:last-child td { border-bottom: 0; }
td code, .legal code { font-family: var(--mono); font-size: .85em; color: var(--fg); background: var(--well); padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; }

/* ---------- 404 ---------- */
.lost { display: grid; justify-items: center; gap: 22px; text-align: center; padding-block: clamp(48px, 8vw, 96px); }
.lost .dial { width: min(280px, 70%); cursor: default; }
.lost h1 { font-size: clamp(36px, 7cqi, 80px); }
.lost p { color: var(--fg-2); max-width: 40ch; }

/* ---------- footer ---------- */
.outro { position: relative; z-index: 1; max-width: var(--max); margin: 100px auto 0; display: grid; justify-items: center; gap: 10px; text-align: center; }
.end-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5.4vw, 56px); line-height: 1; }
.end-follow { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.end-follow:hover { color: var(--fg); }
.end-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 30px; }
.end-nav a { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.end-nav a:hover { color: var(--fg); }
.end-meta {
  width: 100%; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  font-size: 13px; color: var(--muted); text-align: left;
}
.end-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  padding: 7px 13px; background: none; cursor: pointer;
  border: 1px solid var(--line-hi); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
  transition: color .2s, border-color .2s;
}
.chip-btn:hover { color: var(--fg); border-color: var(--muted); }

/* ---------- cookies ---------- */
.cookie {
  position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 540px; margin-inline: auto; padding: 22px;
  display: grid; gap: 16px;
  background: rgba(27, 28, 34, .97); border: 1px solid var(--line-hi); border-radius: 8px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 1);
  animation: cookieIn .5s var(--ease) both;
}
@keyframes cookieIn { from { transform: translateY(22px); opacity: .3; } }
.cookie-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie p { font-size: var(--t-sm); color: var(--fg-2); }
.cookie p a { color: var(--fg); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie .btn { min-height: 40px; padding: 0 16px; }
.cookie-settings { display: grid; padding-top: 6px; border-top: 1px solid var(--line); }
.switch-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-block: 12px; cursor: pointer; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-row strong { display: block; font-size: var(--t-sm); font-weight: 600; }
.switch-row small { display: block; font-size: 13px; color: var(--muted); }
.switch-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-hi); transition: background-color .2s; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--fg); transition: transform .2s var(--ease);
}
.switch-row input:checked + .switch { background: var(--ok); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:disabled + .switch { opacity: .55; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--fg); outline-offset: 3px; }

.toast {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px;
  background: var(--fg); color: var(--stage);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-align: center;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .9);
  animation: toastIn .3s var(--ease) both;
}
@keyframes toastIn { from { transform: translate(-50%, 10px); opacity: .3; } }

/* ---------- responsive ---------- */
@media (min-width: 881px) {
  .tag-1 { right: -18px; }
  .tag-2 { left: -24px; }
}
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  main { gap: 68px; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 48px; }
  .vault { max-width: 440px; justify-self: center; }
  .scroll-cue { display: none; }
  .intro, .contact { grid-template-columns: 1fr; }
  .free { grid-template-columns: 1fr; justify-items: start; }
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 18px; }
  .toc a:nth-child(-n+2) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .server-art { order: 0; }
  .server-art { max-width: 300px; }
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stage-main { grid-column: 1 / -1; order: -1; }
  .stage-l, .stage-r { margin: 0; transform: none; filter: none; }
  .stage:hover .stage-l, .stage:hover .stage-r { transform: none; }
  .stage-stat { padding: 12px; }
  .stage-name { margin-top: 26px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 0 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-top: 24px; }
  .stat:last-child { padding-bottom: 0; border-bottom: 0; }
  .channels { grid-template-columns: 1fr; }
  .channel { min-height: 196px; padding: 24px; }
  .channel > .eyebrow { top: 22px; left: 24px; }
  .channel-go { top: 20px; right: 22px; }
  .sheet-cell.end { justify-items: start; text-align: left; }
  .swatches { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .tiles, .steps { grid-template-columns: 1fr; }
  .roster li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .roster img { width: 48px; height: 48px; }
  .r-go { grid-column: 2; }
  .roles { font-size: 10px; letter-spacing: .14em; }
  .roles > span::before { width: 10px; }
  .info { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .tag { padding: 7px 11px; font-size: 13px; }
  .cookie { padding: 18px; gap: 12px; }
  .cookie p { font-size: 13px; }
  .cookie .btn { min-height: 38px; padding: 0 13px; letter-spacing: .12em; }
  .reply { width: 94%; margin-right: 3%; }
  .dots { display: none; }
}

/* ---------- motion preferences ---------- */
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after {
  animation: none !important; transition-duration: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) { scroll-behavior: auto; }
  :root:not([data-motion="on"]) *, :root:not([data-motion="on"]) *::before, :root:not([data-motion="on"]) *::after {
    animation: none !important; transition-duration: 0s !important;
  }
}
