/* === CORE SYSTEM & VARIABLES === */
:root {
  --deep-blue: #0b1220;
  --navy: #101c34;
  --neon-blue: #66bfff;
  --bright-blue: #7fd1ff;
  --light-blue: #aee1ff;
  --text-light: #eaf2ff;
  --text-gray: #b8c7e6;
  --hud-yellow: #ffe28a;
  --cyan-glow: #7df0ff;
  --site-pad: 5%;

  --transition: all var(--animation-duration) ease;
  --glow: 0 0 10px rgba(102,191,255,0.4);
  --strong-glow: 0 0 15px rgba(102,191,255,0.6);
  --yellow-glow: 0 0 10px rgba(255,226,138,0.4);
  --strong-yellow-glow: 0 0 15px rgba(255,226,138,0.6);

  --deep-blue-85a: rgba(11,18,32,0.85);
  --deep-blue-95a: rgba(11,18,32,0.95);
  --deep-blue-80a: rgba(11,18,32,0.80);

  --blue-005a: rgba(127,209,255,0.05);
  --blue-01a:  rgba(127,209,255,0.10);
  --blue-02a:  rgba(127,209,255,0.20);
  --blue-03a:  rgba(127,209,255,0.30);
  --blue-05a:  rgba(127,209,255,0.50);
  --blue-08a:  rgba(127,209,255,0.80);

  --yellow-01a: rgba(255,226,138,0.10);
  --yellow-06a: rgba(255,226,138,0.60);

  --cyan-02a:  rgba(125,240,255,0.20);
  --cyan-08a:  rgba(125,240,255,0.80);
}
/* === Text Tint Palette === */
:root {
  --tint-cyan:   oklch(0.9 0.16 190);   /* cold / tech */
  --tint-violet: oklch(0.9 0.16 310);   /* AI / synthwave */
  --tint-amber:  oklch(0.9 0.12 80);    /* HUD / highlight */
}

@supports not (color: oklch(0.5 0.2 30)) {
  :root {
    --tint-cyan:   #8cf3ff;
    --tint-violet: #f0b3ff;
    --tint-amber:  #ffd48a;
  }
}

/* SUBTLE tints – NO extra glow */
.tint-cyan {
  color: var(--tint-cyan);
  text-shadow: none;
}

.tint-violet {
  color: var(--tint-violet);
  text-shadow: none;
}

.tint-amber {
  color: var(--tint-amber);
  text-shadow: none;
}

/* Upgrade to OKLCH where supported */
@supports (color: oklch(0.5 0 0)) {
  :root {
    --deep-blue: oklch(0.2 0.05 240);
    --navy: oklch(0.25 0.05 240);
    --neon-blue: oklch(0.7 0.15 240);
    --bright-blue: oklch(0.75 0.15 240);
    --light-blue: oklch(0.85 0.1 240);
    --text-light: oklch(0.95 0.02 240);
    --text-gray: oklch(0.85 0.05 240);
    --hud-yellow: oklch(0.9 0.12 90);
    --cyan-glow: oklch(0.85 0.18 190);
    --glow: 0 0 10px oklch(0.7 0.15 240 / var(--glow-intensity));
    --strong-glow: 0 0 15px oklch(0.7 0.15 240 / 0.6);
    --yellow-glow: 0 0 10px oklch(0.9 0.12 90 / 0.4);
    --strong-yellow-glow: 0 0 15px oklch(0.9 0.12 90 / 0.6);

    --deep-blue-85a: oklch(0.2 0.05 240 / 0.85);
    --deep-blue-95a: oklch(0.2 0.05 240 / 0.95);
    --deep-blue-80a: oklch(0.2 0.05 240 / 0.80);

    --blue-005a: oklch(0.75 0.15 240 / 0.05);
    --blue-01a:  oklch(0.75 0.15 240 / 0.10);
    --blue-02a:  oklch(0.75 0.15 240 / 0.20);
    --blue-03a:  oklch(0.75 0.15 240 / 0.30);
    --blue-05a:  oklch(0.75 0.15 240 / 0.50);
    --blue-08a:  oklch(0.75 0.15 240 / 0.80);

    --yellow-01a: oklch(0.9 0.12 90 / 0.10);
    --yellow-06a: oklch(1 0.15 90 / 0.60);

    --cyan-02a:  oklch(0.85 0.18 190 / 0.20);
    --cyan-08a:  oklch(0.85 0.18 190 / 0.80);
  }
}

/* heading / display fonts */
h1, h2, h3, h4, h5, .section-title, .logo-text, nav, .btn, .highlight {
  font-family: 'Orbitron', 'Rajdhani', system-ui, -apple-system, sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-shimmer-playground .text,
.platform-badges .badge {
  font-family: 'Audiowide', 'Orbitron', sans-serif !important;
  letter-spacing: 0.15em;
}

/* Keep monospace for all body text */
p, li, ul, ol, .tech-lede, .footer-column, .media-caption {
  font-family: 'Share Tech Mono', 'Fira Code', 'Courier New', monospace !important;
}

/* === GLOBAL STYLES & RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Share Tech Mono', 'Fira Code', 'Courier New', monospace;
  background-color: var(--deep-blue);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100svh;
  font-weight: 400;
  letter-spacing: 0.03em;
  background: radial-gradient(circle at center, var(--navy) 0%, var(--deep-blue) 70%);
}

a:focus,
button:focus,
[tabindex]:focus {
  outline: 2px solid var(--bright-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--hud-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -200px;
  left: 10px;
  background: var(--neon-blue);
  color: var(--deep-blue);
  padding: 12px 20px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 10px; }

/* Screenreader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion global */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* LOGO + WORDMARK */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;                 /* kill default underline */
  z-index: 1002;
  color: var(--neon-blue);               /* base color for text */
}

