/* ==========================================================================
   GRAPHENE.MOVIE — POST-APPLE LIQUID GLASS × HORIZON OS × XMETASPACE
   Atomic Nanotechnology Spatial Interface & Companion Design System
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg-deep: #06090f;
  --bg-atmosphere: #0a101b;
  --bg-surface: #0f1624;
  --bg-card: linear-gradient(145deg, rgba(32, 43, 60, 0.72), rgba(14, 19, 28, 0.84) 62%, rgba(10, 14, 22, 0.90));
  --bg-card-elevated: linear-gradient(145deg, rgba(38, 52, 74, 0.78), rgba(16, 22, 33, 0.88) 60%, rgba(11, 15, 24, 0.94));
  --bg-companion: linear-gradient(165deg, #132238 0%, #0d1626 48%, #0a101b 100%);
  --bg-card-solid: #0f1521;

  --border-subtle: rgba(190, 212, 240, 0.15);
  --border-rim: rgba(205, 224, 248, 0.24);
  --border-glow: rgba(184, 208, 242, 0.34);
  --border-gold: rgba(216, 201, 163, 0.36);

  --ivory: #edf2fa;
  --ivory-hover: #ffffff;
  --ivory-ink: #121720;

  --cyan: #a8c7f4;
  --cyan-bright: #cce0ff;
  --blue: #7eb0f2;
  --gold: #d8c9a3;
  --gold-warm: #e8c478;
  --amber: #eab354;
  --ruby: #f2748c;
  --emerald: #6ee7b7;
  --violet: #b6abfa;

  --ink: #f2f5fa;
  --ink-soft: #b8c6db;
  --ink-muted: #889ab3;

  --font-display: 'Orbitron', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --radius-window: 26px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --glass-blur: blur(32px) saturate(140%);
  --glass-shadow:
    inset 0 1px 0 rgba(235, 245, 255, 0.16),
    inset 1px 0 0 rgba(235, 245, 255, 0.06),
    0 28px 90px rgba(0, 0, 0, 0.62);
  --glass-shadow-soft:
    inset 0 1px 0 rgba(235, 245, 255, 0.13),
    0 18px 54px rgba(0, 0, 0, 0.48);

  /* Subtle sp² hexagonal carbon monolayer SVG pattern */
  --hex-weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cpath d='M12 0L24 7v14L12 28 0 21V7L12 0zm24 0l12 7v14L36 28l-12-7V7l12-7z' fill='none' stroke='%23bfd6f6' stroke-opacity='0.055' stroke-width='0.75'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body {
  margin: 0;
  height: auto;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.58;
}

/* Smoky Optical Atmosphere + sp² Hexagonal Ambient Depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 64% 48% at 50% -6%, rgba(39, 61, 94, 0.44), transparent 68%),
    radial-gradient(ellipse 46% 38% at 84% 16%, rgba(216, 201, 163, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 42% at 14% 42%, rgba(84, 126, 186, 0.10), transparent 72%),
    var(--hex-weave);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(169, 197, 240, 0.09);
  border: 1px solid rgba(190, 212, 240, 0.14);
  color: #dce8fa;
}

em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: #f3e4be;
}

/* ==========================================================================
   ORBITAL XIRTUS / GRAPHENE ATOMIC SIGIL
   ========================================================================== */
.orbital-sigil {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(176, 198, 228, 0.28);
  background: radial-gradient(circle at 35% 30%, rgba(44, 62, 92, 0.56), rgba(16, 24, 38, 0.72));
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.16);
  display: grid;
  place-items: center;
  color: #dce7f7;
  flex-shrink: 0;
}

.orbital-sigil.sm {
  width: 36px;
  height: 36px;
}

.orbital-sigil svg {
  width: 24px;
  height: 24px;
  display: block;
}

.orbital-sigil.sm svg {
  width: 21px;
  height: 21px;
}

