/* ============================================================
   SAULT Cyber Security — V2: Full Altius
   Refero Altius: Midnight industrial orange glow
   Obsidian-dominant. Ember as surgical accent.
   Brutal Swiss grid. Sharp edges. Instrument lighting.
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand — ember is accent ONLY, never primary CTA fill */
  --color-vivid-ember: #fa5838;
  --color-deep-garnet: #631303;
  --color-molten-orange: #951c04;

  /* Neutrals */
  --color-deep-void: #000000;
  --color-midnight-ink: #190501;
  --color-charred-umber: #340a01;
  --color-faded-stone: #baadab;
  --color-soft-peach: #fcac9c;
  --color-input-gray: #cccccc;
  --color-ghostly-gray: #feeae6;
  --color-pure-canvas: #f7f6ff;

  /* Typography */
  --font-primary: "Matter", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "Fabrikatmono", "Space Mono", "SFMono-Regular", Consolas, monospace;

  --font-size-display: clamp(3rem, 7vw, 3.75rem);
  --font-size-heading: clamp(2.25rem, 5vw, 3rem);
  --font-size-heading-sm: clamp(1.25rem, 2.4vw, 1.5rem);
  --font-size-subheading: clamp(1.125rem, 1.8vw, 1.25rem);
  --font-size-body: 1rem;
  --font-size-caption: 0.875rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --layout-max: 1240px;
  --layout-gutter: clamp(16px, 3vw, 32px);

  /* Radii */
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Effects */
  --glow-ember-soft: 0 0 24px rgba(250, 88, 56, .18);
  --glow-ember-strong: 0 0 42px rgba(250, 88, 56, .32);
  --shadow-panel: inset 0 1px 0 rgba(247,246,255,.05), 0 24px 80px rgba(0,0,0,.5);

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 600ms;
  --easing-default: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-pure-canvas);
  background-color: var(--color-midnight-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-midnight-ink);
  color: var(--color-vivid-ember);
  font-family: var(--font-code);
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--color-vivid-ember);
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) ease;
}

.skip-link:focus {
  top: var(--space-4);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

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

.section-pad {
  padding-block: var(--space-9);
}

@media (max-width: 768px) {
  .section-pad {
    padding-block: var(--space-7);
  }
}

/* ---------- Grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
  .grid-12, .grid-6, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Typography ---------- */
.display {
  font-size: var(--font-size-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.heading {
  font-size: var(--font-size-heading);
  font-weight: 500;
  line-height: 1.13;
}

.heading-sm {
  font-size: var(--font-size-heading-sm);
  font-weight: 500;
  line-height: 1.16;
}

.subheading {
  font-size: var(--font-size-subheading);
  font-weight: 500;
  line-height: 1.5;
}

.body {
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.5;
}

.caption {
  font-size: var(--font-size-caption);
  font-weight: 400;
  line-height: 1.5;
}

.label {
  font-family: var(--font-code);
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.text-muted {
  color: var(--color-faded-stone);
}

.text-ember {
  color: var(--color-vivid-ember);
}

.text-light {
  color: var(--color-pure-canvas);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 5, 1, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(250, 88, 56, .2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-inline: var(--layout-gutter);
  max-width: var(--layout-max);
  margin-inline: auto;
}

.wordmark {
  font-family: var(--font-code);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-pure-canvas);
  position: relative;
}

.wordmark::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-vivid-ember);
  opacity: .5;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-pure-canvas);
  padding-block: var(--space-1);
  border-bottom: 1px solid transparent;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-vivid-ember);
  border-bottom-color: var(--color-vivid-ember);
}

.nav-link[aria-current="page"] {
  color: var(--color-vivid-ember);
  border-bottom-color: var(--color-vivid-ember);
}

.header-cta {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-vivid-ember);
  padding: 10px 16px;
  border: 1px solid var(--color-vivid-ember);
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--color-vivid-ember);
  color: var(--color-midnight-ink);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-pure-canvas);
  border: 1px solid rgba(250, 88, 56, .2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(25, 5, 1, .98);
    border-bottom: 1px solid rgba(250, 88, 56, .2);
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .nav-list.nav-open { display: flex; }
}

