/* Slonge Games — site styles. No build step. Fonts self-hosted (OFL). */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Ground, surfaces and ink are taken from the game's night sky and bone lettering. */
  --night: #17112b;
  --night-2: #1f1838;
  --night-3: #2a2148;
  --night-4: #362b5a;
  --bone: #f4ead8;
  --bone-2: #cdc2de;
  --ember: #ffb02e;
  --ember-2: #ffc861;
  --field: var(--night);

  --display: "Lilita One", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five sizes do the work. */
  --t-mega: clamp(3.5rem, 15.5vw, 15rem);
  --t-display: clamp(2.25rem, 6.2vw, 6rem);
  --t-row: clamp(1.75rem, 3.4vw, 3.1rem);
  --t-lead: clamp(1.25rem, 1.7vw, 1.6rem);
  --t-body: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --t-small: 0.9375rem;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1400px;
  --section: clamp(88px, 10vw, 168px);
  --bar-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ember);
  scrollbar-color: var(--night-4) var(--night);
  overflow-x: clip;
}
img, video, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--night); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--night-4); border-radius: 12px; border: 3px solid var(--night); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ember); color: var(--night); font-weight: 800; padding: 12px 18px; border-radius: 999px;
  text-decoration: none; transition: top var(--t-ui) var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 { font-size: var(--t-display); }
h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-row); line-height: 1; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.38; font-weight: 700; max-width: 34ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
p { text-wrap: pretty; }
.measure { max-width: 62ch; }
.small { font-size: var(--t-small); }
.num { font-variant-numeric: tabular-nums; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; color: var(--ember-2); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.7em 1.45em;
  border: 0; border-radius: 999px;
  background: var(--ember); color: var(--night);
  font-family: var(--text); font-weight: 900; font-size: 1.0625rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ember-2); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--ghost { background: var(--night-3); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--night-4); } }
.btn--small { min-height: 42px; padding: 0.45em 1.1em; font-size: 0.975rem; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  background: transparent;
  transition: background-color var(--t-ui) ease;
}
.bar.is-solid, .bar--solid { background: var(--night); }
.bar__in { height: 100%; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: 1.35rem; line-height: 1; letter-spacing: -0.005em; white-space: nowrap;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand img.brand__mascot { width: 40px; height: auto; border-radius: 0; }
.brand__sg {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--ember); color: var(--night); font-size: 1rem;
}
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 800; font-size: 1rem; padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; /* underline grow (a line that draws, not a gradient fill) */
  transition: background-size var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background-size: 100% 2px; } }
.nav a[aria-current="page"] { background-size: 100% 2px; }
.bar .btn { margin-left: 0; }
@media (max-width: 860px) { .nav--hide-sm { display: none; } .nav--hide-sm + .btn { margin-left: auto; } }

