@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* WD-004 · Field utility / military utility
   Palette: od green #3C4A2A / signal #C45C26 / field #E6E2D6
   Radius: 0px · Font: IBM Plex Sans · Nav: square tabs · Hero: data bars */

:root {
  --od: #3c4a2a;
  --od-deep: #2a3420;
  --signal: #c45c26;
  --signal-deep: #a34a1c;
  --field: #e6e2d6;
  --field-deep: #d4d0c2;
  --ink: #1f2618;
  --muted: #5a6150;
  --line: #b8b4a6;
  --paper: #f0ece2;
  --wide: min(1200px, calc(100% - 48px));
  --radius: 0px;
  --grid-line: rgba(60, 74, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.65;
  background-color: var(--field);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--field) 0%, var(--paper) 55%, var(--field-deep) 100%);
  background-size: 32px 32px, 32px 32px, auto;
  background-attachment: fixed, fixed, scroll;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--muted); }
strong { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: "IBM Plex Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--od);
  line-height: 1.15;
}

/* —— Header / square-tab nav —— */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--od);
  border-bottom: 3px solid var(--signal);
}

.nav-wrap {
  width: var(--wide);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #fff;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(230, 226, 214, 0.35);
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(230, 226, 214, 0.45);
  background: transparent;
  border-radius: 0;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fff;
  cursor: pointer;
}

.square-nav,
.pill-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(230, 226, 214, 0.35);
}

.square-nav a,
.pill-nav a {
  padding: 12px 16px;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 226, 214, 0.85);
  border-right: 1px solid rgba(230, 226, 214, 0.25);
  transition: background 0.15s ease, color 0.15s ease;
}

.square-nav a:last-child,
.pill-nav a:last-child { border-right: 0; }

.square-nav a:hover,
.pill-nav a:hover,
.square-nav a.is-active,
.pill-nav a.is-active {
  background: rgba(230, 226, 214, 0.12);
  color: #fff;
}

.square-nav a.cta,
.pill-nav a.cta {
  background: var(--signal);
  color: #fff;
}

.square-nav a.cta:hover,
.pill-nav a.cta:hover {
  background: var(--signal-deep);
  color: #fff;
}

/* —— Layout —— */
main { display: block; }

.section {
  width: var(--wide);
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact { padding: 36px 0 12px; }

.section-head { margin-bottom: 28px; max-width: 70ch; }

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.lead {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: 1.08rem;
}

/* —— Buttons / CTA —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  background: var(--signal);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--signal);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.btn.secondary {
  background: transparent;
  color: var(--od) !important;
  border-color: var(--od);
}

.btn.secondary:hover {
  background: var(--od);
  color: #fff !important;
}

/* —— Hero: full-width statement + data bars —— */
.hero {
  text-align: left;
  padding-top: 64px;
  padding-bottom: 40px;
  display: block;
}

.hero-statement {
  max-width: 52rem;
  margin-bottom: 36px;
}

.hero-logo {
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
  border-radius: 0;
  border: 2px solid var(--od);
}

.hero h1 {
  margin: 12px 0 18px;
  max-width: 22ch;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  letter-spacing: 0.04em;
  color: var(--od);
}

.hero .lead { margin-bottom: 28px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
}

.hero-actions .btn { margin-right: -2px; }

.hero-visual {
  display: none;
}

/* Data bars (not cards) */
.data-bars,
.proof-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 36px 0 0;
  max-width: none;
  border: 2px solid var(--od);
  background: rgba(240, 236, 226, 0.65);
}

.data-bar,
.proof {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 20px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--od);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 72px;
}

.data-bar:last-child,
.proof:last-child { border-bottom: 0; }

.data-bar::before,
.proof::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(60, 74, 42, 0.1);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.data-bar.is-drawn::before,
.proof.is-drawn::before,
.data-bars.is-drawn .data-bar::before,
.data-bars.is-drawn .proof::before,
.proof-row.is-drawn .data-bar::before,
.proof-row.is-drawn .proof::before {
  width: 100%;
}

.data-bar > *,
.proof > * { position: relative; z-index: 1; }

.data-bar-label,
.data-bar span,
.proof span {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  padding: 14px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--od);
  border-right: 2px solid var(--od);
}

.data-bar-body,
.proof strong {
  display: block;
  padding: 14px 18px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}

.proof p,
.data-bar p {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 0.9rem;
  grid-column: 2;
}

/* —— Mosaic —— */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--od);
}

.media-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: rgba(240, 236, 226, 0.75);
  border: 0;
  border-right: 1px solid var(--od);
  border-bottom: 1px solid var(--od);
  box-shadow: none;
  transition: background 0.15s ease;
}

.media-card:nth-child(3n) { border-right: 0; }
.media-card:nth-child(n+4) { border-bottom: 0; }

.media-card:hover { background: #fff; transform: none; }

.media-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.media-card .caption { padding: 16px 18px 18px; }

.media-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.media-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* —— Deep dive / alt —— */
.alt {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 32px;
  border-radius: 0;
  background: rgba(240, 236, 226, 0.7);
  border: 2px solid var(--od);
  margin-bottom: 0;
  margin-top: -2px;
}

.alt:first-of-type { margin-top: 0; }
.alt.reverse { direction: rtl; }
.alt.reverse > * { direction: ltr; }

.alt h3 {
  margin: 8px 0 12px;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.alt img {
  border-radius: 0;
  border: 2px solid var(--od);
}

/* —— Legal strip —— */
.legal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--od);
}

