/* ============================================================
   NEONFRAME — Immersive Digital Experience Agency
   Cyberpunk HUD interface. Mobile-first. No photography.
   Breakpoints: 768px, 1100px
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* palette */
  --void: #050608;
  --cyan: #00E5FF;
  --magenta: #FF2E88;
  --panel: #0E1418;
  --text: #D8E0E4;

  /* derived surfaces */
  --surface: #080B0E;
  --surface-2: #0A1014;

  /* derived ink + lines */
  --text-dim: rgba(216, 224, 228, 0.62);
  --text-faint: rgba(216, 224, 228, 0.60);
  --line: rgba(0, 229, 255, 0.22);
  --line-soft: rgba(216, 224, 228, 0.12);
  --cyan-08: rgba(0, 229, 255, 0.08);
  --cyan-15: rgba(0, 229, 255, 0.15);
  --cyan-35: rgba(0, 229, 255, 0.35);
  --magenta-35: rgba(255, 46, 136, 0.35);
  /* the spec glow — 0 0 24px — lives here and nowhere else */
  --shadow-cyan: 0 0 24px rgba(0, 229, 255, 0.35);
  --shadow-cyan-soft: 0 0 24px rgba(0, 229, 255, 0.12);
  --shadow-magenta: 0 0 24px rgba(255, 46, 136, 0.3);
  /* filter twins of the glow — used where a clip-path chamfer would crop a box-shadow */
  --glow-cyan: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
  --glow-cyan-soft: drop-shadow(0 0 12px rgba(0, 229, 255, 0.2));
  --glow-magenta: drop-shadow(0 0 12px rgba(255, 46, 136, 0.4));
  --scan: rgba(0, 229, 255, 0.05);

  /* type */
  --font-display: 'Unbounded', 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  /* brand font first; monospace fallback only for box-drawing glyphs Chakra Petch lacks */
  --font-ascii: 'Chakra Petch', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* metrics */
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec-pad: clamp(4rem, 9vw, 7.5rem);
  --angle: clamp(28px, 5vw, 72px);
  --header-h: 68px;
  --radius: 2px;
  /* HUD chamfer — one cut corner pair, reused by tiles, cards and buttons */
  --cut: 18px;
  --chamfer: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  --notch: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

/* ---------- 2. RESET + BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover { color: var(--magenta); text-shadow: 0 0 12px var(--magenta-35); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection { background: var(--magenta); color: var(--void); }

/* ---------- 3. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 950;
  width: auto; height: auto;
  margin: 0;
  padding: 0.7rem 1.1rem;
  clip: auto;
  clip-path: none;
  background: var(--cyan);
  color: var(--void);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: var(--shadow-cyan);
}

/* section label = HUD chip: notched corner, hairline frame, live dot */
.hud-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.15rem;
  padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border: 1px solid currentColor;
  background: rgba(0, 229, 255, 0.07);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.12);
  text-shadow: 0 0 12px currentColor;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.hud-label::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: dotpulse 1.6s ease-in-out infinite;
}

.mono-dim {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.accent-cyan { color: var(--cyan); }
.accent-magenta { color: var(--magenta); }

/* scroll reveal — only active once JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 4. SCANLINE OVERLAY ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  /* dark CRT line + faint cyan phosphor line on a 3px pitch */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.24) 0 1px,
    var(--scan) 1px 2px,
    transparent 2px 3px
  );
  animation: scandrift 9s linear infinite;
}

/* slow CRT refresh bar sweeping the viewport */
body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 34vh;
  z-index: 899;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 229, 255, 0.025) 46%,
    rgba(216, 224, 228, 0.032) 52%,
    rgba(0, 229, 255, 0.018) 58%,
    transparent 100%
  );
  animation: crtsweep 8s linear infinite;
}

@keyframes crtsweep {
  from { transform: translateY(-120%); }
  to   { transform: translateY(320%); }
}

/* CRT vignette is scoped to the hero (see .hero::after) so scrolling body copy
   is never overlaid and contrast stays constant down the page. */

@keyframes scandrift {
  from { background-position: 0 0; }
  to   { background-position: 0 300px; }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  /* HUD corner notch; the glow moves to filter so the clip cannot crop it */
  clip-path: var(--notch);
  transition: background-color 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, filter 0.22s ease, transform 0.12s ease;
}
/* the notch would crop the focus ring, so square up while focused */
.btn:focus-visible { clip-path: none; }

