/* ========== Cobalt Academy ========== */
:root {
  --bg: #05070d;
  --bg-2: #0a0e1a;
  --panel: #0d1424;
  --panel-2: #11192c;
  --line: rgba(0, 130, 255, 0.18);
  --line-2: rgba(0, 130, 255, 0.35);
  --text: #e6ecff;
  --muted: #8a96b8;
  --blue: #0066ff;
  --blue-2: #00d4ff;
  --blue-soft: rgba(0, 130, 255, 0.12);
  --hot: #ff3b6e;
  --maxw: 1240px;
  --radius: 4px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* backdrop grid */
.grid-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,102,255,0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0,212,255,0.10), transparent 50%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
    var(--bg);
  z-index: -2;
  pointer-events: none;
}
.scanline {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0 1px,
    transparent 1px 3px
  );
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--blue-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--mono);
  font-weight: 700; letter-spacing: 0.14em; font-size: 14px;
  color: #fff;
}
.brand-tag {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px; letter-spacing: 0.22em;
  margin-top: 4px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: #fff !important;
  background: linear-gradient(180deg, rgba(0,102,255,0.25), rgba(0,102,255,0.05));
}
.nav-cta:hover { border-color: var(--blue-2); box-shadow: 0 0 0 1px var(--blue-2) inset; }

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 50%, var(--blue) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
  will-change: transform;
}

/* ========== WORD-BY-WORD HEADING REVEAL ========== */
.js-reveals [data-split-words] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.js-reveals [data-split-words] .word > span {
  display: inline-block;
  transform: translateY(110%) rotateZ(4deg);
  opacity: 0;
  transition:
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 700ms ease-out;
  transition-delay: calc(var(--word-i, 0) * 60ms + 100ms);
}
.js-reveals [data-split-words].is-visible .word > span {
  transform: translateY(0) rotateZ(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .js-reveals [data-split-words] .word > span {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* Hero video parallax-ready */
.hero-video { will-change: transform; }

/* ========== SCROLL REVEAL — cinematic ========== */
/* Hide-state only applies once JS adds .js-reveals on <html>. */
/* That way, if JS fails for any reason, content stays visible. */
.js-reveals [data-reveal] {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 800ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 900ms cubic-bezier(0.7, 0, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

/* Variants */
.js-reveals [data-reveal="fade"] { transform: scale(0.98); }
.js-reveals [data-reveal="left"]  { transform: translateX(-60px) scale(0.97); }
.js-reveals [data-reveal="right"] { transform: translateX(60px)  scale(0.97); }

/* Cinema headings — clip-path wipe from left + slide-up so every section
   heading arrives with the same dynamic motion as the content below it */
.js-reveals [data-reveal="cinema"] {
  transform: translateY(38px);
  clip-path: inset(0 100% 0 0);
  filter: blur(0);
}
.js-reveals [data-reveal="cinema"].is-visible {
  clip-path: inset(0 0 0 0);
}

/* Fly-in — dramatic diagonal swoop, like a drone arriving on station */
.js-reveals [data-reveal="fly-left"] {
  opacity: 0;
  transform: translate3d(-260px, -140px, 0) rotate(-9deg) scale(0.72);
  filter: blur(6px);
  transition:
    opacity 1100ms cubic-bezier(0.18, 0.9, 0.3, 1.1),
    transform 1100ms cubic-bezier(0.18, 0.9, 0.3, 1.1),
    filter 700ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveals [data-reveal="fly-right"] {
  opacity: 0;
  transform: translate3d(260px, -140px, 0) rotate(9deg) scale(0.72);
  filter: blur(6px);
  transition:
    opacity 1100ms cubic-bezier(0.18, 0.9, 0.3, 1.1),
    transform 1100ms cubic-bezier(0.18, 0.9, 0.3, 1.1),
    filter 700ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveals [data-reveal="fly-up"] {
  opacity: 0;
  transform: translate3d(0, 180px, 0) rotateX(35deg) scale(0.85);
  filter: blur(4px);
  transform-origin: center bottom;
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 600ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

/* Card reveal — subtle 3D tilt straightens out */
.js-reveals [data-reveal="card"] {
  transform: translateY(70px) rotateX(-10deg) scale(0.96);
  transform-origin: center bottom;
}

/* All variants land here when revealed */
.js-reveals [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Card scan-line sweep on entry */
.js-reveals [data-reveal="card"] {
  position: relative;
}
.js-reveals [data-reveal="card"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0) 35%,
    rgba(0, 212, 255, 0.55) 50%,
    rgba(0, 212, 255, 0) 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  mix-blend-mode: screen;
}
.js-reveals [data-reveal="card"].is-visible::before {
  animation: card-sweep 900ms cubic-bezier(0.4, 0, 0.2, 1) 200ms 1 forwards;
}
@keyframes card-sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveals [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
  }
  .js-reveals [data-reveal="card"]::before { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  margin: 0 auto;
  padding: 120px 32px 80px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.30) 45%, rgba(5,7,13,0.92) 100%),
    radial-gradient(ellipse at 75% 30%, rgba(0,102,255,0.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero > .hero-inner,
.hero > .hero-readout,
.hero > .hud-target {
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background: #05070d url('assets/hero-poster.jpg') center/cover no-repeat; }
}
.hero-readout {
  position: absolute; top: 24px; right: 32px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--muted);
  display: grid; gap: 4px;
  background: rgba(13, 20, 36, 0.6);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: right;
  z-index: 2;
}
.readout-row { display: flex; gap: 12px; justify-content: space-between; }
.readout-label { color: var(--blue-2); }
.readout-val { color: #fff; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--muted);
  background: var(--blue-soft);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 12px var(--blue-2);
  animation: pulse 1.8s infinite ease-in-out;
}
.dot-blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 18px;
  color: #fff;
}
.grad {
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 22px;
}
.hero-motto {
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.04em;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
  margin: 0 0 32px;
}
.hero-motto strong { color: var(--blue-2); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, #0a6bff 0%, #0049c2 100%);
  color: #fff;
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 24px rgba(0,102,255,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px rgba(0,212,255,0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--blue-2); background: var(--blue-soft); }
.btn-block { width: 100%; margin-top: auto; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
.stat {
  padding: 18px 14px 18px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--blue-2);
  font-size: 22px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* hero media (drone image with HUD) */
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05) hue-rotate(-8deg);
  opacity: 0.92;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,0) 40%, rgba(5,7,13,0.85) 100%),
    linear-gradient(90deg, rgba(0,102,255,0.20), rgba(0,212,255,0.05));
  pointer-events: none;
}
.hud-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--blue-2);
}
.hud-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.hud-target {
  position: absolute;
  bottom: 80px; right: 56px;
  width: 90px; height: 90px;
  border: 1px solid rgba(0,212,255,0.55);
  border-radius: 50%;
  opacity: 0.7;
}
/* Radar ping rings expanding from the reticle */
.hud-target::before,
.hud-target::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.6);
  animation: radar-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hud-target::after { animation-delay: 1.5s; }
@keyframes radar-ping {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0;   }
}
@media (max-width: 720px) {
  .hud-target { display: none; }
}

/* ========== HUD overlay accents ========== */

/* Rotating conic gradient border on the featured course card */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.course-featured {
  position: relative;
  overflow: visible;
}
.course-featured > * { position: relative; z-index: 1; }
.course-featured .course-media { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.course-featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 1px);
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    transparent 210deg,
    rgba(0, 212, 255, 0.9) 270deg,
    rgba(0, 102, 255, 0.6) 300deg,
    transparent 340deg,
    transparent 360deg
  );
  z-index: 0;
  pointer-events: none;
  animation: conic-spin 5s linear infinite;
  filter: blur(0.5px);
}
.course-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--panel);
  z-index: 0;
  pointer-events: none;
}
@keyframes conic-spin {
  to { --angle: 360deg; }
}
/* Fallback for browsers without @property — rotate the pseudo-element instead */
@supports not (background: paint(something)) {
  .course-featured::before {
    animation: conic-spin-fallback 5s linear infinite;
  }
  @keyframes conic-spin-fallback {
    to { transform: rotate(360deg); }
  }
}

