/* ==========================================================================
   VELUMI — landing
   ========================================================================== */

/* Self-hosted variable fonts (SIL OFL 1.1, licenses in assets/fonts/),
   subset to Latin + Cyrillic + punctuation */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
}

:root {
  --bg: #07070b;
  --bg-elev: #0d0d13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f7;
  --muted: #9a9aad;
  --glow: #c9ceff;
  --glow-rgb: 201, 206, 255;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(88px, 12vw, 168px);
  --radius: 22px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Logo geometry, measured on the 700×700 mark canvas */
  --orbit-x: 50.61%;
  --orbit-y: 49.79%;
  --tilt: -18.245deg;
  --squash: 0.33;
  --unsquash: 3.0304;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
.nowrap { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(var(--glow-rgb), 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -8px rgba(var(--glow-rgb), 0.55);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.btn--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: gap 0.25s var(--ease-out), color 0.25s;
}
.link-arrow:hover { gap: 14px; color: var(--glow); }

/* ==========================================================================
   Logo mark — star + orbiting crescents
   The crescents travel along the tilted ellipse: rotate into the orbit plane,
   un-squash to a circle, spin by --theta, then squash and tilt back.
   ========================================================================== */

@property --theta { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --theta-in { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --orbit-scale { syntax: "<number>"; inherits: true; initial-value: 1; }

.mark {
  position: relative;
  display: block;
  aspect-ratio: 1;
  /* the un-squashed orbit plane is huge before clipping; keep it out of page overflow */
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 24px;
}
.mark > *,
.orbit__plane,
.orbit__plane img,
.mark__star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mark img { user-select: none; -webkit-user-drag: none; }

.orbit {
  transform-origin: var(--orbit-x) var(--orbit-y);
  transform: rotate(var(--tilt));
}
/* upper half of the ring passes behind the star, lower half in front */
.orbit--back { clip-path: polygon(-60% -60%, 160% -60%, 160% 49.79%, -60% 49.79%); }
.orbit--front { clip-path: polygon(-60% 49.79%, 160% 49.79%, 160% 160%, -60% 160%); }

.orbit__plane {
  transform-origin: var(--orbit-x) var(--orbit-y);
  transform: scale(1, var(--squash)) rotate(calc(var(--theta-in) + var(--theta)))
    scale(var(--orbit-scale)) scale(1, var(--unsquash)) rotate(calc(-1 * var(--tilt)));
}

.mark__star { transform-origin: 50% 50.71%; }

/* hero: ignition + continuous slow orbit */
.mark--hero {
  width: 100%;
  animation:
    orbit-intro 2.4s var(--ease-out) 0.55s both,
    orbit-grow 1.4s var(--ease-out) 0.55s both,
    orbit-loop 56s linear 2.95s infinite;
}
.mark--hero .mark__star {
  filter: drop-shadow(0 0 18px rgba(var(--glow-rgb), 0.55));
  animation: star-in 1.15s var(--ease-back) 0.25s both, star-twinkle 7s ease-in-out 3.4s infinite;
}
.mark--hero .orbit {
  filter: drop-shadow(0 0 12px rgba(var(--glow-rgb), 0.35));
  animation: fade-in 0.5s ease-out 0.55s both;
}

/* header: one full orbit on hover */
.mark--mini {
  width: 34px;
  flex: none;
  transition: --theta 1.1s var(--ease-out);
}
.brand:hover .mark--mini,
.brand:focus-visible .mark--mini { --theta: 360deg; }

@keyframes orbit-intro { from { --theta-in: -486deg; } to { --theta-in: 0deg; } }
@keyframes orbit-grow { from { --orbit-scale: 0.3; } to { --orbit-scale: 1; } }
@keyframes orbit-loop { from { --theta: 0deg; } to { --theta: 360deg; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes star-in {
  from { opacity: 0; transform: rotate(-90deg) scale(0); }
  12% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes star-twinkle {
  0%, 86%, 100% { transform: none; }
  92% { transform: scale(1.05); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.is-scrolled,
.header.is-open {
  background: rgba(7, 7, 11, 0.72);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand__word { width: auto; height: 14px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:not(.btn) {
  position: relative;
  padding-block: 10px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.header.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.header.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  padding-bottom: 64px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; }
@media (min-width: 821px) {
  .hero__title .line { white-space: nowrap; }
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #fff 10%, var(--glow) 45%, #fff 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out 2.5s infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

.hero__lead {
  max-width: 34ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
  transition: transform 0.6s var(--ease-out);
}

.hero__glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow-rgb), 0.2), rgba(var(--glow-rgb), 0.06) 55%, transparent);
  animation: fade-in 1.6s ease-out 0.3s both, breathe 8s ease-in-out 2s infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.75; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
}
.scroll-cue span {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* intro / reveal motion */
.intro { animation: rise 1s var(--ease-out) var(--d, 0s) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--stagger, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

/* studio */
.statement {
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.statement .dim { color: var(--muted); }

.studio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 80px);
  max-width: 900px;
  margin-top: clamp(48px, 6vw, 80px);
  margin-left: auto;
}
.studio__text { color: var(--muted); font-size: 1.0625rem; }
.studio__text em { font-style: italic; color: var(--text); }

/* principles */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--glow-rgb), 0.08), transparent 60%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); }

.card__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.card__icon {
  width: 28px;
  height: 28px;
  margin-top: auto;
  margin-bottom: 24px;
  padding-top: 40px;
  box-sizing: content-box;
  fill: var(--text);
  transition: transform 0.6s var(--ease-back), filter 0.4s;
}
.card:hover .card__icon {
  transform: rotate(90deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(var(--glow-rgb), 0.8));
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card__text { margin-top: 12px; color: var(--muted); }

/* games */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  overflow: hidden;
}
.game__art {
  position: relative;
  min-height: 400px;
  background: #0b0b16;
  border-right: 1px solid var(--line);
}
.game__art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game__star { transform-origin: 486px 40px; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.75; }
}
.game__route { animation: route 2.4s linear infinite; }
@keyframes route { to { stroke-dashoffset: -36; } }
.game__creatures g { fill: var(--c); }
.game__creatures g circle:first-child { opacity: 0.55; animation: pulse 3s ease-in-out infinite; }
.game__creatures g:nth-child(2n) circle:first-child { animation-delay: -1.2s; }
.game__creatures g:nth-child(3n) circle:first-child { animation-delay: -2s; }
@keyframes pulse { 50% { opacity: 0.15; } }

.game__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
}
.game__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.game__lead { color: var(--muted); max-width: 40ch; }
.game__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.game__facts strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
}
.game__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.btn--soon,
.btn--soon:hover {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  transform: none;
  cursor: default;
}

.loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.loop__step {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.loop__num { font-family: var(--font-display); font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.08em; }
.loop__title {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.loop__text { color: var(--muted); }

.sub-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}
.sub-text { color: var(--muted); }
.bestiary__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.bestiary { margin-top: clamp(64px, 8vw, 104px); }

.rarities {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rarity {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.rarity::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}
.rarity__name { color: var(--c); font-weight: 700; font-size: 0.9375rem; }
.rarity__list { color: var(--text); font-size: 0.9375rem; line-height: 1.45; }
.rarity--mythic { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.rarity--mythic::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 84px;
  height: 84px;
  background: var(--c);
  opacity: 0.16;
  clip-path: path("M42 0c2.6 27.6 12.5 42.2 42 42-29.5 2.6-39.4 14.4-42 42-2.6-27.6-12.5-39.4-42-42C29.5 42.2 39.4 27.6 42 0z");
}

.release { margin-top: clamp(64px, 8vw, 104px); }
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s;
}
.feature:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.feature__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature__title { margin: 16px 0 6px; font-size: 1rem; font-weight: 700; }
.feature__text { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 0 rgba(var(--glow-rgb), 0.6);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  to { box-shadow: 0 0 0 8px rgba(var(--glow-rgb), 0); }
}

/* team */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.person {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s;
}
.person:hover { border-color: var(--line-strong); background: var(--surface-hover); }

.person__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23232f, #0b0b10 70%);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
}
.person__avatar::before {
  content: "";
  position: absolute;
  inset: 26% -22%;
  border: 1px solid rgba(var(--glow-rgb), 0.45);
  border-radius: 50%;
  transform: rotate(-18deg);
  transition: transform 0.8s var(--ease-out);
}
.person:hover .person__avatar::before { transform: rotate(-18deg) scale(1.08); }

.person__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.person__role { margin-top: 4px; color: var(--muted); }

/* contact */
.cta {
  position: relative;
  padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 96px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: var(--bg-elev);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta__glow {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: -1;
  width: 900px;
  height: 600px;
  margin-left: -450px;
  margin-top: -300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow-rgb), 0.22), transparent);
}
.cta .eyebrow { justify-content: center; }
.cta__title {
  max-width: 16ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.cta__text {
  max-width: 44ch;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* footer */
.footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand--footer .brand__word { height: 12px; opacity: 0.85; }
.footer__copy { color: var(--muted); font-size: 0.875rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { padding-top: 32px; }
  .game { grid-template-columns: 1fr; }
  .game__art { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .loop { grid-template-columns: 1fr; }
  .rarities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rarity { min-height: 112px; }
  .rarity--mythic { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; }

  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 16px); }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; width: min(78vw, 360px); }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 32px; }
  .scroll-cue { display: none; }

  .studio__grid { grid-template-columns: 1fr; gap: 20px; margin-left: 0; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta__actions .btn { flex: 1 1 100%; }
  .person { gap: 22px; }
  .person__avatar { width: 76px; height: 76px; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .mark { --theta: 0deg !important; --theta-in: 0deg !important; --orbit-scale: 1 !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
