/* ============================================================
   GHOST CITADEL — MAIN STYLESHEET
   Cleaned + Pixel-Perfect Panels Edition
   ============================================================ */

/* ============================================================
   CORE SYSTEM & COLOR VARIABLES
   ============================================================ */

:root {
  /* Base palette (sRGB) */
  --deep-blue: #0b1220;
  --navy: #101c34;
  --neon-blue: #66bfff;
  --bright-blue: #7fd1ff;
  --light-blue: #aee1ff;
  --text-light: #f0f8ff;      /* bright, readable */
  --text-gray:  #c8dfff;      /* softer secondary */
  --hud-yellow: #ffe28a;
  --cyan-glow: #7df0ff;

  --site-pad: 5%;
  --glow-intensity: 0.5;

  --transition: all 0.25s 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);

  /* Global panel system (for crisp, pixel-perfect cards) */
  --panel-radius: 22px;
  --panel-border: #66bfff;
  --panel-bg: rgba(7,12,24,0.96);
  --panel-shadow-soft: 0 12px 32px rgba(0,0,0,0.8);
  --panel-glow: 0 0 16px rgba(102,191,255,0.35);
}

/* Text tint palette (OKLCH first, then sRGB fallback) */
:root {
  --tint-cyan:   oklch(0.9 0.16 190);
  --tint-violet: oklch(0.9 0.16 310);
  --tint-amber:  oklch(0.9 0.12 80);
}

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

/* Upgrade palette to OKLCH when 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.97 0.02 240);
    --text-gray:   oklch(0.86 0.04 240);
    --hud-yellow:  oklch(0.9 0.12 90);
    --cyan-glow:   oklch(0.85 0.18 190);

    --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(0.98 0.16 90 / 0.60);

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

    --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);
  }
}

/* Tint helpers */
.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; }

/* ============================================================
   GLOBAL RESET & TYPOGRAPHY
   ============================================================ */

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

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

/* 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;
}

/* Body text force */
p, li, ul, ol, .tech-lede, .footer-column, .media-caption {
  font-family: 'Share Tech Mono', 'Fira Code', 'Courier New', monospace !important;
  color: var(--text-light);
}

.muted,
.tech-card .muted,
.footer-links a,
.media-caption {
  color: var(--text-gray);
}

/* Glow utilities */
.glow-text {
  text-shadow:
    0 0 12px rgba(102,191,255,0.75),
    0 0 26px rgba(102,191,255,0.55) !important;
}
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);
}
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);
}

/* Screenreader-only */
.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;
}

/* Focus */
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; }

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

/* ============================================================
   PIXEL-PERFECT PANEL SYSTEM
   ============================================================ */

.panel {
  position: relative;
  border-radius: var(--panel-radius);
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--panel-radius) - 1px);
  border: 1px solid rgba(125,240,255,0.16);
  pointer-events: none;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

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;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  z-index: 1002;
  color: var(--neon-blue);
}

.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));
}

.logo-text {
  display: inline-block;
  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);
}

/* Desktop nav */
.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;
}

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

/* Clean neon underline */
.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,
.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%;
}

/* 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;
}

/* Hamburger */
.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; }

.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 */
.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;
}
.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);
}

body.nav-open { overflow: hidden; }

/* ============================================================
   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); }

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

/* Shimmer Playground button (nav) — unchanged, just kept here */
.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 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;
}

/* ============================================================
   MAIN LAYOUT & HERO
   ============================================================ */

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.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: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 20px #66bfff, 0 0 50px #66bfff;
  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: #ffffff;
}

.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;
}

/* Hero platform badges — now using crisp outline, not blur-only */
.hero .platform-badges .badge {
  position: relative;
  border-radius: 999px;
  padding: 0.45em 1.6em;
  background: linear-gradient(
    135deg,
    var(--deep-blue-80a),
    rgba(15, 40, 80, 0.95)
  );
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    0 0 12px var(--blue-02a);
  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%);
}

.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 (FLAGSHIP PROJECTS)
   ============================================================ */

#showcase {
  padding-block: 90px;
}

#showcase .showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  width: 100%;
  max-width: clamp(1100px, 80vw, 2000px);
  margin: 60px auto 0;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Project card now uses crisp panel styling */
.project-card {
  position: relative;
  border-radius: var(--panel-radius);
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.9),
    0 0 20px rgba(102,191,255,0.6);
}

.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 (MEDIA)
   ============================================================ */

#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;
}
@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 now uses panel system */
.media-card {
  position: relative;
  border-radius: var(--panel-radius);
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.media-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 46px rgba(0,0,0,0.95),
    0 0 24px rgba(102,191,255,0.65);
}

