/* =============================================
   DUBEM IT VENTURE — Master Stylesheet
   Technology. Solutions. Growth.
   ============================================= */

:root {
  --bg: #030712;
  --bg2: #060C1A;
  --panel: #0A1226;
  --deepblue: #061A40;
  --blue: #0066FF;
  --blue-bright: #2F7DFF;
  --accent: #5AA9FF;
  --white: #F7F9FF;
  --ink: #0A0E1A;
  --grey: #8592B0;
  --grey-dim: #4E5A78;
  --line: rgba(90, 169, 255, 0.14);
  --line-strong: rgba(90, 169, 255, 0.32);
  --glow: rgba(0, 102, 255, 0.45);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16, .84, .34, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: #EAF0FF;
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.chapter-head {
  max-width: 680px;
}

.chapter-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
}

.chapter-head p {
  margin-top: 22px;
  color: var(--grey);
  font-size: 1.05rem;
  max-width: 560px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .83rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 2px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -8px var(--glow);
}

.btn-primary:active {
  transform: scale(.96);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: #EAF0FF;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost:active {
  transform: scale(.96);
}

.btn svg {
  width: 13px;
  height: 13px;
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}

#preloader .preloader-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.8s cubic-bezier(.34,1.56,.64,1);
}

#preloader .preloader-bg img {
  width: min(500px, 65vw);
  height: auto;
  object-fit: contain;
}

#preloader .preloader-bg.shrinking {
  opacity: 0.08;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pre-bar {
  width: 180px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pre-bar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: loadbar 1.3s var(--ease) forwards;
}

@keyframes loadbar {
  to {
    transform: translateX(100%);
  }
}

.pre-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .28em;
  color: var(--grey-dim);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

/* ============ CURSOR ============ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  background: radial-gradient(circle, rgba(90, 169, 255, .16), transparent 65%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(90, 169, 255, .5);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
}

.cursor-ring.active {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring,
  .cursor-glow {
    display: none;
  }
}

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 22px 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s, background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

header.ready {
  opacity: 1;
  transform: none;
}

header.scrolled {
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.brand::before {
  content: '';
  position: absolute;
  inset: -8px -12px;
  background: radial-gradient(ellipse at center, rgba(0,102,255,0.12) 0%, transparent 70%);
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}

.brand img {
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,102,255,0.2)) drop-shadow(0 0 3px rgba(90,169,255,0.35));
}

nav.main-nav {
  display: flex;
  gap: 2px;
}

nav.main-nav a {
  font-size: .82rem;
  padding: 9px 15px;
  border-radius: 20px;
  color: var(--grey);
  position: relative;
  transition: color .25s;
  letter-spacing: .02em;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 1px;
  height: 1.5px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  nav.main-nav {
    display: none;
  }
  .desktop-only {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============ MOBILE NAV ============ */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
}

#mobile-nav.open {
  transform: translateY(0);
}

#mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
}

.mobile-close {
  position: absolute;
  top: 26px;
  right: 26px;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  color: #fff;
}

/* ============ WORLD 0 — HERO / VOID ============ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--grey-dim);
  text-transform: uppercase;
  opacity: 0;
}

.hero-inner h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-top: 22px;
  opacity: 0;
}

.hero-tagline {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0;
}

.hero-actions {
  margin-top: 52px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--grey-dim);
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: 0;
}

.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrolldrop 2s ease-in-out infinite;
}

@keyframes scrolldrop {
  0% {
    opacity: 0;
    transform: scaleY(.3);
  }
  40% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(.3) translateY(12px);
  }
}

/* ============ CHAPTER SHELL ============ */
.chapter {
  padding: 150px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.chapter.alt {
  background: var(--bg2);
}

.chapter-num {
  position: absolute;
  top: 60px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--grey-dim);
  letter-spacing: .1em;
  display: none;
}

@media (min-width: 1100px) {
  .chapter-num {
    display: block;
  }
}

/* ============ KINETIC TYPOGRAPHY INTERLUDE ============ */
#interlude {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.kinetic {
  text-align: center;
  padding: 0 24px;
}

.kinetic .kw {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 5.6rem);
  line-height: 1.02;
  color: #233047;
  letter-spacing: -0.01em;
  transition: color .5s;
}

.kinetic .kw.hit {
  color: #fff;
}

.kinetic .kw .accent {
  color: var(--accent);
}

