/* Nokt Studios & Cog Crew — Obsidian Workshop Stylesheet */
/* Self-hosted fonts, pure black canvas, strict CSP compliant (zero inline styles) */
/* The fonts are subsets of Rubik and Nunito under the SIL Open Font License 1.1: /assets/fonts/Rubik-OFL.txt and /assets/fonts/Nunito-OFL.txt */

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-void: #000000;
  --bg-surface: #0b0b0e;
  --bg-elevated: #111115;
  --bg-raised: #17171d;
  --bg-hover: #1e1e26;

  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-mid: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.24);
  --hairline-amber: rgba(253, 183, 61, 0.36);
  --hairline-cyan: rgba(67, 255, 253, 0.34);

  --ink: #f6f4ef;
  --ink-soft: #b6b3ab;
  --ink-muted: #7c7972;

  --amber: #fdb73d;
  --amber-bright: #ffeca8;
  --amber-soft: rgba(253, 183, 61, 0.12);

  --cyan: #43fffd;
  --cyan-soft: rgba(67, 255, 253, 0.11);

  --coral: #f56383;
  --coral-soft: rgba(245, 99, 131, 0.14);

  --emerald: #6ee07e;
  --emerald-soft: rgba(110, 224, 126, 0.12);

  --violet: #c592ff;
  --violet-soft: rgba(197, 146, 255, 0.13);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --header-h: 68px;

  --font-display: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-void);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

a:hover {
  color: var(--amber-bright);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: #000000;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BASE BUTTONS (DEFINED BEFORE COMPONENT VARIANTS)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.68rem 1.18rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--amber);
  color: #000000;
}

.btn-primary:hover {
  background: var(--amber-bright);
  color: #000000;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--hairline-mid);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--bg-raised);
  border-color: var(--hairline-strong);
  color: var(--ink);
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  opacity: 0.95;
}

.brand-link:hover {
  opacity: 1;
}

.brand-link img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  min-height: 38px;
  padding: 0.5rem 0.84rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-discord {
  margin-left: 0.35rem;
  padding: 0.5rem 0.96rem;
  background: var(--bg-elevated);
  border-color: var(--hairline-amber);
  color: var(--amber-bright);
}

.nav-links .nav-discord:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #000000;
}

.nav-links .nav-discord svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Language switcher (EN / ES half-Spain+CR / PT Brazil) */
.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-mid);
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 30px;
  padding: 0.22rem 0.52rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn[aria-pressed="true"] {
  background: var(--amber);
  color: #000000;
}

.flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lang-btn[aria-pressed="true"] .flag-icon {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.32);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-mid);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-raised);
  border-color: var(--hairline-strong);
}

.nav-toggle line {
  transform-box: view-box;
  transform-origin: 12px 12px;
  transition: transform 0.18s ease, opacity 0.16s ease;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--hairline-amber);
  color: var(--amber);
}

.nav-toggle[aria-expanded="true"] line:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}

.nav-toggle[aria-expanded="true"] line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] line:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* ============================================================
   PURE-BLACK HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 0 0 2.75rem;
  background: var(--bg-void);
}

.hero-theater {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-void);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-void);
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-stage::before {
  background: linear-gradient(
    to right,
    #000000 0%,
    rgba(0, 0, 0, 0.42) 3%,
    transparent 8%,
    transparent 92%,
    rgba(0, 0, 0, 0.42) 97%,
    #000000 100%
  );
}

.hero-stage::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 10%,
    transparent 78%,
    rgba(0, 0, 0, 0.72) 93%,
    #000000 100%
  );
}

.keyart-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.keyart-logo {
  position: absolute;
  top: 2.2%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(148px, 41%, 405px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.hero-deck {
  position: relative;
  z-index: 4;
  margin-top: -0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 2.5rem;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-bottom: 0.6rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.76rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  flex-shrink: 0;
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.95vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-lead {
  margin: 0.65rem 0 0;
  max-width: 56ch;
  font-size: 0.99rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.store-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-mid);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.store-badge:hover {
  color: var(--ink);
  background: var(--bg-raised);
  border-color: var(--hairline-amber);
  transform: translateY(-2px);
}

.store-badge--android:hover {
  border-color: var(--hairline-cyan);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--ink);
}

.store-badge-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  line-height: 1;
}

.store-badge-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
}

.store-badge--android .store-badge-kicker {
  color: var(--cyan);
}

.store-badge-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-discord-btn {
  width: 100%;
  justify-content: space-between;
  padding: 0.72rem 1.02rem;
  gap: 0.5rem;
}

.hero-discord-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.15;
  min-width: 0;
}