.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;
  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;   }
}

/* ============================================================
   VISION — SLIDE DECK
   ============================================================ */

.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: 2px solid var(--panel-border);
  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:
    var(--panel-shadow-soft),
    0 0 22px rgba(102,191,255,0.35);
  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[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"],
.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-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;
}
.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;
}
#vision.visible::before {
  animation: bg-pan 60s linear infinite;
}
@keyframes bg-pan {
  0%   { background-position: 0 0; }
  100% { background-position: 1000px 500px; }
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */

#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);
  text-align: center;
  line-height: 1.65;
  font-size: clamp(1rem, .35vw + .95rem, 1.1rem);
  margin-block-end: 28px;
}

/* Tech cards now use panel system */
#technology .tech-card {
  position: relative;
  border-radius: var(--panel-radius);
  background: radial-gradient(circle at top left,
    rgba(10,40,80,0.55),
    rgba(3,7,18,0.98) 65%);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    0 0 16px rgba(102,191,255,0.35);
  padding: clamp(18px, 1vw + 14px, 26px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
#technology .tech-card:hover {
  transform: translateY(-6px);
  border-color: #7fd1ff;
  box-shadow:
    0 20px 44px rgba(0,0,0,0.95),
    0 0 24px rgba(127,209,255,0.7);
}
#technology .tech-card::before { content: none; } /* kill old blurry border */

#technology .tech-card h3,
#technology .tech-card h4 {
  color: var(--text-light);
  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); }

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

/* KPIs, bullets, table etc — kept as-is */
#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), var(--bright-blue));
  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;
}

#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);
  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%;
}

#technology table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  color: var(--text-gray);
}
#technology thead th {
  color: var(--text-light);
  font-weight: 700;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--blue-03a);
}
#technology tbody td {
  padding: 10px 8px;
  border-bottom: 1px dashed var(--blue-03a);
}

#technology .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid var(--blue-02a);
}
#technology .dot.green  { background: #22c55e; }
#technology .dot.yellow { background: #eab308; }
#technology .dot.blue   { background: #64748b; }

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

/* AI matrix background etc. kept */
#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%;
  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%); }
}

/* ============================================================
   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-inline: auto;
}
.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-radius: 50%;
  border: 2px solid var(--panel-border);
  color: var(--neon-blue);
  transition: var(--transition);
}
.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-inline: auto;
}

/* ============================================================
   ABOUT PAGE OVERRIDES
   ============================================================ */

body.page-about {
  --about-max-width: clamp(70rem, 90vw, 110rem);
  --about-side-pad: min(5vw, 80px);
}

/* About hero */
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;
}

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

/* Shared inner width */
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 uses panel style but pill radius */
.metrics-pill {
  position: relative;
  border-radius: 999px;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
}
.metrics-pill .metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-gray);
}
.metrics-pill .metric-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
}

/* About feature cards (Tallinn / Tracks) */
body.page-about .about-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  column-gap: clamp(18px, 2vw, 28px);
  row-gap: 24px;
  border-radius: var(--panel-radius);
  background: radial-gradient(circle at top left,
    rgba(125,240,255,0.18),
    rgba(3,7,18,1) 65%);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  padding: clamp(22px, 4vh, 30px);
  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; }

.about-card-media {
  border-radius: 18px;
  border: 2px solid var(--panel-border);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: flex-start;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.75),
    0 0 16px rgba(102,191,255,0.35);
}
.about-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-about .about-feature-card .section-title {
  margin-bottom: 24px;
  text-align: left;
}

/* Pillars grids */
#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,
#about-responsibility .pillar-box {
  display: flex;
  flex-direction: column;
  border-radius: var(--panel-radius);
  padding: 22px 22px 24px;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#about-pillars .pillar-box:hover,
#about-responsibility .pillar-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

/* 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: 2px solid var(--panel-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  margin-inline: auto;
}
#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;
  text-align: center;
}
#about-pillars .pillar-body p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
  color: #c7d8e6;
  text-align: left;
}

/* Responsibility big posters */
#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-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--panel-border);
  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 (HOW WE WORK section container) */
body.page-about .culture-inner {
  border-radius: var(--panel-radius);
  padding: clamp(22px, 4vh, 32px);
  background: linear-gradient(120deg,
    rgba(125,240,255,0.22),
    rgba(3,7,18,1) 55%);
  border: 2px solid var(--panel-border);
  box-shadow:
    var(--panel-shadow-soft),
    var(--panel-glow);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: flex-start;
}

