/* ==========================================================================
   Tohu Interactive Limited · Game & Interactive Design Studio Stylesheet
   Inspired by Modern Kinetic Studio Design (Quantango-style Dark Carbon +
   Neon Violet / Coral-Orange / Acid-Lime + High-Contrast Chalk Bento Cards)
   Mobile-First 320px+ Zero Horizontal Overflow · Zero External Font Calls
   ========================================================================== */

:root {
  /* Core Studio Surfaces (Distinct from Tohu Academy's Ocean-Teal/Emerald) */
  --bg-carbon: #09090B;
  --bg-elevated: #111116;
  --bg-card: #15151D;
  --bg-card-hover: #1B1B26;
  --bg-chalk: #F4F4F6;
  --bg-chalk-soft: #EAEAEF;

  /* Typography Ink */
  --ink-white: #FAFAFA;
  --ink-secondary: #A1A1AA;
  --ink-muted: #71717A;
  --ink-on-chalk: #09090B;
  --ink-on-chalk-sub: #3F3F46;

  /* Game Studio Electric Accents */
  --violet: #8B5CF6;
  --violet-bright: #A78BFA;
  --violet-glow: rgba(139, 92, 246, 0.24);
  --coral: #FF6B35;
  --coral-bright: #FF8559;
  --coral-glow: rgba(255, 107, 53, 0.24);
  --lime: #BEF264;
  --lime-ink: #1A2E05;
  --cyan: #38BDF8;

  /* Hairlines & Radii */
  --line-subtle: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-chalk: rgba(9, 9, 11, 0.12);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Self-Hosted Modern Geometric Studio Stack */
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container-max: 1200px;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   1. Reset & Ironclad Mobile Viewport Clamping (Zero Clipping on 320px+)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg-carbon);
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--bg-carbon);
  background-image:
    radial-gradient(900px 500px at 12% -5%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(800px 460px at 90% 8%, rgba(255, 107, 53, 0.13), transparent 58%);
  color: var(--ink-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

div, section, article, aside, header, footer, main, nav, figure {
  min-width: 0;
}

a {
  color: var(--violet-bright);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #DDD6FE;
}

:focus-visible {
  outline: 2.5px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* --------------------------------------------------------------------------
   2. Unpublished Preview Banner
   -------------------------------------------------------------------------- */
.env-preview-banner {
  background: #141122;
  color: #E4E4E7;
  border-bottom: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 0.76rem;
}

.env-preview-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 7px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.env-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  min-width: 0;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(190, 242, 100, 0.14);
  border: 1px solid rgba(190, 242, 100, 0.4);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.env-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.env-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #A1A1AA;
}

.env-preview-meta a {
  color: var(--lime);
  font-weight: 700;
}

@media (max-width: 640px) {
  [data-env-api], .env-api-sep {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. Sticky Dark-Glass Studio Header & Mobile Burger Menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-subtle);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-white);
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-link:hover {
  color: var(--ink-white);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  color: var(--ink-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

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

.nav-mobile-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink-white);
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .btn-desktop-only {
    display: none !important;
  }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: rgba(17, 17, 22, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    z-index: 950;
  }

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

  .nav-link {
    padding: 12px 14px;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-subtle);
  }

  .nav-mobile-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-academy-pill {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. Buttons & Studio Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.82rem;
}

/* Neon-Violet + Coral Studio Gradient CTA */
.btn-primary {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 52%, #FF6B35 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.34);
}

.btn-primary:hover {
  color: #FFFFFF;
  box-shadow: 0 14px 34px rgba(255, 107, 53, 0.42);
}

/* Acid-Lime High-Contrast Studio Pill (Quantango-inspired signature CTA) */
.btn-lime,
.btn-copper {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(190, 242, 100, 0.22);
}

.btn-lime:hover,
.btn-copper:hover {
  background: #D9F99D;
  color: var(--lime-ink);
}

.btn-secondary,
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-white);
  border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink-white);
}

.btn-dark-chalk {
  background: var(--ink-on-chalk);
  color: var(--ink-white);
}

.btn-dark-chalk:hover {
  background: #27272A;
  color: var(--ink-white);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #DDD6FE;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 100%;
}

.eyebrow--coral {
  background: rgba(255, 107, 53, 0.14);
  border-color: rgba(255, 107, 53, 0.38);
  color: #FDBA74;
}

