/* ==========================================================================
   DSKY SOFTWARE — styles.css
   Dark, space / mission-control themed landing page.
   Dependency-free. Dark-only. Animates transform/opacity wherever possible.

   TABLE OF CONTENTS
   01. Design tokens
   02. Reset & base
   03. Selection / scrollbar / focus
   04. Skip link
   05. Scroll progress bar
   06. Header / brand / nav / hamburger
   07. Buttons (magnetic, shine, sizes)
   08. Hero (starfield, grid, glow, copy, type rotator)
   09. DSKY console
   10. Ticker (hero status strip)
   11. Marquee (tech strip)
   12. Sections & section heads
   13. Service cards (+ tilt)
   14. Timeline (flight plan)
   15. Params (mission stats)
   16. About / feature list
   17. Founder card & socials (contract classes)
   18. Contact
   19. Footer
   20. Reveal / stagger system
   21. Boot overlay
   22. Rocket easter egg
   23. Film grain
   24. Keyframes
   25. Responsive
   26. Reduced motion & no-JS fallbacks
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  --bg: #070a14;
  --bg-2: #0b1020;
  --surface: #0e1628;
  --surface-2: #121c33;
  --text: #eef2fb;
  --muted: #9fabc7;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-3: #22d3ee;
  --amber: #fbbf24;
  --green: #4ade80;
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .26);

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1140px;
  --header-h: 72px;
  --radius: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --glow-cyan: rgba(56, 189, 248, .45);
  --glow-indigo: rgba(99, 102, 241, .4);
  --display-green: #7ef9d2;

  color-scheme: dark;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: #2e4a7a var(--bg-2);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 80% -10%, rgba(99, 102, 241, .08), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(56, 189, 248, .05), transparent 60%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img, svg, canvas {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* anchor offset below the fixed header */
section[id],
#top {
  scroll-margin-top: calc(var(--header-h) + 18px);
}


/* ==========================================================================
   03. SELECTION / SCROLLBAR / FOCUS
   ========================================================================== */

::selection {
  background: rgba(56, 189, 248, .35);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg-2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5ecdfa, #818cf8);
}

:focus {
  outline: none;
}

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

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}


/* ==========================================================================
   04. SKIP LINK
   ========================================================================== */

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent);
  color: #051120;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(56, 189, 248, .45);
  transform: translateY(-220%);
  transition: transform .25s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--text);
}


/* ==========================================================================
   05. SCROLL PROGRESS BAR
   JS sets inline transform: scaleX(0..1) on #progress-bar.
   ========================================================================== */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001; /* above header */
  pointer-events: none;
}

#progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent) 40%, var(--accent-2));
  box-shadow: 0 0 10px var(--glow-cyan), 0 0 22px rgba(56, 189, 248, .25);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}


/* ==========================================================================
   06. HEADER / BRAND / NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    transform .3s var(--ease-out),
    background-color .3s ease,
    border-color .3s ease;
}

/* JS contract: solid blur bg + bottom border once scrolled */
.site-header.scrolled {
  background: rgba(7, 10, 20, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--border);
}

/* JS contract: slides up out of view */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .01em;
}

.brand-mark {
  display: inline-flex;
  line-height: 0;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, .35));
  transition: filter .3s ease, transform .3s var(--ease-out);
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, .6));
  transform: rotate(-4deg);
}

.brand-name {
  font-size: 1.08rem;
}

.brand-light {
  color: var(--muted);
  font-weight: 600;
}

/* Primary nav (desktop) */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav > a:not(.btn) {
  position: relative;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color .25s ease;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}

.nav > a:not(.btn):hover,
.nav > a:not(.btn):focus-visible {
  color: var(--text);
}

.nav > a:not(.btn):hover::after,
.nav > a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, .06);
  transition: border-color .25s ease, background-color .25s ease;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease-out), opacity .2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   07. BUTTONS
   Magnetic contract: JS sets --tx / --ty on the element.
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 27px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition:
    transform .25s var(--ease-out),
    box-shadow .3s ease,
    border-color .3s ease,
    background-color .3s ease,
    color .3s ease;
  will-change: transform;
}