.btn-primary {
  background: var(--cyan);
  color: var(--void);
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.45));
  animation: neonpulse 3.2s ease-in-out infinite;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--void);
  filter: drop-shadow(0 0 18px rgba(255, 46, 136, 0.7));
  text-shadow: none;
  animation: none;
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0));
  text-shadow: 0 0 10px var(--cyan-35);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--void);
  background: var(--cyan);
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.55));
  text-shadow: none;
}

@keyframes neonpulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.35)); }
  50%      { filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.75)); }
}

/* ---------- 6. GLITCH TEXT ---------- */
/* NOTE: no `color` here — .accent-cyan / .accent-magenta must win on the headline */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  /* the duplicated word is for the eye only, but AccName folds ::before/::after
     content into the name — without the empty alt the h1 and every section
     heading announce their word three times, and six landmarks inherit it via
     aria-labelledby. The plain declaration stays first on purpose: a browser
     without alt-text support drops the second and renders exactly as before. */
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
}
.glitch::before {
  color: var(--cyan);
  text-shadow: -2px 0 var(--cyan), 0 0 18px rgba(0, 229, 255, 0.85);
  transform: translate(-3px, 0);
}
.glitch::after {
  color: var(--magenta);
  text-shadow: 2px 0 var(--magenta), 0 0 18px rgba(255, 46, 136, 0.85);
  transform: translate(3px, 0);
}

.glitch:hover::before,
.glitch:focus-visible::before {
  opacity: 1;
  animation: glitch-a 0.55s steps(2, end) infinite;
}
.glitch:hover::after,
.glitch:focus-visible::after {
  opacity: 1;
  animation: glitch-b 0.55s steps(2, end) infinite reverse;
}
/* the base word also splits its channels on hover, so the effect reads instantly */
.glitch:hover { animation: glitch-shift 0.55s steps(2, end) infinite; }
@keyframes glitch-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 0); }
}

/* auto-glitching headline: fires in short bursts */
.glitch-auto::before { animation: glitch-a 5.5s steps(2, end) infinite; opacity: 0.9; }
.glitch-auto::after  { animation: glitch-b 5.5s steps(2, end) infinite; opacity: 0.9; }

@keyframes glitch-a {
  0%, 74%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  76%  { clip-path: inset(6% 0 78% 0); transform: translate(-4px, -1px); }
  80%  { clip-path: inset(42% 0 40% 0); transform: translate(4px, 1px); }
  84%  { clip-path: inset(14% 0 66% 0); transform: translate(-3px, 2px); }
  88%  { clip-path: inset(70% 0 10% 0); transform: translate(3px, -2px); }
  92%  { clip-path: inset(30% 0 55% 0); transform: translate(-2px, 0); }
}
@keyframes glitch-b {
  0%, 74%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  77%  { clip-path: inset(58% 0 22% 0); transform: translate(4px, 1px); }
  81%  { clip-path: inset(20% 0 62% 0); transform: translate(-4px, -1px); }
  85%  { clip-path: inset(76% 0 6% 0); transform: translate(2px, 2px); }
  89%  { clip-path: inset(36% 0 48% 0); transform: translate(-3px, -2px); }
  93%  { clip-path: inset(8% 0 80% 0); transform: translate(3px, 0); }
}

/* ---------- 7. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(5, 6, 8, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 6, 8, 0.95);
  border-bottom-color: var(--cyan-35);
  box-shadow: var(--shadow-cyan-soft);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--text); text-shadow: none; }
.logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.55));
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}
.logo-text em {
  font-style: normal;
  color: var(--cyan);
}
.logo:hover .logo-text em { color: var(--magenta); }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan-15); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.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; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.32s ease, visibility 0.32s ease;
}
.primary-nav.is-open {
  max-height: 480px;
  visibility: visible;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
}
.nav-links li { border-bottom: 1px solid var(--line-soft); }
.nav-links li:last-child { border-bottom: 0; }
.nav-links a {
  display: block;
  padding: 0.95rem 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan-35); }

.nav-index {
  color: var(--magenta);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-right: 0.5rem;
}

/* CTA lives inside .nav-links, so it must out-specify `.nav-links a` */
.nav-links .nav-cta {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.8rem 1.2rem;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--void);
  background: var(--cyan);
  text-shadow: none;
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(4rem, 12vw, 8rem);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 46, 136, 0.12), transparent 70%),
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(0, 229, 255, 0.1), transparent 70%),
    var(--void);
}

