/* ───────────────────────────────────────────────────────
   DHVC — Design System
   Aligned with DHVC Brand Guide v1.0 · May 2026
   Typography substitutes (Google Fonts):
     Saira Stencil One → for Liberator Light (display, caps)
     Big Shoulders Display → for Bank Gothic (subheads, caps)
     Carlito → for Calibri (body, mixed case)
   ─────────────────────────────────────────────────────── */

:root {
  /* Brand guide palette (page 8) */
  --ink-black: #0B0D10;
  --gunmetal: #2A2D33;
  --flag-red: #8B1F2A;
  --flag-navy: #1A2B4A;
  --bone: #D9CFB8;
  --electric: #00A8E8;

  /* Working aliases */
  --bg: var(--ink-black);
  --bg-panel: var(--gunmetal);
  --fg: var(--bone);
  --fg-dim: #a8a08e;
  --fg-mute: #7a7468;
  --accent: var(--flag-red);
  --accent-bright: #a82a36;
  --border: rgba(217, 207, 184, 0.10);
  --border-bright: rgba(217, 207, 184, 0.22);

  /* Type stacks */
  --font-display: 'Roboto', 'Arial Black', 'Impact', sans-serif;
  --font-subhead: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Carlito', 'Calibri', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --max-w: 1200px;
  --pad-x: clamp(1.5rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 100;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--fg); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--electric); }

/* ─── NAVIGATION ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo {
  height: 36px;
  width: 36px;
  display: block;
  border-radius: 50%;
}
.nav-brand:hover { color: var(--fg); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav-links a { color: var(--fg-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-bright); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--fg);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem var(--pad-x);
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ─── LAYOUT PRIMITIVES ─── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--pad-x);
}
.section-tight { padding: 3rem var(--pad-x); }
.section-wide { padding: 7rem var(--pad-x); }

.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ─── TYPOGRAPHY ─── */

/* Eyebrows / kickers — small caps mono per guide */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.72rem;
  color: var(--electric);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--electric);
}
.eyebrow.red { color: var(--accent-bright); }
.eyebrow.red::before { background: var(--accent-bright); }

/* Display headings — Roboto Black, caps, tight */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }

/* Subheads — Big Shoulders Display, caps */
h3 {
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
h4 {
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

/* Body — Carlito, mixed case, 1.4 line height per guide */
p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 38rem;
  margin-bottom: 1rem;
}
p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--fg);
  max-width: 44rem;
  margin-bottom: 1.25rem;
}
p strong { color: var(--fg); font-weight: 700; }
p em { font-style: italic; color: var(--fg); }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  margin-bottom: 0.5rem;
}

/* TM mark utility */
.tm {
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 0.05em;
  color: var(--fg-dim);
}

/* ─── BANNER ─── */
.banner {
  background: var(--accent);
  color: var(--fg);
  padding: 0.7rem var(--pad-x);
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
}

/* ─── HERO ─── */
.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 4rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 50%;
}
.fullname {
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 28rem;
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 3rem var(--pad-x); }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ─── STAT BLOCKS ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border);
  text-align: left;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: var(--accent-bright);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem var(--pad-x); }
  .stat:last-child { border-bottom: none; }
}

/* ─── PILLARS — six pillars per brand guide ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.pillar {
  padding: 2.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillar:nth-child(3n) { border-right: none; }
.pillar:nth-child(n+4) { border-bottom: none; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  margin-bottom: 0.8rem;
}
.pillar-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.pillar-sub {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 920px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3n) { border-right: 1px solid var(--border); }
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .pillar:nth-child(n+5) { border-bottom: none; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .pillar:last-child { border-bottom: none !important; }
}

/* ─── PANELS & CARDS ─── */
.panel {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 2.5rem;
  position: relative;
}
.panel.bracketed::before,
.panel.bracketed::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
}
.panel.bracketed::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.panel.bracketed::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.panel h2, .panel h3 { color: var(--fg); }

/* ─── ENTITY GRID (Corps page) ─── */
.entity-list { display: grid; gap: 0; }
.entity {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.entity:last-child { border-bottom: none; }
.entity-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.entity-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.entity-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-mute);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.entity-status.active { color: var(--electric); border-color: rgba(0, 168, 232, 0.4); }
@media (max-width: 600px) {
  .entity { grid-template-columns: 1fr; gap: 1rem; }
  .entity-num { font-size: 2.2rem; }
}

/* ─── FORM ─── */
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-mute);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-bright);
  padding: 0.6rem 0;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-field textarea { min-height: 100px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--electric);
}
.honeypot { position: absolute; left: -9999px; }

button, .btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 1rem 1.75rem;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  width: 100%;
}
button:hover, .btn:hover {
  background: var(--accent);
  color: var(--fg);
}
button:disabled { opacity: 0.5; cursor: wait; }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-bright);
  width: auto;
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); }

.success-msg, .error-msg {
  display: none;
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
  font-family: var(--font-body);
}
.success-msg.show, .error-msg.show { display: block; }
.success-msg { color: var(--fg); border-color: var(--accent); }
.error-msg { color: var(--accent-bright); }

/* ─── PULL QUOTE / ETHOS ─── */
.pullquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-transform: uppercase;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
  max-width: 50rem;
}
.pullquote .attribution {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-mute);
  margin-top: 1.5rem;
  font-weight: 400;
}

/* ─── FOOTER ─── */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 4rem var(--pad-x) 2rem;
}
.foot-inner { max-width: var(--max-w); margin: 0 auto; }
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.foot-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 1rem;
  border-radius: 50%;
}
.foot-brand .wordmark-sm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.foot-tagline {
  font-size: 0.92rem;
  color: var(--fg-dim);
  max-width: 24rem;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--fg-mute);
  margin-bottom: 1rem;
  font-weight: 400;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.foot-col a { color: var(--fg-dim); }
.foot-col a:hover { color: var(--electric); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
}
@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
.fade-up.d5 { animation-delay: 0.7s; }
.fade-up.d6 { animation-delay: 0.85s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}