.btn:hover {
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px));
}

.btn:active {
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + 1px));
}

.btn-sm {
  padding: 9px 18px;
  font-size: .9rem;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.08rem;
}

/* Primary: cyan→indigo gradient + glow + shine sweep */
.btn-primary {
  color: #041019;
  background: linear-gradient(135deg, #5ecdfa, var(--accent) 35%, #818cf8);
  box-shadow:
    0 8px 26px rgba(56, 189, 248, .35),
    0 2px 8px rgba(99, 102, 241, .3),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-primary:hover {
  box-shadow:
    0 12px 36px rgba(56, 189, 248, .5),
    0 4px 14px rgba(99, 102, 241, .4),
    inset 0 1px 0 rgba(255, 255, 255, .4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255, 255, 255, .5) 50%,
    transparent 65%);
  transform: translateX(-130%);
  transition: transform .6s ease;
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: translateX(130%);
}

/* Ghost: glass + border that lights cyan */
.btn-ghost {
  color: var(--text);
  background: rgba(148, 163, 184, .07);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(56, 189, 248, .65);
  color: #d7f2ff;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .2), 0 8px 24px rgba(56, 189, 248, .14);
}


/* ==========================================================================
   08. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Faint cyan grid, radially masked */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(56, 189, 248, .07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg,
      rgba(56, 189, 248, .07) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 0%, transparent 72%);
}

/* Big soft radial glows (no filter blur — gradient falloff is cheap) */
.hero-glow {
  position: absolute;
  inset: -10% -10%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(580px 420px at 26% 30%, rgba(56, 189, 248, .14), transparent 65%),
    radial-gradient(640px 480px at 76% 60%, rgba(99, 102, 241, .16), transparent 65%),
    radial-gradient(420px 320px at 60% 18%, rgba(34, 211, 238, .07), transparent 65%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}

/* body.loaded (set by JS after the boot sequence) gently ramps the glow.
   Safe without JS: the glow simply rests at .75 opacity. */
.hero-glow {
  transition: opacity 1.4s ease .2s;
}

body:not(.loaded) .hero-glow {
  opacity: .75;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
}

.blink-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, .8), 0 0 18px rgba(74, 222, 128, .4);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Title */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(90deg,
    var(--accent-3), var(--accent) 30%, var(--accent-2) 60%, var(--accent-3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-shift 6s linear infinite;
}

/* Sub copy + type rotator */
.hero-sub {
  max-width: 560px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 32px;
}

.type-wrap {
  white-space: nowrap;
}

#type-rotator {
  font-family: var(--mono);
  font-size: 1.04em;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(56, 189, 248, .35);
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -0.18em;
  box-shadow: 0 0 8px var(--glow-cyan);
  animation: caret-blink 1.05s steps(1, end) infinite;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Premium hero entrance: longer rise + built-in per-item delays */
.hero .reveal {
  transition-duration: .9s;
}

.hero .reveal:not(.is-visible) {
  transform: translateY(36px) scale(.985);
}

.hero-copy > .reveal:nth-child(2).is-visible { transition-delay: .1s; }
.hero-copy > .reveal:nth-child(3).is-visible { transition-delay: .22s; }
.hero-copy > .reveal:nth-child(4).is-visible { transition-delay: .34s; }
.hero-inner > .console-wrap.is-visible       { transition-delay: .28s; }


/* ==========================================================================
   09. DSKY CONSOLE — hero centerpiece
   ========================================================================== */

.console-wrap {
  justify-self: center;
  width: 100%;
  max-width: 460px;
}

/* gentle idle float once revealed (starts after the entrance settles) */
.console-wrap.is-visible {
  animation: console-float 7s ease-in-out 1.6s infinite;
}

.console {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  /* dark bezel + 1px gradient border (double background trick) */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(56, 189, 248, .06), transparent 55%) padding-box,
    linear-gradient(180deg, #0c1322, #0a0f1e 55%) padding-box,
    linear-gradient(160deg,
      rgba(56, 189, 248, .55),
      rgba(99, 102, 241, .35) 45%,
      rgba(148, 163, 184, .12)) border-box;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, .8),
    0 0 50px -8px rgba(56, 189, 248, .18),
    0 0 120px -20px rgba(99, 102, 241, .2),
    inset 0 1px 0 rgba(238, 242, 251, .07),
    inset 0 -14px 30px -18px rgba(0, 0, 0, .9),
    inset 0 0 0 1px rgba(0, 0, 0, .45);
  transition: box-shadow .35s ease;
}

