/* BMB Interactive, merged direction.
   Palette and atmosphere: cinematic (deep cosmos, one ember-coral accent).
   Navigation and body layout: editorial (floating island, bento, contact card).
   Play: playful (hero number field, Hurtz scope with opt-in tone).
   Radius system: shells 28px, inner cores 22px (shell minus 6px bezel), interactive controls are full pills.
   Z-index scale: ambient -1, hero canvas 1, hero copy 2, menu 40, nav 50, grain 60, skip link 70. */

:root {
  /* Cinematic tokens */
  --bg: #07070b;
  --bg-2: #0c0c12;
  --bg-3: #13121a;
  --surface: #111017;
  --surface-2: #17141c;
  --text: #eeeae4;
  --muted: #aaa5ad;
  --dim: #85808c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #ff7a5c;
  --accent-hover: #ff8f75;
  --accent-soft: rgba(255, 122, 92, 0.14);
  --accent-line: rgba(255, 122, 92, 0.4);
  --accent-ink: #1b0904;
  --accent-tint: #ffcbbd;

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-shell: 28px;
  --bezel: 6px;
  --r-core: calc(var(--r-shell) - var(--bezel));
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  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: clip;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 70;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Film grain and ambient light: fixed layers only */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; }
.ambient__a {
  width: 70vmax; height: 70vmax; left: -30vmax; top: 40vh;
  background: radial-gradient(circle, rgba(255, 122, 92, 0.05), transparent 62%);
}
.ambient__b {
  width: 80vmax; height: 80vmax; right: -35vmax; top: 10vh;
  background: radial-gradient(circle, rgba(76, 84, 170, 0.08), transparent 60%);
}

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- Navigation island (editorial, recolored) ---------- */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.nav-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.55);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 40px -12px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nav-wrap.is-scrolled .nav-island {
  background: rgba(9, 9, 14, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px -18px rgba(0, 0, 0, 0.8);
}

.wordmark { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; padding-block: 6px; }
.wordmark__bmb {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88, "opsz" 24;
}
.wordmark__rest { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.01em; }

.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a.nav__cta { margin-left: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav a.nav__cta:hover { background: var(--accent-hover); }
.nav a:active { transform: scale(0.97); }

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}
.burger__label { font-size: 0.875rem; }
.burger__lines { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.burger__lines span {
  position: absolute;
  left: 8px;
  width: 12px;
  height: 1.5px;
  background: var(--accent-ink);
  border-radius: 2px;
  transition: transform 0.5s var(--ease);
}
.burger__lines span:first-child { top: 11px; }
.burger__lines span:last-child { top: 16px; }
.burger[aria-expanded="true"] .burger__lines span:first-child { transform: translateY(2.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 48px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 122, 92, 0.12), transparent 60%),
    rgba(7, 7, 11, 0.92);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__list { display: grid; gap: 6px; }
.menu__list a, .menu__foot {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.08s + var(--i) * 0.06s);
}
.menu__list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 12vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 85, "opsz" 96;
}
.menu__list a:hover { color: var(--accent); }
.menu__foot { margin-top: 40px; color: var(--muted); font-family: var(--font-mono); font-size: 0.875rem; }
.menu.is-open .menu__list a, .menu.is-open .menu__foot { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 6px 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.6s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary .btn__icon { background: rgba(27, 9, 4, 0.12); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:hover .btn__icon { transform: translateY(2px) scale(1.05); }
.btn--ghost {
  border: 1px solid var(--line-2);
  background: rgba(12, 12, 18, 0.5);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost .btn__icon { background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.07); }
.btn--ghost:hover .btn__icon { transform: translate(2px, -2px) scale(1.05); }

/* ---------- Hero: cosmos backdrop + number field ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding-top: 112px;
  padding-bottom: clamp(56px, 10vh, 112px);
}
.hero__scene { position: absolute; inset: 0; z-index: -1; --px: 0; --py: 0; }
.hero__bg { position: absolute; inset: -6% -3%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 11, 0.9) 0%, rgba(7, 7, 11, 0.6) 34%, rgba(7, 7, 11, 0.08) 66%, rgba(7, 7, 11, 0) 100%),
    linear-gradient(180deg, rgba(7, 7, 11, 0.55) 0%, rgba(7, 7, 11, 0) 20%, rgba(7, 7, 11, 0) 58%, rgba(7, 7, 11, 0.7) 86%, var(--bg) 100%);
}

.layer { position: absolute; }
.layer__ptr {
  position: relative;
  transform: translate3d(calc(var(--px) * var(--depth) * -14px), calc(var(--py) * var(--depth) * -10px), 0);
  transition: transform 1.4s var(--ease-out);
}
.layer img { position: relative; width: 100%; }
.layer--hole { width: clamp(240px, 32vw, 480px); top: 13%; right: 7%; }
.layer--planet { width: clamp(64px, 6.5vw, 116px); bottom: 14%; right: 36%; }
.layer--moon { width: clamp(54px, 5vw, 88px); top: 62%; right: 5%; opacity: 0.9; }
.layer--dwarf { width: clamp(32px, 2.8vw, 48px); top: 22%; left: 44%; opacity: 0.75; }
.layer--meteor { width: clamp(50px, 4.6vw, 86px); top: 11%; right: 38%; }
.hole-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 92, 0.3), rgba(255, 122, 92, 0.07) 55%, transparent 75%);
  transform: scale(1.5);
}

/* Floating sprites: CSS only, paused while the hero is offscreen */
.float, .float--hole, .float--meteor, .floaty { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 9s var(--ease) infinite alternate; }
  .float--slow { animation-duration: 13s; }
  .float--alt { animation-duration: 11s; animation-direction: alternate-reverse; }
  .float--hole { animation: floatHole 12s var(--ease) infinite alternate; }
  .float--meteor { animation: meteor 14s var(--ease) infinite alternate; }
  .hole-glow { animation: glow 7s var(--ease) infinite alternate; }
  .floaty { animation: floaty 7s var(--ease) infinite alternate; }
}
.is-offscreen .float, .is-offscreen .hole-glow, .is-offscreen .floaty { animation-play-state: paused; }
@keyframes float { from { transform: translate3d(0, -8px, 0) rotate(-3deg); } to { transform: translate3d(0, 10px, 0) rotate(4deg); } }
@keyframes floatHole { from { transform: translate3d(0, -6px, 0) rotate(-2deg) scale(1); } to { transform: translate3d(0, 8px, 0) rotate(1.5deg) scale(1.03); } }
@keyframes meteor { from { transform: translate3d(-10px, -14px, 0) rotate(-8deg); } to { transform: translate3d(14px, 18px, 0) rotate(-3deg); } }
@keyframes glow { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes floaty { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 8px, 0); } }