/* ---------- Hero (Altius: dark dominant, ember as surgical accent) ---------- */
.hero-section {
  background: var(--color-midnight-ink);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(250, 88, 56, .12);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(250, 88, 56, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(99, 19, 3, .08) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(250, 88, 56, .015) 40px, rgba(250, 88, 56, .015) 41px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-6);
    padding-block: var(--space-7);
  }
}

.hero-eyebrow {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-vivid-ember);
  margin-bottom: var(--space-5);
  opacity: .8;
  animation: fadeInUp .6s var(--easing-default) both;
}

.hero-title {
  font-size: var(--font-size-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--color-pure-canvas);
  margin-bottom: var(--space-5);
  animation: fadeInUp .6s var(--easing-default) .1s both;
}

.hero-sub {
  font-size: var(--font-size-subheading);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-faded-stone);
  max-width: 55ch;
  margin-bottom: var(--space-6);
  animation: fadeInUp .6s var(--easing-default) .2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp .6s var(--easing-default) .3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons (Altius: ember is accent, never filled primary) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

/* Altius primary: OUTLINED ember — never filled orange */
.btn-primary {
  background: transparent;
  color: var(--color-vivid-ember);
  border-color: var(--color-vivid-ember);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-vivid-ember);
  color: var(--color-midnight-ink);
  box-shadow: var(--glow-ember-soft);
}

/* Secondary: muted ghost */
.btn-secondary {
  background: transparent;
  color: var(--color-pure-canvas);
  border-color: rgba(186, 173, 171, .45);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-vivid-ember);
  color: var(--color-vivid-ember);
  background: rgba(250, 88, 56, .06);
}

/* ---------- Hero background image ---------- */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--color-midnight-ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(250, 88, 56, .12);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(250, 88, 56, .04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(99, 19, 3, .06) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .08;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Sections ---------- */
.section-dark {
  background: var(--color-midnight-ink);
}

.section-charred {
  background: var(--color-charred-umber);
}

.section-label {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-vivid-ember);
  margin-bottom: var(--space-4);
  opacity: .7;
}

.section-title {
  font-size: var(--font-size-heading);
  font-weight: 500;
  line-height: 1.13;
  color: var(--color-pure-canvas);
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--font-size-subheading);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-faded-stone);
  max-width: 65ch;
  margin-bottom: var(--space-7);
}

/* ---------- Cards ---------- */
.card {
  background: rgba(52, 10, 1, .7);
  border: 1px solid rgba(250, 88, 56, .15);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  transition: border-color var(--duration-base) ease, box-shadow var(--duration-base) ease, transform var(--duration-base) ease;
}

.card:hover {
  border-color: rgba(250, 88, 56, .5);
  box-shadow: var(--glow-ember-soft);
  transform: translateY(-1px);
}

.card-label {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-vivid-ember);
  margin-bottom: var(--space-3);
  opacity: .8;
}

.card-title {
  font-size: var(--font-size-heading-sm);
  font-weight: 500;
  line-height: 1.16;
  color: var(--color-pure-canvas);
  margin-bottom: var(--space-3);
}

.card-body {
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-faded-stone);
}

.card-meta {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--color-faded-stone);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(186, 173, 171, .12);
}

/* ---------- Card entrance animation (staggered) ---------- */
.card-stagger {
  animation: cardIn .5s var(--easing-default) both;
}

.card-stagger:nth-child(1) { animation-delay: 0s; }
.card-stagger:nth-child(2) { animation-delay: .08s; }
.card-stagger:nth-child(3) { animation-delay: .16s; }
.card-stagger:nth-child(4) { animation-delay: .24s; }
.card-stagger:nth-child(5) { animation-delay: .32s; }
.card-stagger:nth-child(6) { animation-delay: .4s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Operation pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 768px) {
  .pipeline { grid-template-columns: 1fr; gap: var(--space-5); }
}