/* CRT vignette — sits above the grid floor, below .hero-content (z-index 1) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 62%, rgba(5, 6, 8, 0.55) 100%);
}

.hero-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  overflow: hidden;
  /* eye level sits on the top edge of the floor box — that edge is the horizon */
  perspective: 420px;
  perspective-origin: 50% 0%;
  pointer-events: none;
  z-index: 0;
}
.grid-floor {
  position: absolute;
  left: -50%;
  bottom: 0;
  width: 200%;
  /* beats the `svg { max-width: 100% }` reset — the floor must overhang the viewport */
  max-width: none;
  /* fixed height keeps the vertical user-unit scale at 1:1 with the viewBox,
     so the receding line spacing is identical at every viewport */
  height: 1800px;
  opacity: 0.8;
  transform: rotateX(72deg);
  transform-origin: 50% 100%;
  /* near field eased back so the copy stays clean, fog fade up at the horizon */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0, #000 34%, #000 80%, rgba(0, 0, 0, 0.85) 93%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0, #000 34%, #000 80%, rgba(0, 0, 0, 0.85) 93%, transparent 100%);
}
.grid-scroll { animation: gridflow 2.8s linear infinite; }
@keyframes gridflow {
  from { transform: translateY(0); }
  to   { transform: translateY(120px); }
}

.horizon-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 260px;
  background:
    radial-gradient(ellipse 46% 90% at 50% 100%, rgba(255, 46, 136, 0.42), transparent 70%),
    radial-gradient(ellipse 96% 100% at 50% 100%, rgba(0, 229, 255, 0.22), transparent 76%);
  filter: blur(6px);
}

/* the vanishing line itself */
.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.35) 14%,
    var(--cyan) 44%,
    var(--cyan) 56%,
    rgba(0, 229, 255, 0.35) 86%,
    transparent 100%
  );
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.55), 0 0 60px rgba(0, 229, 255, 0.25);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-kicker {
  color: var(--magenta);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  background: rgba(255, 46, 136, 0.09);
  box-shadow: inset 0 0 18px rgba(255, 46, 136, 0.14);
}

.hero-title {
  position: relative;
  font-size: clamp(2.6rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  /* chromatic-aberration edges + neon bloom, on a fill that stays legible */
  text-shadow:
    -2px 0 rgba(0, 229, 255, 0.45),
    2px 0 rgba(255, 46, 136, 0.45),
    0 0 6px rgba(216, 224, 228, 0.35),
    0 0 34px rgba(0, 229, 255, 0.35),
    0 0 80px rgba(0, 229, 255, 0.18);
}
.hero-title .accent-cyan {
  color: var(--cyan);
  text-shadow:
    -2px 0 rgba(216, 224, 228, 0.35),
    2px 0 rgba(255, 46, 136, 0.5),
    0 0 8px rgba(0, 229, 255, 0.9),
    0 0 30px rgba(0, 229, 255, 0.55),
    0 0 80px rgba(0, 229, 255, 0.3);
}
.hero-title .accent-magenta {
  color: var(--magenta);
  text-shadow:
    -2px 0 rgba(0, 229, 255, 0.5),
    2px 0 rgba(216, 224, 228, 0.3),
    0 0 8px rgba(255, 46, 136, 0.9),
    0 0 30px rgba(255, 46, 136, 0.55),
    0 0 80px rgba(255, 46, 136, 0.3);
}

/* scanning highlight that travels down the headline */
.hero-title::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 16%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 229, 255, 0.08) 38%,
    rgba(216, 224, 228, 0.16) 50%,
    rgba(255, 46, 136, 0.07) 62%,
    transparent 100%
  );
  animation: titlescan 5.6s cubic-bezier(0.4, 0, 0.5, 1) infinite;
}
@keyframes titlescan {
  0%        { transform: translateY(-60%); opacity: 0; }
  8%        { opacity: 1; }
  70%       { opacity: 1; }
  80%, 100% { transform: translateY(760%); opacity: 0; }
}

