/* =========================================================
   RETRO SPACE / SYNTHWAVE — design tokens
   ========================================================= */
:root {
  /* deep-space backgrounds */
  --bg-0: #050217;
  --bg-1: #0a0420;
  --bg-2: #120833;
  --surface: rgba(255, 46, 136, 0.06);
  --surface-strong: rgba(0, 240, 255, 0.08);
  --border: rgba(0, 240, 255, 0.16);
  --border-strong: rgba(255, 46, 136, 0.45);

  /* text */
  --text: #e7e5ff;
  --text-dim: #9aa0c4;
  --text-muted: #6a6f8e;

  /* neon accents */
  --cyan: #00f0ff;
  --magenta: #ff2e88;
  --amber: #ffb627;
  --violet: #a855f7;

  /* gradients */
  --gradient: linear-gradient(135deg, var(--cyan), var(--magenta));
  --gradient-3: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 50%, var(--magenta) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 46, 136, 0.12));

  /* glows */
  --glow-cyan: 0 0 18px rgba(0, 240, 255, 0.55), 0 0 60px rgba(0, 240, 255, 0.25);
  --glow-magenta: 0 0 18px rgba(255, 46, 136, 0.55), 0 0 60px rgba(255, 46, 136, 0.25);
  --glow-mix: 0 0 40px rgba(168, 85, 247, 0.4), 0 0 80px rgba(255, 46, 136, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 140px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font-display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'JetBrains Mono', monospace;
}

/* =========================================================
   Reset
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* page-wide deep-space gradient + faint scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 46, 136, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
  z-index: -3;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* =========================================================
   Global starfield (behind everything)
   ========================================================= */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}
.star--lg { width: 3px; height: 3px; box-shadow: 0 0 6px rgba(255, 255, 255, 0.85); }
.star--cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.star--magenta { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '>';
  color: var(--magenta);
  font-weight: 700;
}
.eyebrow .caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: -2px;
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { background: transparent; } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.section-lede {
  max-width: 64ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 60px;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 0;
  transition: backdrop-filter 0.3s, background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(5, 2, 23, 0.7);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
.nav__logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 800;
  box-shadow: var(--glow-cyan);
  position: relative;
  overflow: hidden;
}
.nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 240, 255, 0.18) 3px,
    rgba(0, 240, 255, 0.18) 4px
  );
  pointer-events: none;
}
.nav__clock {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: pulse 1.4s var(--ease-in-out) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.nav__links a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}
.nav__links a:hover {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}
.nav__cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
}
.nav__cta:hover {
  background: var(--magenta);
  color: var(--bg-0);
  box-shadow: var(--glow-magenta);
}