.pipeline-step {
  padding: var(--space-5);
  border: 1px solid rgba(250, 88, 56, .12);
  border-right: none;
  position: relative;
  transition: border-color var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.pipeline-step:last-child { border-right: 1px solid rgba(250, 88, 56, .12); }

@media (max-width: 768px) {
  .pipeline-step { border-right: 1px solid rgba(250, 88, 56, .12); }
}

/* Pipeline sequential glow animation */
.pipeline-step::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  pointer-events: none;
  animation: pipelineGlow 4s ease-in-out infinite;
}

.pipeline-step:nth-child(1)::before { animation-delay: 0s; }
.pipeline-step:nth-child(2)::before { animation-delay: .4s; }
.pipeline-step:nth-child(3)::before { animation-delay: .8s; }
.pipeline-step:nth-child(4)::before { animation-delay: 1.2s; }
.pipeline-step:nth-child(5)::before { animation-delay: 1.6s; }

@keyframes pipelineGlow {
  0%, 100% { border-color: rgba(250, 88, 56, .08); box-shadow: none; }
  30% { border-color: rgba(250, 88, 56, .5); box-shadow: var(--glow-ember-soft); }
  70% { border-color: rgba(250, 88, 56, .5); box-shadow: var(--glow-ember-soft); }
}

.pipeline-step::after {
  content: attr(data-step);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-vivid-ember);
  display: block;
  margin-bottom: var(--space-3);
  letter-spacing: .1em;
}

.pipeline-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-pure-canvas);
  margin-bottom: var(--space-2);
}

.pipeline-desc {
  font-size: 14px;
  color: var(--color-faded-stone);
  line-height: 1.5;
}

/* ---------- Map panel (animated SVG island map) ---------- */
.map-panel {
  background: var(--color-deep-void);
  border: 1px solid rgba(250, 88, 56, .2);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(250, 88, 56, .04) 0%, transparent 60%);
  pointer-events: none;
}

.map-label {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-vivid-ember);
  margin-bottom: var(--space-3);
  opacity: .7;
}

/* SVG Map Styles */
.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-node {
  fill: var(--color-pure-canvas);
}

.map-node-outer {
  fill: var(--color-pure-canvas);
  opacity: .96;
}

.map-node-core {
  fill: var(--color-vivid-ember);
}

.map-node-support {
  fill: rgba(247, 246, 255, .82);
}

.map-line {
  fill: none;
  stroke: rgba(247, 246, 255, .3);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.map-line-core {
  fill: none;
  stroke: rgba(247, 246, 255, .85);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.map-line-blocked {
  fill: none;
  stroke: rgba(250, 88, 56, .22);
  stroke-width: 1.2;
  stroke-dasharray: 6 14;
}

/* Traffic flow — animated dashed lines (stroke-dashoffset) */
.map-traffic {
  fill: none;
  stroke: rgba(250, 88, 56, .85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 24;
  animation: flow 11s linear infinite;
}

.map-traffic.slow { animation-duration: 13s; }
.map-traffic.fast { animation-duration: 9s; }
.map-traffic.reverse { animation-direction: reverse; }

@keyframes flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -280; }
}

/* Pulse ring — expanding circles on defence nodes */
.map-pulse-ring {
  fill: none;
  stroke: rgba(250, 88, 56, .75);
  stroke-width: 1.5;
  transform-origin: center;
  animation: pulse 4.5s ease-out infinite;
}

.map-pulse-ring.r2 { animation-delay: 1.4s; }
.map-pulse-ring.r3 { animation-delay: 2.8s; }

@keyframes pulse {
  0% { opacity: .8; transform: scale(.4); }
  62% { opacity: .1; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* Attempt ring — scanning animation on threat sources */
.map-attempt-ring {
  fill: none;
  stroke: rgba(250, 88, 56, .45);
  stroke-width: 1.1;
  transform-origin: center;
  animation: attempt 5.6s ease-out infinite;
}

.map-attempt-ring.a2 { animation-delay: 1.6s; }
.map-attempt-ring.a3 { animation-delay: 2.5s; }
.map-attempt-ring.a4 { animation-delay: 3.6s; }
.map-attempt-ring.a5 { animation-delay: .8s; }

@keyframes attempt {
  0% { opacity: .55; transform: scale(.3); }
  78% { opacity: .05; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(2); }
}

/* SAULT node breathing pulse */
.map-sault-ring {
  fill: none;
  stroke: var(--color-vivid-ember);
  stroke-width: 1.6;
  transform-origin: center;
  animation: saultPulse 3.5s ease-in-out infinite;
}

.map-sault-ring.r2 {
  animation-delay: 1.2s;
  opacity: .4;
}

@keyframes saultPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: .3; transform: scale(1.14); }
}

.map-core-halo {
  fill: rgba(250, 88, 56, .05);
  filter: blur(12px);
}

.map-state-grid {
  fill: none;
  stroke: rgba(247, 246, 255, .08);
  stroke-width: 1;
  stroke-dasharray: 6 14;
}

.map-aus-outline {
  fill: none;
  stroke: rgba(247, 246, 255, .85);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(247, 246, 255, .06));
}

