/* ═══════════════════════════════════════════════════════════
   AXINE HMAS — Stylesheet
   Loaded by hmas.html
═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --red-deep:    #1E1560;
  --red-core:    #3730A3;
  --red-bright:  #7C3AED;
  --red-glow:    rgba(124, 58, 237, 0.35);
  --red-border:  rgba(124, 58, 237, 0.28);
  --bg:          #06070F;
  --surface:     #0D0E1C;
  --surface-2:   #14162A;
  --text:        #E3E0F5;
  --text-muted:  #7C7A9E;
  --white:       #FFFFFF;

  --z-nav:      1000;
  --z-loader:   9998;
  --z-noise:    9999;
  --z-progress: 10000;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── Noise overlay ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-noise);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(1.9rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.6rem); }
p  { line-height: 1.7; }

.label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red-bright);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--red-bright);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--red-bright);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--red-core);
}
.btn-primary:hover {
  background: var(--red-core);
  box-shadow: 6px 6px 0 var(--red-deep);
  transform: translate(-1px, -1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: 4px 4px 0 var(--red-core);
}
.btn-ghost:hover {
  background: var(--red-bright);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--red-deep);
  transform: translate(-1px, -1px);
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ─── Section divider ───────────────────────────────────── */
.section-rule {
  display: block;
  height: 1px;
  background: var(--red-core);
  opacity: 0.3;
  width: 70%;
  margin: 0 0 0 8vw;
}

/* ─── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  background: var(--red-bright);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 99999;
  font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 0 5vw;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--red-border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.08em;
}
.nav-logo span { color: var(--red-bright); }

.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red-bright); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface);
  border: 1px solid var(--red-border);
  padding: 0.5rem 0;
  padding-top: 0.75rem; /* absorb the gap visually */
  margin-top: 0; /* no gap — bridge via padding */
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
/* invisible bridge so mouse can travel from trigger to menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text);
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--red-bright);
  background: rgba(192, 57, 43, 0.07);
}
.dd-title { font-weight: 500; }
.dd-sub { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  min-height: 44px;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0;
  width: 100%;
  background: rgba(8, 8, 8, 0.97);
  border-bottom: 1px solid var(--red-border);
  padding: 1.5rem 5vw 2rem;
  z-index: calc(var(--z-nav) - 1);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--red-bright); }
.nav-mobile .btn-ghost { margin-top: 1.5rem; width: 100%; }

/* ═══════════════════════════════════════════════════════════
   MOBILE HERO (replaces cinematic on small screens)
═══════════════════════════════════════════════════════════ */
#hmas-mobile-hero {
  display: none; /* hidden on desktop; shown via matchMedia JS */
  padding: 9rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 30% 60%, rgba(192,57,43,0.12) 0%, transparent 70%);
  border-bottom: 1px solid rgba(192,57,43,0.18);
}
#hmas-mobile-hero h1 {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
}
#hmas-mobile-sub {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   ZONE A — CINEMATIC SCROLL SCRUBBER
═══════════════════════════════════════════════════════════ */
#hmas-cinematic {
  position: relative;
  height: 500vh;
}
#hmas-canvas-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  background: #000;
  overflow: hidden;
}
#hmas-canvas {
  display: block;
  width: 100%;
  height: auto; /* height determined by the canvas pixel dimensions set in JS */
}

/* Gradient vignette */
.canvas-vignette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(8,8,8,0.75) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Uniform brightness reducer — tones down overly bright frames */
.canvas-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
  z-index: 1;
}

/* ─── Checkpoint cards ──────────────────────────────────── */
.checkpoint-card {
  position: absolute;
  max-width: 420px;
  opacity: 0;
  transform: scale(0.93) translateY(12px);
  pointer-events: none;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cp-card-inner {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--red-border);
  border-radius: 2px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.1);
}
.cp-card-inner h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin: 0.4rem 0 0.75rem;
  line-height: 1.2;
}
.cp-card-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.cp-arrow { flex-shrink: 0; }
.cp-arrow-left { order: -1; }