/* Hamburger toggle — hidden on desktop, only visible on phone/tablet */
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__clock { display: none; }
  .nav__cta   { display: none; } /* CTA lives inside the menu on mobile */

  /* Hamburger button */
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--cyan);
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.05);
    color: var(--cyan);
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    position: relative;
    z-index: 60; /* stays above the open panel */
  }
  .nav__toggle:hover,
  .nav__toggle:focus-visible {
    box-shadow: var(--glow-cyan);
    background: rgba(0, 240, 255, 0.12);
    outline: none;
  }
  .nav__toggle-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--cyan);
    border-radius: 1px;
    transform-origin: center;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
  }
  .nav__toggle.is-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav__toggle.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Mobile menu panel — slides down from the top of the viewport.
     Override the desktop pill row by re-declaring layout properties. */
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 84px 20px 28px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: rgba(5, 2, 23, 0.96);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transform: translateY(-100%);
    transition: transform 0.32s var(--ease-out);
    z-index: 55;
    pointer-events: none;
  }
  .nav__links.is-open {
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    letter-spacing: 0.12em;
    border-radius: 0;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.12);
  }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__links a:hover,
  .nav__links a:focus-visible {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.06);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    outline: none;
  }

  body.nav-open { overflow: hidden; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

/* wireframe Earth — Natural Earth 110m coastlines projected orthographically,
   with a lat/lng graticule + radar ping marking San Francisco */
.hero__planet {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-52%);
  width: clamp(280px, 36vw, 480px);
  height: auto;
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.3));
}
.hero__planet-sphere {
  fill: url(#earth-grad);
  stroke: none;
}
.hero__planet-sphere-outline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 0.6;
  opacity: 0.9;
}
.hero__planet-grid path {
  fill: none;
  stroke: rgba(0, 240, 255, 0.22);
  stroke-width: 0.22;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hero__planet-meridian-major {
  fill: none;
  stroke: rgba(0, 240, 255, 0.45);
  stroke-width: 0.35;
}
.hero__planet-land path {
  fill: rgba(0, 240, 255, 0.12);
  stroke: var(--cyan);
  stroke-width: 0.45;
  stroke-linejoin: round;
}

/* San Francisco ping */
.hero__ping-dot {
  fill: var(--magenta);
  filter: drop-shadow(0 0 4px #ff2e88);
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-dot 3.6s ease-in-out infinite;
}
.hero__ping-ring {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 0.7;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-ring 5.4s ease-out infinite;
}
.hero__ping-ring--2 { animation-delay: 1.8s; }
.hero__ping-ring--3 { animation-delay: 3.6s; }

.hero__ping-label {
  font-family: var(--font-mono);
  font-size: 4px;
  letter-spacing: 0.02em;
  fill: var(--magenta);
  text-transform: uppercase;
  opacity: 0.9;
}
.hero__ping-label-line {
  stroke: rgba(255, 46, 136, 0.55);
  stroke-width: 0.35;
  stroke-dasharray: 1 1.5;
}

@keyframes ping-dot {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.35); }
}
@keyframes ping-ring {
  0%   { transform: scale(0.3); opacity: 0;   stroke-width: 1.2; }
  10%  { opacity: 0.85; }
  100% { transform: scale(5.5); opacity: 0;   stroke-width: 0.25; }
}

@media (max-width: 980px) {
  .hero__planet {
    right: 50%;
    top: auto;
    bottom: 10%;
    transform: translateX(50%);
    width: min(72vw, 380px);
    opacity: 0.5;
  }
}

/* On phone view the hero title wraps to 3–4 lines, which pushes the centered
   .hero__inner downward until the Establish Contact button physically
   overlaps the absolutely-positioned "// Descend" indicator at the bottom.
   The Descend cue is also a desktop affordance — phone users already know to
   scroll. Hiding it cleans up the crowded lower band and we add a little
   bottom padding so the button keeps clearance from the wireframe Earth
   below. */
@media (max-width: 640px) {
  .hero { padding-bottom: 80px; }
  .hero__scroll { display: none; }
}

/* synthwave grid floor */
.hero__grid {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240vw;
  height: 50vh;
  z-index: 0;
  perspective: 600px;
  perspective-origin: 50% 0%;
  pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.hero__grid-inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(255, 46, 136, 0.4) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(0, 240, 255, 0.35) 1px, transparent 1px) 0 0 / 60px 100%;
  transform: rotateX(72deg);
  transform-origin: 50% 0%;
  animation: gridScroll 8s linear infinite;
}
@keyframes gridScroll {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 40px, 0 0; }
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  box-shadow: 0 0 10px var(--cyan);
}
.hero__particle:nth-child(3n) { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.hero__particle:nth-child(5n) { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

.hero__inner { position: relative; z-index: 2; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  backdrop-filter: blur(6px);
}
.hero__tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s var(--ease-in-out) infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1;
  margin: 22px 0 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__title .char-word { display: inline-block; white-space: nowrap; }
.hero__title .char { display: inline-block; opacity: 0; transform: translateY(110%) rotate(8deg); }
.hero__title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.45));
}
/* accent reveals as one unit (not split into chars) so its gradient stays
   continuous and the name remains visible between glitch pulses */
.hero__title .accent[data-glitch] { opacity: 0; transform: translateY(110%) rotate(8deg); }
/* RGB-split glitch layers on the accent name */
.hero__title .accent[data-glitch]::before,
.hero__title .accent[data-glitch]::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}
.hero__title .accent[data-glitch]::before {
  color: var(--magenta);
  -webkit-text-fill-color: var(--magenta);
  background: none;
}
.hero__title .accent[data-glitch]::after {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  background: none;
}
.hero__title .accent.is-glitching::before { opacity: 0.85; transform: translate(-3px, 0); }
.hero__title .accent.is-glitching::after  { opacity: 0.85; transform: translate(3px, 0); }