.hero-subline {
  font-size: clamp(0.95rem, 2.3vw, 1.2rem);
  color: rgba(216, 224, 228, 0.86);
  max-width: 46ch;
  margin-bottom: 2rem;
  border-left: 2px solid var(--cyan);
  box-shadow: -2px 0 18px -4px rgba(0, 229, 255, 0.65);
  padding-left: 1rem;
  /* the hidden ghost copy reserves the exact wrapped height at every viewport,
     the live layer is stacked on top of it so nothing shifts while typing */
  display: grid;
}
.typed-ghost,
.typed-live { grid-area: 1 / 1; }
.typed-ghost { visibility: hidden; } /* carries the cursor too, so wrapping matches exactly */
.typed-ghost .type-cursor { animation: none; }
.typed { display: inline; }
.type-cursor {
  display: inline-block;
  color: var(--cyan);
  margin-left: 2px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.9);
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 760px;
}
.hud-stat {
  background: rgba(10, 16, 20, 0.75);
  padding: 0.9rem 1rem;
}
.hud-stat dt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.hud-stat dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: dotpulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

/* ---------- 8b. HERO HUD PANEL (desktop) ---------- */
.hero-hud {
  display: none; /* enabled at 1100px, where the headline column frees the right side */
  position: relative;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.05), rgba(5, 6, 8, 0.55)),
    rgba(10, 16, 20, 0.55);
  box-shadow: var(--shadow-cyan-soft);
}

.hud-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.hud-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-35);
}
.hud-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--magenta);
}
.hud-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: dotpulse 1.6s ease-in-out infinite;
}

.hud-scope { position: relative; }
.hud-scope svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
}
.scope-ring-a {
  transform-box: view-box;
  transform-origin: 150px 150px;
  animation: scopespin 26s linear infinite;
}
.scope-ring-b {
  transform-box: view-box;
  transform-origin: 150px 150px;
  animation: scopespin 44s linear infinite reverse;
}
.scope-sweep {
  transform-box: view-box;
  transform-origin: 150px 150px;
  animation: scopespin 4.6s linear infinite;
}
@keyframes scopespin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.scope-lon-1 { animation: lonspin 9s linear infinite; }
.scope-lon-2 { animation: lonspin 9s linear infinite -3s; }
.scope-lon-3 { animation: lonspin 9s linear infinite -6s; }
@keyframes lonspin {
  0%   { rx: 78px; }
  50%  { rx: 2px; }
  100% { rx: 78px; }
}

.scope-lock {
  transform-box: view-box;
  animation: scopelock 6.6s steps(1, end) infinite;
}
@keyframes scopelock {
  0%,   32%  { transform: translate(46px, -42px); }
  34%,  65%  { transform: translate(-38px, 44px); }
  67%, 100%  { transform: translate(54px, 40px); }
}

.hud-readout {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}
.hud-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding-top: 0.5rem;
}
.hud-row dt {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.hud-row dd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hud-bar {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(0, 229, 255, 0.09);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hud-bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.35), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  animation: barjitter 3.4s steps(4, end) infinite;
}
.hud-row:nth-child(2) .hud-bar-fill { animation-duration: 2.6s; animation-delay: -0.8s; }
.hud-row:nth-child(3) .hud-bar-fill {
  animation-duration: 4.2s;
  animation-delay: -1.6s;
  background: linear-gradient(90deg, rgba(255, 46, 136, 0.3), var(--magenta));
  box-shadow: 0 0 10px rgba(255, 46, 136, 0.55);
}
@keyframes barjitter {
  0%   { width: var(--w, 60%); }
  25%  { width: calc(var(--w, 60%) - 7%); }
  50%  { width: calc(var(--w, 60%) + 4%); }
  75%  { width: calc(var(--w, 60%) - 3%); }
  100% { width: var(--w, 60%); }
}
.hud-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--cyan);
  min-width: 4.6ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hud-row:nth-child(3) .hud-val { color: var(--magenta); }

.hud-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}
.hud-eq span {
  flex: 1;
  min-width: 0;
  height: 30%;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 255, 0.25));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  transform-origin: 50% 100%;
  animation: eqbar 1.1s ease-in-out infinite alternate;
}
.hud-eq span:nth-child(3n) {
  background: linear-gradient(180deg, var(--magenta), rgba(255, 46, 136, 0.25));
  box-shadow: 0 0 8px rgba(255, 46, 136, 0.4);
}
.hud-eq span:nth-child(1)  { animation-delay: -0.05s; }
.hud-eq span:nth-child(2)  { animation-delay: -0.35s; }
.hud-eq span:nth-child(3)  { animation-delay: -0.62s; }
.hud-eq span:nth-child(4)  { animation-delay: -0.18s; }
.hud-eq span:nth-child(5)  { animation-delay: -0.88s; }
.hud-eq span:nth-child(6)  { animation-delay: -0.44s; }
.hud-eq span:nth-child(7)  { animation-delay: -0.72s; }
.hud-eq span:nth-child(8)  { animation-delay: -0.26s; }
.hud-eq span:nth-child(9)  { animation-delay: -0.95s; }
.hud-eq span:nth-child(10) { animation-delay: -0.52s; }
.hud-eq span:nth-child(11) { animation-delay: -0.12s; }
.hud-eq span:nth-child(12) { animation-delay: -0.78s; }
@keyframes eqbar {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(3.1); }
}

