/* ==========================================================================
   CUBEY STUDIOS — Marketing site
   GIS · Voxel · Real-world game worlds
   ========================================================================== */

@import url("assets/colors_and_type.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(0, 224, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(255, 106, 19, 0.10), transparent 60%),
    radial-gradient(800px 500px at 0% 70%, rgba(108, 92, 255, 0.08), transparent 60%),
    var(--asphalt-1000);
  color: var(--fg);
  overflow-x: hidden;
  cursor: default;
  font-feature-settings: "ss01", "ss02", "cv01";
}

/* Cinematic film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.10;
}

/* ============================== Layout ============================== */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter-lg);
  position: relative;
}
@media (max-width: 760px) {
  .wrap { padding: 0 var(--gutter); }
}

a { color: inherit; text-decoration: none; border: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }

/* Lane stripe divider */
.lane-divider {
  height: 4px;
  background: var(--lane-stripe);
  opacity: 0.55;
  margin: 0;
}

/* Section eyebrow */
.eyebrow-row {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(232, 234, 243, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow-row .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--xp);
  box-shadow: 0 0 12px var(--xp);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow-row .pulse.signal { background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.eyebrow-row .pulse.nitro  { background: var(--nitro);  box-shadow: 0 0 12px var(--nitro); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================== NAV ============================== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.82) 0%, rgba(6, 7, 11, 0.55) 70%, rgba(6, 7, 11, 0));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .4s var(--ease-out-arcade), background .3s ease;
}
nav.site-nav .row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-7);
}
nav.site-nav.scrolled { background: rgba(6, 7, 11, 0.92); }
nav.site-nav .brand {
  display: flex; align-items: center; gap: 12px;
}
nav.site-nav .brand img {
  height: 38px; width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 224, 255, 0.35));
}
nav.site-nav .brand .wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-transform: uppercase;
}
nav.site-nav .brand .wm em {
  font-style: normal;
  color: var(--nitro);
}
nav.site-nav .links {
  display: flex; align-items: center; gap: var(--sp-6);
}
nav.site-nav .links a {
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  transition: color .18s ease;
  position: relative;
}
nav.site-nav .links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--signal);
  transition: width .25s var(--ease-out-arcade);
}
nav.site-nav .links a:hover { color: var(--fg); }
nav.site-nav .links a:hover::after { width: 100%; }
nav.site-nav .cta {
  border: 1px solid var(--nitro);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: 13.5px; font-weight: 600;
  color: var(--fg);
  background: rgba(255, 106, 19, 0.10);
  transition: all .18s ease;
}
nav.site-nav .cta::after { display: none; }
nav.site-nav .cta:hover {
  background: var(--nitro);
  color: var(--fg-on-neon);
  box-shadow: var(--glow-nitro);
}

/* Mobile menu hidden links */
@media (max-width: 900px) {
  nav.site-nav .links a:not(.cta) { display: none; }
}

/* ============================== Buttons ============================== */
.btn-primary, .btn-ghost {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 600;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .22s var(--ease-out-arcade), box-shadow .22s ease, background .2s ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(135deg, #ff8a3c 0%, #ff6a13 55%, #d44a00 100%);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(255, 106, 19, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255, 106, 19, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(232, 234, 243, 0.05);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(0, 224, 255, 0.08);
  border-color: var(--signal);
  color: var(--signal-soft);
}
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================== HERO ============================== */
section.hero {
  min-height: 100vh;
  padding: 130px 0 80px;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 224, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 224, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 60% 60%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 60%, #000 30%, transparent 85%);
  pointer-events: none;
}
.hero .layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-9);
  align-items: center;
  width: 100%;
}
@media (max-width: 980px) {
  .hero .layout { grid-template-columns: 1fr; gap: var(--sp-7); }
}

.hero .copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(43px, 6.56vw, 99px);
  line-height: 0.93;
  letter-spacing: -0.025em;
  margin: 28px 0 24px;
  text-wrap: balance;
  text-transform: uppercase;
}
.hero .copy h1 .gradient {
  background: linear-gradient(120deg, #a8f5ff 0%, #00e0ff 28%, #6c5cff 58%, #ff6a13 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.08em;
  margin-right: -0.04em;
}
.hero .copy h1 .outlined {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(232, 234, 243, 0.55);
  font-style: italic;
  display: inline-block;
  padding-right: 0.1em;
}
.hero .copy p.lede {
  font-family: var(--font-ui);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 520px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero .cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero .stat-strip {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--sp-7);
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  justify-content: start;
}
.hero .stat-strip .stat {
  display: flex; flex-direction: column;
}
.hero .stat-strip .stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero .stat-strip .stat .num em {
  font-style: normal;
  color: var(--signal);
}
.hero .stat-strip .stat .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 8px;
}