/* Section-head corner brackets + scan line */
.section-head {
  position: relative;
  padding-left: 28px;
  padding-top: 16px;
}
.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--blue-2);
  border-left: 2px solid var(--blue-2);
  opacity: 0.8;
}
.section-head::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 28px;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 0) 0%,
    rgba(0, 212, 255, 0.6) 20%,
    rgba(0, 212, 255, 0) 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1) 400ms;
}
.js-reveals .section-head[data-reveal].is-visible::after {
  transform: scaleX(1);
}

/* Pulsing telemetry badge — drop this anywhere with class="telemetry" */
.telemetry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--blue-2);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.08);
}
.telemetry::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue-2);
  animation: pulse 1.6s infinite ease-in-out;
}

/* Subtle vertical scan line down the right edge of the page (decoration only) */
body::after {
  content: "";
  position: fixed;
  top: 0; right: 0;
  width: 1px; height: 100vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 212, 255, 0.4) 50%,
    transparent 100%
  );
  background-size: 100% 30%;
  background-repeat: no-repeat;
  background-position: 0 -30%;
  animation: edge-scan 6s linear infinite;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
}
@keyframes edge-scan {
  0%   { background-position: 0 -30%; }
  100% { background-position: 0 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-target::before, .hud-target::after { animation: none; opacity: 0; }
  .course-featured::before { animation: none; }
  body::after { display: none; }
  .telemetry::before { animation: none; }
}
@media (max-width: 720px) {
  body::after { display: none; }
}
.hud-cross {
  position: absolute; top: 50%; left: 50%;
  width: 1px; height: 100%;
  background: rgba(0,212,255,0.55);
  transform: translate(-50%, -50%);
}
.hud-cross.horiz { width: 100%; height: 1px; }
.hud-label {
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--blue-2);
  white-space: nowrap;
}

/* ========== TICKER ========== */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0,102,255,0.04);
  padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  animation: marquee 40s linear infinite;
}
.ticker-track span:nth-child(odd) { color: var(--blue-2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== SECTIONS ========== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 32px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-2);
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
}
.lede { font-size: 17px; color: var(--muted); max-width: 600px; margin: 0; }