/* ============ WORLD 1 — DIGITAL GENESIS — Orbit Grid ============ */
#genesis {
  padding-top: 170px;
}

.genesis-orbit {
  position: relative;
  margin-top: 70px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central pulsing core */
.genesis-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 2;
}

.genesis-core-dot {
  position: absolute;
  inset: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 22px var(--glow), 0 0 60px rgba(90,169,255,0.25);
  animation: corePulse 3s ease-in-out infinite;
}

.genesis-core-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: coreSpin 12s linear infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

@keyframes coreSpin {
  to { transform: rotate(360deg); }
}

/* SVG connection lines */
.genesis-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Capability cards */
.genesis-cards {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
}

.gen-card {
  position: absolute;
  left: var(--gx, 50%);
  top: var(--gy, 50%);
  transform: translate(-50%, -50%);
  width: 150px;
  padding: 18px 12px;
  background: rgba(6, 12, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
  z-index: 1;
}

.gen-card:hover {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: var(--accent);
  box-shadow: 0 0 40px -8px var(--glow), 0 8px 32px rgba(0,0,0,0.4);
  background: rgba(10, 18, 38, 0.92);
  z-index: 10;
}

.gen-card-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  transition: color 0.3s, transform 0.3s;
}

.gen-card:hover .gen-card-icon {
  color: #fff;
  transform: scale(1.15);
}

.gen-card-icon svg {
  width: 100%;
  height: 100%;
}

.gen-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  text-align: center;
  transition: color 0.3s;
  line-height: 1.3;
}

.gen-card:hover .gen-card-label {
  color: #fff;
}

/* Tooltip */
.genesis-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  background: var(--panel);
  border: 1px solid var(--accent);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  transform: translate(-50%, -130%);
  transition: opacity 0.25s;
  z-index: 20;
}

.genesis-tooltip.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .gen-card {
    width: 120px;
    padding: 14px 8px;
  }
  .gen-card-icon { width: 24px; height: 24px; }
  .gen-card-label { font-size: 0.62rem; }
}

@media (max-width: 640px) {
  .genesis-orbit { min-height: 400px; }
  .genesis-cards { height: 400px; }
  .gen-card { width: 100px; padding: 10px 6px; gap: 6px; }
  .gen-card-label { font-size: 0.58rem; }
}

/* ============ WORLD 2 — ENGINEERING CHAMBER ============ */
.blueprint {
  margin-top: 70px;
  position: relative;
  padding: 50px 40px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg2);
  background-size: 36px 36px;
}

.bp-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line-strong);
  align-items: start;
}

.bp-row:last-child {
  border-bottom: none;
}

.bp-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  padding-top: 4px;
}

.bp-row h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.bp-row p {
  color: var(--grey);
  font-size: .92rem;
  margin-top: 10px;
  max-width: 520px;
}

.bp-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  opacity: .6;
}

.bp-corner.tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.bp-corner.br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* ============ WORLD 3 — SOLUTIONS UNIVERSE ============ */
.sector-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sector {
  background: var(--bg);
  padding: 34px 28px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background .3s;
  position: relative;
}

.sector:hover {
  background: var(--panel);
}

.sector-idx {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--grey-dim);
}

.sector h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 26px;
  font-weight: 600;
}

.sector p {
  color: var(--grey);
  font-size: .85rem;
  margin-top: 10px;
}

.sector-orbit {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.sector-orbit::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  top: -2px;
  left: 50%;
  margin-left: -2.5px;
  animation: orbitspin 5s linear infinite;
  transform-origin: 2.5px 17px;
}

@keyframes orbitspin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

.sector-detail {
  margin-top: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
}

.sector-detail-inner {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}

.sector-detail-inner p {
  color: var(--grey);
  font-size: .94rem;
}

.sector-scope {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.sector-scope li {
  display: flex;
  gap: 10px;
  font-size: .86rem;
  color: var(--grey);
}

.sector-scope li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.sector-side {
  border: 1px solid var(--line);
  padding: 22px;
  align-self: start;
}

.sector-side span {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sector-side h5 {
  color: #fff;
  margin-top: 8px;
  font-size: .92rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .sector-detail-inner {
    grid-template-columns: 1fr;
  }
}

/* ============ WORLD 4 — ACADEMY ============ */
#academy {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}

.academy-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.academy-banner .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(90, 169, 255, .6);
  animation: pulseping 2s infinite;
}

@keyframes pulseping {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 169, 255, .5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(90, 169, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90, 169, 255, 0);
  }
}