.logo-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: brightness(0) invert(1)
          drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

/* make the text feel like a proper wordmark, not a nav item */
.logo-text {
  display: inline-block;
  font-family: 'Orbitron', 'Rajdhani', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--neon-blue);
  text-shadow:
    0 0 6px rgba(56, 189, 248, 0.7),
    0 0 14px rgba(56, 189, 248, 0.4);
  transform: translateY(1px);           /* tiny nudge to align with icon */
}


.logo {
  gap: 18px;          /* tighter icon-text spacing */
}




/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: var(--transition);
  position: relative;
  border: 1px solid;
  cursor: pointer;
  min-height: 48px;
  padding: 10px 32px;
  text-decoration: none;
  touch-action: manipulation;
}

.btn-secondary {
  background: transparent;
  color: var(--bright-blue);
  border-color: var(--bright-blue);
}
.btn-secondary:hover {
  background: var(--blue-01a);
}

/* Strong focus for keyboard users */
.btn:focus-visible {
  outline: 3px solid var(--hud-yellow);
  outline-offset: 4px;
  box-shadow: 0 0 20px var(--yellow-glow);
}

/* === SHIMMER PLAYGROUND BUTTON (TOP NAV) === */
.btn-shimmer-playground {
  --glow-hue: 162deg;
  --shadow-hue: 150deg;
  position: relative;
  display: inline-block;
  padding: 0.50em 1.5em;
  background: linear-gradient(120deg, #182e19 40%, #0d4220 100%);
  color: #070d06;
  font-weight: bold;
  font-family: Orbitron, sans-serif;
  font-size: 0.9rem;
  border: none;
  border-radius: 0.66em;
  box-shadow:
    0 0 15px 3px hsl(var(--glow-hue) 100% 47% / 0.85),
    0 6px 22px -6px hsl(var(--shadow-hue) 80% 15% / 0.71),
    inset 0 -12px 22px -8px hsl(var(--shadow-hue) 15% 80% / 0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  isolation: isolate;
  transition:
    box-shadow 0.4s cubic-bezier(.22, 1, .36, 1),
    background 0.4s cubic-bezier(.22, 1, .36, 1);
  text-decoration: none;
}

@property --shimmer-angle { syntax: "<angle>"; inherits: false; initial-value: 45deg; }

@keyframes shimmer-move {
  0% { --shimmer-angle: 0deg; }
  100% { --shimmer-angle: 360deg; }
}

.btn-shimmer-playground .shimmer {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(
    from var(--shimmer-angle),
    #b9ffdd 0deg 10deg,
    transparent 60deg 130deg,
    #2cffb9 160deg 180deg,
    transparent 200deg 250deg,
    #d0ffe4 270deg 280deg,
    transparent 300deg 360deg
  );
  filter: blur(3.5px) brightness(1.45) saturate(1.7);
  animation: shimmer-move 2.4s linear infinite;
}

@keyframes shine {
  0% { opacity: 0; left: -70%; }
  15% { opacity: 1; }
  50% { left: 120%; opacity: 1;}
  100% { left: 120%; opacity: 0;}
}

.btn-shimmer-playground .shine {
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.44) 35%,
    rgba(255,255,255,0.85) 50%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

@keyframes text-sweep {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

.btn-shimmer-playground .text {
  color: transparent;
  background-image: linear-gradient(
    120deg,
    #11e990 22%, #9ffffc 50%, #ffffff 57%, #7bffbe 61%, #2affc3 70%, #0db276 78%, #17f1d4 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s;
}

.btn-shimmer-playground:hover .shine,
.btn-shimmer-playground:focus .shine,
.btn-shimmer-playground:active .shine {
  animation: shine 0.7s cubic-bezier(.22, 1, .36, 1);
}

.btn-shimmer-playground:hover .text,
.btn-shimmer-playground:focus .text,
.btn-shimmer-playground:active .text {
  animation: text-sweep 0.7s ease-in;
  filter: brightness(1.22) saturate(1.8);
}

.btn-shimmer-playground:hover,
.btn-shimmer-playground:focus {
  box-shadow:
    0 0 28px 7px #59ffd7,
    0 6px 22px -5px #15b88a,
    inset 0 0 0 transparent;
  background: linear-gradient(118deg, #237144 2%, #132720 100%);
}

.btn-shimmer-playground:active {
  background: linear-gradient(136deg, #2b5e3b 7%, #0a250f 100%);
}

/* === HERO CTA — PREMIUM BLUE SHIMMER BUTTONS === */
.hero .cta-buttons .btn {
  background: linear-gradient(120deg, #0a1b2f 20%, #0f2b4a 100%);
  border: none;
  border-radius: 0.7em;
  padding: 0.75em 2em;
  color: #bfe4ff;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 0 18px 4px rgba(100, 180, 255, 0.35),
    0 6px 22px -6px rgba(40, 90, 150, 0.8),
    inset 0 -12px 22px -8px rgba(10, 25, 40, 0.9);
  transition:
    box-shadow .4s cubic-bezier(.22,1,.36,1),
    transform .25s ease,
    background .4s cubic-bezier(.22,1,.36,1);
}
.hero .cta-buttons .btn:hover,
.hero .cta-buttons .btn:focus {
  transform: translateY(-3px);
  background: linear-gradient(120deg, #12345a 20%, #1a4b7a 100%);
  box-shadow:
    0 0 28px 8px rgba(100, 200, 255, 0.6),
    0 10px 32px -6px rgba(40, 120, 200, 0.9),
    inset 0 -3px 12px rgba(0, 0, 0, 0.4);
}
.hero .cta-buttons .btn:active {
  transform: translateY(1px);
  background: linear-gradient(120deg, #0d233a 20%, #0a1622 100%);
}
.hero .cta-buttons .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35) 40%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity .4s ease, transform .7s ease;
}
.hero .cta-buttons .btn:hover::after {
  opacity: .7;
  transform: translateX(120%);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: var(--blue-03a);
  border: 1px solid var(--neon-blue);
  color: var(--bright-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  opacity: 0;
  z-index: 100;
  visibility: hidden;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
.back-to-top:hover {
  background: var(--neon-blue);
  color: var(--deep-blue);
  transform: scale(1.1);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* text flow for all texts - not just hero. 
/* Base glow for paragraph + small text — STRONG OVERRIDE */
.glow-text {
  text-shadow:
    0 0 12px rgba(102, 191, 255, 0.75),
    0 0 26px rgba(102, 191, 255, 0.55) !important;
}

/* Strong glow for H2 and H3 — upgraded */
h2.glow-text,
h3.glow-text {
  text-shadow:
    0 0 22px rgba(102, 191, 255, 0.85),
    0 0 44px rgba(102, 191, 255, 0.60),
    0 0 70px rgba(102, 191, 255, 0.40);
}

/* Maximum HERO glow for H1 */
h1.glow-text {
  text-shadow:
    0 0 28px rgba(102, 191, 255, 0.95),
    0 0 60px rgba(102, 191, 255, 0.85),
    0 0 110px rgba(102, 191, 255, 0.55);
}

/* === HEADER & NAVIGATION === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--deep-blue-85a);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 5%;
  z-index: 1000;
  border-bottom: 1px solid var(--blue-02a);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(15px, 2.2vw, 30px);
  list-style: none;
}

.nav-links ul {
  display: flex;
  flex-direction: row;
  gap: clamp(15px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: visible;
}

/* CLEAN NEON UNDERLINE (replaces current ugly one) */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--neon-blue);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--neon-blue);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  width: 60%; /* elegant, centered highlight */
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--blue-05a);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover::before,
.nav-links a:focus-visible::before,
.nav-links a.active::before {
  opacity: 1;
  transform: translateX(calc(100% - 3px));
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  position: relative;
  z-index: 1002;
  cursor: pointer;
  touch-action: manipulation;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.mobile-nav-toggle:hover { background: var(--blue-01a); }
.mobile-nav-toggle:focus { outline: none; }
.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Hamburger bars */
.hamburger {
  position: relative;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon-blue);
  transition: transform .25s ease, background .25s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon-blue);
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* Turn into X when expanded */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--deep-blue-95a);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0));
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.mobile-menu li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 500;
  padding: 15px 20px;
  border-radius: 8px;
  transition: var(--transition);
  display: block;
}
.mobile-menu li a:hover {
  color: var(--hud-yellow);
  background: var(--yellow-01a);
}

/* Lock body scroll while menu is open */
body.nav-open { overflow: hidden; }

/* === MAIN CONTENT & SECTIONS === */
main {
  max-width: 2400px;
  margin: 60px auto 0;
  position: relative;
}

section {
  padding: 100px 5%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  visibility: hidden;
  position: relative;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 80px;
  color: var(--text-light);
  position: relative;
  padding-bottom: 20px;
}

/* HERO */
.hero {
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(60px, 12vh + 10px, 140px) 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero,
.hero.visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, var(--navy) 0%, var(--deep-blue) 70%);
  background-size: cover;
  background-position: top center;
  z-index: -1;
  will-change: transform;
  overflow: hidden;
}
.hero .parallax-bg {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.hero .parallax-bg.hero-bg-loaded {
  opacity: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.1);
  transform: scale(1.04);
  transform-origin: center;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--blue-05a);
  min-height: 42px;
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: var(--text-gray);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(15, 26, 48, 0.7);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--neon-blue);
  transition: transform 0.3s ease;
  will-change: transform;
}
.badge:hover { transform: scale(1.05); }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  background:
    radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.65) 60%,
      rgba(0, 0, 0, 0.92) 100%);
}
.hero::after {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.95) 0%,
      transparent 32%,
      transparent 88%,
      rgba(0, 0, 0, 0.95) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(9, 12, 24, 0.55) 0,
      rgba(9, 12, 24, 0.55) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