/* PILLARS */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  perspective: 1200px;
}
.pillar {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(13,20,36,0.4) 100%);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.pillar:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--blue-2);
}
.pillar-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.pillar-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-2);
  letter-spacing: 0.18em;
}
.pillar h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}
.pillar p { color: var(--muted); margin: 0 0 20px; }
.pillar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pillar-list li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  letter-spacing: 0.04em;
}
.pillar-list li::before {
  content: "▸";
  position: absolute; left: 0;
  color: var(--blue-2);
}

/* COURSES */
/* Horizontal scrollable courses row */
.courses-rail {
  position: relative;
  margin: 0 -32px;
}
.courses {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding: 32px;
  padding: 12px 32px 32px;
  perspective: 1200px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.courses::-webkit-scrollbar { display: none; }
.courses.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.courses.is-dragging * { pointer-events: none; }
.course {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (min-width: 720px) {
  .course { flex: 0 0 360px; }
}
@media (min-width: 1100px) {
  .course { flex: 0 0 380px; }
}

/* Scroll hint badge — top right of the rail, fades after first interaction */
.courses-hint {
  position: absolute;
  top: -52px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue-2);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 5;
}
.courses-hint.is-dismissed {
  opacity: 0;
  transform: translateX(20px);
}
.courses-hint::before {
  content: "↔";
  font-size: 14px;
  line-height: 1;
}
@media (max-width: 720px) {
  .courses-hint { font-size: 10px; padding: 5px 11px; right: 16px; }
}

/* Fade out edges so scroll boundary feels soft */
.courses-rail::before,
.courses-rail::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}
.courses-rail::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.courses-rail::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}
.course {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.course:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,102,255,0.35);
}
.course-featured {
  border-color: transparent;
  box-shadow: 0 0 50px -8px rgba(0, 212, 255, 0.55);
}
.course-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.course-media img,
.course-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .4s ease;
}
.course:hover .course-media img,
.course:hover .course-media video { transform: scale(1.06); }
.course-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0) 30%, rgba(5,7,13,0.7) 100%);
  pointer-events: none;
}
.course-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: #fff;
  background: rgba(5, 7, 13, 0.75);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  z-index: 1;
}
.badge-hot {
  background: var(--blue);
  border-color: var(--blue-2);
  color: #fff;
  box-shadow: 0 0 16px rgba(0,102,255,0.5);
}
.badge-flagship {
  background: linear-gradient(135deg, #0049c2 0%, #00d4ff 100%);
  border-color: var(--blue-2);
  color: #fff;
  letter-spacing: 0.22em;
  box-shadow: 0 0 18px rgba(0,212,255,0.55);
}
.price-inquire {
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.course-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.course h3 {
  font-size: 22px; font-weight: 700;
  margin: 0; color: #fff; letter-spacing: -0.01em;
}
.course-sub { color: var(--muted); margin: 0; font-size: 14px; }
.course-specs {
  list-style: none; padding: 14px 0; margin: 0;
  display: grid; gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}
.course-specs li {
  display: flex; justify-content: space-between; gap: 12px;
}
.course-specs li span:first-child {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
}
.course-specs li span:last-child { color: #fff; }
.course-syllabus {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: -4px;
}
.course-syllabus summary {
  cursor: pointer;
  color: var(--blue-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  list-style: none;
  user-select: none;
  padding: 6px 0;
}
.course-syllabus summary::-webkit-details-marker { display: none; }
.course-syllabus summary::before {
  content: "+ ";
  font-weight: 700;
}
.course-syllabus[open] summary::before { content: "− "; }
.course-syllabus ol {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
}
.course-syllabus ol li::marker {
  color: var(--blue-2);
  font-weight: 700;
}
.course-price {
  display: flex; flex-direction: column; gap: 2px;
}
.price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  color: var(--blue-2);
  letter-spacing: -0.02em;
}
.price-note {
  font-family: var(--mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.courses-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.courses-foot a { color: var(--blue-2); border-bottom: 1px dotted var(--blue-2); }
.courses-foot strong { color: #fff; }

/* DECK / BRIEFING CAROUSEL */
.section-deck { padding-bottom: 80px; }
.deck-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 60px -30px rgba(0,102,255,0.35);
  outline: none;
}
.deck-frame:focus-visible { box-shadow: 0 0 0 2px var(--blue-2), 0 30px 60px -30px rgba(0,102,255,0.5); }
.deck-corners .hud-corner { z-index: 3; pointer-events: none; }
.deck-track {
  position: absolute; inset: 0;
}
.deck-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.deck-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.deck-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(5, 7, 13, 0.7);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.deck-btn:hover {
  background: var(--blue);
  border-color: var(--blue-2);
  transform: translateY(-50%) scale(1.05);
}
.deck-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.deck-btn:disabled:hover { background: rgba(5,7,13,0.7); border-color: var(--line-2); transform: translateY(-50%); }
.deck-prev { left: 16px; }
.deck-next { right: 16px; }
.deck-counter {
  position: absolute;
  bottom: 16px; right: 18px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.deck-counter-sep { color: var(--muted); margin: 0 4px; }
.deck-counter #deck-current { color: var(--blue-2); }

.deck-dots {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  max-width: 1080px;
  margin: 22px auto 0;
}
.deck-dot {
  width: 28px; height: 4px;
  border: 0;
  padding: 0;
  background: var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.deck-dot:hover { background: var(--muted); }
.deck-dot.is-active {
  background: var(--blue-2);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.deck-foot {
  text-align: center;
  margin: 22px auto 0;
  max-width: 1080px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.deck-foot strong {
  color: var(--blue-2);
  font-family: var(--mono);
  font-weight: 500;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--blue-soft);
}

@media (max-width: 640px) {
  .deck-frame { border-radius: 2px; }
  .deck-btn { width: 40px; height: 40px; }
  .deck-prev { left: 8px; }
  .deck-next { right: 8px; }
  .deck-counter { bottom: 10px; right: 10px; font-size: 10px; padding: 4px 8px; }
  .deck-dot { width: 20px; }
}

/* FOUNDER */
.section-founder { background: linear-gradient(180deg, rgba(0,102,255,0.04) 0%, transparent 100%); }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.founder-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.founder-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.98;
}
.founder-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0) 30%, rgba(5,7,13,0.7) 100%);
}
.founder-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.founder-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius);
  background: var(--blue-soft);
}
.founder-copy h2 { margin-top: 14px; }
.founder-role {
  font-family: var(--mono);
  color: var(--blue-2);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
}
.founder-copy p { color: var(--muted); margin: 0 0 16px; }
.founder-copy em { color: #fff; font-style: italic; }
.founder-copy blockquote {
  border-left: 2px solid var(--blue);
  padding: 6px 0 6px 18px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  font-style: italic;
}

/* ENROLL */
.section-enroll { padding-bottom: 120px; }
.enroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 40px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border-radius: var(--radius);
  position: relative;
}
.enroll-grid::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 50px; height: 1px;
  background: var(--blue-2);
  box-shadow: 0 0 12px var(--blue-2);
}
.enroll-copy h2 { margin-top: 12px; }
.enroll-copy p { color: var(--muted); }
.enroll-points {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 10px;
}
.enroll-points li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.enroll-points span { color: var(--blue-2); }

.enroll-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--hot); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.18);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-2);
  margin: 4px 0 0;
  min-height: 1.2em;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 32px 28px;
  margin-top: 40px;
  background: var(--bg-2);
}
.footer-cta {
  max-width: var(--maxw);
  margin: 0 auto 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta .kicker { margin: 0; }
.footer-cta h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--text);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 56px;
  align-items: start;
}
.footer-blurb {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 330px;
}
.footer-brand .brand-name { font-size: 16px; }
.footer-loc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin: 14px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 980px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color .15s ease;
}
.footer-cols a:hover { color: #fff; }
.footer-meta {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer-disclaimer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-disclaimer h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-disclaimer p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 100ch;
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-coords { color: var(--blue-2); }
.footer-credit a {
  color: #fff;
  border-bottom: 1px dotted var(--line-2);
  transition: color .15s ease, border-color .15s ease;
}
.footer-credit a:hover { color: var(--blue-2); border-color: var(--blue-2); }

/* C-UAS CONSULTING */
.section-consulting {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(0,102,255,0.07) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0,212,255,0.03) 100%);
}
.consult-rate {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.consult-rate::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 100%);
}
.consult-rate-main .kicker { margin-bottom: 12px; display: inline-block; }
.consult-price-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.consult-price-row .price { font-size: 36px; }
.consult-rate-copy {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  max-width: 540px;
}
.consult-rate-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.consult-rate-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
    gap: 40px;
  }
  .hero-readout { display: none; }
  .pillars, .courses { grid-template-columns: 1fr; }
  .founder-grid, .enroll-grid, .footer-inner, .consult-rate { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 18px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  /* Multi-page mobile nav: logo on top row, links wrap to a centered row below */
  .nav { padding: 12px 18px; flex-wrap: wrap; gap: 8px; }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-links a:not(.nav-cta) { display: inline-block; font-size: 12px; }
  .nav-links .nav-cta { width: 100%; text-align: center; }
  .section { padding: 70px 18px; }
  .hero { padding: 50px 18px 40px; }
  .enroll-grid { padding: 24px; }
  .footer { padding: 50px 18px 24px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ========== TRAINING IN ACTION ========== */
.section-action {
  position: relative;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  perspective: 1200px;
}
@media (max-width: 900px) {
  .action-grid { grid-template-columns: 1fr; }
}
.action-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.action-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.action-panel:hover video {
  transform: scale(1.03);
  filter: saturate(1.2) contrast(1.12);
}
.action-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,0) 30%, rgba(5,7,13,0.85) 100%),
    linear-gradient(135deg, rgba(0,102,255,0.18) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.action-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.action-corners .hud-corner { width: 18px; height: 18px; }
.action-corners .hud-corner.tl { top: 12px; left: 12px; }
.action-corners .hud-corner.tr { top: 12px; right: 12px; }
.action-corners .hud-corner.bl { bottom: 12px; left: 12px; }
.action-corners .hud-corner.br { bottom: 12px; right: 12px; }
.action-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-label .telemetry { align-self: flex-start; }
.action-label h3 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}
.action-label p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ========== CINEMA SECTIONS (Mach-style full-bleed video) ========== */
.cinema {
  position: relative;
  width: 100%;
  min-height: 88vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.cinema-video,
.cinema-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
  /* Brightness boost + crisp edges to compensate for low source res */
  filter: brightness(1.18) saturate(1.18) contrast(1.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
/* Subtle film-grain overlay — disguises compression softness, adds cinematic texture */
.cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 280px 280px;
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,   0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -1%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0,   0); }
}
@media (prefers-reduced-motion: reduce) {
  .cinema::after { animation: none; }
}
.cinema-ambient {
  filter: blur(40px) saturate(1.3) brightness(0.7);
  transform: scale(1.15);
}
.cinema-overlay {
  position: absolute;
  inset: 0;
  /* Very light — only soft shadow in the corner where the card sits, so video reads bright */
  background:
    radial-gradient(ellipse at 18% 90%, rgba(5, 7, 13, 0.5) 0%, transparent 45%),
    linear-gradient(180deg, transparent 75%, rgba(5, 7, 13, 0.3) 100%);
  z-index: -1;
  pointer-events: none;
}
.cinema-flipped .cinema-overlay {
  background:
    radial-gradient(ellipse at 82% 90%, rgba(5, 7, 13, 0.5) 0%, transparent 45%),
    linear-gradient(180deg, transparent 75%, rgba(5, 7, 13, 0.3) 100%);
}
.cinema-flipped .cinema-content {
  align-items: flex-end;
}
.cinema-flipped .cinema-content > * { text-align: right; }
.cinema-flipped .cinema-meta > div { justify-content: space-between; }
@media (max-width: 900px) {
  .cinema-flipped .cinema-content { align-items: flex-start; }
  .cinema-flipped .cinema-content > * { text-align: left; }
}
.cinema > .hud-corner {
  width: 28px; height: 28px;
}
.cinema > .hud-corner.tl { top: 32px; left: 32px; }
.cinema > .hud-corner.tr { top: 32px; right: 32px; }
.cinema > .hud-corner.bl { bottom: 32px; left: 32px; }
.cinema > .hud-corner.br { bottom: 32px; right: 32px; }