.hero-discord-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: #000000;
}

.coming-soon-note {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.coming-soon-note.is-active {
  color: var(--amber-bright);
}

/* ============================================================
   SHARED SECTION CHROME
   ============================================================ */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg-void);
  scroll-margin-top: var(--header-h);
}

.section--tight {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: 2.5rem;
}

.section-head-main {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow--cyan {
  color: var(--cyan);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  max-width: 46ch;
  font-size: 0.99rem;
  color: var(--ink-soft);
}

/* ============================================================
   COMPLETE "MEET THE CREW" SHOWCASE (20 UNITS)
   ============================================================ */
.crew-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem;
  align-items: stretch;
}

.crew-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 490px;
  padding: 1.25rem 1.45rem 1.35rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-void);
  border: 1px solid var(--hairline-mid);
  overflow: hidden;
  transition: border-color 0.24s ease;
}

.crew-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.85) 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.85) 0%, transparent 74%);
  pointer-events: none;
}

.crew-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 183, 61, 0.2) 0%, rgba(253, 183, 61, 0.05) 44%, transparent 72%);
  pointer-events: none;
  transition: background 0.26s ease;
}

.crew-stage[data-accent="amber"] {
  border-color: var(--hairline-amber);
}

.crew-stage[data-accent="cyan"] {
  border-color: var(--hairline-cyan);
}

.crew-stage[data-accent="cyan"]::after {
  background: radial-gradient(circle, rgba(67, 255, 253, 0.22) 0%, rgba(67, 255, 253, 0.05) 44%, transparent 72%);
}

.crew-stage[data-accent="emerald"] {
  border-color: rgba(110, 224, 126, 0.34);
}

.crew-stage[data-accent="emerald"]::after {
  background: radial-gradient(circle, rgba(110, 224, 126, 0.2) 0%, rgba(110, 224, 126, 0.05) 44%, transparent 72%);
}

.crew-stage[data-accent="coral"] {
  border-color: rgba(245, 99, 131, 0.36);
}

.crew-stage[data-accent="coral"]::after {
  background: radial-gradient(circle, rgba(245, 99, 131, 0.22) 0%, rgba(245, 99, 131, 0.05) 44%, transparent 72%);
}

.crew-stage[data-accent="violet"] {
  border-color: rgba(197, 146, 255, 0.36);
}

.crew-stage[data-accent="violet"]::after {
  background: radial-gradient(circle, rgba(197, 146, 255, 0.22) 0%, rgba(197, 146, 255, 0.05) 44%, transparent 72%);
}

.stage-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stage-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stage-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.stage-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-mid);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.stage-nav-btn:hover {
  background: var(--bg-raised);
  border-color: var(--amber);
  color: var(--amber);
}

.stage-figure-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 0.75rem;
}

.stage-figure {
  width: min(84%, 280px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.85));
  transition: transform 0.22s ease, opacity 0.18s ease;
  animation: bot-hover 4.6s ease-in-out infinite;
}

.stage-figure.is-swapping {
  opacity: 0;
  transform: scale(0.95) translateY(6px);
}

@keyframes bot-hover {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.stage-plinth {
  width: 176px;
  height: 16px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 55%, transparent 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.85rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hairline);
}

.stage-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
}

.stage-render-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}

.crew-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.crew-dossier {
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
}

.dossier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.dossier-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.dossier-ability {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--hairline-amber);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-bright);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.crew-showcase[data-accent="cyan"] .dossier-ability {
  background: var(--cyan-soft);
  border-color: var(--hairline-cyan);
  color: var(--cyan);
}

.crew-showcase[data-accent="emerald"] .dossier-ability {
  background: var(--emerald-soft);
  border-color: rgba(110, 224, 126, 0.36);
  color: var(--emerald);
}

.crew-showcase[data-accent="coral"] .dossier-ability {
  background: var(--coral-soft);
  border-color: rgba(245, 99, 131, 0.38);
  color: var(--coral);
}

.crew-showcase[data-accent="violet"] .dossier-ability {
  background: var(--violet-soft);
  border-color: rgba(197, 146, 255, 0.38);
  color: var(--violet);
}

