/* ──────────────────────────────────────────
   APEX FED SUPPLY
   Navy · Barlow Condensed + Barlow + Space Grotesk
   ────────────────────────────────────────── */

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

:root {
  --bg:       #0a1628;
  --bg-alt:   #0f2040;
  --bg-dark:  #071020;
  --fg:       #f4f6f9;
  --fg-2:     #c8d4e8;
  --fg-3:     #8a9ab5;
  --gold:     #c8a84b;
  --gold-mid: rgba(200,168,75,0.22);
  --border:   rgba(255,255,255,0.08);
  --border-m: rgba(255,255,255,0.13);
}

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.3;
}

h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
p  { font-size: 0.9375rem; line-height: 1.7; }
a  { color: inherit; }

dt { display: block; }
dd { display: block; }

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section { padding: 3.5rem 0; }

.section-header { margin-bottom: 1.5rem; }

.gold-rule {
  width: 36px;
  height: 2px;
  background: var(--gold);
  opacity: 0.55;
  margin-top: 0.75rem;
}

/* ── NAV ── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 66px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

#main-nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.45); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}

.nav-logo-text span {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.35em;
  color: var(--fg-3);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

.nav-cta {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: var(--bg-dark) !important;
  background: var(--gold) !important;
  padding: 0.5rem 1.125rem !important;
  text-decoration: none !important;
  transition: opacity 0.15s !important;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center !important;
}

.nav-cta:hover { opacity: 0.85 !important; }

/* Hamburger — CSS-only lines via ::before/::after on inner span */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  position: relative;
  transition: background 0.2s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s;
}

.hamburger-icon::before { top: -6.5px; }
.hamburger-icon::after  { top:  6.5px; }

.hamburger.open .hamburger-icon { background: transparent; }
.hamburger.open .hamburger-icon::before { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open .hamburger-icon::after  { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  background: var(--bg-dark);
  padding-top: 66px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  animation: grid-pulse 6s ease-in-out infinite;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,75,0.35), transparent);
  pointer-events: none;
  z-index: 0;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-mark {
  display: block;
  width: 80px;
  height: auto;
  margin-bottom: 1.75rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 24px rgba(200,168,75,0.15));
}

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.hero-title .word { display: inline-block; will-change: transform, opacity; }
.hero-title { color: var(--fg); max-width: 16ch; }

.hero-tagline {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 52ch;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero-tagline.visible { opacity: 1; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
}

.hero-actions.visible { opacity: 1; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
}

.hero-trust li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.hero-trust li + li::before {
  content: '·';
  margin: 0 0.625rem;
}

/* ── HERO PANEL ── */
.hero-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border-m);
  border-left: 2px solid var(--gold);
  padding: 1.5rem;
  position: sticky;
  top: 78px;
}

.panel-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pk {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.pv {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
  text-align: right;
  line-height: 1.4;
}

.pv-naics {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-family: 'Space Grotesk', sans-serif;
}

.pv-pending {
  color: var(--fg-3) !important;
  font-style: italic;
}

.panel-contact {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-top: 1px solid var(--border-m);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.panel-contact a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.15s;
}

.panel-contact a:hover { color: var(--gold); }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.8rem 1.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--border-m);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-ghost:hover { color: var(--fg); border-color: var(--fg-3); }

/* ── MODEL ── */
#model {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.model-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.model-step {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  border-top: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.model-step:hover {
  border-top-color: var(--gold);
  background: var(--bg-alt);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.model-step h3 { margin-bottom: 0.5rem; }
.model-step p { font-size: 0.875rem; color: var(--fg-2); line-height: 1.65; }

/* ── WHO WE SERVE ── */
#serve {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.serve-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.serve-item {
  background: var(--bg-alt);
  padding: 1.625rem 1.75rem;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.serve-item:hover {
  border-left-color: var(--gold);
  background: var(--bg);
}

.serve-item h3 { margin-bottom: 0.4rem; }
.serve-item p { font-size: 0.875rem; color: var(--fg-2); line-height: 1.6; }

/* ── WHY APEX ── */
#why {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.pillar {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  border-top: 2px solid transparent;
  transition: border-top-color 0.2s, background 0.2s;
  cursor: pointer;
}

.pillar:last-child { border-right: none; }
.pillar:hover { border-top-color: var(--gold); background: var(--bg-alt); }

.pillar-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { font-size: 0.875rem; color: var(--fg-2); line-height: 1.65; }

/* ── SUPPLY TABLE (semantic <table>) ── */
#supply {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.supply-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.supply-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--bg-dark);
  padding: 0.5rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-m);
}

.supply-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.supply-table tbody tr:last-child { border-bottom: none; }
.supply-table tbody tr:hover { background: rgba(200,168,75,0.04); }

.supply-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: middle;
}

.supply-table th:nth-child(1),
.supply-table td:nth-child(1) { width: 24%; }

.supply-table th:nth-child(3),
.supply-table td:nth-child(3) { width: 140px; }

.supply-cat {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}

.supply-items {
  font-size: 0.875rem;
  color: var(--fg-2);
}