/* ==========================================================================
   FLOATING SPATIAL DOCK CAPSULE (Post-Apple VisionOS / Meta Horizon Pill Bar)
   ========================================================================== */
.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100vw - 24px));
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(145deg, rgba(28, 38, 54, 0.76), rgba(13, 18, 27, 0.86) 65%, rgba(9, 13, 20, 0.90)),
    var(--hex-weave);
  backdrop-filter: blur(34px) saturate(145%);
  -webkit-backdrop-filter: blur(34px) saturate(145%);
  border: 1px solid rgba(196, 218, 246, 0.19);
  box-shadow:
    inset 0 1px 0 rgba(240, 248, 255, 0.20),
    inset 1px 0 0 rgba(240, 248, 255, 0.06),
    0 22px 64px rgba(0, 0, 0, 0.58);
}

/* Chromatic specular top hairline across the dock */
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 232, 255, 0.42), rgba(232, 196, 120, 0.30), transparent);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding-right: 6px;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.15;
}

.brand-copy small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a9bad1;
  font-weight: 500;
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(9, 13, 21, 0.46);
  border: 1px solid rgba(190, 212, 240, 0.10);
}

.topnav a {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #aebfd6;
  border: 1px solid transparent;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.topnav a:hover {
  color: #f4f7fc;
  background: rgba(169, 197, 240, 0.08);
}

.topnav a.active {
  color: #f6f9fe;
  background: rgba(169, 197, 240, 0.13);
  border-color: rgba(190, 212, 240, 0.24);
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.12);
}

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

.passport-pill {
  appearance: none;
  background: rgba(17, 25, 39, 0.78);
  border: 1px solid rgba(190, 212, 240, 0.20);
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.10);
  color: #e6eef9;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.passport-pill .sigil-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-warm);
  box-shadow: 0 0 10px rgba(232, 196, 120, 0.65);
}

.passport-pill:hover {
  background: rgba(34, 47, 68, 0.86);
  border-color: rgba(216, 201, 163, 0.45);
}

/* ==========================================================================
   SPATIAL LIQUID-GLASS & IVORY PILL BUTTONS
   ========================================================================== */
.btn {
  appearance: none;
  border: 1px solid rgba(190, 212, 240, 0.18);
  background: rgba(21, 30, 45, 0.72);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.12);
  color: #eef3fb;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(34, 48, 70, 0.86);
  border-color: rgba(206, 225, 248, 0.36);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.38);
}

.btn-primary {
  background: var(--ivory);
  color: var(--ivory-ink);
  border-color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 10px 30px rgba(186, 210, 245, 0.22);
}

.btn-primary:hover {
  background: var(--ivory-hover);
  color: #0a0e15;
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 14px 36px rgba(205, 225, 252, 0.32);
}

.btn-gold {
  background: linear-gradient(145deg, rgba(216, 201, 163, 0.18), rgba(145, 118, 66, 0.14));
  border-color: rgba(226, 206, 158, 0.38);
  color: #f3e6c8;
  font-weight: 500;
}

.btn-gold:hover {
  background: linear-gradient(145deg, rgba(232, 196, 120, 0.26), rgba(168, 136, 74, 0.20));
  border-color: rgba(236, 214, 164, 0.58);
  color: #fff8e8;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

@media (max-width: 1120px) {
  .topnav {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    top: 10px;
    width: calc(100vw - 16px);
    padding: 7px 8px 7px 10px;
  }
  .passport-pill span#passportPillText {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-copy small {
    display: none;
  }
}