.track-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.track-tab {
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  font-size: .85rem;
  color: var(--grey);
  transition: .25s;
}

.track-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.track-tab:hover:not(.active) {
  color: #fff;
  border-color: var(--accent);
}

.track-panel {
  margin-top: 34px;
  border: 1px solid var(--line);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
}

.track-panel h3 {
  color: #fff;
  font-size: 1.5rem;
}

.track-panel p {
  color: var(--grey);
  margin-top: 16px;
  font-size: .98rem;
}

.track-meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.track-meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.track-meta div b {
  color: #fff;
  font-weight: 500;
  font-size: .92rem;
}

.track-build {
  border: 1px solid var(--line);
  padding: 26px;
  align-self: start;
}

.track-build span {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.track-build ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.track-build li {
  font-size: .86rem;
  color: var(--grey);
  display: flex;
  gap: 9px;
}

.track-build li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .track-panel {
    grid-template-columns: 1fr;
  }
  .track-meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ PLATFORMS — OUR PRODUCTS ============ */
#platforms {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.platforms-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 34px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  cursor: pointer;
  text-decoration: none;
}

.platform-card:hover {
  border-color: var(--plat-accent, var(--accent));
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5);
}

.plat-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--plat-accent, var(--accent)), transparent 70%);
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.6s;
}

.platform-card:hover .plat-glow {
  opacity: 0.12;
  transform: scale(1.3);
}

.plat-icon {
  width: 42px;
  height: 42px;
  color: var(--plat-accent, var(--accent));
  margin-bottom: 16px;
}

.plat-icon svg {
  width: 100%;
  height: 100%;
}

.plat-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plat-accent, var(--accent));
  margin-bottom: 10px;
}

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}

.platform-card p {
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}

.plat-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.plat-features span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--grey);
  transition: border-color 0.3s, color 0.3s;
}

.platform-card:hover .plat-features span {
  border-color: rgba(255,255,255,0.15);
  color: #c0c8dd;
}

.plat-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plat-accent, var(--accent));
  transition: gap 0.3s;
}

.plat-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.platform-card:hover .plat-cta {
  gap: 14px;
}

.platform-card:hover .plat-cta svg {
  transform: translateX(3px);
}

@media (max-width: 780px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ WORLD 5 — BUILT FOR SCALE ============ */
.principle-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  background: var(--bg);
  padding: 30px 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.principle .pnum {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--grey-dim);
}

.principle h5 {
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  margin-top: auto;
}

@media (max-width: 900px) {
  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ WORLD 6 — ENGINEERING STANDARDS ============ */
.standards-list {
  margin-top: 60px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.standard-row {
  background: var(--bg);
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: center;
}

.standard-check {
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.standard-row h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.standard-row p {
  color: var(--grey);
  font-size: .88rem;
  margin-top: 6px;
}

/* ============ WORLD 7 — THE FUTURE — Architectural Minimalism ============ */
#future {
  background: var(--white);
  color: var(--ink);
  padding: 220px 0 200px;
  text-align: center;
  border-top: none;
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* Subtle dot-grid overlay */
#future .future-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, #0066FF 1px, transparent 1px);
  background-size: 32px 32px;
}

/* D-mark — subtle rotation */
#future .future-dmark-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 68vw);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  animation: dmarkSlowRotate 30s linear infinite;
}

#future .future-dmark-bg svg {
  width: 100%;
  height: auto;
}

@keyframes dmarkSlowRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Particle stream */
#future .future-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#future .future-particles .fp {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--blue);
  border-radius: 0;
  opacity: 0;
  animation: futureRise var(--dur, 5s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes futureRise {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.4); }
  18%  { opacity: 0.6; }
  45%  { opacity: 0.22; transform: translateY(-70px) translateX(22px) scale(1.4); }
  75%  { opacity: 0.06; }
  100% { opacity: 0; transform: translateY(-200px) translateX(-14px) scale(0.3); }
}

/* Phase label */
#future .future-phase-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* Word-by-word typography */
#future .fline {
  font-family: var(--font-display);
  font-weight: 700;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  color: #0A0E1A;
  line-height: 1.05;
}

#future .fline .future-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

#future .fline .future-word.revealed {
  opacity: 1;
  transform: translateY(0);
}