.naics-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold-mid);
  padding: 0.2rem 0.5rem;
  display: inline-block;
  white-space: nowrap;
}

.supply-naics-multi {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

/* ── ENTITY INFO (semantic <dl>) ── */
#entity {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.entity-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.entity-head { padding-top: 0.25rem; }

.entity-note {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 34ch;
}

.entity-data {
  border: 1px solid var(--border);
}

.entity-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.entity-row:last-child { border-bottom: none; }
.entity-row:hover { background: rgba(200,168,75,0.03); }

.ek {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.ev {
  font-size: 0.875rem;
  color: var(--fg);
  text-align: right;
  line-height: 1.4;
}

.ev-pending {
  color: var(--fg-3);
  font-style: italic;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.c-item-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.c-item-value {
  font-size: 0.9375rem;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.5;
}

.c-item-value a { text-decoration: none; transition: color 0.15s; }
.c-item-value a:hover { color: var(--gold); }

/* ── FORM ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.form-group input,
.form-group textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg-alt);
  border: 1px solid var(--border-m);
  padding: 0.7rem 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--fg-3); opacity: 0.55; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(200,168,75,0.25);
}

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

.form-submit {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 0.8rem 2rem;
  cursor: pointer;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  transition: opacity 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.form-submit:hover {
  opacity: 0.88;
  box-shadow: 0 0 20px rgba(200,168,75,0.3);
}

.form-submit.loading .submit-text { opacity: 0; }
.form-submit.loading .submit-loading { opacity: 1; }

.submit-loading {
  position: absolute;
  opacity: 0;
  font-size: 0.72rem;
  transition: opacity 0.15s;
}

.form-success {
  display: none;
  padding: 1.75rem;
  border: 1px solid var(--gold-mid);
  background: rgba(200,168,75,0.04);
  text-align: center;
  margin-top: 1.25rem;
}

.form-success.visible { display: block; }

.success-check { width: 48px; height: 48px; margin: 0 auto 0.875rem; display: block; }

.success-circle { stroke-dasharray: 160; stroke-dashoffset: 160; }
.success-tick   { stroke-dasharray: 50;  stroke-dashoffset: 50; }

.form-success.visible .success-circle { animation: draw-circle 0.5s ease forwards 0.1s; }
.form-success.visible .success-tick   { animation: draw-tick 0.4s ease forwards 0.5s; }

@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-tick   { to { stroke-dashoffset: 0; } }

.form-success p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.75rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand > p:not(.footer-naics) {
  font-size: 0.875rem;
  color: var(--fg-3);
  line-height: 1.7;
  max-width: 300px;
  margin-top: 0.625rem;
}

.footer-naics {
  margin-top: 0.625rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  opacity: 0.7;
}

.footer-col h4 { margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--fg); }

.footer-col p {
  font-size: 0.875rem;
  color: var(--fg-3);
  line-height: 1.85;
}

.footer-col p a { color: var(--fg-3); text-decoration: none; transition: color 0.15s; }
.footer-col p a:hover { color: var(--fg); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.disclaimer {
  font-size: 0.72rem;
  color: var(--fg-3);
  line-height: 1.6;
  max-width: 620px;
  opacity: 0.85;
}

.footer-addr {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  opacity: 0.6;
  white-space: nowrap;
}

/* ── FOCUS & INTERACTION ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.form-group input:focus-visible,
.form-group textarea:focus-visible { outline: none; }

.nav-logo, .btn-primary, .nav-cta, .form-submit,
.hamburger { cursor: pointer; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar { border-bottom: 1px solid var(--border); }
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:nth-child(3), .pillar:nth-child(4) { border-bottom: none; }

  .model-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--bg);
    padding: 1.25rem 2.5rem 1.75rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    gap: 0;
    z-index: 199;
  }

  .nav-links.open li { border-bottom: 1px solid var(--border); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a { display: block; padding: 0.75rem 0; font-size: 0.875rem; }
  .nav-links.open .nav-cta { display: inline-flex !important; margin-top: 0.875rem; }

  section { padding: 2.75rem 0; }
  .container { padding: 0 1.75rem; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .hero-mark { width: 64px; }
  .hero-panel { position: static; }
  .entity-layout { grid-template-columns: 1fr; gap: 2rem; }

  .model-header { align-items: flex-start; flex-direction: column; }
  .model-grid { grid-template-columns: 1fr 1fr; }

  /* Responsive table: collapse to stacked blocks */
  .supply-table thead { display: none; }
  .supply-table,
  .supply-table tbody,
  .supply-table tr,
  .supply-table td { display: block; width: 100%; }
  .supply-table tr { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
  .supply-table tr:last-child { border-bottom: none; }
  .supply-table td { padding: 0; }
  .supply-table td + td { margin-top: 0.3rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 640px) {
  section { padding: 2.25rem 0; }
  .container { padding: 0 1.25rem; }

  h1 { font-size: clamp(2rem, 10vw, 3rem); }

  .serve-list { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .pillar:last-child { border-bottom: none !important; }

  .model-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .entity-layout { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .footer-addr { white-space: normal; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-tagline, .hero-actions { opacity: 1 !important; }
}