/* Hero canvas frame */
.hero .stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--r-6);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 224, 255, 0.20), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 106, 19, 0.18), transparent 50%),
    linear-gradient(180deg, #0d1018 0%, #050608 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 224, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero .stage canvas {
  display: block; width: 100%; height: 100%;
}
/* HUD overlays on the stage */
.hero .stage .hud-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.6);
  pointer-events: none;
  z-index: 4;
}
.hero .stage .hud-tl { top: 18px; left: 18px; }
.hero .stage .hud-tr { top: 18px; right: 18px; text-align: right; }
.hero .stage .hud-bl { bottom: 18px; left: 18px; }
.hero .stage .hud-br { bottom: 18px; right: 18px; text-align: right; }
.hero .stage .hud-corner .v { color: var(--fg); font-size: 14px; margin-top: 4px; letter-spacing: 0.04em; }
.hero .stage .hud-corner.nitro .v { color: var(--nitro-soft); }
.hero .stage .corner-mark {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--signal);
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
}
.hero .stage .corner-mark.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hero .stage .corner-mark.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hero .stage .corner-mark.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.hero .stage .corner-mark.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Scrolling ticker beneath hero */
.ticker {
  margin-top: 100px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 224, 255, 0.02);
  overflow: hidden;
  position: relative;
  padding: 22px 0;
}
.ticker .track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 72s linear infinite;
  width: max-content;
}
.ticker .track .item {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.ticker .track .item .dot {
  width: 10px; height: 10px;
  background: var(--signal);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--signal);
}
.ticker .track .item.warm .dot { background: var(--nitro); box-shadow: 0 0 12px var(--nitro); }
.ticker .track .item.green .dot { background: var(--xp); box-shadow: 0 0 12px var(--xp); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================== Sections base ============================== */
section.block {
  padding: 70px 0;
  position: relative;
}
@media (max-width: 760px) {
  section.block { padding: 45px 0; }
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-7);
  margin-bottom: 64px;
}
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
}
.section-head .left { max-width: 760px; }
.section-head .left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  text-wrap: balance;
  text-transform: uppercase;
}
.section-head .left h2 em {
  font-style: italic; font-weight: 600;
  color: transparent;
  background: linear-gradient(135deg, var(--signal) 0%, var(--royal) 100%);
  -webkit-background-clip: text; background-clip: text;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
.section-head .left h2 .nitro {
  color: var(--nitro);
}
.section-head .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: right;
  line-height: 1.7;
  flex-shrink: 0;
}
.section-head .meta { color: var(--fg); }
.section-head .meta strong { color: var(--signal); font-weight: 500; }
.section-head .meta .v { color: var(--signal); }

/* ============================== VISION ============================== */
section.vision {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 800px 400px at 80% 50%, rgba(255, 106, 19, 0.08), transparent 70%),
    radial-gradient(ellipse 800px 400px at 20% 50%, rgba(0, 224, 255, 0.06), transparent 70%);
}
.vision .grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--sp-9);
  align-items: start;
}
@media (max-width: 980px) {
  .vision .grid { grid-template-columns: 1fr; gap: var(--sp-7); }
}
.vision h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
  text-wrap: balance;
  text-transform: uppercase;
}
.vision h2 em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(135deg, var(--signal) 0%, var(--royal) 100%);
  -webkit-background-clip: text; background-clip: text;
  font-weight: 600;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
.vision .body p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 22px;
}
.vision .body p:first-child {
  font-size: 21px;
  color: var(--fg-1);
}
.vision .body p strong { color: var(--fg); font-weight: 600; }
.vision .body p mark {
  background: transparent;
  color: var(--nitro);
  font-weight: 500;
}

.vision .pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .vision .pillars { grid-template-columns: 1fr; }
}
.vision .pillar-card {
  background: rgba(232, 234, 243, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s ease, transform .6s var(--ease-out-arcade), opacity .6s var(--ease-out-arcade);
}
.vision .pillar-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
/* Override the default .reveal translateY for vision pillar cards — slide in from the right */
.vision .pillar-card.reveal {
  opacity: 0;
  transform: translateX(80px);
}
.vision .pillar-card.reveal.in {
  opacity: 1;
  transform: translateX(0);
}
.vision .pillar-card.reveal.delay-1 { transition-delay: .12s; }
.vision .pillar-card.reveal.delay-2 { transition-delay: .24s; }
.vision .pillar-card.reveal.delay-3 { transition-delay: .36s; }
.vision .pillar-card .label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nitro);
  text-shadow: 0 0 12px rgba(255, 106, 19, 0.25);
}
.vision .pillar-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.vision .pillar-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
}

/* ============================== MISSION ============================== */
section.mission {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 90px 0;
}
section.mission::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 224, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 224, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.mission .wrap { position: relative; z-index: 2; }
.mission .quote-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  color: var(--nitro);
  line-height: 0.5;
  margin-bottom: 24px;
  opacity: 0.4;
}
.mission h2.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 auto 40px;
  max-width: 920px;
  text-wrap: balance;
  text-transform: uppercase;
}

/* Mission body: three-column "shift / data / play" narrative */
.mission .mission-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
  margin-top: 56px;
  text-align: left;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 980px) {
  .mission .mission-body { grid-template-columns: 1fr; gap: var(--sp-6); }
}
.mission .mission-col {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  background: rgba(232, 234, 243, 0.025);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .25s ease, transform .3s var(--ease-out-arcade);
}
.mission .mission-col:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.mission .mission-col .mission-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nitro);
  text-shadow: 0 0 12px rgba(255, 106, 19, 0.25);
}
.mission .mission-col p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0;
}
.mission .mission-col p strong {
  color: var(--signal);
  font-weight: 600;
}
.mission h2.statement .glow {
  background: linear-gradient(120deg, #00e0ff 0%, #6c5cff 50%, #ff6a13 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
}
.mission .signature {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 28px;
}
.mission .signature::before {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--signal);
  vertical-align: middle;
  margin-right: 14px;
}
.mission .floating-cube {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  animation: floatCube 9s ease-in-out infinite;
}
.mission .floating-cube.f1 { top: 18%;  left: 6%;  width: 90px; animation-delay: 0s; }
.mission .floating-cube.f2 { top: 28%;  right: 8%; width: 64px; animation-delay: 1.4s; }
.mission .floating-cube.f3 { bottom: 22%; left: 12%; width: 70px; animation-delay: 3s; }
.mission .floating-cube.f4 { bottom: 18%; right: 14%; width: 56px; animation-delay: 2s; opacity: 0.25; }
@keyframes floatCube {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-22px) rotate(3deg); }
}

/* ============================== TECHNOLOGY ============================== */
section.tech {
  position: relative;
  overflow: hidden;
}
.tech .top-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  margin-bottom: 28px;
}
@media (max-width: 980px) {
  .tech .top-row { grid-template-columns: 1fr; }
}