.console:hover {
  box-shadow:
    0 34px 80px -20px rgba(0, 0, 0, .85),
    0 0 60px -6px rgba(56, 189, 248, .26),
    0 0 140px -16px rgba(99, 102, 241, .28),
    inset 0 1px 0 rgba(238, 242, 251, .09),
    inset 0 -14px 30px -18px rgba(0, 0, 0, .9),
    inset 0 0 0 1px rgba(0, 0, 0, .45);
}

/* head row */
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.console-title {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--muted);
}

/* lamps */
.lamps {
  display: inline-flex;
  gap: 8px;
}

.lamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(159, 171, 199, .55);
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(5, 10, 20, .6);
  transition: color .3s ease, border-color .3s ease;
}

.lamp i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, .22);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, .8);
  transition: background-color .25s ease, box-shadow .25s ease;
}

.lamp-green { --lamp-c: var(--green); --lamp-glow: rgba(74, 222, 128, .65); }
.lamp-amber { --lamp-c: var(--amber); --lamp-glow: rgba(251, 191, 36, .65); }
.lamp-cyan  { --lamp-c: var(--accent-3); --lamp-glow: rgba(34, 211, 238, .65); }

/* JS contract: .lamp.on lights the dot + brightens the label */
.lamp.on {
  color: var(--text);
  border-color: var(--border-strong);
}

.lamp.on i {
  background: var(--lamp-c, var(--green));
  box-shadow:
    0 0 7px var(--lamp-glow, rgba(74, 222, 128, .65)),
    0 0 16px var(--lamp-glow, rgba(74, 222, 128, .65));
}

/* PROG / VERB / NOUN grid */
.console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.c-cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.c-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}

.c-digits {
  display: block;
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .06em;
  color: var(--display-green);
  text-shadow:
    0 0 6px rgba(126, 249, 210, .65),
    0 0 18px rgba(74, 222, 128, .35),
    0 0 40px rgba(34, 211, 238, .18);
  background: linear-gradient(180deg, #040a15, #050d19);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, .85),
    inset 0 0 24px rgba(34, 211, 238, .05);
}

/* registers */
.c-regs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-reg {
  display: block;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  text-align: right;
  letter-spacing: .14em;
  color: var(--display-green);
  text-shadow:
    0 0 6px rgba(126, 249, 210, .6),
    0 0 16px rgba(74, 222, 128, .3);
  background: linear-gradient(180deg, #040a15, #050d19);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .85);
}

/* message line */
.c-msg {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .92rem;
  letter-spacing: .1em;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(56, 189, 248, .4);
}

.c-cursor {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: .35em;
  background: currentColor;
  vertical-align: -0.18em;
  animation: caret-blink 1.05s steps(1, end) infinite;
}

/* scanlines + slow vertical sweep */
.console-scan {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(255, 255, 255, .022) 0 1px,
    transparent 1px 3px);
}

.console-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  background: linear-gradient(180deg,
    transparent,
    rgba(56, 189, 248, .045) 50%,
    transparent);
  transform: translateY(-110%);
  animation: scan-sweep 7s linear infinite;
}

.console-hint {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(159, 171, 199, .65);
}


/* ==========================================================================
   10. TICKER — hero bottom status strip
   ========================================================================== */

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 30, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  animation: track-scroll 38s linear infinite;
  will-change: transform;
}

/* margin (not gap) keeps the -50% loop seamless */
.ticker-track > * {
  margin-right: 2.5rem;
  white-space: nowrap;
}

.ticker-track i {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(56, 189, 248, .5);
}