/* ---------- 9. MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.06), rgba(255, 46, 136, 0.06));
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 0 1.1rem;
  white-space: nowrap;
}
.marquee-sep {
  color: var(--magenta);
  font-size: 0.6rem;
  text-shadow: 0 0 10px var(--magenta);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 10. SECTION SHELL + ANGLED EDGES ---------- */
.section {
  position: relative;
  padding: var(--sec-pad) 0;
}

.angle-top {
  clip-path: polygon(0 var(--angle), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--sec-pad) + var(--angle));
}
.angle-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  clip-path: polygon(0 var(--angle), 100% 0, 100% 2px, 0 calc(var(--angle) + 2px));
  opacity: 0.85;
}

.angle-both {
  clip-path: polygon(0 var(--angle), 100% 0, 100% calc(100% - var(--angle)), 0 100%);
  padding-top: calc(var(--sec-pad) + var(--angle));
  padding-bottom: calc(var(--sec-pad) + var(--angle));
}
.angle-both::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  clip-path: polygon(0 var(--angle), 100% 0, 100% 2px, 0 calc(var(--angle) + 2px));
  opacity: 0.85;
}
.angle-both::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  clip-path: polygon(0 100%, 100% calc(100% - var(--angle)), 100% calc(100% - var(--angle) - 2px), 0 calc(100% - 2px));
  opacity: 0.85;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-title {
  font-size: clamp(1.9rem, 6.5vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  text-shadow:
    -1px 0 rgba(0, 229, 255, 0.28),
    1px 0 rgba(255, 46, 136, 0.28),
    0 0 30px rgba(0, 229, 255, 0.16);
}
/* the glitch word carries the neon accent in every section heading */
.section-title .glitch {
  color: var(--cyan);
  text-shadow:
    -1px 0 rgba(216, 224, 228, 0.3),
    1px 0 rgba(255, 46, 136, 0.4),
    0 0 10px rgba(0, 229, 255, 0.75),
    0 0 34px rgba(0, 229, 255, 0.4);
}
.section-lede {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin: 0;
}

/* corner brackets — shared */
.tile::before, .tile::after,
.console-card::before, .console-card::after,
.contact-form::before, .contact-form::after,
.terminal::before, .terminal::after,
.hero-hud::before, .hero-hud::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--magenta);
  z-index: 3;
  pointer-events: none;
  transition: border-color 0.25s ease;
}
.tile::before,
.console-card::before,
.contact-form::before,
.terminal::before,
.hero-hud::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}
.tile::after,
.console-card::after,
.contact-form::after,
.terminal::after,
.hero-hud::after {
  bottom: 0; right: 0;
  border-left: 0; border-top: 0;
}

/* the other diagonal — an explicit decorative span so any panel can carry 4 corners */
.hud-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--magenta);
  transition: border-color 0.25s ease;
}
.hud-frame::before {
  top: 0; right: 0;
  border-left: 0; border-bottom: 0;
}
.hud-frame::after {
  bottom: 0; left: 0;
  border-right: 0; border-top: 0;
}
.terminal:hover .hud-frame::before,
.terminal:hover .hud-frame::after,
.console-card:hover .hud-frame::before,
.console-card:hover .hud-frame::after,
.contact-form:focus-within .hud-frame::before,
.contact-form:focus-within .hud-frame::after { border-color: var(--cyan); }

/* ---------- 11. [01 // WORK] ---------- */
.section-work {
  background: linear-gradient(180deg, var(--surface), var(--void) 70%);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  /* chamfered HUD corners; glow via filter so the clip-path cannot crop it */
  clip-path: var(--chamfer);
  filter: var(--glow-cyan-soft); /* resting neon glow — present on touch too */
  transition: border-color 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}
