/* Kick-Start AR Games — shared cinematic design system */
:root {
  --bg: #07080c;
  --bg-elevated: #0e1018;
  --bg-soft: #141822;
  --text: #f4f5f7;
  --text-muted: #9aa3b5;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #2ec4b6;
  --accent-2: #5eead4;
  --accent-glow: rgba(46, 196, 182, 0.4);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
}

.theme-arena {
  --accent: #e85d04;
  --accent-2: #ff9f1c;
  --accent-glow: rgba(232, 93, 4, 0.45);
}

.theme-rumble {
  --accent: #ff6b35;
  --accent-2: #ff8c42;
  --accent-glow: rgba(255, 107, 53, 0.45);
}

.theme-rumble .btn-primary,
.theme-rumble .nav-cta {
  background: #ff6b35;
  color: #140a06 !important;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.theme-rumble .btn-primary:hover,
.theme-rumble .btn-primary:focus-visible,
.theme-rumble .nav-cta:hover,
.theme-rumble .nav-cta:focus-visible {
  background: #ff7f4d;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.theme-rumble .hero-veil {
  background:
    linear-gradient(180deg, rgba(7,8,12,0.25) 0%, rgba(7,8,12,0.45) 35%, rgba(7,8,12,0.9) 100%),
    radial-gradient(ellipse at 70% 30%, var(--accent-glow), transparent 50%);
}

.theme-rumble .tab[aria-selected="true"] {
  background: #ff6b35;
  color: #140a06;
  border-color: transparent;
}

.theme-rumble .scroll-progress-bar {
  background: #ff6b35;
}

.theme-engine,
.theme-hub {
  --accent: #3d9ead;
  --accent-2: #7dd3c7;
  --accent-glow: rgba(61, 158, 173, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10002; background: transparent;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent-glow);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 10003;
  background: var(--accent); color: #041016; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 14px; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10000; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  height: 100%;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-brand span { color: var(--accent-2); }
.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center; gap: 5px; flex-direction: column;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: flex; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.35rem); flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-cta {
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}
.nav-cta:hover, .nav-cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000 !important;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: kenburns 28s ease-in-out infinite alternate;
}
.theme-rumble .hero-media img { object-position: center center; }
.theme-engine .hero-media img { object-position: 70% center; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,8,12,0.35) 0%, rgba(7,8,12,0.55) 40%, rgba(7,8,12,0.92) 100%),
    radial-gradient(ellipse at 30% 20%, var(--accent-glow), transparent 55%);
  animation: veilPulse 10s ease-in-out infinite alternate;
}
.hero-content {
  position: relative; z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  opacity: 0; transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}
.hero-brand em { font-style: normal; color: var(--accent-2); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 0.85rem;
  opacity: 0; transform: translateY(20px);
  animation: riseIn 0.8s var(--ease) 0.05s forwards;
}
.hero-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.hero h1, .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  max-width: 16ch;
  opacity: 0; transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.28s forwards;
}
.hero-sub {
  max-width: 38ch; color: var(--text-muted); margin: 0 0 1.5rem;
  opacity: 0; transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.4s forwards;
}
.hero-actions {
  opacity: 0; transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.52s forwards;
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes veilPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.08); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent); }
.section-header { margin-bottom: clamp(1.35rem, 3vw, 2.25rem); max-width: 40rem; }
.section-label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.65rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.section-lead { margin: 0; color: var(--text-muted); max-width: 48ch; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.54s; }

/* How it works */
.steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-visual { position: relative; aspect-ratio: 4/3; background: #0a0a0f; }
.step-visual img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.step-num {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--accent-2); text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
.step-content { padding: 1.15rem 1.2rem 1.35rem; }
.step-content h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0 0 0.45rem;
}
.step-content p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* 8-step setup grid (Arena — matches live help diagrams) */
.setup-grid {
  display: grid;
  gap: 0.75rem 0.65rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .setup-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem 0.75rem; }
}
.setup-card {
  margin: 0;
  text-align: center;
}
.setup-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0f;
  padding: 0.35rem;
}
.theme-arena .setup-card img {
  border-color: rgba(232, 93, 4, 0.45);
}
.theme-hub .setup-card img {
  border-color: rgba(45, 212, 191, 0.35);
}
.setup-card h3 {
  margin: 0.65rem 0 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-transform: none;
}

/* Lifestyle / action gallery */
.action-gallery {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .action-gallery {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
  .action-gallery .action-shot:first-child {
    grid-row: 1 / span 2;
  }
}
.action-shot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a0f;
}
.action-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
@media (min-width: 700px) {
  .action-gallery .action-shot:first-child img {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }
  .action-gallery .action-shot:not(:first-child) img {
    aspect-ratio: 16 / 10;
  }
}
.action-shot:hover img { transform: scale(1.04); }
.action-shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  font-size: 0.82rem;
  font-weight: 600;
  color: #f2f4f8;
}