/* ---------- reveal (content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* Shutter: a cover in the section's own colour lifts off the picture (transform only, so lazy images still load). */
  .js .shutter { position: relative; overflow: hidden; }
  .js .shutter::after { content: ""; position: absolute; inset: 0; background: var(--field); transform-origin: 50% 0; transition: transform 1100ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .shutter > img, .js .shutter > picture img { transform: scale(1.12); transition: transform 1600ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .shutter.is-in::after { transform: scaleY(0); }
  .js .shutter.is-in > img, .js .shutter.is-in > picture img { transform: none; }
}

/* =========================================================
   GAME PAGE
   ========================================================= */

/* Hero: the game's own title screen, full bleed. */
.title {
  position: relative; min-height: 100svh; display: grid;
  grid-template-rows: auto 1fr auto; isolation: isolate;
  padding-top: calc(var(--bar-h) + clamp(8px, 3vh, 40px));
  padding-bottom: clamp(28px, 6vh, 72px);
  overflow: hidden;
}
.title__art { position: absolute; inset: 0; z-index: -2; }
.title__art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
/* Neutral scrims under text on a picture (top for the bar + logo, bottom for the copy). */
.title::before, .title::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.title::before { top: 0; height: 34%; background: linear-gradient(to bottom, rgb(23 17 43 / 0.78), rgb(23 17 43 / 0)); }
.title::after { bottom: 0; height: 62%; background: linear-gradient(to top, rgb(23 17 43 / 0.96) 8%, rgb(23 17 43 / 0.72) 45%, rgb(23 17 43 / 0)); }
.title__top { display: grid; justify-items: center; }
.title__logo { width: min(80vw, 520px); }
.title__logo img { width: 100%; }
.title__copy { grid-row: 3; display: grid; gap: clamp(16px, 2.4vh, 24px); }
.title__line { font-size: clamp(2rem, 6.2vw, 6rem); }
.title__line .ln { display: block; }
.title__sub { font-size: var(--t-lead); font-weight: 700; line-height: 1.4; max-width: 36ch; }
.title__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.title__note { font-weight: 800; font-size: var(--t-small); color: var(--bone-2); }
@media (min-width: 800px) {
  .title { grid-template-columns: 1fr; }
  .title__art img { object-position: 50% 62%; }
  .title__top { justify-items: start; }
  .title__logo { width: clamp(320px, 30vw, 500px); }
  .title::before { height: 44%; background: linear-gradient(to bottom, rgb(23 17 43 / 0.7), rgb(23 17 43 / 0)); }
  .title::after { height: 70%; background: linear-gradient(to top, rgb(23 17 43 / 0.95) 4%, rgb(23 17 43 / 0.55) 42%, rgb(23 17 43 / 0)); }
}

/* Title-screen entrance: the logo lands, the line rises out of a mask, then the action. */
@media (prefers-reduced-motion: no-preference) {
  .js .title__art img { animation: settle 2400ms var(--ease-soft) both; }
  .js .title__logo { animation: land 1100ms var(--ease-out) 150ms both; }
  .js .title__line .ln { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .js .title__line .ln > span { display: block; animation: line-up 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + 520ms); }
  .js .title [data-rise] { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 760ms); }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes land { from { opacity: 0; transform: translateY(-18px) scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Section shells */
.sec { padding-block: var(--section); background: var(--field); }
.sec--2 { --field: var(--night-2); }
.sec--3 { --field: var(--night-3); }

/* Play: the trailer in a phone, the rules beside it. */
.play { display: grid; gap: clamp(48px, 7vw, 120px); align-items: center; }
.phone {
  position: relative; width: min(100%, 380px); margin-inline: auto;
  padding: 10px; border-radius: 46px; background: var(--night-4);
}
.phone video, .phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 37px; background: var(--night); }
.phone__toggle {
  position: absolute; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(23 17 43 / 0.82); color: var(--bone); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.phone__toggle:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .phone__toggle:hover { background: var(--night); } }
.phone__toggle svg { width: 18px; height: 18px; }
.phone__toggle .i-play { display: none; }
.phone.is-paused .phone__toggle .i-play { display: block; }
.phone.is-paused .phone__toggle .i-pause { display: none; }
.play__copy { display: grid; gap: clamp(24px, 3vw, 40px); align-content: center; }
.facts { display: grid; gap: 22px; max-width: 40rem; }
.facts div { display: grid; gap: 4px; }
.facts dt { font-family: var(--display); font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.05; }
.facts dd { max-width: 46ch; }
@media (min-width: 900px) {
  .play { grid-template-columns: minmax(300px, 5fr) 7fr; }
  .play .phone { position: sticky; top: calc(var(--bar-h) + 6vh); margin: 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}

/* Evolutions: the names are the picture. */
.evo { display: grid; gap: clamp(40px, 5vw, 72px); }
.evo__main { display: grid; gap: clamp(28px, 3.4vw, 48px); align-content: start; }
.evo__main .lead { max-width: 40ch; }
.evo__wall {
  display: flex; flex-wrap: wrap; gap: 0.1em 0.4em;
  font-family: var(--display); font-size: clamp(1.75rem, 3.7vw, 3.6rem); line-height: 1.05; letter-spacing: -0.012em;
}
.evo__wall li { color: var(--bone); }
.evo__wall li:nth-child(odd) { color: var(--bone-2); }
@media (prefers-reduced-motion: no-preference) {
  .js .evo__wall li { opacity: 0.12; transform: translateY(0.25em); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .evo__wall.is-in li { opacity: 1; transform: none; }
}
.evo__fig { width: min(78%, 420px); }
.evo__fig img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.evo__fig figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--bone-2); font-weight: 700; }
@media (min-width: 900px) {
  .evo { grid-template-columns: 8fr 4fr; align-items: start; }
  .evo__fig { position: sticky; top: calc(var(--bar-h) + 5vh); justify-self: end; }
}

/* Worlds: pick one, the field takes its colour. */
.worlds { --theme: #8c80ff; --field: color-mix(in oklab, var(--theme) 17%, var(--night)); transition: background-color 700ms var(--ease-out); }
.worlds__grid { display: grid; gap: clamp(32px, 4vw, 64px); }
.worlds__head { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.worlds__list { display: grid; }
.worlds__tab {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px;
  width: 100%; padding: 0.22em 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--display); font-size: var(--t-row); line-height: 1.02; letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--bone) 42%, transparent);
  transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.worlds__tab small { font-family: var(--text); font-size: 1rem; font-weight: 800; letter-spacing: 0; color: var(--bone-2); opacity: 0; transform: translateX(-8px); transition: opacity var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.worlds__tab[aria-selected="true"] { color: var(--bone); transform: translateX(0.35em); }
.worlds__tab[aria-selected="true"] small { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .worlds__tab:hover { color: var(--bone); } }
.worlds__tab:focus-visible { outline-offset: 2px; }
.worlds__view { display: grid; gap: 20px; align-content: start; }
.worlds__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night); border-radius: 4px; }
.worlds__frame picture { display: contents; }
.worlds__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 420ms var(--ease-out), transform 900ms var(--ease-soft); }
.worlds__frame img.is-on { opacity: 1; transform: none; }
.worlds__desc { font-weight: 700; font-size: var(--t-lead); line-height: 1.35; min-height: 2.7em; max-width: 30ch; }
.worlds__boss { color: var(--bone-2); font-weight: 800; }
.worlds__boss b { color: var(--bone); font-weight: 900; }
@media (min-width: 900px) {
  .worlds__grid { grid-template-columns: 4fr 8fr; align-items: start; }
  .worlds__tab { font-size: clamp(1.7rem, 2.5vw, 2.5rem); }
  .worlds__frame { aspect-ratio: 16 / 9; }
  .worlds__desc { max-width: 46ch; min-height: 0; }
  .worlds__view { position: sticky; top: calc(var(--bar-h) + 4vh); }
}
@media (max-width: 899px) {
  .worlds__grid { grid-template-columns: 1fr; }
  .worlds__view { order: -1; }
  .worlds__list { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .worlds__tab { font-size: 1.3rem; padding: 0.4em 0; }
  .worlds__tab small { display: none; }
  .worlds__tab[aria-selected="true"] { transform: none; color: var(--ember); }
  .worlds__desc { min-height: 0; }
}

/* Chests: key art and the real capture, side by side at one size. */
.loot { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.loot__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); align-items: start; }
.loot__pair img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.loot__pair figcaption { margin-top: 10px; font-size: var(--t-small); font-weight: 700; color: var(--bone-2); }
.loot__copy { display: grid; gap: 24px; align-content: center; }
.tiers { display: grid; grid-template-columns: max-content 1fr; gap: 2px 20px; align-items: baseline; max-width: 34rem; }
.tiers li { display: contents; }
.tiers b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.6; }
.tiers span { color: var(--bone-2); font-size: 1rem; }
.tiers .t-bronze b { color: #e2a271; }
.tiers .t-silver b { color: #d6dcef; }
.tiers .t-gold b { color: var(--ember); }
.tiers .t-royal b { color: #d9a2ff; }
@media (min-width: 900px) { .loot { grid-template-columns: 6fr 5fr; } }
@media (max-width: 420px) { .tiers { grid-template-columns: 1fr; } .tiers span { margin-bottom: 8px; } }

/* Bosses: a full-bleed band, then the roll call. */
.boss { position: relative; padding: 0; background: var(--night); }
.boss__band { position: relative; height: clamp(420px, 78vh, 860px); overflow: hidden; }
.boss__band picture { position: absolute; inset: 0; }
.boss__band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.boss__band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgb(23 17 43 / 0.95), rgb(23 17 43 / 0)); }
.boss__title { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 64px); z-index: 1; }
.boss__body { display: grid; gap: clamp(40px, 5vw, 80px); padding-block: clamp(48px, 6vw, 96px) var(--section); }
.rollcall { display: grid; }
.rollcall div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; align-items: baseline; }
.rollcall div + div { box-shadow: none; }
.rollcall dt { font-weight: 800; color: var(--bone-2); }
.rollcall dd { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.05; }
.rollcall div:nth-child(odd) { background: color-mix(in oklab, var(--night-2) 70%, transparent); margin-inline: -14px; padding-inline: 14px; }
.boss__shot { width: min(100%, 340px); }
.boss__cols { display: grid; gap: clamp(40px, 5vw, 80px); }
.tiers3 { display: grid; gap: 28px clamp(24px, 4vw, 64px); }
.tiers3 h3 { grid-column: 1 / -1; }
.tiers3 li { display: grid; gap: 6px; align-content: start; }
.tiers3 li b { font-family: var(--display); font-weight: 400; font-size: var(--t-row); line-height: 1; }
.tiers3 li:nth-child(2) b { color: var(--ember); }
.tiers3 li:nth-child(3) b { color: #ff6b5e; }
.tiers3 ol { display: grid; gap: 28px clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .boss__cols { grid-template-columns: 7fr 4fr; align-items: start; } .boss__shot { justify-self: end; } .tiers3 ol { grid-template-columns: repeat(3, 1fr); } }

/* Heroes: the roster as an index. */
.heroes { display: grid; gap: clamp(48px, 6vw, 96px); }
.heroes__head { display: grid; gap: 24px; }
.roster { display: grid; gap: 0 clamp(24px, 4vw, 64px); }
.roster li { display: grid; gap: 4px; padding: 14px 0 16px; }
.roster h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.roster p { color: var(--bone-2); font-size: 1rem; max-width: 44ch; }
.roster p b { color: var(--bone); font-weight: 900; }
@media (hover: hover) and (pointer: fine) { .roster li:hover h3 { color: var(--ember); transform: translateX(6px); } }
.heroes__foot { display: grid; gap: 32px; }
@media (min-width: 900px) { .heroes__foot { grid-template-columns: 4fr 8fr; gap: clamp(32px, 4vw, 64px); align-items: end; } }
.heroes__pics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); align-items: start; }
.heroes__pics figure:nth-child(2) { margin-top: 18%; }
.heroes__pics figure:nth-child(3) { margin-top: 7%; }
.heroes__pics img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 900px) {
  .heroes__head { grid-template-columns: 7fr 5fr; align-items: end; }
  .roster { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) { .roster { grid-template-columns: 1fr 1fr 1fr; } }

/* Beta: one centred moment. */
.beta { text-align: center; }
.beta__in { display: grid; justify-items: center; gap: clamp(22px, 3vw, 36px); }
.beta__icon { width: clamp(112px, 12vw, 160px); aspect-ratio: 1; border-radius: 23%; overflow: hidden; }
.beta__icon img { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .beta__icon { transition: transform 500ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .beta__icon:hover { transform: rotate(-4deg) scale(1.04); } }
}
.beta h2 { max-width: 14ch; }
.beta .lead { max-width: 40ch; margin-inline: auto; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; text-align: left;
  padding: 12px 20px 12px 16px; border-radius: 16px; background: var(--night); min-width: 220px;
}
.store svg { width: 28px; height: 28px; color: var(--bone); }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 0.8125rem; font-weight: 800; color: var(--bone-2); }
.store b { font-weight: 900; font-size: 1.125rem; }
.beta__fine { color: var(--bone-2); font-weight: 700; font-size: var(--t-small); max-width: 52ch; }