.tile:hover,
.tile:focus-within {
  border-color: var(--cyan);
  filter: var(--glow-cyan);
  transform: translateY(-4px);
}
.tile:hover::before,
.tile:hover::after,
.tile:focus-within::before,
.tile:focus-within::after { border-color: var(--cyan); }

.tile-art {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.tile-art svg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover .tile-art svg { transform: scale(1.04); }

/* CRT texture over the generated artwork */
.tile-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0 1px,
    rgba(0, 229, 255, 0.045) 1px 2px,
    transparent 2px 4px
  );
}
/* scan sweep on hover */
.tile-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 229, 255, 0.22) 55%,
    rgba(0, 229, 255, 0.5) 72%,
    transparent
  );
  transform: translateY(-120%);
}
.tile:hover .tile-art::after,
.tile:focus-within .tile-art::after {
  opacity: 1;
  animation: tilescan 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) infinite;
}
@keyframes tilescan {
  from { transform: translateY(-120%); }
  to   { transform: translateY(330%); }
}

.tile-meta { padding: 1.4rem clamp(1.1rem, 3vw, 1.6rem) 1.6rem; }

.tile-name {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.tile:hover .tile-name,
.tile:focus-within .tile-name { color: var(--cyan); }

/* the tile name is the tile's link; ::after stretches the hit area over the card */
.tile-link { color: inherit; }
.tile-link:hover,
.tile-link:focus-visible { color: inherit; text-shadow: none; }
.tile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.tile-desc {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tile-tags li {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: var(--cyan-08);
  padding: 0.28rem 0.6rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

/* ---------- 12. [02 // SERVICES] TERMINAL ---------- */
.section-services { background: var(--panel); }

.terminal {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cyan-soft);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.05);
}
.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.dot-magenta { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-dim { background: var(--text-faint); }
.term-title {
  margin-left: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  padding: 0.5rem 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 229, 255, 0.028) 0 1px,
    transparent 1px 4px
  );
}

.service-line {
  padding: 1.25rem clamp(1rem, 3vw, 1.8rem);
  border-bottom: 1px dashed var(--line-soft);
  transition: background-color 0.25s ease;
}
.service-line:last-child { border-bottom: 0; }
.service-line:hover { background: rgba(0, 229, 255, 0.045); }

.service-cmd {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.prompt {
  color: var(--magenta);
  font-weight: 700;
  text-shadow: 0 0 10px var(--magenta-35);
}
.service-cmd code {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
  word-break: break-word;
}
.service-line:hover .service-cmd code { text-shadow: 0 0 14px var(--cyan-35); }

.service-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 68ch;
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}
.service-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--magenta);
  margin: 0;
  padding-left: 1.1rem;
}

/* ---------- 13. [03 // PROCESS] HUD TIMELINE ---------- */
.section-process { background: var(--void); }

.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  opacity: 0.55;
}

.step {
  position: relative;
  padding-left: 66px;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.step:last-child { padding-bottom: 0; }

.step-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  transform: rotate(45deg);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--cyan);
  transform: rotate(-45deg);
}
.step:hover .step-node {
  border-color: var(--magenta);
  box-shadow: 0 0 22px var(--magenta-35);
}
.step:hover .step-num { color: var(--magenta); }