.media-feature {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 860px) {
  .media-feature { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
  .media-feature.is-flip .media-feature-copy { order: 1; }
}
.media-feature-art {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: #0a0a0f;
}
.media-feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Feature / pitch grids */
.pitch-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pitch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pitch-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.pitch {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 60%);
}
.pitch h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.pitch p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Showcase cards (interaction containers) */
.showcase-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
.showcase {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 280px;
  display: flex; align-items: flex-end;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.showcase:hover, .showcase:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.showcase img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s var(--ease);
}
.showcase:hover img { transform: scale(1.05); }
.showcase-body {
  position: relative; z-index: 1; width: 100%;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.showcase-body h3 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; margin: 0 0 0.35rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.showcase-body p { margin: 0 0 0.9rem; color: #d7dbe6; font-size: 0.92rem; }

/* Modes */
.mode-list { display: grid; gap: 1.25rem; }
.mode {
  display: grid; gap: 1rem; align-items: center;
  padding: 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-elevated);
}
@media (min-width: 768px) {
  .mode { grid-template-columns: 1.1fr 1fr; }
  .mode:nth-child(even) .mode-copy { order: -1; }
}
.mode h3 {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; margin: 0 0 0.4rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.mode p { margin: 0 0 0.75rem; color: var(--text-muted); }
.mode-tag { font-size: 0.78rem; font-weight: 700; color: var(--accent-2); letter-spacing: 0.08em; text-transform: uppercase; }
.mode-note { font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem; }

/* Story */
.story-block {
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) {
  .story-block { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.story-text p { color: var(--text-muted); margin: 0 0 1rem; }
.story-text p:last-child { margin-bottom: 0; }
.story-art {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16/10;
}
.story-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Full circular / square art — no crop */
.story-art.is-fit {
  aspect-ratio: 1;
  background: transparent;
  border: none;
  overflow: visible;
}
.story-art.is-fit img {
  object-fit: contain;
  height: auto;
  max-height: none;
}

/* Roster */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;
}
.tab {
  min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 0.88rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041016; border-color: transparent;
}
.roster-panel[hidden] { display: none; }
.roster {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .roster { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; } }
@media (min-width: 1024px) { .roster { grid-template-columns: repeat(4, 1fr); gap: 0.55rem; } }
.roster-card {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-elevated);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
}
.roster-card.is-in { opacity: 1; transform: none; }
.roster-card:hover, .roster-card:focus-visible { border-color: var(--accent); outline: none; }
.roster-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #111; }
.roster-card-caption {
  display: block;
  padding: 0.7rem 0.75rem 0.95rem;
}
.roster-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.roster-card .excerpt {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--accent-2);
  line-height: 1.4;
  margin-top: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Character story dialog */
.char-dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  max-width: min(920px, calc(100vw - 2rem));
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}
.char-dialog::backdrop {
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(6px);
}
.char-dialog-grid {
  display: grid;
  gap: 0;
}
@media (min-width: 720px) {
  .char-dialog-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.char-dialog-art {
  background: #0a0a0f;
  min-height: 240px;
}
.char-dialog-art img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: cover;
  object-position: center top;
}
.char-dialog-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(70vh, 640px);
  overflow: auto;
}
.char-dialog-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.char-dialog-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.char-dialog-close {
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
}
.char-dialog-close:hover, .char-dialog-close:focus-visible {
  border-color: var(--accent);
}

/* FAQ */
.faq { display: grid; gap: 0.65rem; max-width: 760px; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated);
  padding: 0.15rem 1rem;
}
.faq summary {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; font-weight: 650; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.25rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  text-align: center; padding: clamp(2rem, 4.5vw, 3.25rem) 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 55%),
    var(--bg-elevated);
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600;
  margin: 0 0 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.cta-band p { margin: 0 auto 1.35rem; max-width: 42ch; color: var(--text-muted); }

/* Footer */
.site-footer {
  padding: 2rem 0 1.75rem; border-top: 1px solid var(--border); margin-top: 1rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; margin-top: 1.25rem; }

/* Capability list */
.cap-list {
  display: grid; gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cap-list { grid-template-columns: repeat(2, 1fr); } }
.cap-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.02); color: var(--text-muted); font-size: 0.92rem;
}
.cap-list li::before {
  content: ""; flex: 0 0 8px; height: 8px; margin-top: 0.45rem; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-glow);
}

/* Grouped capabilities (Engine) */
.cap-groups {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cap-groups { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
}
.cap-group {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.cap-group h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--accent-2);
}
.cap-group ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cap-group li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 0.9rem;
  position: relative;
}
.cap-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Short setup strip (Hub) */
.setup-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
@media (min-width: 700px) {
  .setup-strip { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
.setup-strip-item {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.setup-strip-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a0a0f;
  padding: 0.4rem;
}
.setup-strip-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.setup-strip-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.setup-strip-follow {
  margin-top: 0.25rem;
}

/* Mode art — contain art assets without cropping UI chrome */
.mode .story-art.is-mode-art {
  aspect-ratio: 16/10;
  background: #0a0a0f;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.mode .story-art.is-mode-art img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-height: 220px;
}

/* Video / watch proof */
.media-video {
  margin-top: 1.5rem;
}
.media-video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0f;
}
.media-video-frame iframe,
.media-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-video-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), transparent 55%),
    var(--bg-elevated);
}
.media-video-fallback p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36ch;
}

/* App Store badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  opacity: 0.95;
}
.store-badge img,
.store-badge svg {
  display: block;
  height: 48px;
  width: auto;
}
.hero-actions .store-badge,
.cta-band .store-badge {
  align-self: center;
}
.btn-group:has(.store-badge) {
  align-items: center;
}

/* Showcase dual actions */
.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.showcase-actions .btn {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.showcase-actions .btn-ghost {
  border-color: rgba(255,255,255,0.35);
}

/* Keyword strip — decorative labels only (not buttons) */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 0.85rem 1rem;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  animation: none;
}
.marquee-track span {
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto; padding: 1rem 1.25rem 1.25rem;
    background: rgba(7, 8, 12, 0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }
  .nav-links.is-open {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 0.65rem 0.25rem; }
  .nav-cta { justify-content: center; margin-top: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-veil, .hero-kicker::before { animation: none !important; }
  .hero-brand, .hero-kicker, .hero h1, .hero-headline, .hero-sub, .hero-actions {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .reveal, .roster-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .showcase, .step { transition: none !important; }
}