/* ==========================================================================
   HERO STAGE: 3D sp² GRAPHENE MONOLAYER + FLOATING SPATIAL GLASS HUD
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 118px clamp(18px, 4.5vw, 68px) 92px;
  overflow: hidden;
  border-bottom: 1px solid rgba(190, 212, 240, 0.10);
}

#heroLatticeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.carbon-net-click-hint {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(16, 28, 46, 0.78), rgba(8, 14, 24, 0.88));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(92, 225, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(235, 248, 255, 0.24), 0 10px 28px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e9f6ff;
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

.carbon-net-click-hint.visible {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .carbon-net-click-hint {
    display: none;
  }
}

.stained-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 48% 52% at 74% 38%, rgba(124, 168, 232, 0.13), transparent 70%),
    radial-gradient(ellipse 38% 42% at 64% 62%, rgba(216, 201, 163, 0.11), transparent 72%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.18) 0%, transparent 30%, transparent 76%, rgba(6, 9, 15, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  pointer-events: none;
}

.hero-spatial-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(16, 24, 38, 0.20), rgba(8, 13, 22, 0.26));
  backdrop-filter: blur(5px) saturate(125%);
  -webkit-backdrop-filter: blur(5px) saturate(125%);
  border: 1px solid rgba(208, 228, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(240, 248, 255, 0.22),
    inset 1px 0 0 rgba(240, 248, 255, 0.08),
    0 24px 68px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

/* Chromatic optical refraction rim along top & left of Hero Glass Sheet */
.hero-spatial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208, 232, 255, 0.62), rgba(232, 196, 120, 0.48), rgba(182, 171, 250, 0.38), transparent);
  pointer-events: none;
}

.hero-inner a,
.hero-inner button,
.hero-inner input,
.scale-bar {
  pointer-events: auto;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.eyebrow-kicker {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #bcd0ea;
  text-shadow: 0 1px 10px rgba(4, 7, 14, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-warm);
  box-shadow: 0 0 10px rgba(232, 196, 120, 0.7);
}

.eyebrow-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(169, 197, 240, 0.11);
  border: 1px solid rgba(198, 220, 248, 0.24);
  color: #dfebfc;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.9vw, 62px);
  line-height: 1.06;
  letter-spacing: 0.025em;
  color: #f7faff;
  text-shadow: 0 3px 22px rgba(4, 7, 14, 0.72);
}

.hero h1 span.accent {
  background: linear-gradient(125deg, #ffffff 15%, #c7dcfb 58%, #e4cfa3 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 18px rgba(4, 7, 14, 0.65));
}

.hero-lead {
  font-size: clamp(15px, 1.22vw, 17.5px);
  line-height: 1.62;
  color: #d2dff0;
  text-shadow: 0 2px 14px rgba(4, 7, 14, 0.78);
  max-width: 650px;
  margin: 0 0 24px;
}

.hero-lead strong {
  color: #f6f9ff;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(198, 220, 248, 0.16);
}

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

.tele-item {
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(10, 16, 27, 0.24);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(198, 220, 248, 0.16);
}

.tele-item b {
  display: block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #eef4fc;
  letter-spacing: -0.02em;
}

.tele-item span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #93a5bf;
}

/* VisionOS Floating Atomic Scale Scrubber Capsule */
.scale-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(145deg, rgba(24, 34, 50, 0.80), rgba(11, 16, 25, 0.90));
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(196, 218, 246, 0.20);
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.16), 0 18px 48px rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #d2dfef;
  max-width: calc(100vw - 28px);
  flex-wrap: wrap;
  justify-content: center;
}

.scale-bar input[type="range"] {
  accent-color: #dbe8fb;
  width: 128px;
  cursor: pointer;
}

.scale-flash-btn {
  appearance: none;
  border: 1px solid rgba(226, 206, 158, 0.36);
  background: rgba(216, 201, 163, 0.14);
  color: #f3e4be;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.scale-flash-btn:hover {
  background: rgba(232, 196, 120, 0.25);
  border-color: rgba(236, 214, 164, 0.6);
}

/* ==========================================================================
   SPATIAL BANDS & SECTION HEADERS
   ========================================================================== */
section.band {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 88px clamp(18px, 4.5vw, 56px);
}