.dossier-desc {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.dossier-specs {
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dossier-specs li {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1;
  color: var(--ink);
}

/* Grouped 22-Bot Roster Dock (5 Core & Orbital + 17 Specialists) */
.crew-dock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crew-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crew-group-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.crew-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.crew-group-count {
  padding: 0.16rem 0.44rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.crew-grid {
  display: grid;
  gap: 0.5rem;
}

.crew-grid--core {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.crew-grid--specialists {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.crew-grid--specialists .crew-tile {
  flex: 0 0 calc((100% - 2.5rem - 0.5px) / 6);
  min-width: 0;
}

.crew-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  padding: 0.58rem 0.28rem 0.52rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.crew-tile span {
  white-space: nowrap;
}

.crew-tile:hover {
  background: var(--bg-elevated);
  border-color: var(--hairline-strong);
  color: var(--ink);
  transform: translateY(-2px);
}

.crew-tile img {
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  pointer-events: none;
}

.crew-tile--mystery {
  border-style: dashed;
  border-color: rgba(67, 255, 253, 0.28);
  background: linear-gradient(180deg, rgba(67, 255, 253, 0.06) 0%, var(--bg-surface) 100%);
  color: var(--cyan);
}

.crew-tile--mystery:hover {
  border-color: rgba(67, 255, 253, 0.58);
  color: var(--cyan);
}

.crew-tile[aria-pressed="true"] {
  border-style: solid;
  background: var(--bg-raised);
  border-color: var(--amber);
  color: var(--amber-bright);
  box-shadow: inset 0 0 0 1px rgba(253, 183, 61, 0.25);
}

.crew-showcase[data-accent="cyan"] .crew-tile[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(67, 255, 253, 0.25);
}

.crew-showcase[data-accent="emerald"] .crew-tile[aria-pressed="true"] {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px rgba(110, 224, 126, 0.25);
}

.crew-showcase[data-accent="coral"] .crew-tile[aria-pressed="true"] {
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: inset 0 0 0 1px rgba(245, 99, 131, 0.25);
}

.crew-showcase[data-accent="violet"] .crew-tile[aria-pressed="true"] {
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(197, 146, 255, 0.25);
}

/* ============================================================
   WORLD & VEHICLES — CLEAN 4-CARD BENTO
   ============================================================ */
.world-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.bento-card:hover {
  border-color: var(--hairline-strong);
}

.bento-card--wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 2.25rem;
  background: var(--bg-void);
  border-color: var(--hairline-mid);
}

.bento-card--full {
  grid-column: span 12;
  gap: 1.65rem;
}

.bento-card--half {
  grid-column: span 6;
}

.bento-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
}

.bento-kicker--cyan {
  color: var(--cyan);
}

.bento-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.15vw, 1.72rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bento-card p:not(.bento-kicker) {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.bento-tags {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.bento-tag {
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  color: var(--ink-soft);
}

/* Card 1: Orbital Panorama Frame */
.orbit-scene {
  width: 100%;
}

.orbit-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-mid);
  background: #000000;
}

/* Card 2: 6-Vehicle Showcase Grid */
.bento-full-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.bento-full-head p:not(.bento-kicker) {
  max-width: 66ch;
}

.bento-full-head .bento-tags {
  margin-top: 0;
  padding-top: 0;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.vehicle-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: #000000;
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.vehicle-card:hover {
  border-color: var(--hairline-amber);
  transform: translateY(-2px);
}

.vehicle-media {
  padding: 0.85rem 0.65rem 0.6rem;
  background: radial-gradient(circle at 50% 62%, rgba(253, 183, 61, 0.09) 0%, transparent 66%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.85));
}

.vehicle-label {
  padding: 0.56rem 0.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

/* Cards 3 & 4: In-Game World Gameplay Frames */
.bento-card--art {
  padding: 1.75rem;
}

.world-art-frame {
  position: relative;
  margin-bottom: 1.4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline-mid);
  background: #000000;
}

.world-art-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Field Guide / Game Lingo Glossary Card */
.glossary-card {
  grid-column: span 12;
  gap: 1.35rem;
  background: var(--bg-surface);
  border-color: var(--hairline-mid);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.glossary-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: #000000;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.glossary-item dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--amber-bright);
  letter-spacing: -0.01em;
}

.glossary-item dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Hero Android pricing clarity disclaimer */
.pricing-disclaimer {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--amber);
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

.pricing-disclaimer strong {
  color: var(--ink);
}

/* ============================================================
   PLAYER-FIRST PROMISE (ETHOS)
   ============================================================ */
.manifesto {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--hairline-amber);
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 2.25rem;
}

.manifesto-seal {
  width: 148px;
  height: 148px;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 52%, rgba(253, 183, 61, 0.11) 0%, transparent 68%), #000000;
  border: 1px solid var(--hairline-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifesto-seal img {
  width: 100px;
  height: auto;
}

.manifesto-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.manifesto-head p:not(.eyebrow) {
  margin: 0;
  max-width: 66ch;
  color: var(--ink-soft);
}

.manifesto-ledger {
  margin: 1.6rem 0 0;
  padding: 1.35rem 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.manifesto-ledger li {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.ledger-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.ledger-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.ledger-copy {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* ============================================================
   NOKT STUDIOS & CONTACT
   ============================================================ */
.studio-panel {
  position: relative;
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--hairline-mid);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 2.75rem;
}

.studio-emblem-wrap {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.045) 0%, transparent 66%), #000000;
  border: 1px solid var(--hairline);
}

.studio-emblem {
  width: min(64%, 164px);
  height: auto;
}

.studio-copy h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.studio-copy p:not(.eyebrow):not(.copy-feedback) {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.contact-row {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.contact-row .btn {
  padding: 0.65rem 1.02rem;
  font-size: 0.9rem;
}

.social-row {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.social-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 0.25rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 40px;
  padding: 0.46rem 0.92rem;
  border-radius: 999px;
  background: #000000;
  border: 1px solid var(--hairline-mid);
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1;
}

.social-pill:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
  background: var(--bg-elevated);
}

.social-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pill-soon {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-left: 0.44rem;
  border-left: 1px solid var(--hairline-mid);
}

.copy-feedback {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--cyan);
  min-height: 1.25em;
}

.copy-feedback:empty {
  margin: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 2.1rem 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg-void);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.footer-brand img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  line-height: 1;
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--amber);
}

/* The brands' notices: a line of its own under the brand and the links. */
.footer-legal {
  width: 100%;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footer-legal a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--amber);
}