.cinema-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* The content collapses into a compact side card — small, glassy, out of the way */
.cinema-content > * {
  max-width: 360px;
  width: 100%;
}
.cinema-content .telemetry {
  background: rgba(0, 102, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cinema-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 12px 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.cinema-lede {
  color: #e6ecff;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
/* Compact metadata as a small glass card */
.cinema-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 14px 16px;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius);
  width: 100%;
}
.cinema-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-right: 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}
.cinema-meta > div:last-child { border-bottom: 0; }
.cinema-meta .meta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.cinema-meta .meta-val {
  font-family: var(--mono);
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: right;
}

/* Portrait variant — vertical video + side content */
.cinema-portrait-grid {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 56px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.cinema-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px -10px rgba(0, 212, 255, 0.4);
}
.cinema-video-tall {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cinema-stage .hud-corner {
  width: 18px; height: 18px;
  z-index: 2;
}
.cinema-stage .hud-corner.tl { top: 12px; left: 12px; }
.cinema-stage .hud-corner.tr { top: 12px; right: 12px; }
.cinema-stage .hud-corner.bl { bottom: 12px; left: 12px; }
.cinema-stage .hud-corner.br { bottom: 12px; right: 12px; }

.cinema-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cinema-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.cinema-bullets li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.cinema-bullets li:last-child { border-bottom: 0; }
.cinema-bullets li > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue-2);
  flex-shrink: 0;
  min-width: 24px;
}