/* Big GIS map panel */
.tech .map-panel {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-6);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 224, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #0d1620 0%, #060810 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.tech .map-panel canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.tech .map-panel .map-hud {
  position: absolute;
  top: 22px; left: 22px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3;
}
.tech .map-panel .map-hud .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-1);
  width: max-content;
}
.tech .map-panel .map-hud .pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.tech .map-panel .map-hud .pill.live { color: var(--xp); border-color: rgba(182, 255, 60, 0.4); }
.tech .map-panel .map-hud .pill.live .dot { background: var(--xp); box-shadow: 0 0 8px var(--xp); }
.tech .map-panel .layers-stack {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  z-index: 3;
}
.tech .map-panel .layers-stack .layer-chip {
  padding: 9px 10px;
  background: rgba(6, 7, 11, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-2);
  transition: all .25s ease;
}
.tech .map-panel .layers-stack .layer-chip.active {
  color: var(--fg);
  border-color: var(--signal);
  background: rgba(0, 224, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 224, 255, 0.3);
}
.tech .map-panel .read-out {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-align: right;
  color: var(--signal);
  text-transform: uppercase;
  z-index: 3;
  background: rgba(6, 7, 11, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-3);
  padding: 10px 14px;
  min-width: 180px;
}
.tech .map-panel .read-out .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 3px 0;
}
.tech .map-panel .read-out .row .lbl { color: var(--fg-3); }
.tech .map-panel .read-out .row .v { color: var(--fg); }

/* Right side copy */
.tech .copy-side {
  display: flex; flex-direction: column; gap: 24px;
}
.tech .copy-side h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
.tech .copy-side h2 em {
  font-style: italic; font-weight: 600;
  color: transparent;
  background: linear-gradient(135deg, var(--signal), var(--royal));
  -webkit-background-clip: text; background-clip: text;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}

/* Tech section headline: keep each line whole, don't wrap */
.section-head .left h2.tech-headline {
  white-space: normal;
  text-wrap: nowrap;
}
.section-head .left h2.tech-headline em,
.section-head .left h2.tech-headline .nitro {
  white-space: nowrap;
}
.tech .copy-side .pull-quote {
  position: relative;
  padding: 22px 26px;
  border-left: 3px solid var(--nitro);
  background: linear-gradient(90deg, rgba(255, 106, 19, 0.08), transparent 80%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.tech .copy-side .pull-quote strong { color: var(--nitro); font-weight: 700; }
.tech .copy-side .desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* Tech bottom: 3-card layer breakdown */
.tech-layers {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) {
  .tech-layers { grid-template-columns: 1fr; }
}
.tech-layers .card {
  background: linear-gradient(160deg, rgba(232, 234, 243, 0.04), rgba(232, 234, 243, 0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-5);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .3s var(--ease-out-arcade);
}
.tech-layers .card:hover {
  border-color: rgba(0, 224, 255, 0.35);
  transform: translateY(-4px);
}
.tech-layers .card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.tech-layers .card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.tech-layers .card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 38ch;
}
.tech-layers .card .visual {
  flex: 1;
  margin-top: 22px;
  border-radius: var(--r-3);
  background: var(--asphalt-1000);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 130px;
}

/* Video visual: looping muted MP4 in place of the static CSS/SVG art */
.tech-layers .card .visual.visual-video {
  min-height: 200px;
  aspect-ratio: 16 / 9;
}
.tech-layers .card .visual.visual-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--asphalt-1000);
}

/* Card 01: AI capture */
.tech-layers .card.ai .visual {
  background:
    radial-gradient(circle at 70% 30%, rgba(108, 92, 255, 0.4), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(0, 224, 255, 0.25), transparent 50%),
    var(--asphalt-1000);
}
.tech-layers .card.ai .visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 224, 255, 0.18) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 224, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000, transparent 80%);
}
.tech-layers .card.ai .scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  box-shadow: 0 0 12px var(--signal);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(120px); }
}

/* Card 02: Voxel SDK */
.tech-layers .card.sdk .visual {
  background: var(--asphalt-1000);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--fg-2);
  overflow: hidden;
}
.tech-layers .card.sdk pre { margin: 0; }
.tech-layers .card.sdk .k { color: var(--royal-soft); }
.tech-layers .card.sdk .s { color: var(--xp); }
.tech-layers .card.sdk .c { color: var(--fg-mute); font-style: italic; }
.tech-layers .card.sdk .n { color: var(--signal); }
.tech-layers .card.sdk .f { color: var(--nitro-soft); }

/* Card 03: Geo data */
.tech-layers .card.geo .visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 106, 19, 0.18), transparent 60%),
    var(--asphalt-1000);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tech-layers .card.geo .visual svg { width: 100%; height: 100%; }
.tech-layers .card.geo .visual .pin-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  background: var(--nitro);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--nitro);
  z-index: 2;
}
.tech-layers .card.geo .visual .pin-pulse::before,
.tech-layers .card.geo .visual .pin-pulse::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--nitro);
  opacity: 0.6;
  animation: pinRing 2.4s ease-out infinite;
}
.tech-layers .card.geo .visual .pin-pulse::after { animation-delay: 1.2s; }
@keyframes pinRing {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(5);    opacity: 0; }
}

/* ============================== Stats strip ============================== */
section.market {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(232, 234, 243, 0.02), transparent);
  padding: 100px 0;
}
.market .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 980px) {
  .market .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.market .stat-cell {
  padding: 18px 28px;
  border-right: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 10px;
}
.market .stat-cell:last-child { border-right: none; }
@media (max-width: 980px) {
  .market .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 28px; }
}
.market .stat-cell .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.market .stat-cell .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.market .stat-cell .num .accent {
  color: var(--signal);
}
.market .stat-cell .num.warm .accent { color: var(--nitro); }
.market .stat-cell .num.green .accent { color: var(--xp); }
.market .stat-cell .sub {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.4;
}