.legal-strip a {
  display: block;
  padding: 18px;
  border-radius: 0;
  background: var(--od);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-right: 1px solid rgba(230, 226, 214, 0.25);
}

.legal-strip a:last-child { border-right: 0; }

.legal-strip a:hover { background: var(--od-deep); }

.legal-strip a span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* —— CTA band —— */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: var(--od);
  color: #fff;
  border: 2px solid var(--od);
  box-shadow: none;
  overflow: hidden;
}

.cta-band > div:first-child {
  padding: 36px;
  border-right: 2px solid rgba(230, 226, 214, 0.2);
}

.cta-band p { color: rgba(230, 226, 214, 0.88); }

.cta-band h2 {
  margin: 8px 0 12px;
  letter-spacing: 0.05em;
  color: #fff;
}

.cta-band .eyebrow { color: var(--signal); }

.cta-band .btn {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff !important;
}

.cta-band .btn:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.cta-meta {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 28px;
  border-radius: 0;
  background: var(--od-deep);
  border: 0;
}

.cta-meta strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 4px;
}

.cta-meta a { color: #fff; font-weight: 600; }

/* —— Inner pages —— */
.page-hero {
  padding-top: 56px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--od);
  margin-bottom: 8px;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: 0.04em;
  max-width: 22ch;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
  align-items: start;
  border: 2px solid var(--od);
}

.panel {
  padding: 28px;
  border-radius: 0;
  background: rgba(240, 236, 226, 0.75);
  border: 0;
  border-right: 2px solid var(--od);
}

.panel h2,
.panel h3 {
  color: var(--od);
  letter-spacing: 0.05em;
}

.related {
  position: sticky;
  top: 16px;
  padding: 22px;
  border-radius: 0;
  background: var(--od);
  border: 0;
  color: #fff;
}

.related h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.1em;
}

.related a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(230, 226, 214, 0.25);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(230, 226, 214, 0.9);
}

.related a:first-of-type { border-top: 0; }
.related a:hover { color: #fff; }

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--od);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 2px solid var(--od);
}

.soft-card {
  padding: 20px;
  border-radius: 0;
  background: rgba(240, 236, 226, 0.7);
  border: 0;
  border-right: 1px solid var(--od);
  border-bottom: 1px solid var(--od);
}

.soft-card:nth-child(2n) { border-right: 0; }
.soft-card h3 {
  margin: 0 0 8px;
  color: var(--od);
  font-size: 0.95rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: var(--od-deep);
  color: var(--field);
  border-top: 3px solid var(--signal);
}

.footer-split {
  width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-links h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: rgba(230, 226, 214, 0.8);
  font-size: 0.92rem;
}

.footer-links a:hover { color: #fff; }

.contact-panel {
  padding: 22px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(230, 226, 214, 0.2);
}

.contact-panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.contact-panel p {
  margin: 0 0 10px;
  color: rgba(230, 226, 214, 0.78);
}

.contact-panel a {
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  width: var(--wide);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 226, 214, 0.15);
  color: rgba(230, 226, 214, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .mosaic,
  .legal-strip,
  .grid-two,
  .footer-links { grid-template-columns: 1fr 1fr; }

  .media-card { border-right: 1px solid var(--od); border-bottom: 1px solid var(--od); }
  .media-card:nth-child(2n) { border-right: 0; }
  .media-card:nth-child(n+4) { border-bottom: 1px solid var(--od); }
  .media-card:nth-last-child(-n+2) { border-bottom: 0; }

  .alt,
  .alt.reverse,
  .cta-band,
  .content-wrap,
  .footer-split {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .cta-band > div:first-child { border-right: 0; border-bottom: 2px solid rgba(230, 226, 214, 0.2); }
  .panel { border-right: 0; border-bottom: 2px solid var(--od); }
  .related { position: static; }
  .legal-strip a:nth-child(2n) { border-right: 0; }
  .legal-strip a:nth-child(-n+2) { border-bottom: 1px solid rgba(230, 226, 214, 0.25); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .square-nav,
  .pill-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    padding: 0;
    background: var(--od-deep);
    border: 0;
    border-top: 2px solid var(--signal);
    box-shadow: 0 12px 24px rgba(31, 38, 24, 0.35);
  }

  .square-nav.is-open,
  .pill-nav.is-open { display: flex; }

  .square-nav a,
  .pill-nav a {
    border-right: 0;
    border-bottom: 1px solid rgba(230, 226, 214, 0.15);
  }

  .nav-wrap {
    position: relative;
    width: min(1200px, calc(100% - 28px));
  }

  .section { width: min(1200px, calc(100% - 28px)); padding: 48px 0; }
  .footer-split,
  .footer-bottom { width: min(1200px, calc(100% - 28px)); }

  .mosaic,
  .legal-strip,
  .grid-two,
  .footer-links { grid-template-columns: 1fr; }

  .media-card,
  .legal-strip a,
  .soft-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--od);
  }

  .media-card:last-child,
  .legal-strip a:last-child { border-bottom: 0; }

  .data-bar,
  .proof {
    grid-template-columns: 1fr;
  }

  .data-bar-label,
  .data-bar span,
  .proof span {
    border-right: 0;
    border-bottom: 1px solid rgba(230, 226, 214, 0.2);
  }

  .proof p,
  .data-bar p { grid-column: 1; }

  .brand span { max-width: 48vw; font-size: 0.72rem; }
  .hero { padding-top: 40px; }
  .hero h1 { max-width: none; }
  .cta-band > div:first-child,
  .alt,
  .panel { padding: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { margin-right: 0; width: 100%; }
}