.eyebrow--lime {
  background: rgba(190, 242, 100, 0.13);
  border-color: rgba(190, 242, 100, 0.36);
  color: var(--lime);
}

.eyebrow--chalk {
  background: rgba(9, 9, 11, 0.07);
  border-color: rgba(9, 9, 11, 0.16);
  color: var(--ink-on-chalk);
}

/* --------------------------------------------------------------------------
   5. Kinetic Interactive Hero Stage (60FPS Canvas + 3D Studio Showcase)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 44px 0 56px;
  overflow: hidden;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

#studio-kinetic-canvas {
  width: 100%;
  height: 100%;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 4.8vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink-white);
}

.hero-subline {
  margin: -4px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--lime);
}

.text-studio-grad,
.accent-italic {
  background: linear-gradient(125deg, #C4B5FD 0%, #FF8559 52%, #BEF264 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.section-lead {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 62ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 480px) {
  .hero-cta-group .btn {
    width: 100%;
  }
}

.hero-metrics-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .hero-metrics-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-pill-card {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: rgba(21, 21, 29, 0.85);
  border: 1px solid var(--line-subtle);
}

.stat-pill-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink-white);
}

.stat-pill-lbl {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-secondary);
}

/* 3D Visual Frame */
.studio-photo-card {
  margin: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(30, 27, 46, 0.9), rgba(15, 15, 20, 0.96));
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(139, 92, 246, 0.16);
  overflow: hidden;
}

.studio-photo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.studio-photo-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #07070A;
  overflow: hidden;
}

.studio-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-photo-card:hover .studio-photo-box img {
  transform: scale(1.025);
}

.studio-photo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.79rem;
  color: var(--ink-secondary);
  border-top: 1px solid var(--line-subtle);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(190, 242, 100, 0.14);
  border: 1px solid rgba(190, 242, 100, 0.36);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Infinite Kinetic Platform Marquee Ticker (Quantango Signature)
   -------------------------------------------------------------------------- */
.studio-marquee {
  position: relative;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  background: #0D0D12;
  padding: 14px 0;
  overflow: hidden;
  user-select: none;
}

.studio-marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: studioTicker 34s linear infinite;
}

.studio-marquee:hover .studio-marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4D4D8;
  white-space: nowrap;
}

.marquee-spark {
  color: var(--coral);
  font-size: 0.95rem;
}

@keyframes studioTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .studio-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 0 16px;
  }
}

/* --------------------------------------------------------------------------
   7. Sections, Numbered Interactive Spotlight Bento Cards & Chalk Contrast
   -------------------------------------------------------------------------- */
.section {
  padding: 68px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

.section-elevated {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

/* High-Contrast Chalk Section (Quantango Light-on-Dark Architectural Break) */
.section-chalk,
.section-sandstone {
  background: var(--bg-chalk);
  color: var(--ink-on-chalk);
}

.section-chalk .editorial-title,
.section-sandstone .editorial-title {
  color: var(--ink-on-chalk);
}

.section-chalk .section-lead,
.section-sandstone .section-lead {
  color: var(--ink-on-chalk-sub);
}

.section-header {
  margin-bottom: 34px;
}

.section-header--center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.editorial-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-white);
}

/* Pointer-Tracked Spotlight Bento Grids */
.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .bento-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .bento-grid-4,
  .bento-grid-2 {
    grid-template-columns: 1fr;
  }
}

.spotlight-card,
.studio-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.18),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card[data-spot="nw"] { --mx: 18%; --my: 18%; }
.spotlight-card[data-spot="n"]  { --mx: 50%; --my: 15%; }
.spotlight-card[data-spot="ne"] { --mx: 82%; --my: 18%; }
.spotlight-card[data-spot="w"]  { --mx: 18%; --my: 50%; }
.spotlight-card[data-spot="c"]  { --mx: 50%; --my: 50%; }
.spotlight-card[data-spot="e"]  { --mx: 82%; --my: 50%; }
.spotlight-card[data-spot="sw"] { --mx: 18%; --my: 82%; }
.spotlight-card[data-spot="s"]  { --mx: 50%; --my: 85%; }
.spotlight-card[data-spot="se"] { --mx: 82%; --my: 82%; }

.spotlight-card:hover,
.studio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.42);
}

.section-chalk .studio-card,
.section-sandstone .studio-card {
  background: #FFFFFF;
  color: var(--ink-on-chalk);
  border-color: var(--line-chalk);
  box-shadow: 0 12px 30px rgba(9, 9, 11, 0.05);
}