/* ============================== GAMES grid ============================== */
.games-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
/* 2-card variant — "In Production" row beneath the RoadX flagship */
.games-grid.games-grid-2 {
  grid-template-columns: 1fr 1fr;
}
/* 3-card variant — "Concepts" row beneath In Production */
.games-grid.games-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* Featured RoadX card spans the entire top row above the two supporting games */
.games-grid.games-grid-2.with-feature .game-card.span-full {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  .games-grid,
  .games-grid.games-grid-2,
  .games-grid.games-grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 981px) and (max-width: 1280px) {
  .games-grid.games-grid-3 { grid-template-columns: 1fr 1fr; }
}
/* Slim variant — shorter hero art region so supporting cards don't tower over the flagship */
.game-card.slim .art { height: 240px; }
.game-card.slim h3 { font-size: 36px; }
.game-card.slim p { font-size: 14.5px; }
/* Concept variant — slightly more compact than In Production */
.game-card.concept .art { height: 200px; }
.game-card.concept h3 { font-size: 30px; }
.game-card.concept p { font-size: 14px; }
.game-card.concept .chip { background: rgba(255, 106, 19, 0.04); border-color: rgba(255, 106, 19, 0.18); }

/* Inline video / image in catalog cards — fills the art frame */
.game-card .card-video,
.game-card .card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--asphalt-1000);
}

/* Catalog row container — groups header + grid */
.catalog-row {
  margin-top: var(--sp-7);
}
.catalog-row + .catalog-row {
  margin-top: var(--sp-7);
}
.catalog-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.catalog-row-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nitro);
  text-shadow: 0 0 12px rgba(255, 106, 19, 0.25);
}
.catalog-row-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.game-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-5);
  overflow: hidden;
  min-height: 460px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease-out-arcade), border-color .25s ease, box-shadow .3s ease;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-card .art {
  position: absolute; inset: 0;
  overflow: hidden;
  transition: transform .8s var(--ease-out-arcade);
}
.game-card:hover .art {
  transform: scale(1.04);
}
.game-card .art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 7, 11, 0.85) 100%);
}
.game-card .chip {
  position: relative; z-index: 2;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(6, 7, 11, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xp);
  margin-bottom: 14px;
}
.game-card .chip.soon { color: var(--fg-3); }
.game-card .chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--xp);
  box-shadow: 0 0 8px var(--xp);
}
.game-card .chip.soon .dot { background: var(--fg-mute); box-shadow: none; }
.game-card h3 {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  text-transform: uppercase;
  color: var(--fg);
}
.game-card.featured h3 { font-size: 56px; }
.game-card p {
  position: relative; z-index: 2;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
  max-width: 38ch;
}
.game-card .genre {
  position: relative; z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 4px;
}

/* RoadX art */
.game-card.roadx .art {
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 106, 19, 0.5), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(108, 92, 255, 0.4), transparent 50%),
    linear-gradient(160deg, #1a1530 0%, #050608 100%);
}
.game-card.roadx .art .road {
  position: absolute;
  left: 50%; bottom: 0;
  width: 220%; height: 70%;
  transform: translateX(-50%) perspective(420px) rotateX(62deg);
  transform-origin: center bottom;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent),
    repeating-linear-gradient(90deg,
      transparent 0, transparent 48px,
      rgba(244, 255, 60, 0.7) 48px, rgba(244, 255, 60, 0.7) 68px),
    repeating-linear-gradient(0deg,
      rgba(0, 224, 255, 0.18) 0, rgba(0, 224, 255, 0.18) 1px,
      transparent 1px, transparent 40px);
}
.game-card.roadx .art .road::after {
  content: "";
  position: absolute;
  left: 50%; top: -2px;
  transform: translateX(-50%);
  width: 8px; height: 100%;
  background: linear-gradient(to top, rgba(255, 106, 19, 0.8), transparent 80%);
  box-shadow: 0 0 24px rgba(255, 106, 19, 0.7);
}

/* Project Atlas placeholder */
.game-card.atlas .art {
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 224, 255, 0.3), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(108, 92, 255, 0.2), transparent 55%),
    linear-gradient(160deg, #0c1825 0%, #050608 100%);
}
.game-card.atlas .art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 224, 255, 0.20) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 224, 255, 0.20) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 90%);
}

/* Untitled */
.game-card.untitled .art {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 45, 77, 0.18), transparent 60%),
    linear-gradient(160deg, #1a0e16 0%, #050608 100%);
}
.game-card.untitled .art::before {
  content: "";
  position: absolute;
  left: 50%; top: 35%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: var(--lane-stripe);
  opacity: 0.18;
  border-radius: 50%;
  filter: blur(4px);
}

/* ============================== ROADX showcase ============================== */
section.roadx-stage {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
/* When the RoadX flagship is nested inside the Games section, drop the redundant outer padding */
#games section.roadx-stage {
  padding: 0 0 var(--sp-7);
}
.roadx-stage .frame {
  position: relative;
  border-radius: var(--r-6);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 45, 77, 0.25), transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(255, 106, 19, 0.22), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(108, 92, 255, 0.12), transparent 70%),
    linear-gradient(160deg, #1a1230 0%, #07080d 100%);
  border: 1px solid var(--border-strong);
  padding: 70px 60px;
  min-height: 740px;
}
@media (max-width: 760px) {
  .roadx-stage .frame { padding: 50px 30px; min-height: auto; }
}
.roadx-stage .frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}
.roadx-stage .grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 980px) {
  .roadx-stage .grid { grid-template-columns: 1fr; }
}
.roadx-stage .grid .copy .eyebrow-row {
  background: rgba(255, 106, 19, 0.08);
  border-color: rgba(255, 106, 19, 0.3);
  color: var(--nitro-soft);
}
.roadx-stage .grid .copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
  text-wrap: balance;
  text-transform: uppercase;
}
.roadx-stage .grid .copy h2 .accent {
  background: linear-gradient(135deg, #ff8a3c, #ff2d4d 60%, #6c5cff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
.roadx-stage .grid .copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 36px;
  max-width: 480px;
}
.roadx-stage .loop {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 32px 0;
  max-width: 480px;
}
.roadx-stage .loop .step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-3);
  padding: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
}
.roadx-stage .loop .step .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--nitro);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.roadx-stage .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.roadx-stage .stats .stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #ff8a3c);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.roadx-stage .stats .stat .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 6px;
}