.toy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: pan-y;
  pointer-events: none;
}
html:not(.js) .toy, .js-failed .toy { display: none; }

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  pointer-events: none;
}
.hero__grid a, .hero__grid button { pointer-events: auto; }
.hero__copy { grid-column: 1 / span 8; grid-row: 1; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.6rem, 6.4vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 92, "opsz" 96;
  text-shadow: 0 2px 30px rgba(7, 7, 11, 0.6);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__in { display: inline-block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin-top: clamp(22px, 3vh, 32px);
  max-width: 44ch;
  font-size: clamp(1.03rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: #d3ced4;
}
.hero__ctas {
  margin-top: clamp(26px, 3.6vh, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Toy HUD: a small double-bezel readout */
.toy-hud {
  grid-column: 9 / -1;
  grid-row: 1;
  justify-self: end;
  width: min(300px, 100%);
  padding: 5px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.toy-hud__row,
.toy-hud__hint { background: rgba(10, 10, 16, 0.78); }
.toy-hud__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px 10px;
  border-radius: 17px 17px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.toy-hud__stat { display: flex; flex-direction: column; gap: 2px; }
.toy-hud__stat--target { text-align: right; }
.toy-hud__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.toy-hud__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  display: inline-block;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.toy-hud__stat:first-child .toy-hud__value { color: var(--accent); }
.toy-hud__value.is-bump { transform: scale(1.18); }
.toy-hud__hint {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 17px 17px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.toy-hud.is-win .toy-hud__value { color: var(--text); }
html:not(.js) .toy-hud, .js-failed .toy-hud, .is-static .toy-hud { display: none; }

/* Load choreography (only when JS is on and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line__in { animation: rise 1.1s var(--ease-out) both; }
  .js .hero__title .line:nth-child(2) .line__in { animation-delay: 0.12s; }
  .js .load-in { animation: fadeUp 1s var(--ease-out) both; animation-delay: var(--d, 0s); }
  .js .hero__bg img { animation: heroIn 2.2s var(--ease-out) both; }
  .js .layer { animation: pop 1.4s var(--ease-out) both; animation-delay: 0.3s; }
  .js .layer--hole { animation-delay: 0.15s; }
  .js .toy { animation: fadeIn 1.4s var(--ease-out) 0.6s both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes wordOn { from { opacity: 0.16; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
  .reveal.is-pending { opacity: 0; transform: translateY(36px); }
  .reveal.is-pending.is-in { opacity: 1; transform: none; }
}
.js-failed .reveal { opacity: 1 !important; transform: none !important; }
/* Settled state: applied by timers once an entrance has had time to finish, so content never stays hidden. */
.reveal.is-settled { transition: none; opacity: 1; transform: none; }
.is-settled .evo__row li,
.studio__statement.is-settled .w { animation: none; opacity: 1; transform: none; }
.hero-settled .hero__title .line__in,
.hero-settled .load-in,
.hero-settled .hero__bg img,
.hero-settled .layer,
.hero-settled .toy { animation: none; opacity: 1; transform: none; }

/* ---------- Section head ---------- */
.work { padding-block: clamp(96px, 12vw, 160px) clamp(80px, 10vw, 140px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 90, "opsz" 96;
}
.section-sub { margin-top: 20px; max-width: 56ch; font-size: 1.125rem; color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.meta__status {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  color: var(--accent-tint);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--bezel);
  border-radius: var(--r-shell);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  display: flex;
}
.tile__spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 92, 0.5), rgba(255, 122, 92, 0.08) 38%, transparent 62%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  will-change: transform;
}
.tile:hover .tile__spot { opacity: 1; }
.tile__core {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  border-radius: var(--r-core);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tile__text { position: relative; z-index: 2; padding: 28px; }
.tile__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 88, "opsz" 48;
  margin-bottom: 10px;
}
.tile__text p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.tile--apex { grid-column: span 8; grid-row: span 2; min-height: 760px; }
.tile--evo, .tile--worlds { grid-column: span 4; }
.tile--hurtz { grid-column: span 7; }
.tile--wave { grid-column: span 5; }
.tile--pax { grid-column: span 12; }
.tile--evo { --rd: 0.08s; }
.tile--worlds { --rd: 0.16s; }
.tile--wave { --rd: 0.08s; }

/* Apex Summa key art */
.apex { display: flex; flex-direction: column; justify-content: flex-end; background: #0a0806; }
.apex__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out);
}
.tile--apex:hover .apex__bg { transform: scale(1.08); }
.apex__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 7, 11, 0.97) 0%, rgba(7, 7, 11, 0.86) 34%, rgba(7, 7, 11, 0.18) 66%, rgba(7, 7, 11, 0.35) 100%),
    radial-gradient(70% 50% at 0% 100%, rgba(255, 122, 92, 0.12), transparent 70%);
}
.apex__mark {
  position: absolute;
  left: 50%;
  top: 9%;
  width: min(52%, 420px);
  transform: translate3d(calc(-50% + var(--mx, 0px)), var(--my, 0px), 0);
  transition: transform 1s var(--ease-out);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.apex__mark h3 { margin: 0; }
.apex__body { position: relative; z-index: 2; padding: clamp(24px, 3.4vw, 44px); max-width: 640px; }
.apex .meta { color: #d6d0d6; }
.apex__tagline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 90, "opsz" 72;
  color: var(--accent-tint);
}
.apex__text { margin-top: 14px; color: #cdc8cf; font-size: 1rem; max-width: 56ch; }
.apex__note {
  margin-top: 20px;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-tint);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

/* Evolution tile */
.evo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(92, 96, 190, 0.24), transparent 60%),
    linear-gradient(180deg, #10101b, #0c0c12);
}
.evo__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 44px 34px 0;
}
.evo__row::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  top: calc(50% + 18px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 122, 92, 0.04), rgba(255, 122, 92, 0.4), rgba(255, 122, 92, 0.04));
}
.evo__row li { position: relative; }
.evo__row img { width: 128%; max-width: none; margin-left: -14%; }
@media (prefers-reduced-motion: no-preference) {
  .tile--evo.is-pending .evo__row li { opacity: 0; }
  .tile--evo.is-pending.is-in .evo__row li { animation: pop 0.9s var(--ease-out) both; animation-delay: calc(0.3s + var(--i) * 0.12s); }
  .js .tile--evo.is-live .evo__row img { animation: evoPulse 5s var(--ease) infinite; animation-delay: calc(1.4s + var(--i) * 0.6s); }
}
@keyframes evoPulse {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  30% { transform: scale(1); }
}