@media (max-width: 900px) {
  .cinema { min-height: auto; }
  .cinema-content { padding: 80px 24px; }
  .cinema-portrait-grid {
    grid-template-columns: 1fr;
    padding: 70px 24px;
    gap: 40px;
  }
  .cinema-stage { max-height: 60vh; margin: 0 auto; }
  .cinema-meta { grid-template-columns: 1fr; }
  .cinema-meta > div {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.18);
    padding: 14px 0;
  }
  .cinema-meta > div:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .cinema-title { font-size: 22px; }
  .cinema-lede { font-size: 13px; }
  .cinema-content { padding: 40px 20px; }
  .cinema-content > * { max-width: 100%; }
  .cinema > .hud-corner { width: 18px; height: 18px; }
  .cinema > .hud-corner.tl { top: 16px; left: 16px; }
  .cinema > .hud-corner.tr { top: 16px; right: 16px; }
  .cinema > .hud-corner.bl { bottom: 16px; left: 16px; }
  .cinema > .hud-corner.br { bottom: 16px; right: 16px; }
}

/* ========== HOVER MICRO-INTERACTIONS ========== */

/* Nav links — underline draws from left on hover */
.nav-links a:not(.nav-cta) {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 0 8px var(--blue-2);
}
.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

/* Buttons — left-to-right sweep fill on hover */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 0) 0%,
    rgba(0, 212, 255, 0.3) 50%,
    rgba(0, 212, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(100%);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 102, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--blue-2);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

/* Course cards — stronger lift + animated edge sweep */
.course {
  transition:
    border-color 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}
.course:hover {
  transform: translateY(-8px);
  border-color: var(--blue-2);
  box-shadow:
    0 28px 50px -20px rgba(0, 102, 255, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.3) inset;
}
.course .course-media img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.course:hover .course-media img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
}
.course .course-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course:hover .course-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

/* Course-featured gets extra glow on hover */
.course-featured:hover {
  box-shadow:
    0 28px 60px -15px rgba(0, 102, 255, 0.6),
    0 0 80px -10px rgba(0, 212, 255, 0.6);
}