/* Phone mockup */
.phone {
  position: relative;
  width: 320px;
  height: 660px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a1a22, #0a0a10);
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 50px 100px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(255, 106, 19, 0.32);
  transform: rotate(-5deg);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-14px); }
}
.phone::before {
  content: "";
  position: absolute;
  top: 24px; left: 50%;
  width: 110px; height: 28px;
  background: #000;
  border-radius: 18px;
  transform: translateX(-50%);
  z-index: 3;
}
.phone .screen {
  width: 100%; height: 100%;
  background: var(--asphalt-1000);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone .screen .map-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(108, 92, 255, 0.4), transparent 50%),
    radial-gradient(circle at 70% 65%, rgba(255, 106, 19, 0.3), transparent 50%),
    linear-gradient(160deg, #16182a 0%, #050608 100%);
}
.phone .screen .map-bg svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.phone .screen .hud-top {
  position: absolute;
  top: 62px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
.phone .screen .hud-top .pill {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.phone .screen .hud-top .pill.live {
  color: var(--xp);
  border-color: rgba(182, 255, 60, 0.45);
}
.phone .screen .hud-top .pill.live::before {
  content: "● ";
  color: var(--xp);
}
.phone .screen .speedo {
  position: absolute;
  bottom: 130px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.phone .screen .speedo .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 78px;
  line-height: 0.9;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.phone .screen .speedo .u {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}
.phone .screen .gas {
  position: absolute;
  bottom: 30px; left: 16px; right: 16px;
  background: linear-gradient(135deg, var(--nitro), var(--redline));
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 106, 19, 0.55);
}
.phone .screen .gas .lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--fg-on-neon);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phone .screen .gas .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(10, 11, 16, 0.7);
  margin-top: 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================== TEAM ============================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.person {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-5);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(232, 234, 243, 0.04), rgba(232, 234, 243, 0));
  transition: transform .3s var(--ease-out-arcade), border-color .25s ease;
}
.person:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 224, 255, 0.35);
}
.person .avatar {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.person .avatar svg { width: 100%; height: 100%; display: block; }
.person .meta {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.person .meta .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.person .meta .role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--signal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.person .meta .yrs {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--fg-3);
}

/* ============================== CTA ============================== */
section.cta-final {
  padding: 80px 0 140px;
}
.cta-card {
  position: relative;
  border-radius: var(--r-6);
  padding: 100px 60px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(108, 92, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(255, 106, 19, 0.3), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(0, 224, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #1a1530 0%, #07080d 100%);
  border: 1px solid var(--border-strong);
}
@media (max-width: 760px) {
  .cta-card { padding: 60px 24px; }
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}
.cta-card .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  position: relative;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
  text-wrap: balance;
  position: relative;
  text-transform: uppercase;
}
.cta-card h2 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #00e0ff, #6c5cff, #ff6a13);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
.cta-card p {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
  position: relative;
}
.cta-card .cta-row {
  position: relative;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ============================== FOOTER ============================== */
footer.site-foot {
  padding: 70px 0 60px;
  border-top: 1px solid var(--border);
}
footer .top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
/* Tablet: brand block spans full width, three link cols flow underneath */
@media (max-width: 920px) {
  footer .top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px 24px;
  }
  footer .top .brandblock { grid-column: 1 / -1; }
  footer .brandblock .tag { max-width: 580px; }
}
/* Phone: stack everything single-column for clean reading */
@media (max-width: 560px) {
  footer .top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  footer .top .brandblock { grid-column: auto; }
  footer .brandblock .tag { max-width: none; }
}
footer .top h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 16px;
  font-weight: 500;
}
footer .top a {
  display: block;
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 2;
  transition: color .15s ease;
}
footer .top a:hover { color: var(--signal); }
footer .brandblock { display: flex; flex-direction: column; gap: 18px; }
footer .brandblock .row { display: flex; align-items: center; gap: 12px; }
footer .brandblock img { height: 42px; }
footer .brandblock .wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
footer .brandblock .wm em { font-style: normal; color: var(--nitro); }
footer .brandblock .tag {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 300px;
}

footer .city-strip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  position: relative;
}
footer .city-strip .track {
  display: inline-block;
  animation: cityScroll 40s linear infinite;
}
footer .city-strip .track span { display: inline-block; padding-right: 48px; }
footer .city-strip .track .dot {
  -webkit-text-stroke: 0;
  color: var(--nitro);
  font-style: italic;
}
@keyframes cityScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
  footer .bottom { justify-content: flex-start; font-size: 11px; }
}
footer .bottom .legal-dot {
  display: inline-flex; align-items: center; gap: 8px;
}
footer .bottom .legal-dot::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--xp);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--xp);
}

/* ============================== Scroll reveal ============================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out-arcade), transform .9s var(--ease-out-arcade);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }
.reveal.delay-6 { transition-delay: .48s; }

/* Reveal variants — direction and effect */
.reveal.from-left  { transform: translateX(-64px); }
.reveal.from-right { transform: translateX(64px); }
.reveal.from-up    { transform: translateY(40px); }
.reveal.from-down  { transform: translateY(-40px); }
.reveal.scale-in   { transform: scale(0.92); }
.reveal.fade-only  { transform: none; }

.reveal.from-left.in,
.reveal.from-right.in,
.reveal.from-up.in,
.reveal.from-down.in,
.reveal.scale-in.in,
.reveal.fade-only.in {
  transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in,
  .reveal.from-left,
  .reveal.from-right,
  .reveal.from-up,
  .reveal.from-down,
  .reveal.scale-in,
  .reveal.fade-only {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   ADDITIONS — Digital twin claims · Eras · RoadX reel
   ========================================================================== */

/* Digital twin claim row */
.twin-claims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-5);
  overflow: hidden;
  margin: 56px 0 12px;
  background: linear-gradient(180deg, rgba(0, 224, 255, 0.05), transparent);
}
@media (max-width: 980px) {
  .twin-claims { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .twin-claims { grid-template-columns: 1fr; }
}
.twin-claims .claim {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background .3s ease;
}
.twin-claims .claim:hover { background: rgba(0, 224, 255, 0.04); }
.twin-claims .claim:last-child { border-right: none; }
@media (max-width: 980px) {
  .twin-claims .claim:nth-child(2n) { border-right: none; }
  .twin-claims .claim:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
.twin-claims .claim .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(0, 224, 255, 0.10);
  border: 1px solid rgba(0, 224, 255, 0.28);
  border-radius: var(--r-2);
  color: var(--signal);
}
.twin-claims .claim .icon svg { width: 20px; height: 20px; }
.twin-claims .claim .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.1;
}
.twin-claims .claim .desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 28ch;
}
.twin-claims .claim .badge-strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