.footer-origin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.85rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-heart {
  width: 15px;
  height: 15px;
  color: var(--coral);
  flex-shrink: 0;
}

.flag-icon--cr {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */
.legal-main {
  padding: 3.5rem 0 5.5rem;
  background: var(--bg-void);
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline);
}

.legal-header h1 {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.legal-meta strong {
  color: var(--ink);
}

.summary-box {
  margin: 2rem 0;
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--hairline-amber);
}

.summary-box h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--amber);
}

.summary-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.summary-box li {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.summary-box li:last-child {
  margin-bottom: 0;
}

.summary-box strong {
  color: var(--ink);
}

.toc-nav {
  margin: 1.75rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
}

.toc-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 1.5rem;
  font-size: 0.93rem;
}

.toc-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.25rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.3;
}

.toc-list a:hover {
  color: var(--amber);
}

.prose section {
  padding-top: 2.25rem;
}

.prose h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.prose h3 {
  margin: 1.45rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--amber-bright);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
}

.prose code,
.summary-box code {
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.table-wrap {
  margin: 1.2rem 0 1.4rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--bg-surface);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.policy-table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-elevated);
}

.policy-table td {
  color: var(--ink-soft);
  line-height: 1.8;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.callout-note {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
  background: var(--bg-surface);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.callout-note strong {
  color: var(--ink);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.notfound-main {
  min-height: calc(100vh - var(--header-h) - 108px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-void);
}

.notfound-card {
  width: 100%;
  max-width: 560px;
  padding: 2.75rem 2.25rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--hairline-mid);
}

.notfound-art {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 auto 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-mid);
  background: #000000;
}

.notfound-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.notfound-card h1 {
  margin: 0.4rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.notfound-card p:not(.notfound-code) {
  margin: 0 auto 1.75rem;
  max-width: 44ch;
  color: var(--ink-soft);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .crew-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .crew-stage {
    min-height: 390px;
  }
}

@media (max-width: 1000px) {
  .nav-links a {
    min-height: 44px;
  }

  .hero-deck {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .bento-card--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-card--half {
    grid-column: span 12;
  }

  .vehicle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-links a {
    padding: 0.48rem 0.62rem;
    font-size: 0.86rem;
  }

  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manifesto {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .manifesto-seal {
    margin: 0 auto;
  }

  .manifesto-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem;
    gap: 2rem;
  }

  .studio-emblem-wrap {
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
  }

  .contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .contact-row .btn {
    width: 100%;
  }

  .social-pill {
    min-height: 44px;
  }

  .footer-links a {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 860px) {
  .container,
  .legal-container {
    padding: 0 1.25rem;
  }

  .site-header nav {
    display: contents;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 1.35rem;
    background: #060608;
    border-bottom: 1px solid var(--hairline-mid);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a:not(.nav-discord) {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.15rem;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }

  .nav-links a:not(.nav-discord):hover,
  .nav-links a:not(.nav-discord)[aria-current="page"] {
    background: transparent;
    color: var(--amber-bright);
  }

  .nav-links .nav-discord {
    width: 100%;
    min-height: 44px;
    margin-left: 0;
    margin-top: 0.85rem;
    padding: 0.72rem 1rem;
    border-radius: var(--radius-md);
    justify-content: center;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-stage::before {
    background: none;
  }

  .hero-deck {
    margin-top: 0;
    padding-top: 1.15rem;
  }

  .hero-discord-btn {
    padding: 0.72rem 0.85rem;
    font-size: 0.86rem;
  }

  .stage-code {
    white-space: nowrap;
  }

  .store-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3.5rem 0;
  }

  .crew-stage {
    padding: 1.35rem;
  }

  .stage-role {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .stage-render-tag {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .crew-dossier {
    padding: 1.35rem;
  }

  .crew-grid--core {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .crew-grid--core .crew-tile {
    padding: 0.45rem 0.14rem 0.42rem;
    gap: 0.28rem;
    font-size: 0.68rem;
  }

  .crew-grid--core .crew-tile img {
    width: 38px;
    height: 38px;
  }

  .crew-grid--specialists {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
  }

  .crew-grid--specialists .crew-tile {
    flex: 0 0 calc((100% - 1.35rem - 0.5px) / 4);
    min-width: 0;
    padding: 0.52rem 0.18rem 0.46rem;
    font-size: 0.73rem;
  }

  .crew-grid--specialists .crew-tile img {
    width: 42px;
    height: 42px;
  }

  .bento-card,
  .bento-card--art {
    padding: 1.35rem;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .glossary-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .header-controls {
    gap: 0.4rem;
  }

  .lang-btn {
    padding: 0.2rem 0.42rem;
    gap: 0.26rem;
    font-size: 0.67rem;
  }

  .flag-icon {
    width: 16px;
    height: 11px;
  }

  .footer-origin {
    justify-content: flex-start;
  }

  .manifesto {
    padding: 1.35rem;
  }

  .manifesto-ledger {
    grid-template-columns: 1fr;
  }

  .studio-panel {
    padding: 1.35rem;
    gap: 1.5rem;
  }

  .studio-emblem-wrap {
    max-width: 160px;
    padding: 1.35rem;
  }

  .studio-emblem {
    width: 76%;
  }

  .contact-row > :nth-child(1),
  .contact-row > :nth-child(2) {
    grid-column: 1 / -1;
  }

  .contact-row .btn {
    padding: 0.66rem 0.65rem;
    gap: 0.45rem;
    font-size: 0.88rem;
  }

  .social-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0.45rem;
  }

  .social-label {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 0.15rem;
  }

  .social-pill {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 0.46rem 0.35rem;
    gap: 0.34rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .social-pill svg {
    width: 15px;
    height: 15px;
  }

  .pill-soon {
    font-size: 0.62rem;
    padding-left: 0.32rem;
  }

  .summary-box,
  .toc-nav {
    padding: 1.35rem;
  }

  .toc-list {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  /* Responsive stacked cards for legal tables on narrow phones */
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table td {
    display: block;
    width: 100%;
  }

  .policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .policy-table tr {
    margin-bottom: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--hairline);
    overflow: hidden;
  }

  .policy-table tr:last-child {
    margin-bottom: 0;
  }

  .policy-table td {
    padding: 0.72rem 0.95rem;
    border-bottom: 1px solid var(--hairline);
  }

  .policy-table td:last-child {
    border-bottom: 0;
  }

  .policy-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .notfound-main {
    min-height: auto;
    padding: 2rem 1.25rem;
  }

  .notfound-card {
    padding: 1.35rem;
  }

  .notfound-art {
    margin-bottom: 1.1rem;
  }

  .notfound-card p:not(.notfound-code) {
    margin-bottom: 1.35rem;
  }

  .notfound-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .notfound-actions .btn {
    width: 100%;
    padding: 0.68rem 0.6rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 0 1rem;
  }

  .footer-links a {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .footer-links a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .stage-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .dossier-head {
    gap: 0.45rem 0.75rem;
  }

  .dossier-name {
    font-size: 1.45rem;
  }

  .dossier-ability {
    padding: 0.28rem 0.66rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 380px) {
  .dossier-specs {
    gap: 0.36rem;
  }

  .dossier-specs li {
    padding: 0.28rem 0.56rem;
    font-size: 0.68rem;
  }

  .social-row {
    gap: 0.38rem;
  }

  .social-pill {
    padding: 0.44rem 0.25rem;
    gap: 0.28rem;
    font-size: 0.78rem;
  }

  .social-pill svg {
    width: 14px;
    height: 14px;
  }

  .pill-soon {
    font-size: 0.6rem;
    padding-left: 0.28rem;
  }

  .footer-brand {
    font-size: 0.8rem;
    gap: 0.55rem;
  }
}