/* ==========================================================================
   11. MARQUEE — tech strip between sections
   ========================================================================== */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(56, 189, 248, .045), transparent 30%, transparent 70%, rgba(99, 102, 241, .05)),
    var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  animation: track-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-track > * {
  margin-right: 2.5rem;
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--accent);
}


/* ==========================================================================
   12. SECTIONS & SECTION HEADS
   ========================================================================== */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-alt {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(99, 102, 241, .06), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(44px, 6vw, 64px);
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.sec-num {
  color: var(--accent-3);
  text-shadow: 0 0 12px rgba(34, 211, 238, .45);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}


/* ==========================================================================
   13. SERVICE CARDS (+ tilt)
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, var(--surface), var(--bg-2)) padding-box,
    linear-gradient(160deg,
      rgba(56, 189, 248, .35),
      rgba(148, 163, 184, .12) 40%,
      rgba(99, 102, 241, .25)) border-box;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  transition: box-shadow .35s ease;
}

/* lift lives in the shadow/border (transform belongs to the tilt) */
.card:hover {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, .4),
    0 26px 50px -16px rgba(0, 0, 0, .7),
    0 18px 50px -18px rgba(56, 189, 248, .3);
}

.card h3 {
  font-size: 1.2rem;
  margin: 18px 0 8px;
}

.card p {
  font-size: .97rem;
  color: var(--muted);
  margin: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--accent);
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .25);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, .08);
  transition: box-shadow .35s ease;
}

.card:hover .card-icon {
  box-shadow:
    inset 0 0 18px rgba(56, 189, 248, .14),
    0 0 22px rgba(56, 189, 248, .35);
  animation: icon-hue 4s linear infinite;
}

/* --- Tilt (JS sets --rx, --ry, --mx, --my and toggles .tilt-active) --- */
.tilt {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, .15),
    rgba(99, 102, 241, .06) 45%,
    transparent 68%);
  opacity: 0;
  transition: opacity .35s ease;
}

.tilt.tilt-active::after {
  opacity: 1;
}


/* ==========================================================================
   14. TIMELINE — flight plan
   ========================================================================== */

.timeline {
  --rail: 104px; /* x of the vertical rail */
  max-width: 760px;
  margin: 0 auto;
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  column-gap: 40px;
  padding: 0 0 38px 0;
}

.phase:last-child {
  padding-bottom: 0;
}

/* connector line — draws down on reveal */
.phase::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 1px);
  top: 30px;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg,
    rgba(56, 189, 248, .55),
    rgba(99, 102, 241, .3) 70%,
    rgba(99, 102, 241, .1));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s ease .25s;
}

.phase.is-visible::before {
  transform: scaleY(1);
}

.phase:last-child::before {
  display: none;
}

/* node dot with pulse glow */
.phase::after {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 5px);
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, .5);
  animation: node-pulse 2.6s ease-out infinite;
}

.phase-t {
  align-self: start;
  justify-self: start;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 8px;
  box-shadow: 0 0 18px -4px rgba(56, 189, 248, .25);
  white-space: nowrap;
}

.phase > div {
  padding-left: 24px;
}

.phase h3 {
  font-size: 1.15rem;
  margin: 4px 0 6px;
}

.phase p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* phases enter from the left */
.phase.reveal:not(.is-visible) {
  transform: translateX(-30px);
}


/* ==========================================================================
   15. PARAMS — mission stats strip
   ========================================================================== */

.params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 0;
  margin-top: clamp(56px, 8vw, 88px);
}

.params li {
  padding: 6px 24px;
  border-left: 1px solid var(--border-strong);
}

.params strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  background: linear-gradient(120deg, var(--accent-3), var(--accent) 50%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.params span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}


/* ==========================================================================
   16. ABOUT / FEATURE LIST
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(44px, 6vw, 72px);
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}

.about-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

.about-lead strong {
  color: var(--text);
  font-weight: 700;
}

.about-lead em {
  color: var(--accent-3);
  font-style: italic;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 28px;
  padding-top: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(56, 189, 248, .55);
}

.feature-list h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.feature-list p {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}


/* ==========================================================================
   17. FOUNDER CARD & SOCIALS  (contract classes — styled even though the
       markup isn't in index.html yet)
   ========================================================================== */