section.band + section.band {
  border-top: 1px solid rgba(190, 212, 240, 0.08);
}

.section-head {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a9bad1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-num::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.1vw, 38px);
  letter-spacing: 0.03em;
  line-height: 1.16;
  color: #f4f7fc;
}

.section-head h2 em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.03em;
  color: #f3e4be;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.64;
}

/* ==========================================================================
   SECTION 01 & 02: TRAILER -> 3D GAME -> CREDITS SHOWCASE GRID
   ========================================================================== */
#screening,
#campus-lab,
#credits,
#direct-access,
section.band {
  scroll-margin-top: 94px;
}

.cinema-grid,
.screening-showcase-grid {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 24px;
  align-items: start;
}

.screening-showcase-grid {
  grid-template-areas:
    "trailer access"
    "world   world"
    "credits credits";
}

.showcase-trailer {
  grid-area: trailer;
  min-width: 0;
}

.showcase-access {
  grid-area: access;
  min-width: 0;
}

.showcase-world {
  grid-area: world;
  min-width: 0;
  padding-top: 6px;
}

.showcase-credits {
  grid-area: credits;
  min-width: 0;
}

.showcase-credits .doc-credits-strip {
  margin-top: 0;
}

.inline-world-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: 18px;
}

.inline-world-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 30px);
  letter-spacing: 0.03em;
  line-height: 1.18;
  color: #f4f7fc;
}

.inline-world-head h3 em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  color: #f3e4be;
}

.inline-world-head p {
  margin: 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-soft);
}

@media (max-width: 1040px) {
  .cinema-grid,
  .screening-showcase-grid {
    grid-template-columns: 1fr;
  }
  .screening-showcase-grid {
    grid-template-areas:
      "trailer"
      "world"
      "credits"
      "access";
  }
}

.cinema-frame {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-window);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background:
    linear-gradient(90deg, rgba(22, 31, 46, 0.72), rgba(14, 20, 31, 0.72)),
    var(--hex-weave);
  border-bottom: 1px solid rgba(190, 212, 240, 0.11);
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(190, 212, 240, 0.24);
}

.window-dots i:first-child {
  background: rgba(216, 201, 163, 0.55);
}

.window-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9cb0cc;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04060a;
}

.video-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cinema-chapters {
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(190, 212, 240, 0.11);
  background: rgba(10, 15, 24, 0.65);
}

.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chapter-pill {
  font-size: 11.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(169, 197, 240, 0.09);
  border: 1px solid rgba(190, 212, 240, 0.18);
  color: #dce8fa;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chapter-pill:hover {
  background: rgba(169, 197, 240, 0.18);
  border-color: rgba(208, 226, 248, 0.36);
  color: #ffffff;
}

/* Official Documentary Credits Strip & Symbolic App-Icon Badges */
.doc-credits-strip {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(25, 34, 49, 0.72), rgba(12, 17, 26, 0.84));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-shadow-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.credit-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.credit-group + .credit-group::before {
  content: "·";
  color: rgba(190, 212, 240, 0.34);
  margin-right: 10px;
}

.credit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-muted);
}

.credit-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(190, 212, 240, 0.14);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.credit-person:hover {
  background: rgba(190, 212, 240, 0.09);
  border-color: rgba(243, 228, 190, 0.42);
  transform: translateY(-1px);
}

.credit-name-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  color: #f4f7fc;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.credit-name-link:hover {
  color: #f3e4be;
}