/* =========================================================
   STUDIO PAGE
   ========================================================= */
/* Studio hero: name + statement, with the mascot as guide. */
.studio-hero { padding: calc(var(--bar-h) + clamp(32px, 7vh, 96px)) 0 clamp(24px, 4vw, 56px); }
.studio-hero__in { display: grid; gap: clamp(16px, 3vw, 40px); align-items: center; }
.studio-hero__copy { display: grid; gap: clamp(20px, 2.6vw, 32px); }
/* Studio wordmark: the mascot's own colours (blue line, gold-to-orange line), a navy outline with a short
   extrude underneath, the way the mascot lockup is lettered. Each letter is three layers: the real glyph
   (transparent, keeps layout and selection), ::before = outline + extrude, ::after = glossy fill. */
.wm { font-size: clamp(3.4rem, 10vw, 9rem); line-height: 0.92; letter-spacing: 0.01em; margin: 0; }
.wm__word { display: block; padding: 0.04em 0 0.14em 0.06em; }
.wm__line { display: block; white-space: nowrap; }
.wm__line--gold { padding-left: 0.42em; margin-top: -0.04em; }
.wm .ch {
  position: relative; display: inline-block; color: transparent; isolation: isolate;
  transform-origin: 50% 90%; -webkit-tap-highlight-color: transparent; cursor: default;
  --top: #9fe3ff; --mid: #3aa8ff; --bot: #1665f0; --ink: #0a0822; --side: #3b2f86; --side-2: #2a2166;
}
.wm__line--gold .ch { --top: #fff07a; --mid: #ffc21f; --bot: #ff7a12; }
.wm .ch::before, .wm .ch::after { content: attr(data-ch); position: absolute; left: 0; top: 0; pointer-events: none; }
.wm .ch::before {
  z-index: -1; color: var(--ink);
  -webkit-text-stroke: 0.16em var(--ink);
  text-shadow: 0 0.04em 0 var(--side), 0 0.075em 0 var(--side), 0 0.11em 0 var(--side-2), 0 0.135em 0 var(--side-2);
}
.wm .ch::after {
  color: transparent;
  background: linear-gradient(180deg, var(--top) 8%, var(--mid) 52%, var(--bot) 92%);
  -webkit-background-clip: text; background-clip: text;
}
/* Per-letter hue drift along each line, so the word reads as one sweep rather than two flat blocks. */
.wm__line--blue .ch:nth-child(4), .wm__line--blue .ch:nth-child(5) { --mid: #3f9dff; }
.wm__line--blue .ch:nth-child(6) { --top: #c7f0ff; --mid: #56b4ff; --bot: #2a62e8; }
.wm__line--gold .ch:nth-child(1) { --top: #fff7a8; --mid: #ffd84a; --bot: #ffa31a; }
.wm__line--gold .ch:nth-child(4), .wm__line--gold .ch:nth-child(5) { --mid: #ffb21f; --bot: #ff6a10; }
@media (prefers-reduced-motion: no-preference) {
  .js .wm:not(.is-in) .ch { animation: ch-pop 700ms cubic-bezier(0.34, 1.45, 0.64, 1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
  .wm .ch.is-jiggle { animation: ch-jiggle 620ms var(--ease-out) both; animation-delay: 0ms; }
  .wm.is-ripple .ch { animation: ch-hop 560ms var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
  @media (hover: hover) and (pointer: fine) { .wm .ch:hover { animation: ch-jiggle 620ms var(--ease-out) both; animation-delay: 0ms; } }
}
@keyframes ch-pop { 0% { opacity: 0; transform: translateY(0.45em) scale(0.6) rotate(-10deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes ch-jiggle { 0% { transform: none; } 25% { transform: translateY(-0.12em) rotate(-8deg) scale(1.06); } 50% { transform: translateY(0) rotate(6deg); } 75% { transform: rotate(-3deg); } 100% { transform: none; } }
@keyframes ch-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-0.16em) rotate(-3deg); } 70% { transform: translateY(0.02em); } }
.studio-hero .lead { max-width: 36ch; }
.guide { position: relative; justify-self: center; width: min(68vw, 440px); margin: 0; }
.guide__stage { position: relative; aspect-ratio: 1; width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.guide__stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.guide__clip { opacity: 0; pointer-events: none; }
.guide__clip.is-on { opacity: 1; }
.guide.is-live .guide__poster { opacity: 0; }
.guide__say {
  position: absolute; left: -4%; top: 4%; z-index: 1;
  background: var(--bone); color: var(--night); font-weight: 900; font-size: 1rem; line-height: 1.2;
  padding: 10px 16px; border-radius: 18px 18px 18px 4px;
  transition: transform 260ms var(--ease-out);
}
.guide.is-happy .guide__say { transform: translateY(-4px) rotate(-2deg); }
@media (prefers-reduced-motion: no-preference) {
}
@media (min-width: 900px) { .studio-hero__in { grid-template-columns: 7fr 5fr; } .guide { width: min(30vw, 440px); } }
@media (max-width: 899px) {
  .studio-hero__in { position: relative; }
  .guide { position: absolute; right: var(--gutter); top: -4px; width: min(36vw, 230px); }
  .guide__say { display: none; }
}
@media (max-width: 520px) { .nav__opt { display: none; } }

/* Level select: stage 1 unlocked, three locked stages. */
.stages__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.stages__head p { color: var(--bone-2); font-weight: 700; max-width: 38ch; }
.stages { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.stage { position: relative; border-radius: 28px; overflow: hidden; background: var(--night-2); isolation: isolate; }
.stage__tag { font-weight: 900; font-size: var(--t-small); }
.stage--open { min-height: clamp(540px, 70vh, 700px); display: grid; align-items: end; text-decoration: none; color: var(--bone); }
.stage--open .stage__art { position: absolute; inset: 0; z-index: -2; }
.stage--open .stage__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1200ms var(--ease-soft); }
.stage--open::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(23 17 43 / 0.95) 14%, rgb(23 17 43 / 0.5) 52%, rgb(23 17 43 / 0) 80%); }
.stage--open .stage__body { display: grid; gap: 16px; padding: clamp(22px, 3vw, 40px); }
.stage--open .stage__tag { color: var(--ember); }
.stage__logo { width: clamp(220px, 24vw, 380px); }
.stage__costume { position: absolute; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); width: clamp(120px, 13vw, 200px); z-index: 1; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .stage--open:hover .stage__costume { transform: translateY(-8px) rotate(-4deg); } }
@media (max-width: 600px) { .stage__costume { width: 104px; top: 16px; bottom: auto; } }
.stage--open p.stage__text { font-weight: 700; font-size: var(--t-lead); line-height: 1.35; max-width: 34ch; }
.stage__go { justify-self: start; }
@media (hover: hover) and (pointer: fine) {
  .stage--open:hover .stage__art img { transform: scale(1.04); }
  .stage--open:hover .btn { background: var(--ember-2); }
  .stage--open:hover .btn svg { transform: translateX(3px); }
}
.stage--open:active .btn { transform: scale(0.96); }
.stage--locked { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 20px; padding: 16px 48px 16px 16px; min-height: 156px; }
.stage__sil { width: 124px; height: 124px; border-radius: 20px; background: var(--night-3); overflow: hidden; display: grid; place-items: center; }
.stage__sil img { width: 86%; height: 86%; object-fit: contain; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .stage--locked:hover .stage__sil img { transform: translateY(-4px) scale(1.03); } }
.stage--locked h3 { font-size: clamp(1.9rem, 2.4vw, 2.3rem); color: color-mix(in oklab, var(--bone) 55%, transparent); letter-spacing: 0.06em; }
.stage--locked .stage__tag { color: var(--bone-2); }
.stage--locked p.stage__text { color: var(--bone-2); font-size: 1rem; margin-top: 4px; max-width: 34ch; }
.stage__lock { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; color: var(--bone-2); transform-origin: 50% 30%; }
@media (prefers-reduced-motion: no-preference) {
  .stage--locked:hover .stage__lock, .stage--locked:active .stage__lock { animation: rattle 460ms var(--ease-out); }
}
@keyframes rattle { 0%, 100% { transform: none; } 20% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } }
@media (min-width: 960px) {
  .stages { grid-template-columns: 7fr 5fr; grid-template-rows: repeat(3, 1fr); }
  .stage--open { grid-row: 1 / 4; min-height: 0; }
}
@media (max-width: 480px) { .stage--locked { grid-template-columns: 96px 1fr; padding-right: 52px; } .stage__sil { width: 96px; height: 96px; } }

/* What we make: six tenets, two lines each. */
.tenets { display: grid; gap: clamp(28px, 3vw, 44px) clamp(28px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.tenets div { display: grid; gap: 8px; align-content: start; }
.tenets dt { font-family: var(--display); font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.05; }
.tenets dd { color: var(--bone); max-width: 44ch; }
@media (min-width: 720px) { .tenets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tenets { grid-template-columns: repeat(3, 1fr); } }

/* FAQ written to be quoted: question as a heading, the answer in one short paragraph. */
.faq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.faq-head p { color: var(--bone-2); font-weight: 700; max-width: 36ch; }
.qa { display: grid; gap: 4px clamp(32px, 4vw, 72px); }
.qa__item { padding: 22px 0 24px; display: grid; gap: 8px; align-content: start; }
.qa__item h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.12; }
.qa__item p { max-width: 58ch; }
@media (min-width: 900px) { .qa { grid-template-columns: 1fr 1fr; } }

/* Hiring teaser */
.hiring__in { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hiring__sil { width: min(46vw, 300px); justify-self: center; }
.hiring__sil img { width: 100%; height: auto; }
.hiring__copy { display: grid; gap: 20px; }
.hiring__copy .lead { max-width: 40ch; }
@media (min-width: 900px) { .hiring__in { grid-template-columns: 4fr 8fr; } .hiring__sil { justify-self: start; } }
@media (prefers-reduced-motion: no-preference) {
  .hiring__sil img { transition: transform 600ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .hiring:hover .hiring__sil img { transform: translateY(-8px) rotate(-3deg); } }
}

/* Studio story */
.story { display: grid; gap: clamp(28px, 4vw, 64px); }
.story__body { display: grid; gap: 1em; max-width: 60ch; }
@media (min-width: 900px) { .story { grid-template-columns: 5fr 7fr; } }

.feature { position: relative; isolation: isolate; min-height: min(100svh, 980px); display: grid; align-items: end; overflow: hidden; }
.feature__art { position: absolute; inset: 0; z-index: -2; }
.feature__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.feature::after { content: ""; position: absolute; inset: auto 0 0 0; height: 75%; z-index: -1; background: linear-gradient(to top, rgb(23 17 43 / 0.96) 10%, rgb(23 17 43 / 0.6) 50%, rgb(23 17 43 / 0)); }
.feature__in { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 8vw, 112px); }
.feature__logo { width: clamp(260px, 32vw, 480px); }
.feature__copy { display: grid; gap: 22px; }
.feature__copy .lead { max-width: 38ch; }
.feature__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (min-width: 900px) { .feature__in { grid-template-columns: 6fr 6fr; align-items: end; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature__art img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
  }
}

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.4vw, 20px); align-items: start; }
.strip figure:nth-child(even) { margin-top: 12%; }
.strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.strip figcaption { margin-top: 10px; font-weight: 800; font-size: var(--t-small); }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } .strip figure:nth-child(even) { margin-top: 18%; } }

.about { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; } }

.contact__mail {
  justify-self: start; font-family: var(--text); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.2;
  color: var(--bone); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.28em;
  text-decoration-color: color-mix(in oklab, var(--ember) 55%, transparent);
  transition: text-decoration-color var(--t-hover) ease, text-underline-offset var(--t-ui) var(--ease-out), color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .contact__mail:hover { text-decoration-color: var(--ember); text-underline-offset: 0.2em; color: var(--ember-2); } }
.contact { display: grid; gap: clamp(28px, 4vw, 48px); }
.contact__rows { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact__rows { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.contact__rows h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 6px; }

/* =========================================================
   READING PAGES (privacy, support)
   ========================================================= */
.doc-hero { padding: calc(var(--bar-h) + clamp(48px, 10vh, 120px)) 0 clamp(40px, 6vw, 72px); background: var(--night-2); }
.doc-hero h1 { font-size: var(--t-display); max-width: 16ch; }
.doc-hero p { margin-top: 20px; }
.doc-hero .meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 800; color: var(--bone-2); font-size: var(--t-small); }
.doc { display: grid; gap: clamp(32px, 5vw, 80px); padding-block: clamp(48px, 6vw, 96px) var(--section); }
.toc { font-weight: 800; font-size: 0.975rem; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--bone-2); transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--bone); transform: translateX(4px); } }
.toc a.is-current { color: var(--ember); }
.toc__title { font-family: var(--display); font-size: 1.35rem; margin-bottom: 8px; }
@media (min-width: 960px) {
  .doc { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { position: sticky; top: calc(var(--bar-h) + 32px); align-self: start; }
}
@media (max-width: 959px) { .toc { background: var(--night-2); padding: 20px 22px; border-radius: 20px; } }
.doc__body { max-width: 70ch; }
.doc__body section + section { margin-top: clamp(48px, 5vw, 72px); }
.doc__body h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: 18px; }
.doc__body h3 { font-family: var(--text); font-weight: 900; font-size: 1.15rem; letter-spacing: 0; line-height: 1.3; margin: 28px 0 8px; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p, .doc__body p + .callout, .doc__body .callout + p, .doc__body ul + h3, .doc__body p + table, .doc__body table + p { margin-top: 1em; }
.doc__body ul { display: grid; gap: 10px; }
.doc__body ul li { position: relative; padding-left: 1.4em; }
.doc__body ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--ember); }
.doc__body strong { font-weight: 900; }
.callout { background: var(--night-2); padding: clamp(20px, 3vw, 32px); border-radius: 20px; }
.callout p { font-weight: 700; }
.callout h3 { margin-top: 0 !important; }
.datatable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.datatable th, .datatable td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--night-4); }
.datatable th { font-weight: 900; color: var(--bone-2); font-size: var(--t-small); }
.datatable td:first-child { font-weight: 800; width: 34%; }
@media (max-width: 640px) {
  .datatable thead { display: none; }
  .datatable tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--night-4); }
  .datatable td { border: 0; padding: 2px 0; width: auto !important; }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 18px; font-weight: 800; font-size: var(--t-small); color: var(--bone-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.5; }