/* Worlds tile */
.worlds {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  container-type: inline-size;
  padding-top: 136px;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 42% 12%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 86% 44%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 12% 58%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(90% 70% at 85% 10%, rgba(255, 122, 92, 0.16), transparent 60%),
    radial-gradient(80% 80% at 10% 0%, rgba(70, 80, 170, 0.18), transparent 60%),
    linear-gradient(180deg, #0d0c16, #0a0a10);
}
.worlds__orbit { position: absolute; inset: 0; pointer-events: none; }
@container (max-width: 400px) {
  .worlds__moon, .worlds__meteor { display: none; }
}
.worlds__orbit img { position: absolute; }
.worlds__planet { width: 112px; right: 18px; top: 16px; animation-duration: 8s; }
.worlds__moon { width: 44px; right: 152px; top: 84px; animation-duration: 6s; animation-delay: -2s; }
.worlds__meteor { width: 58px; right: 140px; top: 10px; animation-duration: 5.5s; animation-delay: -3s; }
.worlds__tokens { position: absolute; left: 26px; top: 26px; display: flex; gap: 10px; }
.token {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--accent-tint);
  background: radial-gradient(circle at 35% 30%, rgba(255, 122, 92, 0.3), rgba(255, 122, 92, 0.1) 45%, rgba(12, 10, 16, 0.9) 75%);
  border: 1px solid var(--accent-line);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7);
}
.token--b {
  margin-top: 22px; width: 56px; height: 56px; font-size: 0.875rem;
  color: #c7c2ca;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), rgba(20, 20, 30, 0.9) 70%);
  border: 1px dashed rgba(238, 234, 228, 0.32);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
}