.app-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-badge {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.app-badge svg {
  width: 12px;
  height: 12px;
  display: block;
}

.app-badge:hover {
  transform: translateY(-1px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.48);
}

.app-badge.yt {
  background: linear-gradient(145deg, #ff2a2a, #c81010);
  color: #ffffff;
}

.app-badge.x-app {
  background: linear-gradient(145deg, #1f242d, #090b0f);
  color: #f5f7fb;
}

.app-badge.web {
  background: linear-gradient(145deg, #243b61, #13223b);
  color: #f3e4be;
}

.app-badge.rice {
  background: linear-gradient(145deg, #00205b, #0a1936);
  color: #dce8ff;
}

.cast-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 6px;
}

.cast-head-row h4 {
  margin: 0;
}

.cast-head-row h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cast-head-row h4 a:hover {
  color: #f3e4be;
}

/* Cast Trio Spatial Cards */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

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

.cast-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--glass-shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.cast-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.cast-card h4 {
  margin: 6px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.03em;
  color: #f3f7fc;
}

.cast-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.56;
  color: var(--ink-soft);
}

/* Direct Access + Survey Companion Card */
.access-card {
  position: relative;
  background: var(--bg-companion), var(--hex-weave);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(190, 212, 240, 0.20);
  border-radius: var(--radius-window);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.access-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 18px solid rgba(169, 197, 240, 0.045);
  box-shadow: 0 0 0 22px rgba(169, 197, 240, 0.025);
  pointer-events: none;
}

.access-eyebrow {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  color: #a9bad1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.access-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.035em;
  color: #f4f7fc;
}

.access-card .sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.form-field {
  margin-bottom: 13px;
}

.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9cb0cb;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(190, 212, 240, 0.18);
  background: rgba(8, 12, 20, 0.72);
  color: #f2f5fa;
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(196, 220, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(169, 197, 240, 0.14);
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-opt {
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(190, 212, 240, 0.16);
  background: rgba(11, 16, 26, 0.68);
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: all 0.14s ease;
}

.chip-opt:hover {
  border-color: rgba(190, 212, 240, 0.34);
  color: #f2f5fa;
}

.chip-opt.selected {
  border-color: rgba(216, 201, 163, 0.52);
  background: rgba(216, 201, 163, 0.16);
  color: #fff6e0;
}

.survey-drawer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(190, 212, 240, 0.12);
}

/* ==========================================================================
   SECTION 02: RICE CAMPUS & GIANT SHARED NANOTECH MEGA-LAB SPATIAL WINDOW
   ========================================================================== */
.world-shell {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(196, 218, 246, 0.20);
  border-radius: var(--radius-window);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.world-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background:
    linear-gradient(145deg, rgba(22, 31, 46, 0.88), rgba(11, 16, 25, 0.92)),
    var(--hex-weave);
  border-bottom: 1px solid rgba(190, 212, 240, 0.13);
}

.world-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.world-mode-pill {
  appearance: none;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(190, 212, 240, 0.18);
  background: rgba(16, 23, 35, 0.72);
  color: #cbd8ec;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.world-mode-pill:hover {
  background: rgba(34, 48, 70, 0.86);
  border-color: rgba(206, 225, 248, 0.36);
  color: #ffffff;
}

.world-mode-pill.active {
  background: rgba(169, 197, 240, 0.16);
  border-color: rgba(208, 226, 248, 0.42);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.15);
}

.world-mode-pill.megalab-pill {
  background: linear-gradient(145deg, rgba(216, 201, 163, 0.20), rgba(169, 197, 240, 0.14));
  border-color: rgba(226, 206, 158, 0.42);
  color: #f7ebd2;
  font-weight: 600;
}

.world-viewport {
  position: relative;
  width: 100%;
  height: min(78vh, 740px);
  min-height: 520px;
  background: #05080f;
}

.world-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.campus-lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.lore-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--glass-shadow-soft);
}

.lore-card.sacred {
  border-color: rgba(216, 201, 163, 0.30);
  background: linear-gradient(150deg, rgba(36, 34, 46, 0.72), rgba(14, 19, 29, 0.88));
}

.lore-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: #f3f7fc;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.lore-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* ==========================================================================
   SECTION 03: INTERACTIVE FLASH REACTOR BENCH & 130 GPa MONOLAYER CONSOLES
   ========================================================================== */
