:root {
  --ink: #1c1814;
  --navy: #0e2244;
  --navy-2: #1a3d6e;
  --gold: #c4a046;
  --gold-ink: #6f4e0c;
  --paper: #f4f1ea;
  --card: #ffffff;
  --line: #e2d9cc;
  --muted: #5c5348;
  --hero: url("images/hero-durango.jpg");
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--navy-2); }
a:hover { text-decoration: none; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--navy);
  color: #e4d7b4;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.topbar a { color: #fff; }

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.badge-mark { width: 52px; height: auto; display: block; flex: none; }
.page-badge { width: 168px; float: right; margin: 0 0 12px 22px; }
.train-intro { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.train-intro img { width: 150px; height: auto; }
.reassure { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 22px; margin-top: 22px; }
.reassure h2 { margin-top: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: auto; display: block; object-fit: cover; }
.gallery.filled {
  display: block;
  columns: 2;
  column-gap: 16px;
}
.gallery.filled figure {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 16px !important;
  grid-column: auto !important;
}
.media-wait {
  background: #fff;
  border: 1px dashed var(--line);
  padding: 48px 28px;
  text-align: center;
}
.media-wait h2 { margin: 0 0 8px; }
.media-wait p { margin: 0 auto; max-width: 36rem; color: var(--muted); }

.command {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.command article.feature { grid-column: 1 / -1; }
.command article.feature > .bio-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 8px 40px;
  align-items: start;
}
.command article.feature > .bio-row.has-photo {
  grid-template-columns: minmax(240px, 320px) 1fr;
}
.command .portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  margin: 0 0 16px;
}
.command .portrait.wide { object-position: 58% center; }
.command article {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
}
.command img { width: 100%; height: auto; display: block; }
.command > article > div { padding: 22px 22px 26px; }
.command .call {
  margin: 0 0 6px;
  color: var(--gold-ink);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}
.command h3 { margin: 0 0 8px; font-size: 1.55rem; }
.command .role {
  margin: 0 0 8px;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.command p { margin: 0; color: var(--muted); }
.command .thanks {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
}
.command .bio-copy p + p { margin-top: 10px; }
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-top: 2px;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-left: auto;
  justify-content: flex-end;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.site-header nav a.active,
.site-header nav a:hover { color: var(--gold-ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(6, 10, 18, 0.2) 0%, rgba(6, 10, 18, 0.05) 38%, rgba(6, 10, 18, 0.72) 68%, rgba(6, 10, 18, 0.9) 100%),
    var(--hero);
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  color: #fff;
  padding: 72px 0;
}
.hero .wrap { display: flex; justify-content: flex-end; }
.hero-grid { max-width: 520px; }
.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #f0e2bc;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; margin: 0 0 16px; }
.lede { font-size: 1.15rem; max-width: 40rem; color: #f3efe6; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #fff;
}
.btn.btn-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.btn-line-dark {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.city-band { background: #fff; border-bottom: 1px solid var(--line); }
.city-pair { display: grid; grid-template-columns: 1fr 1fr; }
.city-pair article { padding: 28px 8px; }
.city-pair article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.city-pair h2 { margin: 0 0 6px; font-size: 1.6rem; color: var(--navy); }
.city-pair p { margin: 0; color: var(--muted); }

.notice {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.notice p { margin: 0; padding: 12px 0; }

.section { padding: 64px 0; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 10px; }
.section-lead { color: var(--muted); max-width: 46rem; margin: 0 0 28px; }
.kicker {
  margin: 0 0 8px;
  color: var(--gold-ink);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}
a.more { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; }

.facts, .cards, .steps {
  display: grid;
  gap: 16px;
}
.facts { grid-template-columns: repeat(3, 1fr); }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps { grid-template-columns: repeat(3, 1fr); }
.card, .fact, .step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
}
.card h3, .fact h3, .step h3 { margin: 0 0 8px; font-size: 1.35rem; }
.card p, .fact p, .step p { margin: 0; color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.step b {
  display: block;
  color: var(--gold-ink);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.band {
  background: var(--navy);
  color: #fff;
}
.band .section-lead, .band p { color: #e7e0d2; }
.band .kicker { color: #f0e2bc; }
.band .btn { color: var(--navy); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.prose p { color: #243246; }
.prose p + p { margin-top: 14px; }
.page-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 18, 0.12) 0%, rgba(6, 10, 18, 0.22) 42%, rgba(6, 10, 18, 0.9) 100%),
    var(--hero);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 72px 0 48px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.page-hero p { max-width: 40rem; color: #f3efe6; margin: 0; }
.page-hero a { color: #fff; }

code {
  font-family: ui-monospace, Consolas, monospace;
  background: #efe6d4;
  padding: 2px 6px;
}

.contact-list { display: grid; gap: 12px; }
.contact-list a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.contact-list a span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}

.footer {
  background: #09162c;
  color: #d9d0c2;
  padding: 28px 0 36px;
  font-size: 0.92rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}
.footer strong { color: #fff; display: block; font-family: var(--serif); font-size: 1.05rem; }
.footer a { color: #fff; }
.footer p { margin: 8px 0 0; max-width: 42rem; }

body.wall-durango { --hero: url("images/hero-durango.jpg"); }
body.wall-tactical { --hero: url("images/hero-tactical.jpg"); }
body.wall-scene { --hero: url("images/hero-scene.jpg"); }
body.wall-stop { --hero: url("images/hero-stop.jpg"); }
body.wall-tahoe { --hero: url("images/hero-tahoe.jpg"); }
body.wall-russ { --hero: url("images/hero-russ.jpg"); }
body.wall-vest { --hero: url("images/hero-vest.jpg"); }
body.wall-heli { --hero: url("images/media-heli-roof.jpg"); }
body.wall-charger { --hero: url("images/media-charger-stop.jpg"); }
body.wall-vest .page-hero {
  min-height: 680px;
  background-position: center center, center 92%;
}

@media (max-width: 980px) {
  .facts, .steps, .split, .footer-row, .city-pair, .command,
  .command article.feature > .bio-row,
  .command article.feature > .bio-row.has-photo { grid-template-columns: 1fr; display: grid; }
  .command .portrait { max-width: 420px; }
  .city-pair article + article { border-left: 0; padding-left: 8px; border-top: 1px solid var(--line); }
  .train-intro { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery.filled { columns: 1; }
  .gallery figure { grid-column: auto !important; margin-top: 0 !important; }
  .page-badge { float: none; display: block; margin: 0 0 16px; }
  .hero {
    min-height: 620px;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(6, 10, 18, 0.86)),
      var(--hero);
    background-position: center center;
  }
  .hero .wrap { justify-content: flex-start; }
  .page-hero { min-height: 420px; }
  .nav-toggle { display: inline-flex; }
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .site-header.open nav { display: flex; }
  .header-row { flex-wrap: wrap; }
  .topbar-row { flex-direction: column; gap: 4px; }
}