.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 460px;
  margin-top: 36px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, var(--surface), var(--bg-2)) padding-box,
    linear-gradient(160deg,
      rgba(56, 189, 248, .35),
      rgba(148, 163, 184, .12) 50%,
      rgba(99, 102, 241, .25)) border-box;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .65);
}

/* gradient ring via padding trick */
.founder-avatar {
  width: 64px;
  height: 64px;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px -4px rgba(56, 189, 248, .45);
}

.founder-info {
  min-width: 0;
}

.founder-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.founder-role {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin: 0 0 10px;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(148, 163, 184, .06);
  transition: color .25s ease, border-color .25s ease, box-shadow .3s ease, transform .25s var(--ease-out);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--text);
  border-color: rgba(56, 189, 248, .6);
  box-shadow: 0 0 18px -4px rgba(56, 189, 248, .5);
  transform: translateY(-2px);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}


/* ==========================================================================
   18. CONTACT
   ========================================================================== */

.contact-card {
  position: relative;
  max-width: 760px;
  padding: clamp(48px, 7vw, 72px);
  text-align: center;
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    radial-gradient(620px 300px at 18% 0%, rgba(56, 189, 248, .12), transparent 60%) padding-box,
    radial-gradient(520px 320px at 85% 100%, rgba(99, 102, 241, .16), transparent 60%) padding-box,
    linear-gradient(180deg, var(--surface), var(--bg-2)) padding-box,
    linear-gradient(150deg,
      rgba(56, 189, 248, .45),
      rgba(148, 163, 184, .12) 45%,
      rgba(99, 102, 241, .4)) border-box;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .8),
    0 0 80px -24px rgba(56, 189, 248, .25);
}

.contact-card .eyebrow {
  justify-content: center;
}

.contact-card h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.contact-card > p {
  max-width: 46ch;
  margin: 0 auto 1em;
  font-size: 1.06rem;
  color: var(--muted);
}

.contact-cta {
  margin: 26px 0 0;
}

.contact-note {
  margin: 22px auto 0;
  font-size: .9rem;
  color: rgba(159, 171, 199, .85);
}


/* ==========================================================================
   19. FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 44px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 40px;
}

.site-footer .brand-name {
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-left: auto;
}

.footer-nav a {
  color: var(--muted);
  font-size: .95rem;
  transition: color .25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

.copyright {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.copyright-sub {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: rgba(159, 171, 199, .6);
}


/* ==========================================================================
   20. REVEAL / STAGGER SYSTEM
   JS adds .is-visible; .stagger parents delay children incrementally.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* incremental stagger for revealed children */
.stagger > .is-visible:nth-child(1) { transition-delay: 0ms; }
.stagger > .is-visible:nth-child(2) { transition-delay: 80ms; }
.stagger > .is-visible:nth-child(3) { transition-delay: 160ms; }
.stagger > .is-visible:nth-child(4) { transition-delay: 240ms; }
.stagger > .is-visible:nth-child(5) { transition-delay: 320ms; }
.stagger > .is-visible:nth-child(6) { transition-delay: 400ms; }
.stagger > .is-visible:nth-child(7) { transition-delay: 480ms; }
.stagger > .is-visible:nth-child(8) { transition-delay: 560ms; }

/* tilt cards: once revealed, the tilt transform takes over (snappier).
   Longhands on purpose — the shorthand would reset the stagger delay. */
.tilt.reveal.is-visible {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition-property: opacity, transform;
  transition-duration: .7s, .45s;
  transition-timing-function: var(--ease-out);
}

/* the stagger delay must never lag live pointer tilt */
.tilt.tilt-active {
  transition-delay: 0ms !important;
}


/* ==========================================================================
   21. BOOT OVERLAY  (injected once per session by JS)
   ========================================================================== */

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(56, 189, 248, .06), transparent 65%),
    var(--bg);
  transition:
    opacity .45s ease,
    transform .45s ease,
    visibility 0s linear .45s;
}