.widgets-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
}

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

.lab-widget {
  background: var(--bg-card), var(--hex-weave);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-window);
  padding: 26px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.lab-widget h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 0.03em;
  color: #f4f7fc;
}

.fjh-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.feedstock-btn {
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  border-radius: 11px;
  border: 1px solid rgba(190, 212, 240, 0.15);
  background: rgba(10, 15, 24, 0.68);
  color: #b4c4dc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.feedstock-btn:hover {
  border-color: rgba(190, 212, 240, 0.32);
  color: #f2f5fa;
}

.feedstock-btn.active {
  background: rgba(169, 197, 240, 0.14);
  border-color: rgba(196, 220, 250, 0.36);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.12);
}

.fjh-readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.readout-box {
  background: rgba(8, 12, 20, 0.70);
  border: 1px solid rgba(190, 212, 240, 0.13);
  border-radius: 14px;
  padding: 11px 14px;
  font-family: var(--font-mono);
}

.readout-box small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #93a6c0;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.readout-box strong {
  font-size: 16px;
  font-weight: 600;
  color: #eef4fc;
}

canvas.oscilloscope {
  width: 100%;
  height: 196px;
  background: radial-gradient(ellipse at 50% 40%, #0b1322, #060911 80%);
  border: 1px solid rgba(190, 212, 240, 0.16);
  border-radius: 16px;
  display: block;
  box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   SECTION 04: 5 WALKABLE 3D NANOTECHNOLOGY LABORATORY SIMULATORS
   ========================================================================== */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-window);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 226, 248, 0.34);
  box-shadow: var(--glass-shadow);
}

.game-banner {
  min-height: 152px;
  padding: 20px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(190, 212, 240, 0.11);
  background-blend-mode: normal;
}

.game-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex-weave);
  pointer-events: none;
}

.game-banner.g1 { background: radial-gradient(circle at 85% 20%, rgba(126, 176, 242, 0.26), rgba(14, 21, 34, 0.92) 72%); }
.game-banner.g2 { background: radial-gradient(circle at 85% 20%, rgba(232, 196, 120, 0.26), rgba(20, 18, 28, 0.92) 72%); }
.game-banner.g3 { background: radial-gradient(circle at 85% 20%, rgba(169, 184, 250, 0.26), rgba(13, 18, 32, 0.92) 72%); }
.game-banner.g4 { background: radial-gradient(circle at 85% 20%, rgba(236, 136, 162, 0.24), rgba(20, 15, 27, 0.92) 72%); }
.game-banner.g5 { background: radial-gradient(circle at 85% 20%, rgba(110, 231, 183, 0.22), rgba(12, 22, 28, 0.92) 72%); }
.game-banner.g6 { background: radial-gradient(circle at 85% 20%, rgba(72, 229, 255, 0.28), rgba(10, 20, 36, 0.94) 72%); }

.game-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.game-genre {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8ccef;
}

.game-score-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9, 14, 23, 0.72);
  border: 1px solid rgba(216, 201, 163, 0.30);
  color: var(--gold);
  white-space: nowrap;
}

.game-banner h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  line-height: 1.24;
  color: #f5f8fd;
  position: relative;
  z-index: 1;
}

.game-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.game-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.science-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.science-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(169, 197, 240, 0.08);
  border: 1px solid rgba(190, 212, 240, 0.14);
  color: #cbd8ec;
}

.game-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   SECTION 05: MEMBER VAULT & XMETASPACE CONNECTED ARCHIPELAGO
   ========================================================================== */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.vault-item {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--glass-shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.vault-item:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 212, 240, 0.28);
}

.vault-item.unlocked {
  border-color: rgba(110, 231, 183, 0.34);
}

