/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;1,700&display=swap');

/* === DESIGN TOKENS === */
:root {
  --brand-midnight: #0B1F3A;
  --brand-ash: #5A5A5A;
  --brand-safety-red: #D9481B;
  --brand-cloud: #F5F5F7;
  --bg: var(--brand-midnight);
  --bg-soft: #102947;
  --panel: #133054;
  --panel-dark: #0E2746;
  --text: var(--brand-cloud);
  --muted: #C3CAD6;
  --accent: var(--brand-safety-red);
  --accent-hover: #ED5A31;
  --line: rgba(90, 90, 90, 0.4);
  --line-strong: rgba(90, 90, 90, 0.65);
  --gap: 3px;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 1.75rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-elevated: 0 18px 48px rgba(217, 72, 27, 0.2), 0 8px 24px rgba(11, 31, 58, 0.52);
  --shadow-floating: 0 28px 64px rgba(217, 72, 27, 0.24), 0 12px 36px rgba(11, 31, 58, 0.55);
  --container: min(1300px, calc(100vw - 2rem));
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.04; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
pre { margin: 0; }

/* === BASE === */
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.035;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 245, 247, 0.9) 1px, transparent 0);
  background-size: 3px 3px;
}

::selection { background: var(--accent); color: var(--brand-midnight); text-shadow: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* === INTERACTIONS === */
a, button, input, textarea {
  transition:
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  left: -999px;
  top: var(--space-2);
  z-index: 400;
  background: var(--accent);
  color: var(--brand-midnight);
  font-weight: 700;
  padding: 0.6rem 1rem;
}
.skip-link:focus-visible { left: var(--space-2); }

/* === SHELL === */
.site-shell {
  width: var(--container);
  margin-inline: auto;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.9rem 0;
}

.brand { width: clamp(9rem, 15vw, 10.5rem); }

.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}
.menu-toggle::before { content: '- '; opacity: 0.5; }
.menu-toggle:hover,
.menu-toggle:focus-visible { border-color: var(--accent); color: var(--accent); }
.menu-toggle:active { transform: scale(0.98); }

.site-nav {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 2px);
  display: none;
  flex-direction: column;
  background: rgba(11, 31, 58, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.site-nav.is-open { display: flex; }

.site-nav a {
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav a.active { color: var(--accent); }

/* === SHARED TOKENS === */
.kicker {
  display: inline-block;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.72rem 1.35rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--brand-midnight);
  box-shadow: 0 8px 22px rgba(217, 72, 27, 0.28);
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(217, 72, 27, 0.65);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(1px); }

/* Dark bg buttons - used on orange home panel */
.btn-dark {
  background: var(--panel-dark);
  color: var(--text);
  border-color: rgba(90, 90, 90, 0.45);
}
.btn-dark:hover,
.btn-dark:focus-visible { background: var(--brand-midnight); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: rgba(11, 31, 58, 0.82);
  border-color: rgba(11, 31, 58, 0.45);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible { background: rgba(11, 31, 58, 0.08); transform: translateY(-1px); }

/* === INNER PAGE LAYOUT === */
main { padding-bottom: var(--space-6); }

.page-hero {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.about-hero-panel {
  background:
    linear-gradient(145deg, rgba(217, 72, 27, 0.1), rgba(217, 72, 27, 0.02)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  padding: var(--space-3);
  display: grid;
  gap: 0.75rem;
}

.about-hero-panel p {
  color: var(--muted);
  font-size: 0.92rem;
}

.about-inline-panel {
  width: 100%;
  max-width: none;
}

.about-values .value-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.page-section {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-6);
}

.page-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.0;
}

.section-lead {
  color: rgba(245, 245, 247, 0.84);
  max-width: 74ch;
}

/* === EMERGENCY SERVICES PAGE === */
.emergency-hero {
  align-items: start;
}

.emergency-hero-copy,
.emergency-hero-rail {
  display: grid;
  gap: var(--space-3);
}

.emergency-hero-rail {
  align-self: center;
}

.signal-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 85% 12%, rgba(217, 72, 27, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow-elevated);
}

.signal-kicker,
.offer-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.signal-title,
.offer-card-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.signal-list {
  display: grid;
  gap: 0.95rem;
}

.signal-list li {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.signal-list strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  color: var(--text);
}

.signal-list span,
.offer-copy {
  color: rgba(245, 245, 247, 0.82);
}

.offer-grid {
  align-items: stretch;
}

.offer-card {
  height: 100%;
  display: grid;
  gap: 0.9rem;
}

.offer-card-head {
  display: grid;
  gap: 0.45rem;
}

.offer-actions {
  margin-top: auto;
}

.service-pillar,
.scope-card {
  height: 100%;
}

.service-pillar {
  border-top: 2px solid rgba(217, 72, 27, 0.58);
}

.faq-list {
  display: grid;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    var(--panel-dark);
}

.faq-item[open] {
  border-color: rgba(217, 72, 27, 0.36);
  box-shadow: 0 16px 32px rgba(11, 31, 58, 0.32);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-3) var(--space-4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 var(--space-4) var(--space-4);
  color: rgba(245, 245, 247, 0.84);
}

.emergency-cta {
  gap: var(--space-3);
}

/* === CARDS === */
.page-panel,
.info-card,
.value-card,
.package-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.info-card,
.package-card {
  display: grid;
  gap: 0.75rem;
  padding: var(--space-4);
}

.value-card { padding: var(--space-3); }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

/* === LISTS === */
.bullet-list { display: grid; gap: 0.55rem; }

.bullet-list li {
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--accent);
}