/* SHOWCASE — responsive from phones to 4K */
#showcase {
  padding-block: 90px;
}

#showcase .showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);

  /* center the grid and keep nice side margins */
  width: 100%;
  max-width: clamp(1100px, 80vw, 2000px);
  margin: 60px auto 0;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Phones / narrow tablets → 1 column, smaller max width */
@media (max-width: 900px) {
  #showcase .showcase-grid {
    grid-template-columns: 1fr;
    max-width: min(100%, 600px);
    margin-top: 40px;
  }
}
.project-card {
  background: rgba(15, 26, 48, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-8px);
}
.project-image {
  aspect-ratio: 16/9;
  min-height: 200px;
  background: linear-gradient(120deg, var(--deep-blue), var(--navy));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--bright-blue), var(--light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.project-description {
  color: var(--text-gray);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}
.project-badge {
  display: inline-block;
  background: var(--blue-01a);
  color: var(--neon-blue);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-top: 15px;
  border: 1px solid var(--neon-blue);
  align-self: flex-start;
}

/* IN ACTION SECTION */
#in-action::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(to right, var(--blue-005a) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blue-005a) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
#in-action .section-title {
  background: linear-gradient(45deg, var(--text-light), var(--cyan-glow), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 40px var(--cyan-08a),
    0 0 80px var(--blue-08a);
  animation: text-glow 3s ease-in-out infinite;
  will-change: opacity;
}
@keyframes text-glow {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}
.media-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.media-card {
  position: relative;
  border: 3px solid var(--cyan-glow);
  box-shadow:
    0 0 20px var(--cyan-glow),
    0 0 40px var(--neon-blue),
    inset 0 0 30px var(--cyan-02a);
  animation: border-pulse 9s ease-in-out infinite;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
}
.media-card:hover {
  transform: translateY(-15px) scale(1.05);
  animation-play-state: paused;
}
@keyframes border-pulse {
  0%, 100% {
    box-shadow:
      0 0 20px var(--cyan-glow),
      0 0 40px var(--neon-blue),
      inset 0 0 30px var(--cyan-02a);
  }
  50% {
    box-shadow:
      0 0 23px var(--cyan-glow),
      0 0 46px var(--neon-blue),
      inset 0 0 34px var(--cyan-02a);
  }
}
.media-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--deep-blue), var(--navy));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-preview i {
  font-size: 3rem;
  color: var(--text-light);
  z-index: 2;
  transition: transform 0.3s ease;
  filter:
    drop-shadow(0 0 25px var(--cyan-glow))
    drop-shadow(0 0 50px var(--neon-blue));
  animation: icon-pulse 3s ease-in-out infinite;
}
.media-card:hover .media-preview i {
  transform: scale(1.1);
  filter:
    drop-shadow(0 0 40px var(--cyan-glow))
    drop-shadow(0 0 80px var(--neon-blue))
    drop-shadow(0 0 100px var(--text-light));
}
@keyframes icon-pulse {
  50% {
    filter:
      drop-shadow(0 0 35px var(--cyan-glow))
      drop-shadow(0 0 70px var(--neon-blue));
  }
}
.media-caption {
  padding: 15px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-gray);
  background: var(--deep-blue-80a);
}
.play-button {
  position: absolute;
  z-index: 10;
  background: radial-gradient(circle, var(--hud-yellow) 0%, var(--hud-yellow) 100%);
  box-shadow:
    0 0 50px var(--hud-yellow),
    0 0 100px var(--hud-yellow),
    inset 0 0 30px var(--yellow-06a);
  animation: play-pulse 1.5s ease-in-out infinite;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--deep-blue);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