.section-chalk .studio-card p,
.section-sandstone .studio-card p {
  color: var(--ink-on-chalk-sub);
}

.card-index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #DDD6FE;
}

.card-num--coral {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.36);
  color: #FDBA74;
}

.card-num--lime {
  background: rgba(190, 242, 100, 0.15);
  border-color: rgba(190, 242, 100, 0.38);
  color: var(--lime);
}

.card-num--cyan {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.36);
  color: #7DD3FC;
}

.spotlight-card h3,
.studio-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.spotlight-card p,
.studio-card p {
  position: relative;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.platform-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.platform-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-subtle);
  color: #E4E4E7;
}

/* --------------------------------------------------------------------------
   8. Featured Worlds / Game Releases Portal Cards
   -------------------------------------------------------------------------- */
.portal-basalt {
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 40px);
  background:
    radial-gradient(650px 320px at 95% 5%, rgba(255, 107, 53, 0.16), transparent 60%),
    radial-gradient(620px 340px at 5% 95%, rgba(139, 92, 246, 0.2), transparent 62%),
    #111118;
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: var(--ink-white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 920px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.portal-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 560px) {
  .portal-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portal-stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
}

.portal-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--lime);
}

.portal-stat span {
  display: block;
  font-size: 0.74rem;
  color: #D4D4D8;
  margin-top: 2px;
}

.portal-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #07070A;
}

.portal-img-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Studio Slate Cards (Upcoming & Arcade Worlds) */
.world-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  gap: 16px;
}

.world-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.world-status--live {
  background: rgba(190, 242, 100, 0.14);
  border: 1px solid rgba(190, 242, 100, 0.4);
  color: var(--lime);
}

.world-status--lab {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #7DD3FC;
}

.world-status--dev {
  background: rgba(255, 107, 53, 0.14);
  border: 1px solid rgba(255, 107, 53, 0.38);
  color: #FDBA74;
}

/* --------------------------------------------------------------------------
   9. Global Editions Interactive Explorer
   -------------------------------------------------------------------------- */
.market-explorer-shell {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.market-tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.market-tab-btn:hover {
  color: var(--ink-white);
  border-color: var(--violet-bright);
}

.market-tab-btn[aria-selected="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #FFFFFF;
}

.market-detail-panel {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(9, 9, 11, 0.65);
  border: 1px solid var(--line-subtle);
}

.market-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(190, 242, 100, 0.15);
  color: var(--lime);
  border: 1px solid rgba(190, 242, 100, 0.38);
}

.market-status-pill.status-architected {
  background: rgba(139, 92, 246, 0.16);
  color: #DDD6FE;
  border-color: rgba(139, 92, 246, 0.38);
}

.market-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .market-spec-grid {
    grid-template-columns: 1fr;
  }
}

.market-spec-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-subtle);
}

.market-spec-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.market-spec-box strong {
  font-size: 0.86rem;
  color: var(--ink-white);
}

/* --------------------------------------------------------------------------
   10. About Page · Value Bars & 5 Family Promises
   -------------------------------------------------------------------------- */
.conviction-quote-card {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: #12121A;
  color: var(--ink-white);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.conviction-quote-card p {
  color: #D4D4D8;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.founders-pledge-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.12);
  border-left: 4px solid var(--lime);
  color: #FAFAFA;
  font-weight: 700;
  font-size: 0.96rem;
}

.vbar-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
}

.vbar-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vbar-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vbar-fill-tutor {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.vbar-fill-tohu {
  width: 4%;
  min-width: 18px;
  height: 100%;
  background: var(--lime);
}

.diagram-frame {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  overflow: hidden;
}

.section-chalk .diagram-frame,
.section-sandstone .diagram-frame {
  background: #FFFFFF;
  border-color: var(--line-chalk);
}

.promise-shield-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .promise-shield-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .promise-shield-grid {
    grid-template-columns: 1fr;
  }
}

.promise-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--ink-on-chalk);
  border: 1px solid var(--line-chalk);
  box-shadow: 0 10px 24px rgba(9, 9, 11, 0.05);
}

.promise-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-on-chalk);
}

.promise-card span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-on-chalk-sub);
}

/* --------------------------------------------------------------------------
   11. Anti-Spam Protected Studio Contact Form
   -------------------------------------------------------------------------- */
.contact-shell {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
}