/* === PROOF STRIP === */
.proof-strip {
  grid-column: 1 / -1;
  border-left: 3px solid var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(217, 72, 27, 0.09), rgba(217, 72, 27, 0.02) 38%, rgba(255, 255, 255, 0.02) 100%),
    var(--panel);
  padding: var(--space-3) var(--space-4);
  display: grid;
  gap: 0.55rem;
}

.proof-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.proof-strip h3 {
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  line-height: 1.15;
  color: var(--text);
}

.proof-lead {
  color: rgba(245, 245, 247, 0.86);
  max-width: 78ch;
}

.proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin-top: 0.1rem;
}

.proof-points span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.55rem;
}

/* === CTA BAND === */
.cta-band {
  background: linear-gradient(135deg, rgba(217, 72, 27, 0.2), rgba(217, 72, 27, 0.07));
  border: 1px solid rgba(217, 72, 27, 0.32);
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

/* === PACKAGE CARD === */
.package-card.default {
  background: rgba(217, 72, 27, 0.1);
  border-color: rgba(217, 72, 27, 0.55);
  box-shadow: var(--shadow-elevated);
}

/* === FORM === */
.form-grid {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  max-width: 60rem;
}
.form-field { display: grid; gap: 0.4rem; }

.form-intro,
.form-note {
  color: rgba(245, 245, 247, 0.88);
  max-width: 58ch;
}

.form-intro {
  font-size: 1rem;
  line-height: 1.6;
}

.form-note {
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-field label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 0;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(217, 72, 27, 0.06);
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder,
textarea::placeholder {
  color: rgba(245, 245, 247, 0.19);
  font-size: 0.84rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.form-optional-details {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    var(--panel-dark);
}

.form-optional-details[open] {
  border-color: rgba(217, 72, 27, 0.36);
  box-shadow: 0 16px 32px rgba(11, 31, 58, 0.32);
}

.form-optional-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-3);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.form-optional-details summary::-webkit-details-marker {
  display: none;
}

.form-optional-details summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.form-optional-details[open] summary::after {
  content: '-';
}

.form-optional-body {
  display: grid;
  gap: var(--space-3);
  padding: 0 var(--space-3) var(--space-3);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.form-status.is-success { color: #8ed9b3; }
.form-status.is-error { color: #ff8f70; }

/* === ACCENT MARK === */
.accent-mark {
  opacity: 0.52;
  width: clamp(5rem, 11vw, 7.5rem);
}

/* ===================================================
   HOME COMPOSITION - Shift5-inspired editorial grid
   =================================================== */

.home-composition {
  padding-top: var(--gap);
  position: relative;
  isolation: isolate;
}

.home-grid {
  display: grid;
  gap: var(--gap);
}

/* ---- HOME LOAD SEQUENCE (front page only) ---- */
.home-composition::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background:
    radial-gradient(circle at 78% 22%, rgba(217, 72, 27, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(7, 17, 33, 0.72), rgba(10, 27, 49, 0.58));
  opacity: 0;
  animation: bootOverlayFade 620ms ease-out 80ms both;
}

.home-composition::after {
  content: none;
}

.home-primary {
  animation: softFade 620ms ease-out 120ms both;
}

.hero-kicker-line {
  animation: softFade 620ms ease-out 190ms both;
}

.home-primary-sub {
  animation: softFade 620ms ease-out 240ms both;
}

.home-primary h1 {
  animation: softFade 650ms ease-out 280ms both;
}

.home-primary-lead {
  animation: softFade 620ms ease-out 340ms both;
}

.home-primary .button-row {
  animation: softFade 620ms ease-out 400ms both;
}

.rail-callout {
  animation: softFade 620ms ease-out 220ms both;
}

.rail-status {
  animation: softFade 620ms ease-out 290ms both;
}

.status-list li {
  opacity: 0;
  animation: statusFade 420ms ease-out both;
}

.status-list li::after {
  transform: none;
  opacity: 1;
  animation: none;
}

.status-list li:nth-child(1)  { animation-delay: 430ms; }
.status-list li:nth-child(2)  { animation-delay: 470ms; }
.status-list li:nth-child(3)  { animation-delay: 510ms; }
.status-list li:nth-child(4)  { animation-delay: 550ms; }
.status-list li:nth-child(5)  { animation-delay: 590ms; }
.status-list li:nth-child(6)  { animation-delay: 630ms; }
.status-list li:nth-child(7)  { animation-delay: 670ms; }
.status-list li:nth-child(8)  { animation-delay: 710ms; }
.status-list li:nth-child(9)  { animation-delay: 750ms; }
.status-list li:nth-child(10) { animation-delay: 790ms; }

.home-visual {
  position: relative;
  overflow: hidden;
}

.home-visual::before {
  content: none;
}

.home-visual img {
  opacity: 0;
  animation: imageFade 760ms ease-out 320ms both;
}

.home-ops .status-fill {
  animation: softFade 620ms ease-out 500ms both;
}

.home-strips .home-strip:nth-child(1) {
  animation: softFade 620ms ease-out 560ms both;
}

.home-strips .home-strip:nth-child(2) {
  animation: softFade 620ms ease-out 620ms both;
}

.proof-strip {
  animation: softFade 620ms ease-out 680ms both;
}

.home-code,
.home-binary-rail {
  position: relative;
}

.home-code::after,
.home-binary-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateX(-130%) translateZ(0);
  background: linear-gradient(
    90deg,
    transparent 30%,
    rgba(217, 72, 27, 0.18) 50%,
    transparent 70%
  );
}

.home-code::after {
  animation: none;
}

.home-binary-rail::after {
  animation: none;
}

.home-code pre .binary-accent {
  animation: none;
}

@keyframes bootOverlayFade {
  0%   { opacity: 0.95; }
  70%  { opacity: 0.5; }
  100% { opacity: 0; }
}

@keyframes softFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes statusFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes imageFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ---- HOME PRIMARY (orange hero panel) ---- */
.home-primary {
  background: var(--accent);
  color: var(--brand-midnight);
  padding: clamp(1.35rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: clamp(16rem, 33vw, 24rem);
}

.home-hero-top {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

/* Kicker + sub-text in a row above the H1 */
.home-hero-header-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

/* "Responsible /" line */
.hero-kicker-line {
  font-family: 'Barlow Condensed', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.95rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: rgba(11, 31, 58, 0.64);
  white-space: normal;
}

/* The massive display word */
.home-primary h1 {
  font-family: 'Barlow Condensed', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3.35rem, 6.8vw, 6.1rem);
  line-height: 0.89;
  letter-spacing: -0.03em;
  color: var(--brand-midnight);
  margin-top: 0;
  max-width: none;
}

/* Right-side sub descriptor */
.home-primary-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.58);
  line-height: 1.2;
  max-width: none;
  padding-top: 0;
  flex-shrink: 0;
}

/* Lead paragraph */
.home-primary-lead {
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(11, 31, 58, 0.76);
  max-width: 46ch;
  line-height: 1.52;
}

.home-primary .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
  max-width: 42rem;
}

.home-primary .btn-dark,
.home-primary .btn-outline-dark {
  font-size: 0.74rem;
  min-height: 2.75rem;
}

.home-primary-cta {
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.26;
  padding: 0.78rem 1rem;
}

.home-secondary-cta {
  width: 100%;
  min-width: 0;
  background: rgba(11, 31, 58, 0.22);
  border-color: rgba(11, 31, 58, 0.46);
  color: rgba(245, 245, 247, 0.92);
  padding-inline: 1.05rem;
}

.home-secondary-cta:hover,
.home-secondary-cta:focus-visible {
  background: rgba(11, 31, 58, 0.36);
  border-color: rgba(11, 31, 58, 0.62);
  color: var(--text);
}

/* ---- HOME RAIL (right column) ---- */
.home-rail {
  display: grid;
  gap: var(--gap);
  grid-template-rows: auto 1fr;
}

.home-ops {
  background: var(--panel-dark);
  display: flex;
  padding: 0;
}

.home-binary-rail {
  background: var(--panel-dark);
  padding: var(--space-3);
  display: flex;
  align-items: flex-end;
}

.rail-panel {
  padding: var(--space-3);
}

.rail-callout { background: var(--panel); }

.rail-callout h3 {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.3;
  color: var(--text);
  font-weight: 500;
}

.rail-status {
  background: var(--panel-dark);
  display: flex;
  flex-direction: column;
}

.rail-status > .kicker {
  display: block;
  color: var(--accent);
  letter-spacing: 0.16em;
  padding-bottom: 0.6rem;
  margin-bottom: var(--space-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Numbered status list with indicator dots */
.status-list {
  display: grid;
  gap: 0;
  counter-reset: status-counter;
}

.status-list li {
  counter-increment: status-counter;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.6);
}
.status-list li:last-child { border-bottom: none; }

.status-list li::before {
  content: counter(status-counter, decimal-leading-zero) '.';
  color: rgba(245, 245, 247, 0.3);
  font-size: 0.58rem;
  flex-shrink: 0;
}

.status-list li .status-label { flex: 1; }

.status-list li::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: auto;
}

/* Rail fill module for desktop dead-space removal */
.status-fill {
  margin-top: 0;
  flex: 1;
  min-height: 14rem;
  padding: 0.85rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 26px
    ),
    linear-gradient(135deg, rgba(16, 41, 71, 0.95), rgba(14, 39, 70, 0.95));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.75rem;
}

.status-fill > * {
  position: relative;
  z-index: 1;
}

.status-fill::before {
  content: '';
  position: absolute;
  inset: 48% 0 0 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 20px
    );
  opacity: 0.22;
  pointer-events: none;
}