@keyframes play-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* === OUR VISION — SLIDE DECK (DESKTOP) === */
.slide-deck-container, #vision .slide-deck-container {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  perspective: 1500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-deck, #vision .slide-deck {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.slide, #vision .slide {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(300px, 60vw, 700px);
  height: clamp(400px, 80%, 450px);
  border-radius: 15px;
  border: 1px solid var(--blue-03a);
  overflow: hidden;
  background-color: rgba(7, 12, 24, 0.96);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.70)),
    var(--vision-slide-bg, var(--deep-blue-80a));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}
.slide > *, #vision .slide > * {
  position: relative;
  z-index: 1;
}
.slide h3, #vision .slide h3 {
  font-size: 2rem;
  color: var(--bright-blue);
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--blue-05a), 0 0 20px var(--blue-03a);
}
.slide p, #vision .slide p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.slide-icon { display: none; }

.slide[data-state="active"], #vision .slide[data-state="active"] {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 3;
}
.slide[data-state="prev"], #vision .slide[data-state="prev"] {
  transform: translate3d(-45%, 0, -200px) rotateY(25deg) scale(0.85);
  opacity: 0.4;
  z-index: 2;
}
.slide[data-state="next"], #vision .slide[data-state="next"] {
  transform: translate3d(45%, 0, -200px) rotateY(-25deg) scale(0.85);
  opacity: 0.4;
  z-index: 2;
}
.slide[data-state="hidden"], #vision .slide[data-state="hidden"] {
  transform: scale(0.7);
  opacity: 0;
  z-index: 1;
}
.slide[data-state="prev-2"], #vision .slide[data-state="prev-2"],
.slide[data-state="next-2"], #vision .slide[data-state="next-2"] {
  transform: scale(0.7);
  opacity: 0;
  z-index: 1;
}

.slide-nav, #vision .slide-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(800px, 80vw, 1000px);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}
.slide-arrow, #vision .slide-arrow {
  pointer-events: all;
  background: var(--blue-02a);
  border: 1px solid var(--blue-03a);
  color: var(--bright-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.slide-arrow:hover, #vision .slide-arrow:hover {
  background: var(--neon-blue);
  color: var(--deep-blue);
  transform: scale(1.1);
}
.slide-arrow::before, #vision .slide-arrow::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.slide-dots, #vision .slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.slide-dot, #vision .slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-03a);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.slide-dot:hover, #vision .slide-dot:hover {
  background: var(--blue-08a);
}
.slide-dot.active, #vision .slide-dot.active {
  background: var(--neon-blue);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--neon-blue);
}

#vision::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(to right, var(--blue-005a) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blue-005a) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  animation: none;
}
#vision.visible::before {
  animation: bg-pan 60s linear infinite;
}
@keyframes bg-pan {
  0%   { background-position: 0 0; }
  100% { background-position: 1000px 500px; }
}