.hero__subtitle {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  /* Slightly brighter than --text-dim so the copy reads cleanly when the
     wireframe Earth slides behind it on phone view. The dark-halo text-shadow
     is a classic CRT readability trick — it stays on-theme (it actually
     reinforces the "transmission against deep space" feel) while guaranteeing
     contrast against the cyan continent lines and the SF ping pulse. */
  color: #c8cce6;
  text-shadow:
    0 0 14px rgba(5, 2, 23, 0.95),
    0 1px 3px rgba(5, 2, 23, 0.85);
  margin: 0 0 36px;
  opacity: 0;
}
.hero__subtitle .word { display: inline-block; opacity: 0; transform: translateY(12px); margin-right: 0.25em; }

/* generic word reveal: any data-words container hides its words by default
   so that the parent's IntersectionObserver reveal does not "flash" the text */
.js [data-words] .word { display: inline-block; opacity: 0; transform: translateY(12px); margin-right: 0.25em; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }

/* neon retro buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
  border: 1px solid transparent;
  position: relative;
}
.btn--primary {
  background: var(--gradient);
  /* Default background-origin is padding-box, so the gradient would stop just
     short of the 1px transparent .btn border. Anchor it to the border-box so
     the cyan→magenta sweep extends all the way to the visible edges. */
  background-origin: border-box;
  background-clip: border-box;
  color: var(--bg-0);
  box-shadow: var(--glow-cyan);
}
.btn--primary:hover { box-shadow: var(--glow-magenta), var(--glow-cyan); }
.btn--ghost {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
  box-shadow: var(--glow-cyan);
  border-color: var(--cyan);
}
.btn__arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  /* Center via auto margins instead of transform: translateX(-50%) — the
     transform technique gets clobbered by anime's entrance animation (which
     writes its own transform) and by the prefers-reduced-motion fallback. */
  left: 0;
  right: 0;
  bottom: 28px;
  margin-inline: auto;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  z-index: 2;
}
.hero__scroll-line {
  width: 1.5px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  transform: translateY(-100%);
  animation: scroll-line 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* =========================================================
   About
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; gap: 40px; } }

.about__text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.about__text p .word { display: inline-block; margin-right: 0.25em; }
.about__text strong { color: var(--cyan); font-weight: 600; text-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }

.about__card {
  position: relative;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 46, 136, 0.35));
  overflow: hidden;
}
.about__card-inner {
  padding: 26px;
  border-radius: calc(var(--radius-lg) - 4px);
  background: rgba(5, 2, 23, 0.85);
  position: relative;
}
.about__card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.025) 3px,
    rgba(255, 255, 255, 0.025) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}
.about__card-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.18);
}
.about__card-row:last-child { border-bottom: 0; }
.about__card-label {
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about__card-value { font-family: var(--font-mono); font-weight: 700; color: var(--text); font-size: 14px; }

/* =========================================================
   Experience timeline
   ========================================================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
/* vertical guide rail down the left side of the timeline */
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(0, 240, 255, 0.55) 0%,
    rgba(168, 85, 247, 0.25) 60%,
    rgba(0, 240, 255, 0) 100%
  );
}
.timeline__item {
  position: relative;
  padding: 4px 0 4px 36px;
}
.timeline__marker {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.55), inset 0 0 6px rgba(0, 240, 255, 0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
.timeline__item:hover .timeline__marker {
  border-color: var(--magenta);
  box-shadow: 0 0 14px rgba(255, 46, 136, 0.6), inset 0 0 6px rgba(255, 46, 136, 0.4);
  transform: scale(1.15);
}
.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.18);
}
.timeline__role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.timeline__company {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.timeline__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.timeline__dates { color: var(--magenta); }
.timeline__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline__bullets > li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.timeline__bullets > li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--magenta);
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .timeline__company { font-size: 17px; }
  .timeline__bullets > li { font-size: 14px; }
}

/* =========================================================
   Skills
   ========================================================= */