.status-fill::after {
  content: '';
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -7rem;
  bottom: -8rem;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 247, 0.16);
  box-shadow:
    0 0 0 2rem rgba(245, 245, 247, 0.035),
    0 0 0 4rem rgba(245, 245, 247, 0.02),
    0 0 0 6rem rgba(245, 245, 247, 0.015);
  pointer-events: none;
}

.status-fill-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.7);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.status-grid span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.53rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.status-trace {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.status-trace li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-trace li:last-child { border-bottom: none; }

.status-trace span,
.status-trace strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-trace span { color: rgba(245, 245, 247, 0.56); }

.status-trace strong {
  color: var(--accent);
  font-weight: 700;
}

/* Binary fill text at bottom of status panel */
.status-binary {
  margin-top: 0;
  padding-top: 0;
}

.status-binary pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.52rem;
  line-height: 1.7;
  color: rgba(245, 245, 247, 0.15);
  white-space: pre;
  word-break: normal;
  user-select: none;
}

/* ---- HOME VISUAL ---- */
.home-visual {
  overflow: hidden;
  position: relative;
  min-height: 20rem;
}

.home-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

/* ---- HOME CODE decoration ---- */
.home-code {
  background: var(--bg-soft);
  padding: var(--space-3);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 6.5rem;
}