.boot-overlay.boot-done {
  opacity: 0;
  transform: scale(1.045);
  visibility: hidden;
  pointer-events: none;
}

.boot-term {
  position: relative;
  width: min(540px, 100%);
  min-height: 200px;
  padding: 30px 34px;
  border-radius: 14px;
  border: 1px solid transparent;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0a101f, #080d1a) padding-box,
    linear-gradient(160deg,
      rgba(56, 189, 248, .5),
      rgba(99, 102, 241, .3) 50%,
      rgba(148, 163, 184, .12)) border-box;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .85),
    0 0 60px -10px rgba(56, 189, 248, .22),
    inset 0 1px 0 rgba(238, 242, 251, .06);
}

/* subtle scanlines over the terminal */
.boot-term::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(255, 255, 255, .025) 0 1px,
    transparent 1px 3px);
}

.boot-line {
  margin: 0 0 .35em;
  font-family: var(--mono);
  font-size: .95rem;
  line-height: 1.8;
  letter-spacing: .05em;
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, .35);
  animation: boot-line-in .35s ease both;
}

.boot-line::before {
  content: "> ";
  color: rgba(125, 211, 252, .5);
}

/* blinking block cursor on the latest line */
.boot-line:last-child::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .35em;
  background: currentColor;
  vertical-align: -0.15em;
  box-shadow: 0 0 8px rgba(56, 189, 248, .5);
  animation: caret-blink 1s steps(1, end) infinite;
}


/* ==========================================================================
   22. ROCKET EASTER EGG  (injected by JS, removed by JS)
   ========================================================================== */

.rocket-launch {
  position: fixed;
  left: 50%;
  top: 100%;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, 16vh);
  animation: rocket-fly 2.2s cubic-bezier(.42, .05, .68, .45) forwards;
  will-change: transform;
}

.rocket-launch svg {
  display: block;
  width: 58px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, .65));
}

/* glowing exhaust trail */
.rocket-launch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 86%;
  width: 7px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .95),
    rgba(56, 189, 248, .85) 22%,
    rgba(99, 102, 241, .45) 60%,
    transparent);
  filter: blur(2px);
  animation: trail-flicker .14s linear infinite alternate;
}

/* wide soft glow around the exhaust */
.rocket-launch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 82%;
  width: 60px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(56, 189, 248, .35),
    rgba(99, 102, 241, .12) 60%,
    transparent);
  filter: blur(6px);
}


/* ==========================================================================
   23. FILM GRAIN  (pointer-events: none — never blocks clicks)
   ========================================================================== */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}


/* ==========================================================================
   24. KEYFRAMES
   ========================================================================== */

@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

@keyframes glow-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(2.5%, 2%, 0); }
}

@keyframes console-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes scan-sweep {
  0%   { transform: translateY(-110%); }
  100% { transform: translateY(420%); }
}

@keyframes track-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes node-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, .5); }
  70%  { box-shadow: 0 0 0 11px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes icon-hue {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(38deg); }
  100% { filter: hue-rotate(0deg); }
}

@keyframes boot-line-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes trail-flicker {
  from { opacity: .65; }
  to   { opacity: 1; }
}

@keyframes rocket-fly {
  0%   { transform: translate(-50%, 16vh) rotate(0deg); }
  15%  { transform: translate(calc(-50% - 8px), -12vh) rotate(-2.5deg); }
  35%  { transform: translate(calc(-50% + 9px), -38vh) rotate(2.5deg); }
  55%  { transform: translate(calc(-50% - 7px), -66vh) rotate(-2deg); }
  75%  { transform: translate(calc(-50% + 6px), -94vh) rotate(1.5deg); }
  100% { transform: translate(-50%, -135vh) rotate(0deg); }
}