/* FOOTER */
footer {
  padding: 80px 5% 40px;
  border-top: 1px solid var(--blue-02a);
  position: relative;
  background: var(--deep-blue-80a);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
}
.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--neon-blue);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 15px;
}
.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links a:hover {
  color: var(--neon-blue);
  letter-spacing: 1px;
}
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--neon-blue);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--neon-blue);
}
.social-links a:hover {
  background: var(--neon-blue);
  color: var(--deep-blue);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--blue-02a);
  color: var(--text-gray);
  font-size: 0.9rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* TECH SECTION ONLY */
#technology {
  --site-max: 1600px;
  --pad: clamp(16px, 4vw, 40px);
  padding-block: 100px;
}
#technology .tech-lede,
#technology .tech-grid,
#technology .blueprints,
#technology .evidence,
#technology .tech-notes {
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
#technology .tech-lede {
  color: var(--text-gray, #b8c7e6);
  text-align: center;
  line-height: 1.65;
  font-size: clamp(1rem, .35vw + .95rem, 1.1rem);
  margin-block-end: 28px;
}

/* Tech cards base */
#technology .tech-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at top left, var(--blue-01a) 0, rgba(7,12,24,0.95) 52%, rgba(3,7,18,1) 100%);
  border: 1px solid var(--blue-02a);
  padding: clamp(18px, 1vw + 14px, 26px);
  box-shadow: 0 0 12px rgba(0,0,0,.10);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
#technology .tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.8), 0 0 30px var(--blue-05a);
  border-color: var(--blue-05a);
}
#technology .tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan-08a) 35%,
    var(--neon-blue) 50%,
    var(--cyan-08a) 65%,
    transparent 100%
  );
  background-size: 220% 1px;
  background-repeat: no-repeat;
  background-position: 0 0;          /* <- static now */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  opacity: 0.55;
  pointer-events: none;
  transform: translateX(-60%);       /* start left */
  will-change: transform;
  animation: tech-sweep 9s linear infinite;
}
#technology .tech-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(127,209,255,0.16) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}
@keyframes tech-sweep {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

/* headings inside tech cards */
#technology .tech-card h3,
#technology .tech-card h4 {
  color: var(--text-light,#eaf2ff);
  font-size: clamp(1.04rem, .4vw + 1rem, 1.22rem);
  margin: 0 0 8px;
  letter-spacing: .3px;
}
#technology .tech-card h3 {
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
#technology .tech-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--neon-blue),var(--hud-yellow));
  box-shadow: 0 0 12px var(--blue-05a);
}
#technology .muted { color: var(--text-gray,#b8c7e6); }

/* Primary grid of tech cards */
#technology .tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* KPI / progress bars */
#technology .progress {
  background: #1a1a1a;
  border-radius: 6px;
  margin: 10px 0;
  height: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(127,209,255,.20);
}
#technology .progress > div {
  background: linear-gradient(90deg, var(--neon-blue,#66bfff), var(--bright-blue,#7fd1ff));
  height: 100%;
  position: relative;
  box-shadow: 0 0 12px rgba(127,209,255,.25);
}
#technology .progress > div > span {
  position: absolute;
  right: 4px; top: -18px;
  font-size: .7rem; color: #88cfff;
}

/* List bullets in tech cards */
#technology .bullets,
.tech-card ul.bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: grid;
  gap: 6px;
}
#technology .bullets li,
.tech-card ul.bullets li {
  color: var(--text-gray,#b8c7e6);
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.tech-card ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--neon-blue);
  box-shadow: 0 0 6px var(--neon-blue);
  border-radius: 50%;
}

/* Status matrix */
#technology table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  color: var(--text-gray,#b8c7e6);
}
#technology thead th {
  color: var(--text-light,#eaf2ff);
  font-weight: 700;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--blue-03a, rgba(127,209,255,.30));
}
#technology tbody td {
  padding: 10px 8px;
  border-bottom: 1px dashed var(--blue-03a, rgba(127,209,255,.30));
}

/* Status dot colours */
#technology .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid var(--blue-02a, rgba(127,209,255,.20));
}
#technology .dot.ok,
#technology .dot.green {
  background: #22c55e;
}
#technology .dot.warn,
#technology .dot.yellow {
  background: #eab308;
}
#technology .dot.plan,
#technology .dot.blue {
  background: #64748b;
}

/* Control-loop diagram */
#technology .tech-diagram {
  margin-block: 6px 12px;
}
#technology .tech-diagram img {
  width: clamp(520px, 52vw, 900px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 600 / 90;
  display: block;
  margin-inline: auto;
}

/* Flight plan list */
#technology .flight {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}
#technology .flight li::before {
  content: "🚀 ";
  margin-right: 6px;
}

/* Notes card */
#technology .notes-card {
  margin-top: 10px;
}
#technology .notes-list {
  list-style: disc;
  padding-left: 18px;
  margin: 6px 0 0;
  color: var(--text-gray,#b8c7e6);
}

/* AI CARD – MATRIX RAIN BACKGROUND */
#technology .tech-card.ai-card {
  position: relative;
  overflow: hidden;
}
#technology .ai-card-inner { position: relative; z-index: 2; }
.ai-matrix-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -70%;           /* taller than card */
  height: 240%;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent 0, rgba(125, 240, 255, 0.35) 55%, transparent 100%),
    linear-gradient(to bottom, var(--blue-005a) 0, transparent 36px),
    linear-gradient(to right, rgba(125, 240, 255, 0.28) 1px, transparent 1px);
  background-size: 100% 140px, 100% 32px, 22px 100%;
  opacity: 0.32;
  mix-blend-mode: screen;
  will-change: transform;
  animation: aiMatrixFall 14s linear infinite;
}
@keyframes aiMatrixFall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(35%);
  }
}