.home-code pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.46rem, 0.75vw, 0.58rem);
  line-height: 1.8;
  color: rgba(245, 245, 247, 0.18);
  white-space: pre-wrap;
  word-break: break-all;
  user-select: none;
}

.home-code pre .binary-accent {
  color: var(--accent);
  font-weight: 700;
}

/* ---- HOME TWO-LANE SECTION ---- */
.home-strips {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.home-strip {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.home-strip > .kicker {
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.5rem;
  margin-bottom: 0.05rem;
  display: block;
}

.home-strip h3 {
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  line-height: 1.22;
  color: var(--text);
  font-weight: 700;
}

.home-strip p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-strip .bullet-list {
  gap: 0.48rem;
  margin-top: 0.1rem;
}

.home-strip .bullet-list li {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(245, 245, 247, 0.84);
}

.home-strip .bullet-list li::before {
  top: 0.58rem;
  width: 0.28rem;
  height: 0.28rem;
}

.workflow-strip {
  border-left: 3px solid rgba(217, 72, 27, 0.9);
  background:
    linear-gradient(90deg, rgba(217, 72, 27, 0.14), rgba(217, 72, 27, 0.03) 35%, rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.strip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  padding-top: var(--space-1);
}
.strip-link::after { content: '→'; }
.strip-link:hover { color: var(--accent-hover); }

.strip-microcopy {
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(245, 245, 247, 0.84);
  margin-top: 0.28rem;
  flex: 0;
}

/* ---- ARROW CTA box ---- */
.arrow-cta {
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-3);
  min-height: 9rem;
  overflow: hidden;
  cursor: pointer;
}

.arrow-cta:hover { background: var(--accent-hover); }
.arrow-cta:active { transform: scale(0.99); }

.arrow-icon {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: var(--brand-midnight);
  display: block;
  font-family: 'Space Grotesk', 'Arial', sans-serif;
  font-weight: 700;
  transform: rotate(-45deg);
  transform-origin: center;
  margin-bottom: 0.1rem;
}

.arrow-cta:hover .arrow-icon {
  transform: rotate(-45deg) translateY(-4px);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.arrow-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.78);
  line-height: 1.3;
}

/* Hide old accent logo */
.home-accent-logo { display: none; }

/* === FOOTER === */
.site-footer {
  background: rgba(11, 31, 58, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: var(--space-6);
  padding: var(--space-5) 0;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
}

.footer-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.footer-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-links a,
.footer-legal a {
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

.footer-legal {
  margin-top: var(--space-2);
  opacity: 0.48;
}

/* ==============================
   RESPONSIVE BREAKPOINTS
   ============================== */

@media (max-width: 991px) {
  .home-ops {
    padding: var(--space-3);
  }

  .status-fill {
    margin-top: var(--space-2);
    min-height: 10rem;
  }

  .status-fill::after {
    width: 11rem;
    height: 11rem;
    right: -5rem;
    bottom: -5.5rem;
  }
}

@media (min-width: 640px) {
  .home-strips {
    grid-template-columns: 1fr 1fr;
  }

  .home-strips .home-strip:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .site-nav {
    left: auto;
    right: 1rem;
    width: 20rem;
  }

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

  .emergency-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.82fr);
    gap: var(--space-5);
  }

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

  /* Sub descriptor: fixed width on wider screens */
  .home-primary-sub {
    padding-top: 0.25rem;
    max-width: 20ch;
  }

}

@media (min-width: 992px) {
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    width: auto;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  .site-nav a {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible { background: rgba(255, 255, 255, 0.05); }

  /* Full editorial 2-column home grid */
  .home-grid {
    grid-template-columns: 1.65fr 1fr;
    grid-template-areas:
      "primary rail-top"
      "visual  rail-mid"
      "code    rail-bottom"
      "strips  strips";
  }

  .home-primary { grid-area: primary; }
  .home-rail    { grid-area: rail-top; }
  .home-ops     { grid-area: rail-mid; }
  .home-binary-rail { grid-area: rail-bottom; }
  .home-visual  { grid-area: visual; min-height: 26rem; }
  .home-code    { grid-area: code; }
  .home-strips  { grid-area: strips; }

  .home-ops .status-fill {
    min-height: 0;
    height: 100%;
  }

  /* Two-lane cards on desktop */
  .home-strips {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1200px) {
  .home-primary h1 {
    font-size: clamp(4rem, 5.6vw, 6.1rem);
  }
}

@media (max-width: 767px) {
  main { padding-bottom: var(--space-5); }

  .page-hero {
    gap: var(--space-1);
    padding: var(--space-3) 0 var(--space-2);
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 9.2vw, 2.6rem);
    line-height: 1;
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .page-section {
    gap: var(--space-2);
    padding-top: var(--space-3);
  }

  .page-section h2 {
    font-size: clamp(1.25rem, 6.8vw, 1.8rem);
    line-height: 1.08;
  }

  .section-lead {
    font-size: 0.96rem;
  }

  .info-card,
  .package-card,
  .value-card,
  .cta-band {
    padding: var(--space-3);
  }

  .accent-mark { display: none; }

  .signal-panel,
  .faq-item summary {
    padding: var(--space-3);
  }

  .form-intro,
  .form-note {
    max-width: none;
  }

  .form-intro {
    font-size: 0.96rem;
  }

  .form-note {
    font-size: 0.88rem;
  }

  .form-field label {
    font-size: 0.72rem;
  }

  .form-optional-details summary {
    font-size: 0.8rem;
  }

  .faq-item p {
    padding: 0 var(--space-3) var(--space-3);
  }

  .home-primary {
    min-height: 0;
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .home-hero-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .hero-kicker-line {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
    white-space: normal;
  }

  .home-primary h1 {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
    margin-top: 0;
    line-height: 0.92;
    max-width: 8ch;
  }

  .home-primary-sub {
    max-width: none;
    padding-top: 0;
    font-size: 0.68rem;
  }

  .home-primary-lead {
    font-size: 0.84rem;
    max-width: none;
  }

  .home-primary .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .home-primary-cta {
    width: 100%;
  }

  .home-secondary-cta {
    min-width: 0;
    width: 100%;
  }

  .rail-status,
  .home-ops,
  .home-binary-rail,
  .home-code {
    display: none;
  }

  .home-visual { min-height: 13rem; }

  .proof-strip { padding: var(--space-3); }
}

@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-composition::before,
  .home-composition::after,
  .home-visual::before,
  .home-code::after,
  .home-binary-rail::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .home-primary,
  .hero-kicker-line,
  .home-primary-sub,
  .home-primary h1,
  .home-primary-lead,
  .home-primary .button-row,
  .rail-callout,
  .rail-status,
  .status-list li,
  .status-list li::after,
  .home-visual img,
  .home-ops .status-fill,
  .home-strips .home-strip:nth-child(1),
  .home-strips .home-strip:nth-child(2),
  .proof-strip,
  .home-code pre .binary-accent {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}