.crumbs a { text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--bone); } }
.crumbs [aria-current] { color: var(--bone); }

/* Careers */
.careers-hero { display: grid; gap: 24px; align-items: end; }
.careers-hero__img { width: min(40vw, 280px); justify-self: end; }
@media (min-width: 900px) { .careers-hero { grid-template-columns: 1fr auto; } }
@media (prefers-reduced-motion: no-preference) { .careers-hero__img { animation: bob 3.4s var(--ease-in-out) infinite alternate; } }
.careers-h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 24px; }
.role {
  display: grid; gap: 16px 32px; align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 24px;
  background: var(--night-2); text-decoration: none; color: var(--bone);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.role:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .role:hover { background: var(--night-3); } .role:hover svg { transform: translateX(4px); } }
.role__main { display: grid; gap: 6px; }
.role__title { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.role__text { color: var(--bone-2); max-width: 56ch; }
.role__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 900; color: var(--ember); }
.role__meta svg { width: 22px; height: 22px; transition: transform var(--t-ui) var(--ease-out); }
@media (min-width: 800px) { .role { grid-template-columns: 1fr auto; } }
.careers-cols { display: grid; gap: 28px clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 88px); }
.careers-cols h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 8px; }
@media (min-width: 900px) { .careers-cols { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--night-2); border-radius: 20px; transition: background-color var(--t-hover) ease; }
.faq details[open] { background: var(--night-3); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 20px 22px; font-weight: 900; font-size: 1.125rem; border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; background: var(--night-4); display: grid; place-items: center; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-hover) ease; }
.faq summary i::before, .faq summary i::after { content: ""; grid-area: 1 / 1; width: 12px; height: 2.5px; border-radius: 2px; background: var(--bone); }
.faq summary i::after { transform: rotate(90deg); transition: transform var(--t-ui) var(--ease-out); }
.faq details[open] summary i { background: var(--ember); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--night); }
.faq details[open] summary i::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover i { transform: scale(1.08); } }
.faq__a { padding: 0 22px 22px; max-width: 64ch; }
.faq__a p + p, .faq__a p + ul, .faq__a ul + p { margin-top: 0.8em; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__a { animation: rise 420ms var(--ease-out) both; }
}