/* Checkpoint 3 — centered full report */
.checkpoint-report {
  max-width: 620px;
  width: 90vw;
  max-height: min(88vh, calc(56.25vw - 2rem));
  overflow: hidden;
}
.checkpoint-report .cp-card-inner {
  padding: 1.1rem 1.4rem; /* tighter padding so content fits */
}
.report-inner { width: 100%; }
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.report-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--red-bright);
  border: 1px solid var(--red-bright);
  padding: 3px 8px;
}

/* ─── Heatmap ───────────────────────────────────────────── */
#heatmap-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 3px;
  margin: 0.6rem 0 0.4rem;
  height: clamp(72px, 10vw, 108px);
}
.heatmap-cell {
  border-radius: 3px;
  animation: cellReveal 0.25s ease both;
  transition: opacity 0.15s;
}
.heatmap-cell:hover { opacity: 0.75; }
@keyframes cellReveal {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.heatmap-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.62rem;
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.06em;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── Report stats ──────────────────────────────────────── */
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.report-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--red-border);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-big { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(0.85rem, 1.5vw, 1.1rem); color: var(--text); }
.stat-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }

/* ─── Metal selector ────────────────────────────────────── */
#metal-selector { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.metal-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 12px;
  background: transparent;
  border: 1.5px solid var(--red-border);
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  min-height: 44px;
  touch-action: manipulation;
}
.metal-btn:hover { border-color: var(--red-bright); color: var(--text); }
.metal-btn.active { background: var(--red-core); border-color: var(--red-core); color: var(--white); }

#metal-data-panel { height: 0; opacity: 0; overflow: hidden; }

.metal-data-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#metal-name-display { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; }
.status-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid;
}

.metal-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.metal-stat { background: var(--surface-2); padding: 0.6rem 0.75rem; }
.stat-label {
  display: block;
  font-size: 0.65rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.stat-value { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }

.metal-bar-wrap { margin-top: 0.25rem; }
.metal-bar-track { position: relative; height: 6px; background: var(--surface-2); border: 1px solid var(--red-border); }
.metal-bar-fill { height: 100%; background: var(--red-bright); }
.metal-bar-threshold {
  position: absolute; top: -4px; bottom: -4px;
  width: 1.5px; background: var(--white); opacity: 0.5;
}
.metal-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   ZONE B — HERO TEXT
═══════════════════════════════════════════════════════════ */
#hmas-hero {
  padding: 8rem 0 6rem;
  position: relative;
}
#hmas-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}
.hmas-hero-inner { max-width: 820px; }
.hmas-hero-inner h1 { margin-bottom: 1.5rem; }
.hmas-hero-inner .hero-body {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 1.5rem;
}
.hmas-hero-inner .hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-muted);
  max-width: 640px;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════
   FEATURE SCROLL-STACK
═══════════════════════════════════════════════════════════ */
#hmas-features { padding: 6rem 0 0; }
#hmas-features .section-header { margin-bottom: 3rem; }

.features-stack-section {
  padding: 0 5vw 20vh;
  max-width: 1320px;
  margin: 0 auto;
}

/* The stacking card — no conflicting 3d properties in CSS */
.feature-card {
  position: relative;
  border: 2px solid var(--red-border);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  padding: 3rem;
  /* transform-origin set by JS */
  will-change: transform;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}
.feature-card-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  min-height: 14rem;
}
.feature-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.feature-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  opacity: 0.6;
}
.feature-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  margin-bottom: 0;
  line-height: 1.2;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 68ch;
}
.feature-stack-end { width: 100%; height: 1px; }

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
#hmas-cta {
  padding: 8rem 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, #1a1060 0%, var(--bg) 100%);
  border-top: 3px solid var(--red-core);
  border-bottom: 3px solid var(--red-core);
  text-align: center;
  overflow: hidden;
  position: relative;
}
#hmas-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
#hmas-cta h2 {
  margin-bottom: 1rem;
  clip-path: inset(0 100% 0 0);
  position: relative;
}
#hmas-cta p {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  margin: 0 auto 3rem;
  max-width: 600px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