/* Hurtz */
.hurtz {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  min-height: 520px;
  background:
    radial-gradient(70% 80% at 85% 100%, rgba(255, 122, 92, 0.22), transparent 62%),
    linear-gradient(180deg, #17141c, #110f15);
}
.hurtz__copy { padding: clamp(24px, 3.4vw, 40px); align-self: center; }
.hurtz__id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hurtz__icon { width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--accent-line); }
.hurtz__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 90, "opsz" 72;
}
.hurtz__lede {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 92, "opsz" 48;
  color: var(--accent-tint);
}
.hurtz__text { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; max-width: 46ch; }
/* Apple badge: unmodified artwork, rendered about 170px wide with clear space around it */
.store-badge {
  display: inline-block;
  margin-top: 28px;
  padding: 6px;
  margin-left: -6px;
  border-radius: 14px;
  line-height: 0;
  transition: transform 0.5s var(--ease);
}
.store-badge img {
  width: 170px;
  height: auto;
  aspect-ratio: 250 / 83;
  /* only visible if the hosted badge cannot load: the alt text reads as a plain pill */
  color: var(--text);
  font-size: 0.875rem;
  line-height: 56px;
  text-align: center;
  border-radius: 10px;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.98); }
.hurtz__device { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; }
.device {
  width: min(230px, 88%);
  margin-bottom: -140px;
  padding: 5px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2b2830, #151319);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 40px 90px -30px rgba(255, 122, 92, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(4deg) translateY(10px);
  transition: transform 1s var(--ease-out);
}
.device img { border-radius: 25px; width: 100%; }
.tile--hurtz:hover .device { transform: rotate(2deg) translateY(-6px); }