.map-aus-outline.secondary {
  stroke: rgba(247, 246, 255, .12);
  stroke-width: 7;
  filter: none;
}

.map-coast-accent {
  fill: none;
  stroke: rgba(247, 246, 255, .2);
  stroke-width: 1;
  stroke-dasharray: 2 10;
}

.map-aus-glow {
  fill: rgba(247, 246, 255, .04);
  filter: blur(30px);
}

.map-node-label {
  fill: rgba(247, 246, 255, .65);
  font-family: var(--font-code);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.map-label-text {
  fill: var(--color-pure-canvas);
  font-family: var(--font-code);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
}

.map-tiny-text {
  font-size: 8px;
  fill: rgba(247, 246, 255, .6);
  font-family: var(--font-code);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Sector tiles ---------- */
.sector-card {
  background: rgba(52, 10, 1, .7);
  border: 1px solid rgba(250, 88, 56, .15);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  transition: border-color var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.sector-card:hover {
  border-color: rgba(250, 88, 56, .5);
  box-shadow: var(--glow-ember-soft);
}

.sector-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-pure-canvas);
  margin-bottom: var(--space-3);
}

.sector-body {
  font-size: 14px;
  color: var(--color-faded-stone);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(250, 88, 56, .6);
  border: 1px solid rgba(250, 88, 56, .18);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* ---------- Light panel ---------- */
.light-panel {
  background: var(--color-soft-peach);
  border-radius: var(--radius-sm);
  padding: var(--space-7);
  color: var(--color-midnight-ink);
}

.light-panel .section-label {
  color: var(--color-molten-orange);
  opacity: .8;
}

.light-panel .section-title {
  color: var(--color-midnight-ink);
}

.light-panel .section-lead {
  color: var(--color-deep-garnet);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-charred-umber);
  border-block: 1px solid rgba(250, 88, 56, .2);
  padding-block: var(--space-8);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-band-title {
  font-size: var(--font-size-heading-sm);
  font-weight: 500;
  color: var(--color-pure-canvas);
  margin-bottom: var(--space-2);
}

.cta-band-copy {
  font-size: var(--font-size-body);
  color: var(--color-faded-stone);
}

.cta-band-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-faded-stone);
}

.form-input,
.form-select,
.form-textarea {
  min-height: 44px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(186, 173, 171, .35);
  border-radius: var(--radius-sm);
  color: var(--color-pure-canvas);
  font-size: 15px;
  transition: border-color var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-vivid-ember);
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 88, 56, .15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Status indicator dots */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-vivid-ember);
  animation: breathe 2.2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: var(--space-2);
}

@keyframes breathe {
  0%, 100% { opacity: .4; }
  50% { opacity: .9; }
}

/* Scanline sweep */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 88, 56, .12), transparent);
  animation: scanline-drift 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanline-drift {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .7; }
  90% { opacity: .7; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Grid flicker (Altius subtle grid animation) */
@keyframes gridFlicker {
  0%, 100% { opacity: .03; }
  50% { opacity: .06; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep-void);
  border-top: 1px solid rgba(250, 88, 56, .12);
  padding-block: var(--space-7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--color-faded-stone);
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-link {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-faded-stone);
  transition: color var(--duration-fast) ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-vivid-ember);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