.skills__groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}
.skills__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skills__group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
  margin: 0;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.skill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 240, 255, 0.05) 3px,
    rgba(0, 240, 255, 0.05) 4px
  );
  pointer-events: none;
}
.skill:hover {
  transform: translateY(-4px) scale(1);
  border-color: var(--magenta);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.skill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* =========================================================
   Projects
   ========================================================= */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  min-height: 320px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  opacity: 0;
}
.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 240, 255, 0.04) 3px,
    rgba(0, 240, 255, 0.04) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}
.project:hover {
  border-color: var(--magenta);
  box-shadow: var(--glow-magenta);
}
.project__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project:hover .project__glow { opacity: 1; }
.project__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--magenta);
  letter-spacing: 0.18em;
  position: relative;
}
.project__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 12px 0 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
.project__desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 22px;
  flex: 1;
  position: relative;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  position: relative;
}
.project__tag {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
}
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--magenta);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.project__link svg { transition: transform 0.25s var(--ease-out); }
.project:hover .project__link { color: var(--cyan); }
.project:hover .project__link svg { transform: translate(3px, -3px); }

/* --- Projects empty state: in-theme placeholder when there are
       no personal projects to list yet. Swap the .projects__empty
       block for a .projects__grid of .project cards when you have
       work to show. ----------------------------------------- */
.projects__empty {
  position: relative;
  text-align: center;
  max-width: 580px;
  margin: 36px auto 0;
  padding: 56px 36px 44px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
  overflow: hidden;
}
.projects__empty::before {
  /* subtle scanline overlay to match the rest of the retro UI */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 240, 255, 0.04) 3px,
    rgba(0, 240, 255, 0.04) 4px
  );
  pointer-events: none;
}
.projects__empty > * { position: relative; }
.projects__empty-radar {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}
.projects__empty-dot {
  fill: var(--cyan);
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-dot 3.6s ease-in-out infinite;
}
.projects__empty-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-ring 5.4s ease-out infinite;
}
.projects__empty-ring--2 { animation-delay: 1.8s; }
.projects__empty-ring--3 { animation-delay: 3.6s; }
.projects__empty-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  opacity: 0.9;
  margin-bottom: 14px;
}
.projects__empty-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.projects__empty-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.projects__empty-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 44ch;
  margin: 0 auto 24px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact { text-align: center; }
.contact__eyebrow { justify-content: center; }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.contact__title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 46, 136, 0.5));
}
.contact__lede {
  max-width: 50ch;
  margin: 0 auto 36px;
  color: var(--text-dim);
}
.contact__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;       /* explicit centering of icon + text */
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  box-shadow: var(--glow-cyan);
  max-width: 100%;               /* never overflow the contact column */
}
.contact__email svg {
  /* Lock in icon size — without flex-shrink: 0, the flex algorithm squeezes
     this SVG on narrow phones to make room for the long email text, which is
     what was making the envelope icon look tiny. */
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.contact__email:hover { border-color: var(--magenta); background: rgba(255, 46, 136, 0.06); color: var(--magenta); transform: translateY(-2px); box-shadow: var(--glow-magenta); }
.contact__email .copy-state {
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
.contact__email.is-copied .copy-state { opacity: 1; }
.contact__email.is-copied .copy-label { display: none; }

/* On narrow phones, tighten the button so the email + icon fit comfortably
   without forcing either to shrink. The icon stays a full 20px. */
@media (max-width: 520px) {
  .contact__email {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    gap: 10px;
  }
}

.contact__socials {
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
}
.contact__social {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.contact__social:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer a { color: var(--cyan); }
.footer a:hover { color: var(--magenta); }

/* =========================================================
   Reveal helper used by IntersectionObserver
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: none; }

/* =========================================================
   Error page — TRANSMISSION LOST
   ========================================================= */
.error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.error__inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 720px; }
.error__signal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--magenta);
  text-transform: uppercase;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--magenta);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: var(--glow-magenta);
}
.error__signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: pulse 1.2s var(--ease-in-out) infinite;
}
.error__code {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(7rem, 24vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5));
}
.error__code::before,
.error__code::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
}
.error__code::before { color: var(--magenta); -webkit-text-fill-color: var(--magenta); background: none; transform: translate(-3px, 0); }
.error__code::after  { color: var(--cyan);    -webkit-text-fill-color: var(--cyan);    background: none; transform: translate(3px, 0); }