.honeypot-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #E4E4E7;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #0B0B10;
  color: var(--ink-white);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.shield-challenge-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.34);
  margin-bottom: 16px;
}

.shield-challenge-box label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #DDD6FE;
}

.shield-input {
  width: 96px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: #09090B;
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}

.form-status-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(190, 242, 100, 0.12);
  border: 1px solid rgba(190, 242, 100, 0.4);
  color: var(--lime);
  font-size: 0.86rem;
}

.form-status-banner.is-error {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.45);
  color: #FDA4AF;
}

/* --------------------------------------------------------------------------
   12. Modal Dialog, Legal Pages & Studio Footer
   -------------------------------------------------------------------------- */
.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #14141C;
  border: 1px solid var(--line-strong);
  color: var(--ink-white);
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-white);
  cursor: pointer;
  font-size: 1rem;
}

/* Legal Pages */
.legal-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line-subtle);
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 64px;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
}

.legal-toc {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  height: fit-content;
}

.legal-toc-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.legal-document h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-white);
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  color: #D4D4D8;
  font-size: 0.95rem;
}

.legal-callout {
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.34);
  color: #E4E4E7;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-subtle);
  background: #060608;
  padding: 52px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   13. Strict CSP (`style-src 'self'`) Component & Layout Modifiers
   -------------------------------------------------------------------------- */
.btn-block {
  width: 100%;
}

.eyebrow--tight {
  margin-bottom: 8px;
}

.section-lead--followup {
  margin-top: 12px;
}

.section-lead--spaced {
  margin-bottom: 20px;
}

.section-lead--contact {
  margin-bottom: 18px;
}

.hero-cta-group--portal {
  margin-top: 22px;
}

.hero-cta-group--centered {
  justify-content: center;
  margin-top: 0;
}

.bento-grid-spaced {
  margin-top: 22px;
}

.bento-grid-center {
  align-items: center;
}

.card-index-row--tight {
  margin-bottom: 10px;
}

.studio-card-cta {
  margin-top: 14px;
}

.contact-note-card {
  margin-top: 18px;
}

.spotlight-card .contact-note-copy {
  margin: 0;
  font-size: 0.88rem;
}

.portal-title {
  margin-top: 14px;
}

.portal-lead {
  color: #D4D4D8;
  font-size: 1.02rem;
  margin: 0;
}

.portal-basalt--centered {
  margin-top: 36px;
  text-align: center;
}

.portal-basalt .portal-centered-title,
.section-chalk .portal-basalt .editorial-title {
  max-width: 680px;
  margin: 14px auto 12px;
  color: var(--ink-white);
}

.portal-centered-copy {
  color: #D4D4D8;
  max-width: 580px;
  margin: 0 auto 22px;
}

.world-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
  color: var(--ink-white);
}

.world-card-desc {
  color: var(--ink-secondary);
  margin: 0;
}

.market-detail-title {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}

.market-detail-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.nz-disclaimer-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.48;
  color: var(--ink-muted);
}

.conviction-title {
  margin-bottom: 14px;
}

.conviction-quote-card .conviction-last-p {
  margin-bottom: 0;
}

.founders-signoff {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.vbar-item--mb {
  margin-bottom: 14px;
}

.vbar-item--mt {
  margin-top: 14px;
}

.vbar-item--highlight {
  border-color: rgba(190, 242, 100, 0.45);
  background: rgba(190, 242, 100, 0.08);
}

.vbar-price-tutor {
  color: #FDBA74;
}

.vbar-price-tohu {
  color: var(--lime);
}

.vbar-price-cyan {
  color: #7DD3FC;
}

.vbar-note {
  display: block;
  font-size: 0.78rem;
  line-height: 1.48;
  color: #A1A1AA;
  margin-top: 6px;
}

.vbar-note--lime {
  color: #D9F99D;
}

.vbar-desc {
  display: block;
  font-size: 0.84rem;
  color: #D4D4D8;
  line-height: 1.5;
}

.diagram-frame--spaced {
  margin-top: 26px;
}

.diagram-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.diagram-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.promise-card .promise-icon {
  font-size: 1.4rem;
  line-height: 1.2;
}

.modal-title {
  margin: 0;
  font-size: 1.45rem;
}

.modal-lead {
  color: #D4D4D8;
  font-size: 0.94rem;
}

.modal-list {
  color: #D4D4D8;
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 20px;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand-link {
  margin-bottom: 12px;
}

.footer-brand-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}