/* Hurtz scope tile (playful scope, editorial tile) */
.wave {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 122, 92, 0.1), transparent 70%),
    linear-gradient(180deg, #17141c, #111015);
}
.scope { padding: 22px 22px 0; }
.scope__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.scope__readout { display: flex; flex-direction: column; gap: 2px; }
.scope__hz {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.scope__unit { margin-left: 6px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.scope__note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg button {
  border: 0;
  cursor: pointer;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.3s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg button:active { transform: scale(0.96); }
.scope__screen {
  position: relative;
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 122, 92, 0.18);
  background: #120f16;
  overflow: hidden;
}
.scope__canvas { display: block; width: 100%; height: 170px; cursor: crosshair; touch-action: pan-y; }
.scope__fallback { display: none; position: absolute; inset: 20% 0; width: 100%; height: 60%; }
html:not(.js) .scope__fallback, .js-failed .scope__fallback { display: block; }
html:not(.js) .scope__controls, .js-failed .scope__controls,
html:not(.js) .scope__hint, .js-failed .scope__hint,
html:not(.js) .seg, .js-failed .seg { display: none; }
.scope__controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.scope__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.scope__range { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; margin: 0; }
.tone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.3s var(--ease);
}
.tone-btn:hover { border-color: var(--accent); }
.tone-btn:active { transform: scale(0.97); }
.tone-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tone-btn__icon {
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.tone-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tone-btn[aria-pressed="true"] .tone-btn__icon { width: 9px; height: 9px; border: 0; background: currentColor; border-radius: 2px; }
.scope__hint { margin-top: 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--dim); }
.wave .tile__text { margin-top: auto; padding: 24px 22px 26px; }

/* Pax in Patria */
.pax {
  display: flex;
  align-items: center;
  min-height: 460px;
  background:
    radial-gradient(60% 120% at 80% 50%, rgba(255, 122, 92, 0.07), transparent 60%),
    linear-gradient(120deg, #100d12, #0a0a0f 60%);
}
.pax__radar {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  pointer-events: none;
}
.pax__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 122, 92, 0.16) 0 1px, transparent 1.5px 58px);
}
.pax__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 122, 92, 0.34), rgba(255, 122, 92, 0.06) 40deg, transparent 70deg);
}
@media (prefers-reduced-motion: no-preference) {
  .pax__sweep { animation: sweep 7s linear infinite; animation-play-state: paused; }
  .tile--pax.is-live .pax__sweep { animation-play-state: running; }
}
@keyframes sweep { to { transform: rotate(360deg); } }
.pax__copy { position: relative; z-index: 2; padding: clamp(28px, 5vw, 64px); max-width: 760px; }
.pax__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.4vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 90, "opsz" 96;
  background: linear-gradient(180deg, #f3efe9 30%, rgba(243, 239, 233, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.pax__text { margin-top: 20px; max-width: 44ch; font-size: 1.125rem; color: var(--muted); }

/* ---------- Studio ---------- */
.studio { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 180px); }
.studio__orb { position: absolute; z-index: -1; right: 9%; top: 20%; width: clamp(150px, 17vw, 250px); pointer-events: none; }
.studio__orb img { position: relative; width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.studio__glow {
  position: absolute; inset: -80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 92, 0.12), rgba(76, 84, 170, 0.06) 55%, transparent 75%);
}
.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.studio__statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 90, "opsz" 96;
  max-width: 21ch;
}
.studio__statement .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .studio__statement.is-pending .w { opacity: 0.16; }
  .studio__statement.is-pending.is-in .w { animation: wordOn 0.9s var(--ease-out) both; animation-delay: calc(var(--wi) * 55ms); }
}
.studio__statement .w--hl { color: var(--accent); }
.studio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
}
.studio__body { grid-column: 1 / span 5; font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.facts { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; --rd: 0.12s; }
.facts__item { padding-top: 16px; border-top: 1px solid var(--line-2); }
.facts__item:last-child { grid-column: 1 / -1; }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.facts dd {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88, "opsz" 72;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__shell {
  padding: var(--bezel);
  border-radius: calc(var(--r-shell) + 8px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.contact__core {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-shell) + 2px);
  padding: clamp(32px, 6vw, 88px);
  background:
    radial-gradient(1px 1px at 62% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 48% 80%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 88% 86%, rgba(255, 255, 255, 0.4), transparent),
    linear-gradient(160deg, #14121a, #0c0b10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.contact__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -200px;
  top: 50%;
  margin-top: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 92, 0.12), transparent 60%);
  pointer-events: none;
}
.contact__art {
  position: absolute;
  right: -20px;
  top: 50%;
  width: min(440px, 38%);
  transform: translateY(-50%);
  pointer-events: none;
}
.contact__art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(255, 122, 92, 0.2)); }
@media (prefers-reduced-motion: no-preference) {
  .contact__glow { animation: drift 14s var(--ease) infinite alternate; }
}
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-120px, 80px, 0); } }
.contact__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 90, "opsz" 96;
}
.contact__sub { position: relative; margin-top: 18px; max-width: 46ch; font-size: 1.125rem; color: var(--muted); }
.contact__primary { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: clamp(32px, 5vw, 56px); }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mail__text { position: relative; padding-bottom: 4px; overflow-wrap: anywhere; }
.mail__text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.25);
  transition: transform 0.7s var(--ease);
}
.mail:hover .mail__text::after { transform: scaleX(1); }
.mail__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.6s var(--ease);
}
.mail:hover .mail__icon { transform: translate(3px, -3px) scale(1.06); }
.copy {
  cursor: pointer;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8125rem;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
}
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.copy:active { transform: scale(0.96); }
.copy.is-done { color: var(--accent); border-color: var(--accent-line); }
.contact__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact__list li { display: grid; gap: 6px; min-width: 0; }
.contact__k { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.contact__list a {
  font-size: 1rem;
  overflow-wrap: anywhere;
  width: fit-content;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.4s var(--ease);
  padding-bottom: 2px;
}
.contact__list a:hover { color: var(--accent); background-size: 100% 1px; }

/* Corporate information: legal name, state, and email in one plain block */
.corp {
  position: relative;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.corp__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.corp__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 24px; margin-top: 14px; }
.corp__list div { display: grid; gap: 4px; min-width: 0; }
.corp__list dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim); }
.corp__list dd { font-size: 1rem; overflow-wrap: anywhere; }
.corp__list a { transition: color 0.4s var(--ease); }
.corp__list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { overflow: hidden; border-top: 1px solid var(--line); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 28px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--text); transition: color 0.4s var(--ease); }
.footer__top:hover { color: var(--accent); }
.footer__top svg { transition: transform 0.5s var(--ease); }
.footer__top:hover svg { transform: translateY(-3px); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: var(--text); transition: color 0.4s var(--ease); }
.footer__legal a:hover { color: var(--accent); }
.footer__legal a[aria-current="page"] { color: var(--accent); }
.footer__giant {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 14vw, 15.5rem);
  line-height: 0.8;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 88, "opsz" 96;
  background: linear-gradient(180deg, rgba(255, 140, 112, 0.22), rgba(255, 122, 92, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 8px;
  margin-bottom: -0.12em;
  user-select: none;
}
.footer__giant-i { font-weight: 500; }

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-top { border-bottom: 1px solid var(--line); }
.legal-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.legal-top__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.legal-top__back:hover { color: var(--text); border-color: var(--accent-line); }
.legal { padding-block: clamp(48px, 8vw, 104px); }
.legal__doc { max-width: 72ch; }
.legal__doc h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88, "opsz" 96;
}
.legal__meta { margin-top: 18px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.legal__doc h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.legal__doc h3 { margin-top: 24px; font-size: 1rem; font-weight: 600; }
.legal__doc p, .legal__doc ul { margin-top: 14px; color: var(--muted); }
.legal__doc .legal__lead { margin-top: 32px; font-size: 1.125rem; color: var(--text); }
.legal__doc ul { padding-left: 1.25em; list-style: disc; }
.legal__doc li + li { margin-top: 8px; }
.legal__doc li::marker { color: var(--accent); }
.legal__doc strong { color: var(--text); font-weight: 600; }
.legal__doc a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: color 0.4s var(--ease), text-decoration-color 0.4s var(--ease);
}
.legal__doc a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__copy { grid-column: 1 / span 9; }
  .toy-hud { grid-column: 10 / -1; }
}