.error__title {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 18px 0 14px;
  min-height: 1.4em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.error__title .caret {
  display: inline-block;
  width: 0.55ch;
  height: 0.9em;
  background: var(--cyan);
  vertical-align: -2px;
  margin-left: 4px;
  animation: caret-blink 0.9s steps(1) infinite;
}
.error__lede {
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 52ch;
  margin-inline: auto;
}
.error__meta {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 18px;
}
.error__meta b { color: var(--cyan); font-weight: 600; margin-left: 6px; }

/* =========================================================
   Mission detail page
   ========================================================= */
.mission { padding-top: 120px; position: relative; }

.mission__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), background 0.2s;
}
.mission__back:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  transform: translateX(-3px);
  box-shadow: var(--glow-cyan);
}
.mission__back svg { transition: transform 0.2s var(--ease-out); }
.mission__back:hover svg { transform: translateX(-3px); }

.mission__header {
  padding-bottom: clamp(40px, 6vw, 70px);
  border-bottom: 1px dashed var(--border);
}
.mission__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
}
.mission__title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.45));
}
.mission__lede {
  max-width: 70ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  margin: 0 0 36px;
}

.mission__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 46, 136, 0.3));
}
.mission__meta-cell {
  padding: 14px 18px;
  background: rgba(5, 2, 23, 0.9);
  border-radius: calc(var(--radius-md) - 4px);
  position: relative;
  overflow: hidden;
}
.mission__meta-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.03) 3px, rgba(255, 255, 255, 0.03) 4px);
  pointer-events: none;
}
.mission__meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 6px;
}
.mission__meta-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.mission__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mission__section { padding-block: clamp(48px, 8vw, 80px); }
.mission__section + .mission__section { border-top: 1px dashed var(--border); }
.mission__section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  font-weight: 800;
}
.mission__section h2 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mission__prose {
  max-width: 70ch;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.mission__prose p { margin: 0 0 18px; }
.mission__prose strong { color: var(--cyan); font-weight: 600; }
.mission__prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--cyan);
}

/* outcome metrics row */
.mission__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.metric {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0, 240, 255, 0.04) 3px, rgba(0, 240, 255, 0.04) 4px);
  pointer-events: none;
}
.metric__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.metric__unit {
  font-family: var(--font-mono);
  font-size: 0.6em;
  margin-left: 4px;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
}
.metric__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
}

/* stack chip grid (reuse skill look) */
.mission__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mission__stack li {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mission__stack li:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(255, 46, 136, 0.05);
  box-shadow: var(--glow-magenta);
}
.mission__stack li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ascii / mono architecture block */
.mission__diagram {
  margin: 0;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  overflow-x: auto;
  position: relative;
  white-space: pre;
}
.mission__diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0, 240, 255, 0.04) 3px, rgba(0, 240, 255, 0.04) 4px);
  pointer-events: none;
  border-radius: inherit;
}
.mission__diagram .c { color: var(--cyan); }
.mission__diagram .m { color: var(--magenta); }
.mission__diagram .a { color: var(--amber); }

/* timeline / log list */
.mission__log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px dashed var(--border);
}
.mission__log li {
  position: relative;
  padding: 0 0 24px 28px;
}
.mission__log li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.mission__log li:nth-child(2)::before { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.mission__log li:nth-child(3)::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.mission__log li:nth-child(4)::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.mission__log-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 6px;
}
.mission__log-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mission__log-desc { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* next mission footer */
.mission__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 70px);
}
@media (max-width: 640px) { .mission__nav { grid-template-columns: 1fr; } }
.mission__nav a {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  display: block;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.mission__nav a:hover {
  border-color: var(--magenta);
  background: rgba(255, 46, 136, 0.04);
  transform: translateY(-3px);
  box-shadow: var(--glow-magenta);
}
.mission__nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 6px;
}
.mission__nav-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mission__nav a.is-right { text-align: right; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__title .char,
  .hero__title .accent[data-glitch],
  .hero__title .accent[data-glitch]::before,
  .hero__title .accent[data-glitch]::after,
  .hero__tag,
  .hero__subtitle,
  .hero__subtitle .word,
  [data-words] .word,
  .hero__actions,
  .hero__scroll,
  .skill,
  .project,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__grid-inner { animation: none !important; }
}
