:root {
  --ink: #17202a;
  --muted: #64707a;
  --paper: #f7f5ef;
  --paper-deep: #e6e0d2;
  --panel: #ffffff;
  --navy: #133d63;
  --blue: #0f5b93;
  --olive: #4d5a2e;
  --red: #c7332b;
  --gold: #f2ae24;
  --line: rgba(23, 32, 42, 0.14);
  --shadow: 0 18px 48px rgba(23, 32, 42, 0.16);
  --shadow-soft: 0 10px 28px rgba(23, 32, 42, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0) 280px),
    var(--paper);
  color: var(--ink);
  font-family: Barlow, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  box-shadow: 0 8px 30px rgba(23, 32, 42, 0.12);
}

.brand img {
  width: min(290px, 44vw);
}

.main-nav {
  justify-self: end;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  color: #293745;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--gold);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.header-action,
.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 10px 24px rgba(199, 51, 43, 0.26);
}

.button.secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.46);
}

.button.dark {
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 24px rgba(19, 61, 99, 0.20);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 42px;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 20, 28, 0.93) 0%, rgba(9, 20, 28, 0.70) 42%, rgba(9, 20, 28, 0.08) 100%),
    linear-gradient(0deg, rgba(9, 20, 28, 0.72) 0%, rgba(9, 20, 28, 0) 55%);
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding-bottom: 72px;
}

.eyebrow,
.section-kicker,
.vehicle-type {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1,
.intro-band h2,
.section-heading h2,
.archive-copy h2,
.visit-copy h2,
.support h2 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.hero-copy {
  max-width: 650px;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 42px;
  width: min(360px, calc(100vw - 40px));
  padding: 22px;
  background: rgba(247, 245, 239, 0.94);
  color: var(--ink);
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
}

.hero-panel span,
.visit-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.intro-band,
.collection,
.archive-preview,
.visit,
.support {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  background: var(--panel);
}

.intro-band h2,
.section-heading h2,
.archive-copy h2,
.visit-copy h2,
.support h2 {
  margin: 0;
  color: #203046;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
}

.intro-band p:last-child,
.section-heading p,
.archive-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.62;
}

.collection {
  background: #e9e4d8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.vehicle-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-card.feature img {
  aspect-ratio: 16 / 9;
}

.vehicle-card div {
  padding: 20px;
}

.vehicle-card h3 {
  margin: 0 0 8px;
  color: #203046;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.vehicle-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.archive-preview {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #18271d;
  color: white;
}

.archive-copy h2 {
  color: white;
}

.archive-copy p {
  margin: 18px 0 24px;
  color: rgba(255,255,255,0.74);
}

.archive-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.archive-search,
.metric,
.record-list {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.archive-search {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
}

.archive-search span {
  color: var(--muted);
}

.archive-search strong {
  font-size: 1.35rem;
}

.metric {
  min-height: 116px;
  padding: 18px;
  border-top: 5px solid var(--olive);
}

.metric.confirmed { border-color: #2f7d47; }
.metric.possible { border-color: #e48627; }
.metric.unknown { border-color: #2171a8; }

.metric strong {
  display: block;
  font-size: 2.35rem;
  color: #1d512e;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.record-list {
  grid-column: 1 / -1;
  overflow: hidden;
}

.record-list a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.record-list a:last-child {
  border-bottom: 0;
}

.record-list span {
  font-weight: 800;
  color: var(--navy);
}

.record-list em {
  color: var(--muted);
  font-style: normal;
}

.visit {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--panel);
}

.visit-image img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.visit-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.visit-list div {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: #f3f0e8;
}

.visit-list strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.support {
  text-align: center;
  background: #d9d7cf;
}

.support h2 {
  margin-bottom: 26px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.support-actions a {
  min-width: 170px;
  padding: 16px 20px;
  background: var(--navy);
  color: white;
  border-radius: 4px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #111921;
  color: rgba(255,255,255,0.72);
}

.site-footer img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.page-main {
  min-height: 100vh;
  padding-top: 88px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 142px) clamp(20px, 5vw, 72px) clamp(54px, 7vw, 84px);
  background:
    linear-gradient(120deg, rgba(18, 39, 29, 0.98), rgba(18, 39, 29, 0.92)),
    url("assets/restoration-transport.png") center / cover;
  color: white;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--blue));
}

.page-hero h1,
.vehicle-body h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: 0.98;
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 1.16rem;
  line-height: 1.6;
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 5vw, 72px) clamp(60px, 8vw, 110px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0)),
    var(--paper-deep);
}

.collection-item {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.collection-item:first-child {
  grid-column: span 2;
}

.collection-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.collection-item img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collection-item div {
  display: flex;
  min-height: 310px;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 4vw, 44px);
}

.collection-item h2 {
  margin: 0 0 12px;
  color: #203046;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1;
}

.collection-item p:not(.vehicle-type) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.collection-item .text-link {
  margin-top: auto;
  padding-top: 22px;
}

.vehicle-page {
  min-height: 100vh;
  padding-top: 88px;
  background:
    linear-gradient(180deg, var(--paper-deep) 0, var(--paper) 420px),
    var(--paper);
}

.vehicle-hero-image {
  width: 100%;
  height: clamp(360px, 52vw, 620px);
  object-fit: cover;
  border-bottom: 5px solid var(--gold);
}

.vehicle-body {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  margin-top: clamp(-110px, -8vw, -70px);
  padding: clamp(34px, 6vw, 76px) clamp(22px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.98);
  border: 1px solid rgba(23, 32, 42, 0.10);
  border-radius: 6px 6px 0 0;
  box-shadow: var(--shadow);
}

.vehicle-body .lead {
  margin: 22px 0;
  color: #26384b;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
  font-weight: 700;
}

.vehicle-body h2 {
  margin: 42px 0 14px;
  color: #203046;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.vehicle-body p:not(.section-kicker):not(.lead) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.inline-image {
  width: 100%;
  margin: 30px 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.inline-image.small {
  max-width: 620px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 30px 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.spec-grid span,
.spec-grid strong,
.spec-grid dt,
.spec-grid dd {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.spec-grid span,
.spec-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-grid strong,
.spec-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.vehicle-actions .text-link {
  margin-top: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-bottom: 240px;
  }

  .intro-band,
  .archive-preview,
  .visit {
    grid-template-columns: 1fr;
  }

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

  .collection-list {
    grid-template-columns: 1fr 1fr;
  }

  .collection-item:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 72px;
    padding: 12px 16px;
  }

  .brand img {
    width: min(230px, 56vw);
  }

  .header-action {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 780px;
    padding: 106px 18px 28px;
  }

  .hero-content {
    padding-bottom: 270px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 28px;
    width: auto;
  }

  .archive-dashboard {
    grid-template-columns: 1fr;
  }

  .archive-search,
  .record-list a {
    grid-template-columns: 1fr;
    display: grid;
  }

  .record-list a {
    gap: 4px;
  }

  .site-footer {
    align-items: flex-start;
  }

  .collection-list {
    grid-template-columns: 1fr;
  }

  .collection-item div {
    min-height: 0;
  }

  .vehicle-body {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

  .spec-grid span {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