/* AI subsection styling */
.ai-subsection {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--blue-02a);
}
.ai-subsection h4 {
  color: var(--bright-blue);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

/* MOTION PREFERENCES - TECH */
@media (prefers-reduced-motion: reduce) {
  #technology .tech-card,
  #technology .tech-card::before {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
  #technology * {
    animation: none !important;
    transition: none !important;
  }
}

/* Lite mode trims */
:root[data-lite] {
  --glow-intensity: .1;
}
:root[data-lite] .parallax-bg {
  transform: none !important;
  will-change: auto;
}
:root[data-lite] .media-card,
:root[data-lite] .project-card {
  box-shadow: none !important;
  animation: none !important;
}
:root[data-lite] .btn-shimmer-playground .shimmer,
:root[data-lite] .btn-shimmer-playground .shine {
  display: none !important;
}
:root[data-lite] .slide {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:root[data-lite] * {
  transition-duration: 0s !important;
}

/* ——— GLOBAL TEXT READABILITY FIX ——— */
/* Works everywhere: hero, body, tech cards, footer, mobile, 8K Samsung, sunlight */
:root {
  --text-light: #f0f8ff;   /* almost pure white with tiny blue hint */
  --text-gray:  #c8dfff;   /* much lighter, still blue-ish */
}
/* Force maximum readability in bright environments */
body, p, li, .tech-lede, .footer-column, .media-caption {
  color: var(--text-light) !important;
}
/* Slightly dimmed secondary text (still perfectly readable) */
.muted, .tech-card .muted, .footer-links a, .media-caption {
  color: var(--text-gray) !important;
}
/* Hero text = nuclear white */
.hero h1, .hero p {
  color: #ffffff !important;
  text-shadow: 0 0 20px #66bfff, 0 0 50px #66bfff !important;
}

/* HERO PLATFORM BADGES — NEON CHIPS */
.hero .platform-badges .badge {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--deep-blue-80a),
    rgba(15, 40, 80, 0.95)
  );
  border-radius: 999px;
  padding: 0.45em 1.6em;
  border: 1px solid var(--blue-03a);
  box-shadow:
    0 0 12px var(--blue-02a),
    inset 0 0 12px rgba(0, 0, 0, 0.65);
  color: var(--light-blue);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  cursor: default;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.3s ease;
}
.hero .platform-badges .badge i {
  font-size: 1rem;
  color: var(--bright-blue);
}
.hero .platform-badges .badge:hover,
.hero .platform-badges .badge:focus-within {
  transform: translateY(-2px);
  border-color: var(--neon-blue);
  background: linear-gradient(
    135deg,
    rgba(15, 40, 80, 0.98),
    rgba(20, 70, 130, 0.98)
  );
  box-shadow:
    0 0 18px var(--blue-05a),
    0 0 30px rgba(100, 200, 255, 0.5);
}
.hero .platform-badges .badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25) 40%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.4s ease, transform 0.7s ease;
}
.hero .platform-badges .badge:hover::after,
.hero .platform-badges .badge:focus-within::after {
  opacity: 0.7;
  transform: translateX(120%);
}

/* Mobile centering fix for TECHNOLOGY section */
@media (max-width: 1117px) {
  #technology {
    padding: 70px 5% 70px;
  }
  #technology .tech-lede,
  #technology .tech-grid,
  #technology .blueprints,
  #technology .evidence,
  #technology .tech-notes {
    padding-inline: 0;
  }
  #technology .tech-card,
  #technology table {
    width: 100%;
    max-width: 100%;
  }
  #technology .tech-diagram img {
    width: 100%;
    max-width: 100%;
  }
}

/* === CONSOLIDATED MEDIA QUERIES === */
@media (max-width: 1024px) {
  .nav-links ul { gap: 12px; }
  .nav-links a { font-size: 0.9rem; }
}

/* MOBILE / TABLET MODE (<=1117px) */
@media (max-width: 1117px) {
  section { padding: 70px 5%; }
  .nav-links, .top-cta { display: none; }
  header { padding: 12px 5%; height: 50px; }
  main { margin: 50px auto 0; }
  .media-grid { grid-template-columns: 1fr; }
  .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 15px; }
  .mobile-nav-toggle { display: flex; right: 4%; }
  .mobile-menu { display: flex; }
  html, body { overflow-x: hidden; }

  .hero { min-height: calc(100svh - 50px); padding: 70px 0 70px; }
  .hero-content { max-width: 100%; padding: 0 6%; }
  .parallax-bg { inset: 0; }
  .parallax-bg picture, .parallax-bg img, .hero-bg-image {
    width: 100vw;
    max-width: none;
    object-fit: cover;
  }

  #technology .section-title {
    font-size: clamp(1.9rem, 7.5vw, 3rem);
    line-height: 1.15;
    text-align: center;
    padding: 0 5vw;
    word-spacing: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    white-space: balance;
  }
}
@supports not (white-space: balance) {
  #technology .section-title { white-space: normal; }
}