.step-body {
  border-left: 1px solid var(--line);
  padding: 0.15rem 0 0.6rem 1.1rem;
}
.step-title {
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.step-phase {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.6rem;
}
.step-body p:last-child {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin: 0;
  max-width: 60ch;
}

/* ---------- 14. STATS BAND ---------- */
.stats-band {
  position: relative;
  padding: calc(clamp(3rem, 7vw, 5rem) + var(--angle)) 0;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.07), rgba(255, 46, 136, 0.07)),
    var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: rgba(5, 6, 8, 0.8);
  padding: clamp(1.2rem, 4vw, 2rem) 1rem;
  text-align: center;
  /* source order is dt → dd (valid <dl>); reversed here so the number reads first */
  display: flex;
  flex-direction: column-reverse;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1;
  color: var(--cyan);
  display: block;
  text-shadow: 0 0 26px rgba(0, 229, 255, 0.35);
  margin: 0 0 0.5rem;
}
.count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1ch;
}
.stat-unit {
  font-size: 0.42em;
  color: var(--magenta);
  margin-left: 0.15em;
  letter-spacing: 0.04em;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- 15. [04 // CREW] TABLE ---------- */
.section-crew { background: var(--void); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}
.crew-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.crew-table thead th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.05);
  white-space: nowrap;
}
.crew-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: middle;
}
.crew-table td.mono-dim { color: var(--text-faint); }
.crew-table tbody tr { transition: background-color 0.2s ease; }
.crew-table tbody tr:hover { background: rgba(0, 229, 255, 0.05); }
.crew-table tbody tr:last-child td { border-bottom: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.status-online { color: var(--cyan); }
.status-render { color: var(--magenta); }
/* stays inside the two-accent palette — differentiated by a dashed frame, not a new hue */
.status-field { color: var(--cyan); border-style: dashed; }
.status-idle { color: var(--text-faint); }

/* ---------- 16. CLIENT TRANSMISSIONS ---------- */
.section-transmissions {
  background: linear-gradient(180deg, var(--surface), var(--void) 80%);
}

.transmissions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.console-card {
  position: relative;
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  clip-path: var(--chamfer);
  filter: var(--glow-cyan-soft);
  transition: border-color 0.25s ease, filter 0.25s ease;
}
.console-card:hover {
  border-color: var(--magenta);
  filter: var(--glow-magenta);
}
.console-card:hover::before,
.console-card:hover::after { border-color: var(--cyan); }

.console-meta {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
  word-break: break-word;
}
.console-host { color: var(--cyan); }

.console-card blockquote { margin: 0 0 1rem; }
.console-card blockquote p {
  margin: 0;
  color: var(--text);
  font-size: clamp(0.95rem, 2.2vw, 1.02rem);
  line-height: 1.7;
}
.console-card figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* ---------- 17. CONTACT ---------- */
.section-contact { background: var(--panel); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 6vw, 4rem);
  align-items: start;
}

/* the lede + list live outside .section-head here, so cap the measure locally */
.contact-info { max-width: 62ch; }
.contact-info .section-title { margin-bottom: 1.1rem; }
.contact-info .section-lede { margin-bottom: 2rem; }

.contact-list { display: grid; gap: 0.75rem; }
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.92rem;
}
.contact-key {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  min-width: 92px;
}

.contact-form {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-cyan-soft);
}