/* Pillars — same family, gentler */
.pillar {
  transition:
    border-color 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    background 0.3s ease;
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--blue-2);
  background: linear-gradient(180deg, var(--panel-2) 0%, rgba(13, 20, 36, 0.6) 100%);
  box-shadow: 0 20px 40px -18px rgba(0, 102, 255, 0.4);
}
.pillar-num {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.pillar:hover .pillar-num {
  color: var(--blue-2);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
}

/* Founder portrait — zoom + desaturate→saturate on hover */
.founder-frame {
  cursor: default;
}
.founder-frame img {
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease,
    opacity 0.4s ease;
  filter: saturate(0.85) contrast(1.02);
}
.founder-frame:hover img {
  transform: scale(1.05);
  filter: saturate(1.15) contrast(1.08);
  opacity: 1;
}
.founder-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0) 0%,
    rgba(0, 212, 255, 0.15) 50%,
    rgba(0, 212, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
.founder-frame:hover::before {
  opacity: 1;
}

/* Hero stat cards — subtle glow + number brightens on hover */
.stat {
  transition: background 0.3s ease;
  cursor: default;
}
.stat:hover {
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.08) 0%, transparent 100%);
}
.stat-num {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.stat:hover .stat-num {
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.8);
}

/* Brand mark in nav — subtle rotate on hover */
.brand-mark svg {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .brand-mark svg {
  transform: rotate(30deg);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.7));
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after,
  .btn::before,
  .course,
  .course-media img,
  .pillar,
  .founder-frame img,
  .founder-frame::before,
  .stat,
  .brand-mark svg {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ========== MOBILE POLISH ========== */
@media (max-width: 720px) {
  /* Lighter reveal — heavy blur eats GPU on phones */
  .js-reveals [data-reveal] {
    transform: translateY(36px) scale(0.99);
    filter: none;
    transition:
      opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-reveals [data-reveal="card"] {
    transform: translateY(40px);
  }
  .js-reveals [data-reveal="left"]  { transform: translateX(-30px); }
  .js-reveals [data-reveal="right"] { transform: translateX(30px); }

  /* Card sweep flash off on mobile (extra paint) */
  .js-reveals [data-reveal="card"]::before { display: none; }

  /* Conic rotating border off on mobile (battery) */
  .course-featured::before,
  .course-featured::after { display: none; }
  .course-featured {
    border: 1px solid var(--blue);
    box-shadow: 0 0 40px -10px rgba(0, 212, 255, 0.5);
  }

  /* Hero readout — smaller + tighter so it doesn't crowd the headline */
  .hero-readout {
    top: 80px;
    right: 16px;
    font-size: 9px;
    padding: 8px 10px;
    max-width: 50vw;
  }
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }
  .hero-title { font-size: clamp(34px, 9vw, 56px); }
  .hero-sub { font-size: 15px; }

  /* Brand text — single line under logo */
  .brand-text { display: none; }

  /* Action panels — taller (4:5) so video is more visible on mobile */
  .action-panel { aspect-ratio: 4 / 5; }
  .action-label { padding: 18px; }
  .action-label h3 { font-size: 20px; }
  .action-label p { font-size: 13px; }

  /* Section padding tighter */
  .section { padding: 70px 20px; }
  .section-head { margin-bottom: 36px; }

  /* Edge-scan line off on mobile (already handled) */
  /* Telemetry pulse runs slower to save battery */
  .telemetry::before { animation-duration: 2.4s; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .hero-readout { display: none; }
  .courses-hint { display: none; }
}

/* ========== FLY PLATFORMS (FPV / Quad / Fixed-Wing) ========== */
.fly-platforms {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
}
.fly-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

/* ========== REVIEWS / TESTIMONIALS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.review::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}
.review-stars {
  color: #ffb020;
  font-size: 15px;
  letter-spacing: 3px;
}
.review-quote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}
.review-by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.review-name { font-weight: 700; color: var(--text); }
.review-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== WORKING PARTNERS ========== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.partner:hover { border-color: var(--line-2); transform: translateY(-3px); }
.partner-logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--blue-2);
  border: 1px dashed var(--line-2);
  padding: 14px 20px;
  border-radius: var(--radius);
}
.partner img { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(1) brightness(1.4); opacity: 0.85; transition: filter 0.25s ease, opacity 0.25s ease; }
.partner:hover img { filter: none; opacity: 1; }
.partner-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== SUPPORT / DONATIONS ========== */
/* Donations — left-aligned with selectable impact tiers (no boxed card) */
.section-support { position: relative; overflow: hidden; }
.section-support::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 18% -10%, rgba(0, 130, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.support-inner { position: relative; max-width: 900px; }
.support-inner .kicker { margin-bottom: 14px; }
.support-inner .accent-bar { margin: 16px 0 22px; }
.support-inner .lede { margin: 0 0 30px; max-width: 620px; }

.donate-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.donate-tier {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  text-align: left;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.donate-tier:hover { border-color: var(--line-2); transform: translateY(-3px); }
.donate-tier.is-selected {
  border-color: var(--blue-2);
  background: linear-gradient(180deg, rgba(0, 130, 255, 0.14), rgba(0, 130, 255, 0.04));
  box-shadow: 0 0 0 1px var(--blue-2), 0 10px 32px rgba(0, 130, 255, 0.2);
}
.donate-amt {
  font-family: var(--mono);
  font-size: 22px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff;
}
.donate-tier.is-selected .donate-amt { color: var(--blue-2); }
.donate-impact {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.btn-donate { display: inline-flex; padding: 14px 34px; }
.support-note {
  margin: 16px 0 0;
  max-width: 520px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .donate-tiers { grid-template-columns: 1fr 1fr; }
}

/* ========== FOOTER SOCIAL ========== */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { color: var(--blue-2); border-color: var(--line-2); }

/* ========== RESPONSIVE: new sections ========== */
@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== FEATURED PARTNER (Voltage Vessels) ========== */
.partner-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.partner-featured:hover { border-color: var(--blue-2); transform: translateY(-3px); }
.partner-featured-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 130, 255, 0.18), transparent 70%),
    var(--panel-2);
  border-right: 1px solid var(--line);
}
.partner-featured-mark img { max-width: 100%; max-height: 90px; object-fit: contain; }
.partner-featured-word {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--blue-2);
}
.partner-featured-copy { padding: 28px 30px; }
.partner-featured-copy .kicker { margin-bottom: 10px; }
.partner-featured-copy h3 { font-size: 22px; margin: 0 0 12px; color: var(--text); }
.partner-featured-copy p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.partner-featured-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
}
@media (max-width: 700px) {
  .partner-featured { grid-template-columns: 1fr; }
  .partner-featured-mark { border-right: none; border-bottom: 1px solid var(--line); padding: 26px; }
}