@media (max-width: 480px) {
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* Hoverless devices: kill hover-only transforms */
@media (hover: none) {
  .project-card:hover, .badge:hover, .media-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* DESKTOP-ONLY NAV */
@media (min-width: 1118px) {
  .mobile-menu {
    display: none !important;
    transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .mobile-nav-toggle { display: none !important; }
}

/* === SLIDE DECK — MOBILE 3D LAYOUT (<=1117px) === */
@media (max-width: 1117px) {
  #vision .slide-deck-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 5% 70px;
    height: 420px;                  /* slightly shorter for phones */
    perspective: 1200px;            /* keep 3D but a bit tighter */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #vision .slide-deck {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
  }

  #vision .slide {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(90vw, 480px);        /* full width on phones, capped on tablets */
    height: 100%;
    max-height: 380px;
    padding: 24px 18px;
    transform-style: preserve-3d;
  }

  /* Active slide: front and readable */
  #vision .slide[data-state="active"] {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
  }

  /* Previous / next: still 3D, but tighter so they fit on mobile */
  #vision .slide[data-state="prev"] {
    transform: translate3d(-32%, 0, -140px) rotateY(18deg) scale(0.9);
    opacity: 0.5;
    z-index: 2;
  }
  #vision .slide[data-state="next"] {
    transform: translate3d(32%, 0, -140px) rotateY(-18deg) scale(0.9);
    opacity: 0.5;
    z-index: 2;
  }

  /* Anything further away stays hidden */
  #vision .slide[data-state="hidden"],
  #vision .slide[data-state="prev-2"],
  #vision .slide[data-state="next-2"] {
    transform: scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }

  /* Navigation arrows and dots: centered, phone-friendly */
  #vision .slide-nav {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(100%, 480px);
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  #vision .slide-arrow {
    width: 44px;
    height: 44px;
  }

  #vision .slide-dots {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
  }
}

/* IN ACTION icons */
.play-icon {
  display: inline-block;
  font-size: 2.4rem;
  line-height: 1;
}

.media-icon {
  display: inline-block;
  font-size: 2.6rem;
  line-height: 1;
}

/* Footer icons & social pills */
.footer-icon {
  display: inline-block;
  width: 1.3em;
  text-align: center;
  margin-right: 0.4rem;
}

.social-links a span {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
/* === MOBILE SLIDE TWEAKS (hero + vision) === */
@media (max-width: 640px) {

  /* Slide headings */
  .slide h3,
  #vision .slide h3 {
    font-size: clamp(1.4rem, 4.4vw, 1.9rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.9rem;
  }

  /* Slide body text */
  .slide p,
  #vision .slide p {
    font-size: clamp(0.95rem, 3.3vw, 1.1rem);
    line-height: 1.45;
    margin-bottom: 1.1rem;
    opacity: 0.9;
  }

  /* Slightly tighter card content on phones */
  #hero .slide {
    width: clamp(280px, 88vw, 620px);
  }

  /* Stronger readability overlay ONLY for hero slides */
  #hero .slide {
    position: absolute;       /* keep existing behaviour */
  }
  #hero .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.40)
    );
    pointer-events: none;
    z-index: 0;
  }
  #hero .slide > * {
    position: relative;
    z-index: 1;
  }
}
.media-preview .media-icon {
  animation: media-icon-pulse 7s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes media-icon-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* === Hard cap at 2 columns for key grids === */
.showcase-grid,
#technology .tech-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

/* Below 900px → 1 column */
@media (max-width: 900px) {
  .showcase-grid,
  #technology .tech-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   ABOUT PAGE — RESPONSIVE, WIDE, CLEAN
   Applies ONLY when <body class="page-about"> is present
   ============================================================ */

/* ---- Page-level variables for ABOUT ---- */
body.page-about {
  --about-max-width: clamp(70rem, 90vw, 110rem);   /* ~1120 → ~1760px */
  --about-side-pad: min(5vw, 80px);               /* gentle side padding */
}

/* ------------------------------------------------------------
   HERO (ABOUT)
------------------------------------------------------------ */
body.page-about .hero {
  min-height: calc(100vh - 60px);
  width: 100%;
  max-width: none;
  padding: clamp(70px, 18vh, 150px) var(--about-side-pad) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------------------------
   GLOBAL SECTION PADDING (ABOUT ONLY)
------------------------------------------------------------ */
body.page-about section:not(.hero) {
  padding-block: clamp(40px, 6vh, 80px);
  padding-inline: var(--about-side-pad);
}

/* Shared inner width for all ABOUT content blocks */
body.page-about .about-metrics-strip-inner,
body.page-about .about-feature-card,
body.page-about #about-pillars .pillars-grid,
body.page-about #about-responsibility .pillars-grid,
body.page-about .culture-inner {
  max-width: var(--about-max-width);
  margin-inline: auto;
}

/* ------------------------------------------------------------
   METRICS STRIP
------------------------------------------------------------ */
#about-metrics-strip {
  padding-block: 24px;
}

body.page-about .about-metrics-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metrics-pill {
  border-radius: 999px;
  padding: 10px 16px;
  background: radial-gradient(circle at top,
    rgba(125,240,255,0.16),
    rgba(3,7,18,0.96) 70%);
  border: 1px solid rgba(125,240,255,0.35);
  box-shadow: 0 0 18px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}
.metrics-pill .metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted, #8fa3b5);
}
.metrics-pill .metric-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   FEATURE CARDS (Tallinn / Three Tracks)
------------------------------------------------------------ */
body.page-about .about-feature-card {
  display: grid;
  /* was: 1.1fr / 1.6fr */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  /* was: clamp(24px, 4vw, 56px) */
  column-gap: clamp(12px, 1.5vw, 24px);
  row-gap: 24px;
  border-radius: 24px;
  padding: clamp(22px, 4vh, 30px);
  background: radial-gradient(circle at top left,
    rgba(125,240,255,0.20),
    rgba(3,7,18,1) 65%);
  border: 1px solid rgba(125,240,255,0.4);
  box-shadow: 0 0 32px rgba(0,0,0,0.8);
  align-items: center;
}

body.page-about .about-feature-card.reverse {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
}
body.page-about .about-feature-card.reverse .about-card-media {
  order: 2;
}

/* Media block inside cards */
.about-card-media {
  border-radius: 18px;
  border: 1px solid rgba(125,240,255,0.35);
  overflow: hidden;

  /* was: max-width: 520px; */
  max-width: 640px;      /* or just remove this line entirely */
  width: 100%;
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: flex-start;
}

.about-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title inside feature cards: tighter + left aligned */
body.page-about .about-feature-card .section-title {
  margin-bottom: 24px;
  text-align: left;
}

/* ------------------------------------------------------------
   “OUR FOUNDATION” / SMALL PILLARS (Linux / ARM / Open)
------------------------------------------------------------ */
#about-pillars .pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 40px;
}