#future .fline .future-accent {
  color: var(--blue);
}

#future .fsub {
  margin-top: 22px;
  color: #5A6478;
  font-size: 1.06rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

#future .fsub strong {
  color: var(--blue);
  font-weight: 600;
}

/* Divider with dot */
#future .future-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin: 38px auto;
  position: relative;
  z-index: 1;
  transition: width 1.6s var(--ease);
}

#future .future-divider .future-divider-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

#future .future-divider.drawn .future-divider-dot {
  opacity: 1;
}

/* CTA area */
#future .fcta {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

#future .btn-primary {
  background: var(--ink);
  font-size: .88rem;
  padding: 14px 28px;
}

#future .btn-primary:hover {
  background: var(--blue);
  box-shadow: 0 16px 40px -10px rgba(0, 102, 255, 0.35);
  transform: translateY(-2px);
}

#future .btn-ghost {
  border-color: #D7DEEC;
  color: #0A0E1A;
  font-size: .88rem;
  padding: 14px 28px;
}

#future .btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ============ BOARD / TEAM ============ */
#board {
  background: var(--bg);
  padding: 160px 0 110px;
  border-top: 1px solid var(--line);
}

.board-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.board-card {
  background: var(--bg2);
  padding: 48px 28px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background .4s;
}

.board-card:hover {
  background: var(--panel);
}

.board-card:hover .board-avatar {
  border-color: var(--accent);
  box-shadow: 0 0 50px -6px var(--glow);
  transform: translateY(-6px) scale(1.04);
}

.board-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  margin-bottom: 24px;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
  overflow: hidden;
}

.board-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.board-card:hover .board-avatar img {
  transform: scale(1.08);
}

.board-avatar .pixel-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spinring 20s linear infinite;
  pointer-events: none;
}

.board-card:hover .pixel-ring {
  border-color: var(--accent);
  border-style: solid;
}

@keyframes spinring {
  to {
    transform: rotate(360deg);
  }
}

.board-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
}

.board-role {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 8px;
}

.board-bio {
  color: var(--grey);
  font-size: .84rem;
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.5;
}

.board-card .card-line {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
  margin: 16px auto 0;
  transition: width .4s, background .4s;
}

.board-card:hover .card-line {
  width: 40px;
  background: var(--accent);
}

@media (max-width: 960px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ COMMAND CENTER (CONTACT) ============ */
#contact {
  background: var(--bg2);
  padding: 160px 0 110px;
  border-top: 1px solid var(--line);
}

.cc-shell {
  border: 1px solid var(--line);
  margin-top: 60px;
}

.cc-step {
  padding: 34px;
  border-bottom: 1px solid var(--line);
}

.cc-step:last-child {
  border-bottom: none;
}

.cc-step-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  font-size: .83rem;
  color: var(--grey);
  transition: .2s;
}

.chip.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.chip:hover:not(.active) {
  color: #fff;
  border-color: var(--accent);
}

.cc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cc-form-grid .full {
  grid-column: 1/-1;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey);
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  transition: border-color .25s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.cc-summary {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--grey);
  margin-top: 18px;
  min-height: 20px;
}

.cc-summary b {
  color: var(--accent);
}

form .btn-primary {
  margin-top: 22px;
  border: none;
  width: 100%;
  justify-content: center;
  padding: 15px;
}

.form-note {
  font-size: .76rem;
  color: var(--grey-dim);
  margin-top: 16px;
}

.contact-direct {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-direct div span {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--grey-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.contact-direct div b {
  color: #fff;
  font-weight: 500;
}

.form-success {
  display: none;
  padding: 30px 34px;
  border: 1px solid var(--accent);
  background: rgba(90, 169, 255, .06);
}

.form-success.show {
  display: block;
}

.form-success h4 {
  color: #fff;
}

.form-success p {
  color: var(--grey);
  font-size: .9rem;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .cc-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ PIXEL / CIRCUIT DECORATIONS ============ */
.section-dmark {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .035;
  pointer-events: none;
  z-index: 0;
}

.section-dmark svg {
  width: 200px;
  height: auto;
}

.floating-pixels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-pixels .fp {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  border-radius: 0;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: .3;
  }
  80% {
    opacity: .15;
  }
  100% {
    opacity: 0;
    transform: translateY(-160px);
  }
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg);
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .86rem;
  color: var(--grey);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--grey-dim);
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