/* =========== Eras section =========== */
section.eras {
  position: relative;
}
.eras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .eras-grid { grid-template-columns: 1fr; }
}
.era-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-5);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--asphalt-1000);
  transition: transform .35s var(--ease-out-arcade), border-color .25s ease, box-shadow .3s ease;
  cursor: default;
}
.era-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 224, 255, 0.3);
}
.era-card .city {
  position: absolute; inset: 0;
}
.era-card .city svg { width: 100%; height: 100%; display: block; }
.era-card .city::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 7, 11, 0.92) 100%);
  pointer-events: none;
}
.era-card .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px 22px;
  z-index: 2;
}
.era-card .label .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.era-card .label h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.era-card .label p {
  font-size: 13px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
  max-width: 32ch;
}
.era-card .corner {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.era-card .corner .dot {
  width: 6px; height: 6px; border-radius: 50%;
}

.era-card.medieval { background: linear-gradient(180deg, #2a1d0c, #0a0805); }
.era-card.medieval .corner .dot { background: #f4d27a; box-shadow: 0 0 8px #f4d27a; }
.era-card.medieval .label h3   { color: #f4d27a; }
.era-card.medieval .city svg path,
.era-card.medieval .city svg rect { transition: opacity .3s ease; }

.era-card.modern   { background: linear-gradient(180deg, #0a1424, #050810); }
.era-card.modern .corner .dot   { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.era-card.modern .label h3     { color: var(--signal-soft); }

.era-card.future   { background: linear-gradient(180deg, #1a0a30, #0a0518); }
.era-card.future .corner .dot   { background: #b48cff; box-shadow: 0 0 8px #b48cff; }
.era-card.future .label h3     { color: #b48cff; }

/* =========== RoadX 3-col layout w/ YouTube Short reel =========== */
@media (min-width: 981px) {
  .roadx-stage .grid {
    grid-template-columns: 1.35fr 0.85fr 0.85fr;
    gap: var(--sp-6);
    align-items: center;
  }
}
.reel-wrap {
  display: flex; flex-direction: column; gap: 14px;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
.reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 224, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(4deg);
  transition: transform .5s var(--ease-out-arcade);
}
.reel-frame:hover { transform: rotate(2deg) translateY(-4px); }
.reel-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  z-index: 2;
}
/* Poster shows behind/instead of iframe */
.reel-poster {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 106, 19, 0.45), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(108, 92, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #1a1530, #050608);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 30px 22px;
  overflow: hidden;
}
.reel-poster::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 90%);
}
.reel-poster .play {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 106, 19, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 106, 19, 0.5);
  display: grid; place-items: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 6px rgba(255, 106, 19, 0.08), 0 8px 28px rgba(255, 106, 19, 0.45);
  animation: playPulse 2.4s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0.45), 0 8px 28px rgba(255, 106, 19, 0.3); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 106, 19, 0),   0 8px 28px rgba(255, 106, 19, 0.5); }
}
.reel-poster .play svg { width: 22px; height: 22px; margin-left: 3px; }
.reel-poster .ptitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--fg);
  position: relative; z-index: 2;
}
.reel-poster .psub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.55;
  position: relative; z-index: 2;
}
.reel-poster .psub strong { color: var(--nitro); font-weight: 500; }
.reel-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
}
.reel-caption strong { color: var(--signal); font-weight: 500; }
.reel-caption .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--xp);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--xp);
}
@media (max-width: 980px) {
  .reel-frame { transform: rotate(0); max-width: 320px; margin: 0 auto; }
}


/* ==========================================================================
   Cube pool canvas — GLOBAL interactive tile-grid background
   Fixed to viewport, behind all content, mouse-tracks across entire page.
   ========================================================================== */
canvas#cube-pool {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
/* Hide the old floating-cube style since the imgs are removed */
.mission .floating-cube { display: none; }

/* ==========================================================================
   Multi-layer city capture diagram (Technology section)
   ========================================================================== */
.layers-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  margin-top: 20px;
}
@media (max-width: 980px) {
  .layers-row { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.layers-viz {
  position: relative;
  border-radius: var(--r-6);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 224, 255, 0.10), transparent 70%),
    linear-gradient(180deg, #0a1018, #050609);
  padding: 60px 32px 60px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.layers-viz::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 224, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 224, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 90%);
  pointer-events: none;
}
.layers-viz .viz-eyebrow {
  position: absolute;
  top: 22px; left: 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
}
.layers-viz .viz-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 2s ease-in-out infinite;
}
.layers-viz .viz-status {
  position: absolute;
  top: 22px; right: 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  z-index: 2;
}
.layers-viz .viz-status strong { color: var(--xp); font-weight: 500; }
.layers-viz .viz-foot {
  position: absolute;
  bottom: 22px; left: 28px; right: 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  z-index: 2;
}
.layers-viz .city-layers-svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  max-height: 720px;
}
.city-layer {
  transform-origin: center;
  transform-box: fill-box;
  animation: layerFloat 5.5s ease-in-out infinite;
}
.city-layer.l1 { animation-delay: 0s;   }
.city-layer.l2 { animation-delay: .35s; }
.city-layer.l3 { animation-delay: .70s; }
.city-layer.l4 { animation-delay: 1.05s; }
.city-layer.l5 { animation-delay: 1.40s; }
.city-layer.l6 { animation-delay: 1.75s; }
@keyframes layerFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.layers-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.layers-copy h2 em {
  font-style: italic;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(135deg, var(--signal), var(--royal));
  -webkit-background-clip: text; background-clip: text;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
.layers-copy .desc.desc-oneline {
  white-space: nowrap;
}
.layers-copy .desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 26px;
  max-width: 38ch;
}
.layers-copy .desc strong { color: var(--fg); font-weight: 600; }
.layers-copy .pull-quote {
  position: relative;
  padding: 22px 26px;
  border-left: 3px solid var(--nitro);
  background: linear-gradient(90deg, rgba(255, 106, 19, 0.08), transparent 80%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.005em;
  margin-top: 8px;
}
.layers-copy .pull-quote strong { color: var(--nitro); font-weight: 700; }

.layer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 1240px) {
  .layer-list { grid-template-columns: 1fr; }
}
.layer-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: rgba(232, 234, 243, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  transition: border-color .2s ease, background .2s ease, transform .25s var(--ease-out-arcade);
}
.layer-list li:hover {
  border-color: var(--border-strong);
  background: rgba(232, 234, 243, 0.05);
  transform: translateX(2px);
}
.layer-list li .dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  background: var(--c, var(--signal));
  border-radius: 2px;
  margin-top: 5px;
  box-shadow: 0 0 8px var(--c, var(--signal));
}
.layer-list li .lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
  display: block;
}
.layer-list li .sub {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}