/* 404 */
.lost { min-height: 100svh; display: grid; align-items: end; position: relative; isolation: isolate; padding-bottom: clamp(32px, 8vh, 96px); }
.lost__art { position: absolute; inset: 0; z-index: -2; }
.lost__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lost::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(23 17 43 / 0.96) 20%, rgb(23 17 43 / 0.35)); }
.lost h1 { font-size: var(--t-display); max-width: 12ch; }
.lost p { margin-top: 18px; max-width: 40ch; }
.lost .title__act { margin-top: 28px; }

/* Home: compact beta call to action under the stage select */
.beta-cta { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; margin-top: clamp(16px, 2vw, 24px); padding: 18px 22px; border-radius: 24px; background: var(--night-2); }
.beta-cta img { width: 64px; height: 64px; border-radius: 15px; }
.beta-cta p { font-weight: 600; max-width: 60ch; }
.beta-cta p b { font-weight: 900; }
.beta-cta .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .beta-cta { grid-template-columns: auto 1fr auto; } .beta-cta .btn { grid-column: auto; } }

/* Beta signup form */
.signup { width: min(100%, 520px); text-align: left; }
.signup [hidden] { display: none !important; }
.signup__form { display: grid; gap: 18px; background: var(--night-2); border-radius: 28px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 900; font-size: 1.0625rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.field__hint { color: var(--bone-2); font-size: 0.9375rem; font-weight: 600; margin-top: -2px; }
.field__opt { color: var(--bone-2); font-weight: 700; }
.field input[type=email], .field input[type=text] {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  background: var(--night); color: var(--bone); border: 2px solid var(--night-4);
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.field input::placeholder { color: color-mix(in oklab, var(--bone-2) 70%, transparent); font-weight: 600; }
.field input:hover { border-color: color-mix(in oklab, var(--bone-2) 60%, var(--night-4)); }
.field input:focus-visible { outline: none; border-color: var(--ember); background: #120d24; }
.field.is-invalid input[type=email], .field.is-invalid input[type=text] { border-color: #ff7a6b; }
.field__err { color: #ffb0a6; font-weight: 800; font-size: 0.9375rem; min-height: 0; }
.field__err:empty { display: none; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__opt { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px;
  background: var(--night); border: 2px solid var(--night-4); font-weight: 900; font-size: 1.0625rem;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg__opt svg { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) { .seg__opt:hover span { border-color: color-mix(in oklab, var(--bone-2) 60%, var(--night-4)); } }
.seg__opt input:checked + span { background: var(--ember); border-color: var(--ember); color: var(--night); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 3px; }
.seg__opt:active span { transform: scale(0.97); }
.field.is-invalid .seg__opt span { border-color: #ff7a6b; }
.field > label.check { font-weight: 600; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 600; font-size: 0.975rem; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--night-4); background: var(--night); display: grid; place-items: center; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.check__box::after { content: ""; width: 12px; height: 7px; border: solid var(--night); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform var(--t-ui) var(--ease-out); }
.check input:checked + .check__box { background: var(--ember); border-color: var(--ember); }
.check input:checked + .check__box::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--ember); outline-offset: 3px; }
.field.is-invalid .check__box { border-color: #ff7a6b; }
.ts { min-height: 65px; }
.ts:empty::before { content: "Loading a quick bot check…"; display: grid; place-items: center start; min-height: 65px; color: var(--bone-2); font-weight: 700; font-size: 0.9375rem; }
.signup__btn { width: 100%; position: relative; }
.signup__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; }
.signup.is-busy .signup__spin { display: inline-block; animation: spin 700ms linear infinite; }
.signup.is-busy .signup__btn svg { display: none; }
.signup.is-busy .signup__btn { cursor: progress; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.signup__status { font-weight: 800; text-align: center; }
.signup__status:empty { display: none; }
.signup__status.is-error { color: #ffb0a6; }
.signup__done { text-align: center; background: var(--night-2); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; justify-items: center; gap: 12px; }
.signup__done:focus { outline: none; }
.signup__done img { width: 150px; height: auto; }
.signup__done h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.signup__done-text { font-weight: 700; max-width: 38ch; }
.signup__done-fine { color: var(--bone-2); font-size: 0.9375rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .signup__done:not([hidden]) { animation: rise 600ms var(--ease-out) both; }
  .signup__done:not([hidden]) img { animation: done-hop 900ms cubic-bezier(0.34, 1.45, 0.64, 1) 150ms both; }
}
@keyframes done-hop { 0% { transform: translateY(30px) scale(0.7) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.signup__alt { color: var(--bone-2); font-weight: 700; font-size: var(--t-small); }
.signup__fallback { margin-top: 12px; font-weight: 700; }

/* Site footer */
.site-foot { background: var(--night-2); padding-block: clamp(56px, 7vw, 96px) 28px; font-size: 1rem; }
.site-foot__top { display: grid; gap: 36px 48px; }
.site-foot__brand { display: grid; gap: 14px; align-content: start; max-width: 30ch; }
.site-foot__brand p { color: var(--bone-2); font-weight: 600; }
.site-foot__brand .brand { font-size: 1.5rem; }
.site-foot__brand .brand img.brand__mascot { width: 52px; }
.site-foot__col { display: grid; gap: 8px; align-content: start; }
.site-foot__h { font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.site-foot__col a { justify-self: start; text-decoration: none; font-weight: 700; color: var(--bone-2); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .site-foot__col a:hover { color: var(--bone); } }
.site-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 2px solid var(--night-3); font-size: 0.875rem; font-weight: 700; color: var(--bone-2); }
@media (min-width: 760px) { .site-foot__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
