:root {
  --ground:  #111318;
  --surface: #1c2029;
  --text:    #e2ddd5;
  --accent:  #c8341a;
  --steel:   #a8c4d8;
  --muted:   #636878;
  --rule:    #252b38;
  --rail:    3px solid var(--accent);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--ground);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── NAV ──────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(17, 19, 24, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.nav-brand .slash { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* ── MAIN ─────────────────────────────────────────────── */

main { padding-top: 4.5rem; }

/* ── HERO ─────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 55%, rgba(200, 52, 26, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 55% at 15% 80%, rgba(168, 196, 216, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  animation: fade-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2.75rem;
  animation: fade-up 1.4s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-body {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 3rem;
  animation: fade-up 1.4s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-actions {
  display: flex;
  gap: 1px;
  animation: fade-up 1.4s 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── CTA BUTTONS ──────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  transition: border-color 0.2s, background 0.2s;
}

.cta:hover {
  border-color: var(--accent);
  background: rgba(200, 52, 26, 0.07);
}

.cta.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cta.primary:hover {
  background: #a8280f;
  border-color: #a8280f;
}

.cta-arrow { transition: transform 0.2s; }
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ── STATS BAR ────────────────────────────────────────── */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat { background: var(--ground); padding: 2.5rem; }

.stat-value {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.stat-value sup { color: var(--accent); font-size: 0.55em; vertical-align: super; }

.stat-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ── SECTION ──────────────────────────────────────────── */

.section {
  padding: 5rem 2.5rem;
  border-top: 1px solid var(--rule);
}

.section-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 3.5rem;
}

/* ── EXPLORE CARDS (homepage nav panels) ──────────────── */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1px;
  background: var(--rule);
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2.5rem;
  background: var(--ground);
  text-decoration: none;
  border-top: var(--rail);
  transition: background 0.2s;
}

.explore-card:hover { background: var(--surface); }

.explore-card-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.explore-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--text);
}

.explore-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.explore-card-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.5rem;
}

/* ── PAGE HERO (interior pages) ───────────────────────── */

.breadcrumb {
  padding: 1.25rem 2.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.page-hero { padding: 4rem 2.5rem 3rem; border-bottom: 1px solid var(--rule); }

.page-hero-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.page-hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.page-hero-sub {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ── MODEL CARDS ──────────────────────────────────────── */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1px;
  background: var(--rule);
}

.model-card {
  background: var(--ground);
  padding: 2.5rem;
  border-left: var(--rail);
  transition: background 0.2s;
}

.model-card:hover { background: var(--surface); }

.model-ref {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.model-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.model-years {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.model-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-style: italic;
}

.spec-table { width: 100%; border-collapse: collapse; }

.spec-table tr { border-bottom: 1px solid var(--rule); }

.spec-table td {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0;
  color: var(--muted);
  vertical-align: baseline;
}

.spec-table td:last-child { text-align: right; color: var(--text); }

/* ── TIMELINE ─────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 1.5rem;
  max-width: 52rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 2.5rem;
  width: 1px;
  background: var(--rule);
}

.timeline-entry {
  position: relative;
  padding: 0 0 3.5rem 2.5rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-year {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.timeline-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
}

/* ── FOOTER ───────────────────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
}

.footer-mark {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── FOCUS ────────────────────────────────────────────── */

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }

  .hero { padding: 1.5rem 1.25rem 2.5rem; }
  .hero-actions { flex-direction: column; }

  .section { padding: 3.5rem 1.25rem; }

  .stats-bar { grid-template-columns: 1fr; }
  .stat { padding: 2rem 1.25rem; }

  .breadcrumb { padding: 1rem 1.25rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }

  .model-card { padding: 1.75rem 1.25rem; }

  footer { flex-direction: column; gap: 1.25rem; padding: 1.75rem 1.25rem; }
}