/* ==========================================================================
   REFACTOR — Hero phone, Vision 2-col cards, RoadX phone-reel, Mobile
   ========================================================================== */

/* ---------- Reusable PHONE-REEL component ---------- */
.phone-reel {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a1a22 0%, #0a0a10 100%);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 106, 19, 0.16);
}
.phone-reel .notch {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 4;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px;
  gap: 6px;
}
.phone-reel .notch .cam {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1a1a22;
  box-shadow: inset 0 0 0 1px rgba(0, 224, 255, 0.5);
}
.phone-reel .screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--asphalt-1000);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.phone-reel .screen iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  z-index: 2;
  background: transparent;
}
.phone-reel .screen .poster {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 106, 19, 0.45), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(108, 92, 255, 0.32), transparent 60%),
    linear-gradient(180deg, #1a1530 0%, #050608 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px 30px;
  overflow: hidden;
}
.phone-reel .screen .poster::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 90%);
}
.phone-reel .screen .poster .play {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 106, 19, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 106, 19, 0.5);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 0 0 6px rgba(255, 106, 19, 0.08), 0 8px 28px rgba(255, 106, 19, 0.45);
  animation: playPulse 2.4s ease-in-out infinite;
  position: relative; z-index: 2;
}
.phone-reel .screen .poster .play svg { width: 22px; height: 22px; margin-left: 3px; }
.phone-reel .screen .poster .ptitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--fg);
  position: relative; z-index: 2;
}
.phone-reel .screen .poster .psub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.55;
  position: relative; z-index: 2;
}
.phone-reel .screen .poster .psub strong { color: var(--nitro); font-weight: 500; }

/* ---------- HERO layout: 2 cols × 2 rows ---------- */
section.hero .layout {
  display: grid;
  /* Column 1 takes available space, Column 2 is a 650px lane for the video (right edge aligned with end of nav) */
  grid-template-columns: minmax(0, 1fr) 650px;
  grid-template-rows: auto auto;
  gap: var(--sp-7) var(--sp-9);
  align-items: start;
}
section.hero .layout .copy           { grid-row: 1; grid-column: 1; }
section.hero .layout .phone-wrap     { grid-row: 1; grid-column: 2; }
section.hero .layout .hero-video-wrap{ grid-row: 1; grid-column: 2; align-self: start; }
section.hero .layout .stat-strip     { grid-row: 2; grid-column: 1; margin-top: 0; padding-top: 28px; border-top: 1px solid var(--border); }
section.hero .layout .ticker-col     { grid-row: 2; grid-column: 2; padding-top: 0; border-top: none; align-self: stretch; }

/* ---------- Hero video panel (framed, fills its 650px lane) ---------- */
.hero-video-wrap {
  position: relative;
  width: 100%;             /* fills the fixed 650px column-2 lane */
  max-width: 650px;
  aspect-ratio: 3 / 2;
  /* Align top of video frame with the headline top, not the eyebrow */
  margin-top: 58px;
  /* Frame chrome: outer ring + inset padding around the video */
  padding: 12px;
  border-radius: var(--r-5);
  background: linear-gradient(180deg, #1a1d27 0%, #0a0c12 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 224, 255, 0.12),
    0 0 60px rgba(255, 106, 19, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-video-wrap::before {
  /* Corner accent ticks — small "L" marks at each corner of the frame */
  content: "";
  position: absolute; inset: 4px;
  pointer-events: none;
  border-radius: calc(var(--r-5) - 4px);
  background:
    linear-gradient(to right, var(--signal) 0, var(--signal) 14px, transparent 14px) top    left  / 14px 1.5px no-repeat,
    linear-gradient(to bottom, var(--signal) 0, var(--signal) 14px, transparent 14px) top    left  / 1.5px 14px no-repeat,
    linear-gradient(to left,  var(--nitro)  0, var(--nitro)  14px, transparent 14px) top    right / 14px 1.5px no-repeat,
    linear-gradient(to bottom, var(--nitro) 0, var(--nitro)  14px, transparent 14px) top    right / 1.5px 14px no-repeat,
    linear-gradient(to right, var(--nitro)  0, var(--nitro)  14px, transparent 14px) bottom left  / 14px 1.5px no-repeat,
    linear-gradient(to top,   var(--nitro)  0, var(--nitro)  14px, transparent 14px) bottom left  / 1.5px 14px no-repeat,
    linear-gradient(to left,  var(--signal) 0, var(--signal) 14px, transparent 14px) bottom right / 14px 1.5px no-repeat,
    linear-gradient(to top,   var(--signal) 0, var(--signal) 14px, transparent 14px) bottom right / 1.5px 14px no-repeat;
  opacity: 0.7;
  z-index: 2;
}
.hero-video {
  /* Use absolute positioning inside the padded wrap so the video has a definite
     box derived from `inset`, not from a percentage height that can resolve to
     0 on iOS Safari (which was making audio play while the video frame
     collapsed to zero). */
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  border-radius: calc(var(--r-5) - 8px);
  background: var(--asphalt-1000);
  z-index: 1;
}

/* Unmute prompt overlay — hint that there's audio waiting for the user's first interaction */
.hero-video-unmute {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--nitro);
  background: rgba(255, 106, 19, 0.18);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(255, 106, 19, 0.35), 0 0 0 4px rgba(255, 106, 19, 0.08);
  animation: heroUnmutePulse 2.2s ease-in-out infinite;
  transition: opacity .3s ease, transform .3s var(--ease-out-arcade);
}
.hero-video-unmute svg { width: 14px; height: 14px; }
.hero-video-unmute:hover {
  background: var(--nitro);
  color: #ffffff;
  transform: translateY(-1px);
}
.hero-video-unmute.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
@keyframes heroUnmutePulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(255, 106, 19, 0.35), 0 0 0 4px rgba(255, 106, 19, 0.08); }
  50%      { box-shadow: 0 4px 22px rgba(255, 106, 19, 0.55), 0 0 0 8px rgba(255, 106, 19, 0.18); }
}
section.hero .layout .stat-strip {
  display: grid; grid-template-columns: repeat(3, auto); gap: var(--sp-7); justify-content: start;
}