.form-field { display: grid; gap: 0.4rem; }
.form-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.field-hint {
  color: var(--text-faint);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(5, 6, 8, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
                    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.contact-form select option { background: var(--panel); color: var(--text); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(216, 224, 228, 0.55); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.contact-form input.has-error,
.contact-form select.has-error,
.contact-form textarea.has-error {
  border-color: var(--magenta);
  box-shadow: 0 0 14px rgba(255, 46, 136, 0.28);
}

/* error text carries a ▲ glyph so the signal is never colour-only */
.field-error {
  margin: 0;
  color: var(--magenta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.field-error[hidden] { display: none; }

.btn-submit {
  justify-self: start;
  margin-top: 0.25rem;
}

.form-success {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.form-success[hidden] { display: none; }

/* ---------- 18. FOOTER ---------- */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.footer-brand,
.footer-col { min-width: 0; }

.ascii {
  font-family: var(--font-ascii);
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--cyan);
  margin: 0 0 1rem;
  text-shadow: 0 0 12px var(--cyan-35);
  overflow-x: auto;
}
.footer-tag {
  color: var(--text-dim);
  font-size: 0.86rem;
  max-width: 34ch;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.9rem;
}

.footer-address { font-style: normal; }
.footer-address p { margin: 0 0 0.4rem; font-size: 0.88rem; color: var(--text-dim); }

.footer-links { display: grid; gap: 0.5rem; }
.footer-links li { font-size: 0.88rem; color: var(--text-dim); }

.footer-base {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer-base p { margin: 0; }
.footer-year { color: inherit; font-variant-numeric: tabular-nums; }
/* 0.5 composited --cyan down to 3.79:1 on the footer ground. 0.6 is 5.06:1;
   the token itself is untouched, only how faded this one line is. */
.footer-sig { color: var(--cyan); opacity: 0.6; }

/* ============================================================
   19. BREAKPOINT — 768px
   ============================================================ */
@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .transmissions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transmissions-grid .console-card:nth-child(3) { grid-column: 1 / -1; }

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

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .service-line { padding-inline: 1.8rem; }

  .timeline::before { left: 25px; }
  .step { padding-left: 78px; }
  .step-node { width: 52px; height: 52px; }
  .step-num { font-size: 0.9rem; }
}

/* ============================================================
   20. BREAKPOINT — 1100px
   ============================================================ */
@media (min-width: 1100px) {
  :root { --header-h: 76px; }

  /* nav becomes horizontal */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    max-height: none;
    visibility: visible;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
  }
  .nav-links li { border-bottom: 0; }
  .nav-links a {
    padding: 0;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
  }
  .nav-links .nav-cta { margin-top: 0; padding: 0.65rem 1.1rem; }

  .hero { padding-block: clamp(5rem, 9vw, 8rem) clamp(6rem, 12vw, 9rem); }

  /* headline column + HUD column; stats span the full width underneath */
  .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
    align-items: start;
  }
  .hero-kicker  { grid-area: 1 / 1; justify-self: start; }
  .hero-title   { grid-area: 2 / 1; font-size: clamp(3rem, 7.9vw, 7rem); }
  .hero-subline { grid-area: 3 / 1; }
  .hero-actions { grid-area: 4 / 1; margin-bottom: 0; }
  .hero-hud     { grid-area: 1 / 2 / 5 / 3; display: flex; align-self: stretch; }
  .hero-stats   { grid-area: 5 / 1 / 6 / 3; margin-top: clamp(2.5rem, 6vw, 4rem); }

  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .transmissions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .transmissions-grid .console-card:nth-child(3) { grid-column: auto; }

  .contact-layout { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 4rem; }
  .contact-info { max-width: none; } /* the column already caps the measure */

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

  /* alternating HUD timeline */
  .timeline { max-width: 1000px; margin-inline: auto; }
  .timeline::before { left: 50%; }
  .step {
    width: calc(50% - 44px);
    padding-left: 0;
    padding-bottom: 3rem;
  }
  .step:nth-child(odd) { text-align: right; }
  /* 44px gutter + half the 52px node = 70px, so the node centres exactly on the rail */
  .step:nth-child(odd) .step-node { left: auto; right: -70px; }
  .step:nth-child(odd) .step-body {
    border-left: 0;
    border-right: 1px solid var(--line);
    padding-left: 0;
    padding-right: 1.25rem;
  }
  .step:nth-child(odd) .step-body p:last-child { margin-left: auto; }
  .step:nth-child(even) {
    margin-left: calc(50% + 44px);
    margin-top: -2rem;
  }
  .step:nth-child(even) .step-node { left: -70px; }
  .step:nth-child(even) .step-body { padding-left: 1.25rem; }

  .magnetic { will-change: transform; }
}

/* ============================================================
   20b. NARROW PHONES — below 360px the display type must ramp
   down or the longest words clip. Must sit after the base rules.
   ============================================================ */
@media (max-width: 360px) {
  .hero-title { font-size: 10.6vw; }
  .section-title { font-size: 8.2vw; }
}

/* ============================================================
   21. REDUCED MOTION — kill all motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .marquee-track { animation: none !important; transform: none !important; }
  .grid-scroll { animation: none !important; }
  .glitch-auto::before,
  .glitch-auto::after,
  .glitch:hover::before,
  .glitch:hover::after { animation: none !important; opacity: 0 !important; }
  .glitch:hover { animation: none !important; transform: none !important; }
  .status-dot { animation: none !important; opacity: 1 !important; }
  .type-cursor { animation: none !important; opacity: 1; }
  body::after { animation: none !important; }
  /* the CRT sweep and the headline scan are motion-only decoration — remove them */
  body::before { animation: none !important; display: none !important; }
  .hero-title::after { animation: none !important; display: none !important; }
  .hud-label::before { animation: none !important; opacity: 1 !important; }
  .btn-primary {
    animation: none !important;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.5)) !important;
  }
  .tile:hover { transform: none !important; }
  .tile:hover .tile-art svg { transform: none !important; }
  .tile-art::after,
  .tile:hover .tile-art::after,
  .tile:focus-within .tile-art::after {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
  }
  /* hero HUD: rings, sweep, globe, meters and equaliser all hold still */
  .scope-ring-a,
  .scope-ring-b,
  .scope-sweep,
  .scope-lon,
  .scope-lock,
  .hud-live-dot,
  .hud-bar-fill,
  .hud-eq span {
    animation: none !important;
  }
  .hud-eq span { transform: scaleY(1) !important; }
  .magnetic { transform: none !important; }
}