.vault-item.locked {
  opacity: 0.88;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-pill.open {
  background: rgba(110, 231, 183, 0.13);
  color: var(--emerald);
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.status-pill.shut {
  background: rgba(216, 201, 163, 0.12);
  color: var(--gold);
  border: 1px solid rgba(216, 201, 163, 0.30);
}

.metaspace-banner {
  position: relative;
  margin-top: 28px;
  padding: 32px 36px;
  border-radius: var(--radius-window);
  background: var(--bg-companion), var(--hex-weave);
  border: 1px solid rgba(190, 212, 240, 0.20);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.metaspace-banner::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 22px solid rgba(169, 197, 240, 0.04);
  box-shadow: 0 0 0 26px rgba(169, 197, 240, 0.025);
  pointer-events: none;
}

/* ==========================================================================
   MODALS: 3D LAB THEATER & XMETASPACE "YOUR PASSPORT" PERSONAL COMPANION
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 14, 0.62);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 28px);
}

.modal-backdrop.open {
  display: flex;
}

.game-modal {
  width: min(1380px, 96vw);
  height: min(90vh, 880px);
  background: #070b14;
  border: 1px solid rgba(196, 218, 246, 0.24);
  border-radius: var(--radius-window);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
}

.game-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(145deg, rgba(24, 34, 50, 0.92), rgba(12, 17, 26, 0.95));
  border-bottom: 1px solid rgba(190, 212, 240, 0.14);
}

.game-modal iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #04060a;
}

/* --------------------------------------------------------------------------
   EXACT XIRTUS PERSONAL COMPANION SHEET (#passportModal)
   Mirrors media_1794369523647_c35dcf5c.png ("Your Passport")
   -------------------------------------------------------------------------- */
.passport-modal {
  width: min(920px, 96vw);
  max-height: 91dvh;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(31, 41, 56, 0.86), rgba(18, 23, 33, 0.93) 56%, rgba(12, 16, 24, 0.97));
  backdrop-filter: blur(36px) saturate(135%);
  -webkit-backdrop-filter: blur(36px) saturate(135%);
  border: 1px solid rgba(190, 212, 240, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(235, 245, 255, 0.15),
    inset 1px 0 0 rgba(235, 245, 255, 0.05),
    0 36px 110px rgba(0, 0, 0, 0.72);
  padding: 0;
  color: #f2f5fa;
}

.xpas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px 20px;
}

.xpas-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.xpas-eyebrow {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a9bad1;
  margin-bottom: 3px;
}

.xpas-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #f4f7fc;
}

.xpas-close-round {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(184, 204, 232, 0.20);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe6f6;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
  flex-shrink: 0;
}

.xpas-close-round:hover {
  background: rgba(169, 197, 240, 0.12);
  border-color: rgba(206, 224, 248, 0.38);
  color: #ffffff;
}

/* Pill Navigation Row */
.xpas-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 30px;
  border-top: 1px solid rgba(190, 212, 240, 0.09);
  border-bottom: 1px solid rgba(190, 212, 240, 0.09);
  flex-wrap: wrap;
}

.xpas-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.xpas-tab {
  appearance: none;
  padding: 8px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #a5b6ce;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.xpas-tab:hover {
  color: #eef3fb;
  background: rgba(169, 197, 240, 0.06);
}

.xpas-tab.active {
  background: rgba(169, 197, 240, 0.12);
  border-color: rgba(190, 212, 240, 0.22);
  color: #f4f7fc;
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, 0.10);
}

.xpas-continue-btn {
  appearance: none;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(190, 212, 240, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #eef3fb;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.xpas-continue-btn:hover {
  background: rgba(169, 197, 240, 0.12);
  border-color: rgba(208, 226, 248, 0.38);
}

/* Two-Column Companion Body */
.xpas-body {
  padding: 24px 30px 30px;
}

.xpas-top-kicker {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa2bc;
  margin-bottom: 22px;
}

.xpas-columns {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 780px) {
  .xpas-columns {
    grid-template-columns: 1fr;
  }
  .xpas-header,
  .xpas-nav-row,
  .xpas-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.xpas-editorial-kicker {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a6b7cf;
  margin-bottom: 10px;
}

.xpas-editorial h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.16;
  color: #f3e4be;
}

.xpas-editorial p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.64;
  color: #aebfd5;
}