@media (max-width: 1023px) {
  .hero__copy { grid-column: 1 / -1; grid-row: 2; }
  .toy-hud { grid-column: 1 / -1; grid-row: 1; width: auto; }
  .toy-hud__hint { display: none; }
  .toy-hud__row { border-radius: 17px; grid-template-columns: auto auto; gap: 24px; padding: 10px 16px; }
  .toy-hud__value { font-size: 1.375rem; }
  .layer--hole { width: clamp(260px, 44vw, 420px); top: 14%; right: 4%; }
  .layer--planet { bottom: auto; top: 44%; right: 58%; }
  .layer--meteor { top: 12%; right: 52%; }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile--apex { grid-column: span 6; grid-row: auto; min-height: 640px; }
  .tile--evo, .tile--worlds { grid-column: span 3; }
  .tile--hurtz, .tile--wave, .tile--pax { grid-column: span 6; }

  .studio__body { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts__item:last-child { grid-column: auto; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .nav-wrap { top: 10px; }
  .nav-island { width: 100%; justify-content: space-between; padding-left: 18px; }

  .hero { padding-top: 96px; padding-bottom: 44px; }
  .hero__bg img { object-position: 78% 30%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(7, 7, 11, 0.35) 0%, rgba(7, 7, 11, 0.05) 26%, rgba(7, 7, 11, 0.72) 54%, rgba(7, 7, 11, 0.94) 72%, var(--bg) 100%);
  }
  .layer--hole { width: 76vw; top: 12%; right: -8%; }
  .layer--planet { width: 52px; top: 30%; right: auto; left: 8%; }
  .layer--moon { width: 44px; top: 14%; right: auto; left: 12%; }
  .layer--dwarf { top: 40%; left: 70%; width: 24px; }
  .layer--meteor { width: 44px; top: 10%; right: 46%; }
  .hero__grid { row-gap: 20px; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1; }
  .hero__sub { font-size: 1.0625rem; }
  .hero__ctas { margin-top: 24px; }
  .hero__ctas .btn { flex: 1 1 0; justify-content: space-between; }
  .btn { height: 50px; }

  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile--apex, .tile--evo, .tile--worlds, .tile--hurtz, .tile--wave, .tile--pax { grid-column: 1 / -1; }
  .tile--apex { min-height: 0; }
  .apex { padding-top: 62vw; }
  .apex__bg { height: 75vw; bottom: auto; object-position: 50% 20%; }
  .apex__shade { background: linear-gradient(to top, #07070b 0%, #07070b 45%, rgba(7, 7, 11, 0.4) 70%, rgba(7, 7, 11, 0.2) 100%); }
  .apex__mark { width: 66%; top: 7vw; }
  .worlds { min-height: 380px; }
  .hurtz { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hurtz__device { padding-top: 8px; height: 300px; overflow: hidden; }
  .device { width: 210px; margin-bottom: 0; }
  .scope { padding: 16px 16px 0; }
  .wave .tile__text { padding: 22px 16px 22px; }
  .scope__canvas { height: 140px; }
  .scope__controls { grid-template-columns: minmax(0, 1fr) auto; }
  .scope__label { grid-column: 1 / -1; }
  .pax { min-height: 420px; align-items: flex-end; }
  .pax__radar { right: -45%; top: 22%; width: 120vw; opacity: 0.7; }

  .studio__grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:last-child { grid-column: 1 / -1; }

  .contact__core { padding: 132px 24px 32px; }
  .mail { gap: 12px; font-size: min(1.25rem, 4.6vw); }
  .mail__text { overflow-wrap: normal; white-space: nowrap; }
  .mail__icon { width: 38px; height: 38px; }
  .studio__orb { width: 110px; top: 64px; right: -18px; opacity: 0.7; }
  .contact__art { width: 156px; right: -34px; top: 4px; transform: none; opacity: 0.9; }
  .contact__glow { top: 0; right: -320px; }
  .contact__list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .corp { padding: 18px 16px; }
  .corp__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__giant { font-size: 12vw; }
}

@media (max-width: 400px) {
  .seg button { padding: 0 9px; }
  .hero__ctas .btn { padding-left: 18px; }
}

@media (min-width: 768px) {
  .menu { display: none !important; }
}

/* Reduced motion: everything settles to its final state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .layer__ptr { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-island { background: #0e0d13; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu { background: #07070b; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toy-hud, .btn--ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