/* ==========================================================================
   25. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding-bottom: 130px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .console-wrap {
    max-width: 480px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  /* mobile slide-down panel */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px 24px 22px;
    background: rgba(7, 10, 20, .92);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7);
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .3s ease,
      transform .3s var(--ease-out),
      visibility 0s linear .3s;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity .3s ease,
      transform .3s var(--ease-out),
      visibility 0s;
  }

  .nav > a:not(.btn) {
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav > a:not(.btn)::after {
    display: none;
  }

  .nav > .btn {
    margin-top: 14px;
    justify-content: center;
  }

  /* keep the header solid behind the open panel */
  .site-header:has(.nav.open) {
    background: rgba(7, 10, 20, .92);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
  }

  .params {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .params li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .timeline {
    --rail: 88px;
  }

  .phase {
    grid-template-columns: 68px 1fr;
    column-gap: 34px;
  }

  .phase-t {
    padding: 4px 9px;
    font-size: .76rem;
  }

  .phase > div {
    padding-left: 16px;
  }

  .footer-nav {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container), 100% - 40px);
  }

  .console {
    padding: 18px 16px 16px;
  }

  .console-grid {
    gap: 8px;
  }

  .ticker-track {
    font-size: 11px;
  }

  .contact-card {
    border-radius: 20px;
  }
}

@media (max-width: 360px) {
  .hero-sub {
    font-size: 1.02rem;
  }

  .lamp {
    padding: 4px 6px;
    letter-spacing: .08em;
  }

  .timeline {
    --rail: 74px;
  }

  .phase {
    grid-template-columns: 58px 1fr;
    column-gap: 30px;
  }
}


/* ==========================================================================
   26. REDUCED MOTION & NO-JS FALLBACKS
   ========================================================================== */

/* If scripting is unavailable, never hide content behind the reveal system */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero .reveal:not(.is-visible),
  .phase.reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }

  .tilt,
  .tilt.reveal.is-visible {
    transform: none !important;
  }

  /* stop marquee / ticker; let them be scrolled instead */
  .ticker,
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker-track,
  .marquee-track,
  .console-wrap.is-visible,
  .console-scan::after,
  .hero-glow,
  .grad,
  .blink-dot,
  .type-caret,
  .c-cursor,
  .boot-line:last-child::after,
  .phase::after,
  .card:hover .card-icon,
  .rocket-launch,
  .rocket-launch::before {
    animation: none !important;
  }

  .type-caret,
  .c-cursor,
  .blink-dot {
    opacity: 1;
  }

  /* skip the flight, keep the page usable */
  .rocket-launch {
    opacity: 0;
  }

  #progress-bar {
    box-shadow: none;
  }
}


/* ==========================================================================
   27. BRAND LOGO — multi-arrow liftoff reveal
   Ghost arrows launch from below and converge into the single static arrow.
   Plays once on load; ghosts rest at opacity 0 so the static state is clean.
   ========================================================================== */

.lg-anim .lg-badge,
.lg-anim .lg-ghost,
.lg-anim .lg-arrow {
  transform-box: fill-box;
  transform-origin: center;
}

.lg-anim .lg-badge { animation: lgPop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.lg-anim .lg-g1   { animation: lgG1 .6s .3s  cubic-bezier(.16, 1, .3, 1) both; }
.lg-anim .lg-g2   { animation: lgG2 .6s .44s cubic-bezier(.16, 1, .3, 1) both; }
.lg-anim .lg-g3   { animation: lgG3 .6s .58s cubic-bezier(.16, 1, .3, 1) both; }
.lg-anim .lg-arrow { animation: lgMain .4s .95s cubic-bezier(.34, 1.56, .64, 1) both; }

@keyframes lgPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@keyframes lgG1 {
  0%   { transform: translate(-9px, 26px) scale(.55); opacity: 0; }
  35%  { opacity: .65; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

@keyframes lgG2 {
  0%   { transform: translate(9px, 26px) scale(.55); opacity: 0; }
  35%  { opacity: .65; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

@keyframes lgG3 {
  0%   { transform: translate(0, 30px) scale(.6); opacity: 0; }
  35%  { opacity: .7; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

@keyframes lgMain {
  0%   { opacity: 0; transform: scale(.8); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lg-anim .lg-badge,
  .lg-anim .lg-ghost,
  .lg-anim .lg-arrow {
    animation-delay: 0ms !important;
  }
}