.xpas-divider {
  height: 1px;
  background: rgba(190, 212, 240, 0.10);
  margin: 26px 0;
}

.xpas-here-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.xpas-here-row small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa2bc;
  margin-bottom: 3px;
}

.xpas-here-row strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f2f5fa;
}

.xpas-footnote {
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: #889ab3 !important;
}

/* Right Dark-Navy Companion Card (Matches right card in Your Passport) */
.xpas-card {
  border-radius: 20px;
  border: 1px solid rgba(169, 197, 240, 0.15);
  background: linear-gradient(175deg, #132238 0%, #0d1626 36%, #0a101b 100%);
  box-shadow: inset 0 1px 0 rgba(225, 238, 255, 0.08), 0 20px 54px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.xpas-card-hero {
  position: relative;
  padding: 22px 24px 20px;
  overflow: hidden;
}

/* Concentric Slate-Navy Orbital Arcs in Top-Right (exact reference motif) */
.xpas-card-hero::after {
  content: "";
  position: absolute;
  top: -56px;
  right: -56px;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 18px solid rgba(145, 178, 226, 0.065);
  box-shadow: 0 0 0 20px rgba(145, 178, 226, 0.035);
  pointer-events: none;
}

.xpas-card-kicker {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9cb0cc;
  margin-bottom: 12px;
}

.xpas-handle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #f5f8fd;
}

.xpas-subhandle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9cb0cc;
  margin-top: 3px;
}

.xpas-xp-line {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #eef4fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xpas-xp-rank {
  font-weight: 500;
  color: var(--gold);
}

.xpas-section {
  padding: 16px 24px;
  border-top: 1px solid rgba(190, 212, 240, 0.09);
}

.xpas-section-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa2bc;
  margin-bottom: 10px;
}

.xpas-element-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.xpas-chip {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(17, 27, 44, 0.65);
  border: 1px solid rgba(190, 212, 240, 0.12);
}

.xpas-chip small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea1bc;
}

.xpas-chip strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #f2f6fc;
}

.xpas-sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12.5px;
  color: #cad7ea;
}

.xpas-sim-row span:last-child {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9cb0cc;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 8px;
}

.badge-tile {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(190, 212, 240, 0.10);
  background: rgba(12, 18, 30, 0.65);
  opacity: 0.48;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.badge-tile.earned {
  opacity: 1;
  border-color: rgba(216, 201, 163, 0.38);
  background: rgba(216, 201, 163, 0.09);
}

.badge-tile strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #f3f7fc;
}

.badge-tile span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #93a5bf;
}

.xpas-sync-btn {
  appearance: none;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(190, 212, 240, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #eef3fb;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
}

.xpas-sync-btn:hover {
  background: var(--ivory);
  color: var(--ivory-ink);
  border-color: #ffffff;
}

/* ==========================================================================
   VAULT DEDICATED PAGE HERO & FILTERS (/vault/index.html)
   ========================================================================== */
.vault-hero {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 126px clamp(18px, 4.5vw, 56px) 36px;
}

.vault-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.vault-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
footer.site-footer {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 40px clamp(18px, 4.5vw, 56px) 54px;
  border-top: 1px solid rgba(190, 212, 240, 0.10);
  color: var(--ink-muted);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #9cb0cb;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #f2f5fa;
}

#siteToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(26, 36, 52, 0.92), rgba(12, 17, 26, 0.96));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(196, 218, 246, 0.28);
  color: #f2f5fa;
  font-size: 13px;
  box-shadow: var(--glass-shadow-soft);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
}

#siteToast.show {
  transform: translateY(0);
  opacity: 1;
}