/* HOW WE WORK text alignment tweaks */
#about-culture .section-title {
  text-align: left;
  margin-bottom: 16px;
}
#about-culture .culture-left p,
#about-culture .culture-right p {
  margin-top: 0;
  line-height: 1.6;
}
#about-culture .culture-right {
  border-left: 1px solid rgba(125,240,255,0.28);
  padding-left: 24px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (GLOBAL + ABOUT)
   ============================================================ */

@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; }

  #showcase .showcase-grid {
    grid-template-columns: 1fr;
    max-width: min(100%, 600px);
    margin-top: 40px;
  }

  #technology .tech-lede,
  #technology .tech-grid,
  #technology .blueprints,
  #technology .evidence,
  #technology .tech-notes {
    padding-inline: 0;
  }

  #technology .tech-grid {
    grid-template-columns: 1fr;
  }

  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;
  }
  body.page-about .about-feature-card .about-card-media {
    justify-self: center;
  }

  body.page-about .culture-inner {
    grid-template-columns: 1fr;
  }
  #about-culture .section-title { text-align: center; }
  #about-culture .culture-right {
    border-left: none;
    padding-left: 0;
    margin-top: 16px;
  }
}

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

@media (max-width: 720px) {
  body.page-about .about-metrics-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 480px;
    margin-inline: auto;
  }
  body.page-about .metrics-pill {
    align-items: center;
    text-align: center;
    padding: 12px 10px;
  }
  body.page-about .metrics-pill .metric-label { font-size: 0.7rem; }
  body.page-about .metrics-pill .metric-number { font-size: 0.9rem; }

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

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

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

  body.page-about .about-metrics-strip-inner {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  #about-responsibility .pillar-media {
    aspect-ratio: 3 / 4;
  }
  #about-pillars .pillar-box,
  #about-responsibility .pillar-box {
    padding: 18px;
  }
}

/* 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; }
}

/* Hoverless devices */
@media (hover: none) {
  .project-card:hover,
  .badge:hover,
  .media-card:hover,
  #about-pillars .pillar-box:hover,
  #about-responsibility .pillar-box:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }
}
/* ============================================================
   CRISP BORDERS / PIXEL-PERFECT UI SKIN (GLOBAL OVERRIDE)
   ============================================================ */

/* 1) Base hard border token */
:root {
  --ui-border-color: #66bfff;
  --ui-border-width: 2px;
  --ui-radius-lg: 22px;
  --ui-radius-pill: 999px;
}

/* 2) Core shells that should look sharp, not hazy */
.project-card,
.media-card,
.metrics-pill,
#about-pillars .pillar-box,
#about-responsibility .pillar-box,
body.page-about .about-feature-card,
body.page-about .culture-inner,
.hero .platform-badges .badge,
#technology .tech-card {
  position: relative;
  border-radius: var(--ui-radius-lg);
  border: var(--ui-border-width) solid var(--ui-border-color);
  background-clip: padding-box;          /* stop gradients from bleeding into border */
  box-shadow: 0 0 10px rgba(102,191,255,0.35); /* tight glow only */
  overflow: hidden;                      /* hide any gradient overspill on corners */
}

/* pills specifically keep pill radius */
.metrics-pill,
.hero .platform-badges .badge {
  border-radius: var(--ui-radius-pill);
}

/* 3) Kill old fuzzy borders / heavy glows on these components */
.metrics-pill,
#about-pillars .pillar-box,
#about-responsibility .pillar-box,
body.page-about .about-feature-card,
body.page-about .culture-inner,
.hero .platform-badges .badge,
.project-card,
.media-card,
#technology .tech-card {
  /* nuke semi-transparent borders & big shadows that were defined earlier */
  border-color: var(--ui-border-color) !important;
  box-shadow:
    0 0 10px rgba(102,191,255,0.35) !important;
}

/* 4) Slightly darker edge on the inside so the corner looks “cut” not blurry */
.project-card::before,
.media-card::before,
.metrics-pill::before,
#about-pillars .pillar-box::before,
#about-responsibility .pillar-box::before,
body.page-about .about-feature-card::before,
body.page-about .culture-inner::before,
.hero .platform-badges .badge::before,
#technology .tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  outline: 1px solid rgba(0,0,0,0.45);   /* sharp inner edge */
  outline-offset: -1px;
  mix-blend-mode: normal;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--neon-blue);
  cursor: pointer;
  z-index: 1005;

  /* Slight glow for the Ghost Citadel look */
  text-shadow: 
    0 0 6px var(--neon-blue),
    0 0 12px var(--neon-blue);
  transition: opacity .25s ease, transform .25s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  opacity: 0.7;
  transform: scale(1.1);
}

.mobile-menu-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--neon-blue);
  border-radius: 4px;
}