/* ========== NAV BRAND LOGO (cropped Cobalt wordmark) ========== */
.brand-logo {
  display: block;
  height: 84px;
  width: auto;
  border-radius: 3px;
  image-rendering: -webkit-optimize-contrast;
}
.brand .brand-text {
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}
.brand .brand-tag { margin-top: 0; }

/* Draft (un-approved) review cards — visually flagged so they never ship by accident */
.review-draft { border-style: dashed; opacity: 0.78; }
.review-draft .review-name { color: var(--hot); }

/* ========================================================
   FLOAT-IN & LAND ENTRANCE  (drone "touchdown" reveal)
   Upgrades the base + card reveals: element drifts up,
   lifts slightly past rest, then gently settles like a
   drone setting down on its landing gear.
   ======================================================== */
.js-reveals [data-reveal=""],
.js-reveals [data-reveal="card"] {
  transition: none; /* now driven by keyframes below */
}
.js-reveals [data-reveal=""].is-visible {
  animation: reveal-land 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.js-reveals [data-reveal="card"].is-visible {
  animation: reveal-land-card 1300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-land {
  0%   { opacity: 0; transform: translateY(78px) scale(0.95); filter: blur(9px); }
  55%  { opacity: 1; filter: blur(0); }
  74%  { transform: translateY(-11px) scale(1.013); }  /* hover / lift */
  89%  { transform: translateY(3px) scale(0.997); }    /* touchdown settle */
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes reveal-land-card {
  0%   { opacity: 0; transform: translateY(86px) rotateX(-10deg) scale(0.94); filter: blur(8px); }
  55%  { opacity: 1; filter: blur(0); }
  74%  { transform: translateY(-13px) rotateX(2.5deg) scale(1.015); }
  89%  { transform: translateY(4px) rotateX(-0.6deg) scale(0.997); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}

/* Lighter version on phones — drop the blur, shorten the travel */
@media (max-width: 720px) {
  .js-reveals [data-reveal=""].is-visible {
    animation: reveal-land-m 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
  .js-reveals [data-reveal="card"].is-visible {
    animation: reveal-land-m 880ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
  @keyframes reveal-land-m {
    0%   { opacity: 0; transform: translateY(42px) scale(0.99); }
    72%  { transform: translateY(-6px) scale(1.007); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
}

/* Respect reduced-motion — no float, just appear */
@media (prefers-reduced-motion: reduce) {
  .js-reveals [data-reveal=""].is-visible,
  .js-reveals [data-reveal="card"].is-visible {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ========================================================
   FOUNDER — dynamic slide-in for Mark's photo + bio
   Photo slides in from the left with a 3D bank & settle;
   bio cascades in line-by-line from the right; credential
   chips pop in last. Scoped to the founder section only.
   ======================================================== */

/* --- Photo: cinematic slide from the left --- */
.js-reveals .founder-media[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-140px) rotateY(12deg) scale(0.88);
  transform-origin: left center;
  filter: blur(9px);
  transition: none;
  perspective: 1000px;
}
.js-reveals .founder-media[data-reveal="left"].is-visible {
  animation: founder-photo-in 1300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes founder-photo-in {
  0%   { opacity: 0; transform: translateX(-140px) rotateY(12deg) scale(0.88); filter: blur(9px); }
  55%  { opacity: 1; filter: blur(0); }
  80%  { transform: translateX(12px) rotateY(-3deg) scale(1.015); }
  100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); filter: blur(0); }
}

/* --- Bio: container is the trigger; its lines cascade in --- */
.js-reveals .founder-copy[data-reveal="right"] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}
.js-reveals .founder-copy[data-reveal="right"] > * {
  opacity: 0;
  transform: translateX(64px);
  filter: blur(5px);
}
.js-reveals .founder-copy[data-reveal="right"].is-visible > * {
  animation: founder-line-in 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes founder-line-in {
  0%   { opacity: 0; transform: translateX(64px); filter: blur(5px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
/* stagger the bio lines */
.js-reveals .founder-copy.is-visible > *:nth-child(1) { animation-delay: 220ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(2) { animation-delay: 310ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(3) { animation-delay: 400ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(4) { animation-delay: 490ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(5) { animation-delay: 580ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(6) { animation-delay: 670ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(7) { animation-delay: 760ms; }
.js-reveals .founder-copy.is-visible > *:nth-child(8) { animation-delay: 850ms; }

/* --- Credential chips: pop in last --- */
.js-reveals .founder-tags span {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
}
.js-reveals .founder-media.is-visible .founder-tags span {
  animation: founder-chip-in 600ms cubic-bezier(0.34, 1.4, 0.5, 1) both;
}
@keyframes founder-chip-in {
  0%   { opacity: 0; transform: translateY(14px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(1) { animation-delay: 700ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(2) { animation-delay: 760ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(3) { animation-delay: 820ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(4) { animation-delay: 880ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(5) { animation-delay: 940ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(6) { animation-delay: 1000ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(7) { animation-delay: 1060ms; }
.js-reveals .founder-media.is-visible .founder-tags span:nth-child(8) { animation-delay: 1120ms; }

/* Mobile: lighter (less travel, no blur) */
@media (max-width: 720px) {
  .js-reveals .founder-media[data-reveal="left"] {
    transform: translateX(-50px) scale(0.95);
    filter: none;
  }
  .js-reveals .founder-media[data-reveal="left"].is-visible {
    animation: founder-photo-in-m 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes founder-photo-in-m {
    0%   { opacity: 0; transform: translateX(-50px) scale(0.95); }
    78%  { transform: translateX(6px) scale(1.008); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
  }
  .js-reveals .founder-copy[data-reveal="right"] > * { transform: translateX(34px); filter: none; }
  .js-reveals .founder-copy.is-visible > * { animation-duration: 650ms; }
}

/* Reduced motion: everything just appears */
@media (prefers-reduced-motion: reduce) {
  .js-reveals .founder-media[data-reveal="left"],
  .js-reveals .founder-media[data-reveal="left"].is-visible,
  .js-reveals .founder-copy[data-reveal="right"] > *,
  .js-reveals .founder-copy.is-visible > *,
  .js-reveals .founder-tags span,
  .js-reveals .founder-media.is-visible .founder-tags span {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ========================================================
   HARDWARE SHOWCASE — drone + branded Cobalt case
   ======================================================== */
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}
.craft-frame {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 130, 255, 0.12);
}
.craft-frame img { display: block; width: 100%; height: auto; }
.craft-readout {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--blue-2);
  background: rgba(5, 7, 13, 0.62);
  border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 3px;
}
.accent-bar {
  width: 46px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  border-radius: 2px;
  margin: 16px 0 20px;
}
.craft-copy h2 { font-size: clamp(28px, 4vw, 44px); margin: 6px 0 0; }
.craft-copy p {
  color: var(--muted);
  font-size: 16px; line-height: 1.8;
  margin: 0 0 18px; max-width: 520px;
}
.craft-points {
  list-style: none; padding: 0;
  margin: 0 0 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.craft-points li {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
}
@media (max-width: 820px) {
  .craft-grid { grid-template-columns: 1fr; gap: 32px; }
  .craft-frame { max-width: 420px; }
}

/* Smaller logo on phones so the larger desktop logo doesn't crowd the nav */
@media (max-width: 640px) {
  .brand-logo { height: 56px; }
}

/* C-UAS consulting header — darken the pale-sky stock clip so the headline reads */
.cinema-cuas .cinema-video { filter: brightness(0.7) contrast(1.08) saturate(0.92); }
.cinema-cuas .cinema-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.94) 0%, rgba(5, 7, 13, 0.6) 42%, rgba(5, 7, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 7, 13, 0.85) 0%, transparent 55%),
    radial-gradient(circle at 72% 42%, rgba(0, 102, 255, 0.1), transparent 60%);
}

/* ========================================================
   PAGE HERO — compact header band with a drone image
   (used on Partners & Reviews)
   ======================================================== */
.page-hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding: 84px 32px 66px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  /* Drone-at-sunset silhouette (Pexels License). Flipped so the drone + sun
     sit on the right, clear of the left-aligned headline. */
  background: url('assets/partners-drone.jpg') center 55% / cover no-repeat;
  transform: scaleX(-1);
  filter: brightness(0.8) contrast(1.04);
  z-index: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.72) 40%, rgba(5, 7, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 7, 13, 0.85), transparent 62%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.page-hero-inner h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 12px 0 0;
}
.page-hero-inner .accent-bar { margin: 16px 0 18px; }
.page-hero-inner .lede { margin: 0; }

/* Voltage (and future) real partner logo inside the featured mark */
.partner-featured-logo {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
}

/* Fix: course rail full-bleed must match the section's mobile padding,
   or it overflows the viewport horizontally. */
@media (max-width: 720px) {
  .courses-rail { margin: 0 -20px; }
  .courses { padding: 12px 20px 32px; scroll-padding: 20px; }
}
@media (max-width: 640px) {
  .courses-rail { margin: 0 -18px; }
  .courses { padding: 12px 18px 32px; scroll-padding: 18px; }
}