#contact { padding: 10rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}
.contact-left h2 { margin-bottom: 1.5rem; }
.contact-left p {
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  margin-top: 1.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-details a {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact-details a:hover { color: var(--red-bright); }

.contact-form-card {
  border: 2px solid var(--red-border);
  background: var(--surface);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--red-border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  min-height: 44px;
  transition: border-color 0.15s, outline 0.15s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--red-bright);
  border-color: transparent;
}
.form-group textarea { min-height: 120px; }
.form-privacy { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; opacity: 0.7; }
.btn-submit {
  width: 100%;
  background: var(--red-bright);
  color: var(--white);
  border: 2px solid var(--red-bright);
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-submit:hover {
  background: var(--red-core);
  box-shadow: 0 4px 24px var(--red-glow);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#footer {
  background: #040404;
  border-top: 1px solid var(--red-border);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}
.footer-logo span { color: var(--red-bright); }
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.newsletter-row { display: flex; }
.newsletter-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--red-border);
  border-right: none;
  color: var(--text);
  padding: 0.6rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
  min-height: 44px;
}
.newsletter-row input:focus { outline: 2px solid var(--red-bright); }
.newsletter-row button {
  background: var(--red-bright);
  color: var(--white);
  border: 1px solid var(--red-bright);
  padding: 0.6rem 1.1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 44px;
  transition: background 0.15s;
}
.newsletter-row button:hover { background: var(--red-core); }

.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-col ul a:hover { color: var(--red-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom-links a:hover { color: var(--red-bright); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 1024px (tablet landscape)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .feature-card-inner { grid-template-columns: 220px 1fr; gap: 2rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px (tablet portrait / large phone)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  /* Cinematic — hide on mobile, replaced by #hmas-mobile-hero */
  #hmas-cinematic { display: none; }

  /* Cinematic — hide arrows; anchor all cards near bottom of canvas-wrap */
  .cp-arrow { display: none; }
  .checkpoint-card {
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: auto !important;
    bottom: 1.5rem !important;
    max-width: none !important;
    width: calc(100% - 1.5rem) !important;
  }
  /* CP3: JS resets the xPercent/yPercent; CSS just repositions it like the rest */
  #cp-card-3 {
    bottom: 1.5rem !important;
    top: auto !important;
    left: 0.75rem !important;
    transform: none !important;
  }
  .checkpoint-report { width: auto !important; max-height: none !important; overflow: visible !important; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .metal-stats-grid { grid-template-columns: 1fr 1fr; }

  /* Feature stack — JS animation disabled; plain vertical list */
  .feature-card-inner { grid-template-columns: 1fr; gap: 1rem; min-height: unset; }
  .feature-card { padding: 2rem 1.5rem; margin-bottom: 1.5rem; }
  .features-stack-section { padding: 0 4vw 4rem; }

  /* Hero */
  #hmas-hero { padding: 5rem 0 4rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  #hmas-cta { padding: 5rem 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 480px (small phones)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .report-stats { grid-template-columns: 1fr; }

  /* Cinematic — shorter scroll on mobile to avoid very long 500vh */
  #hmas-cinematic { height: 350vh; }

  .cp-card-inner { padding: 0.85rem 1rem; }
  .cp-card-inner h3 { font-size: 0.95rem; }
  .cp-card-inner p { font-size: 0.78rem; }
  #metal-data-panel { font-size: 0.78rem; }

  /* Metal selector wraps tighter */
  .metal-btn { padding: 4px 10px; font-size: 0.68rem; min-height: 40px; }

  .stat-big { font-size: 1.1rem; }

  .contact-form-card { padding: 1.5rem 1.25rem; }

  .feature-card { padding: 1.75rem 1.25rem; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .heatmap-cell { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