/* Ticker tucked into hero right column */
.ticker.in-hero {
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 224, 255, 0.02);
  overflow: hidden;
  padding: 18px 0;
  width: 100%;
}
.ticker.in-hero .track { display: flex; gap: 36px; }
.ticker.in-hero .track .item { font-size: 18px; }
.ticker.in-hero .track .item .dot { width: 8px; height: 8px; }

/* Mobile collapse — switch to single column before the headline starts crowding the video lane */
@media (max-width: 1100px) {
  section.hero .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: var(--sp-6);
  }
  section.hero .layout .copy            { grid-row: 1; grid-column: 1; }
  section.hero .layout .phone-wrap      { grid-row: 2; grid-column: 1; justify-self: center; }
  section.hero .layout .hero-video-wrap {
    grid-row: 2; grid-column: 1;
    width: 100%;
    max-width: 560px;
    margin-top: 0;
    justify-self: center;
    display: block; /* explicit so collapse on small viewports doesn't auto-flatten */
    min-height: 220px; /* fallback so the frame is visible even before video metadata loads */
  }
  section.hero .layout .stat-strip      { grid-row: 3; grid-column: 1; }
  section.hero .layout .ticker-col      { grid-row: 4; grid-column: 1; }
  section.hero .layout .stat-strip {
    grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
  }
}
@media (max-width: 580px) {
  section.hero .layout .stat-strip {
    grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  }
  section.hero .layout .stat-strip .stat:nth-child(3) { grid-column: span 2; }
}

/* Remove the old voxel stage chrome (not used anymore but defensive) */
.hero .stage { display: none; }

/* Brand accent letter — X in RoadX, Y in SkY, Z in WorldWar-Z, E in CubEy */
.brand-accent {
  color: var(--nitro);
  font-style: normal;
  -webkit-text-fill-color: var(--nitro);
}

/* ---------- Cycling-word typing animation (Games headline) ---------- */
.cycle-word {
  /* No fixed width — width follows the typed text so the caret hugs the last character */
  display: inline;
  background: linear-gradient(135deg, var(--signal) 0%, var(--royal) 50%, var(--nitro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
  position: relative;
  /* Trailing blinking caret rendered as ::after content so it always sits flush against the last typed char */
}
.cycle-word::after {
  content: '|';
  display: inline-block;
  margin-left: 0.04em;
  /* Restore opaque caret color — break out of the gradient text-clip on this glyph */
  -webkit-text-fill-color: var(--signal);
  color: var(--signal);
  font-weight: 300;
  font-style: normal;
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.7);
  animation: cycleCaret 0.9s steps(2) infinite;
}
@keyframes cycleCaret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- VISION: 2-col, cards stacked on right ---------- */
section.vision .grid {
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
section.vision .pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}
section.vision .pillar-card { padding: 22px 24px; }
@media (max-width: 980px) {
  section.vision .grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ---------- RoadX 2-col with phone-reel ---------- */
section.roadx-stage .grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-8);
  align-items: center;
}
section.roadx-stage .phone-reel { transform: none; animation: none; }
@media (max-width: 980px) {
  section.roadx-stage .grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  section.roadx-stage .grid .phone-reel { margin: 0 auto; }
}

/* ---------- Generic mobile polishes ---------- */
@media (max-width: 980px) {
  /* Twin claims: 2 cols already; ensure spacing */
  .twin-claims { margin-top: 36px; }
  .layers-row { gap: var(--sp-6); }
  .city-layers-svg { max-width: 540px; margin: 0 auto; }
  .market .stat-cell { padding: 26px 20px; }
}
@media (max-width: 760px) {
  .section-head { gap: 16px; }
  .games-grid .game-card { min-height: 360px; padding: 22px; }
  .games-grid .game-card.featured h3 { font-size: 44px; }
  .games-grid .game-card h3 { font-size: 30px; }
  .roadx-stage .frame { padding: 40px 22px; }
  .roadx-stage .loop { max-width: 100%; }
  section.block, section.mission, section.market { padding: 40px 0; }
  .vision .pillar-card h4 { font-size: 18px; }
}
@media (max-width: 480px) {
  /* Keep the CUBEY STUDIOS wordmark visible on phones; shrink it instead of hiding it */
  nav.site-nav .brand .wm { font-size: 14px; letter-spacing: 0.03em; }
  nav.site-nav .brand img { height: 30px; }
  .hero .copy h1 { font-size: clamp(40px, 13vw, 64px); }
  .layers-viz { padding: 56px 14px 56px; }
  .layers-viz .viz-eyebrow { font-size: 9.5px; left: 16px; top: 18px; }
  .layers-viz .viz-status  { font-size: 9.5px; right: 16px; top: 18px; }
}