#about-pillars .pillar-box {
  display: flex;
  flex-direction: column;
  align-items: center;          /* ← NEW: centers icon + text horizontally */
  border-radius: 24px;
  padding: 22px 22px 24px;
  background: radial-gradient(circle at top,
    rgba(10,20,40,0.94),
    rgba(3,7,18,1) 70%);
  border: 1px solid rgba(125,240,255,0.32);
  box-shadow: 0 10px 30px rgba(0,0,0,0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#about-pillars .pillar-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.85);
}

/* SMALL image chunk */
#about-pillars .pillar-media {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(125,240,255,0.45);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
#about-pillars .pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about-pillars .pillar-body h3 {
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  color: #7df0ff;
  text-shadow: 0 0 12px rgba(125,240,255,0.7);
  letter-spacing: 0.02em;
}
#about-pillars .pillar-body p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
  color: #c7d8e6;
}

/* OUR FOUNDATION — center  */
#about-pillars .pillar-media,
#about-pillars .pillar-media img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
}
#about-pillars .pillar-body h3 {
  text-align: center;
}

#about-pillars .pillar-body p {
  text-align: left;
}

/* ------------------------------------------------------------
   “WHERE WE STAND” — BIG POSTER CARDS
------------------------------------------------------------ */
#about-responsibility .pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 40px;
}

#about-responsibility .pillar-box {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 24px 24px 26px;
  background: radial-gradient(circle at top,
    rgba(10,20,40,0.94),
    rgba(3,7,18,1) 70%);
  border: 1px solid rgba(125,240,255,0.32);
  box-shadow: 0 10px 30px rgba(0,0,0,0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#about-responsibility .pillar-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.85);
}

#about-responsibility .pillar-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(125,240,255,0.45);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
#about-responsibility .pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
#about-responsibility .pillar-box:hover .pillar-media img {
  transform: scale(1.07);
}

/* ------------------------------------------------------------
   CULTURE STRIP
------------------------------------------------------------ */
body.page-about .culture-inner {
  border-radius: 24px;
  padding: clamp(22px, 4vh, 32px);
  background: linear-gradient(120deg,
    rgba(125,240,255,0.22),
    rgba(3,7,18,1) 55%);
  border: 1px solid rgba(125,240,255,0.4);
  box-shadow: 0 0 32px rgba(0,0,0,0.75);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
}

/* ------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------------------------------------ */

/* Medium screens: stack feature cards & culture strip */
@media (max-width: 1024px) {
  body.page-about .about-feature-card,
  body.page-about .about-feature-card.reverse {
    grid-template-columns: 1fr;
  }
  body.page-about .about-feature-card.reverse .about-card-media {
    order: -1; /* image above text also for reverse */
  }
  body.page-about .about-feature-card .about-card-media {
    justify-self: center;
  }

  body.page-about .culture-inner {
    grid-template-columns: 1fr;
  }
}

/* Narrow tablets & phones */
@media (max-width: 720px) {
  body.page-about .about-metrics-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-about .hero {
    padding: 96px 6% 64px;
  }

  #about-pillars .pillar-media {
    max-width: 100%;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  #about-responsibility .pillar-media {
    aspect-ratio: 3 / 4;
  }

  #about-pillars .pillar-box,
  #about-responsibility .pillar-box {
    padding: 18px;
  }
}
/* ABOUT – HOW WE WORK layout fixes */
#about-culture .culture-inner {
  /* keep existing styles, just add: */
  align-items: flex-start;        /* text blocks start at the same vertical line */
}

/* Make the heading behave like the other cards (not hero center) */
#about-culture .section-title {
  text-align: left;
  margin-bottom: 16px;
}

/* Tidy up left & right column text */
#about-culture .culture-left p,
#about-culture .culture-right p {
  margin-top: 0;
  line-height: 1.6;
}

/* Optional: give the right column a subtle visual anchor */
#about-culture .culture-right {
  border-left: 1px solid rgba(125,240,255,0.28);
  padding-left: 24px;
}

/* On tablet / phone, stack the columns nicely */
@media (max-width: 1024px) {
  #about-culture .culture-inner {
    grid-template-columns: 1fr;
  }

  #about-culture .culture-right {
    border-left: none;
    padding-left: 0;
    margin-top: 16px;
  }

  #about-culture .section-title {
    text-align: center;          /* looks nicer when stacked */
  }
}
