/* Intermodal Originals — rail-freight industrial editorial */
:root {
  --steel-950: #0e1116;
  --steel-900: #14171c;
  --steel-800: #1b212b;
  --steel-700: #262f3b;
  --line: #333c49;
  --text: #e8ebef;
  --muted: #a9b2be;
  --faint: #8a919c;
  --amber: #f5a623;
  --amber-dim: #c98416;
  --amber-glow: rgba(245, 166, 35, 0.12);
  --maxw: 960px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--steel-950);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.nav-logo:hover { text-decoration: none; color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--amber); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--amber); color: var(--amber) !important;
  padding: 0.4rem 0.9rem; border-radius: 4px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber-glow); }

/* ---- Hero ---- */
.hero {
  padding: 5.5rem 1.5rem 3.5rem; text-align: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(245,166,35,0.045) 46px 48px),
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--steel-800) 0%, var(--steel-950) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  color: var(--amber); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  max-width: 640px; margin: 0 auto 1.25rem;
}
.hero-lede { color: var(--muted); font-size: 1.05rem; max-width: 680px; margin: 0 auto 2.25rem; }
.hero-lede em { color: var(--text); font-style: normal; font-weight: 600; }

.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-ctas.center { margin-top: 2.25rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 4px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #14171c; }
.btn-primary:hover { background: #ffb93e; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* rail divider: two rails with ties */
.rail-divider { max-width: 520px; margin: 3.5rem auto 0; position: relative; height: 14px; }
.rail-divider::before, .rail-divider::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: var(--steel-700); border-radius: 2px;
}
.rail-divider::before { top: 0; } .rail-divider::after { bottom: 0; }
.rail-divider span {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 26px);
}

/* ---- Chapters ---- */
.chapter { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.chapter-alt { background: var(--steel-900); }
.kicker {
  color: var(--amber); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 0.9rem;
}
.chapter h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase; letter-spacing: 0.015em; margin-bottom: 1.25rem;
  line-height: 1.05;
}
.chapter-intro { color: var(--muted); font-size: 1.08rem; max-width: 700px; margin-bottom: 2rem; }
.chapter p { margin-bottom: 1.1rem; color: var(--muted); }
.chapter p strong { color: var(--text); }

/* timeline */
.timeline { position: relative; margin: 2.5rem 0 1rem 0.5rem; padding-left: 2rem; border-left: 2px solid var(--line); }
.tl-item { position: relative; margin-bottom: 2rem; }
.tl-item::before {
  content: ""; position: absolute; left: -2.62rem; top: 0.35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--steel-950); border: 3px solid var(--amber);
}
.tl-year {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem !important; font-weight: 700;
}
.tl-item p { margin-bottom: 0; max-width: 680px; }

.pull-quote {
  border-left: 4px solid var(--amber); padding: 1rem 1.5rem; margin: 2.5rem 0 0 !important;
  font-size: 1.25rem; font-weight: 600; color: var(--text) !important; max-width: 640px;
  background: var(--amber-glow);
}

/* two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.col h3 {
  font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--amber); margin-bottom: 1rem;
}
.fact-list { list-style: none; margin-bottom: 1.1rem; }
.fact-list li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; color: var(--muted); }
.fact-list li::before { content: "▸"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

.tagline-strip {
  font-family: var(--font-display); font-size: 1.6rem !important; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--amber) !important; margin-top: 1.5rem !important; font-weight: 700;
}

.chapter-comeback {
  background: linear-gradient(180deg, var(--steel-900) 0%, #17130b 100%);
}

/* social cards */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.social-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--steel-800); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.5rem; transition: border-color 0.15s ease, transform 0.15s ease;
}
a.social-card:hover { text-decoration: none; border-color: var(--amber); transform: translateY(-2px); }
.social-name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.social-handle { color: var(--amber); font-size: 0.9rem; font-weight: 600; }
.social-desc { color: var(--faint); font-size: 0.9rem; }
.social-pending { opacity: 0.65; border-style: dashed; }
.social-pending-note { color: var(--faint) !important; }

/* ---- Footer ---- */
.footer { background: var(--steel-900); padding: 3rem 0 2rem; border-top: 2px solid var(--amber); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-sub { color: var(--faint); font-size: 0.9rem; margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.footer-links a:hover { color: var(--amber); text-decoration: none; }
.footer-copy { text-align: center; color: var(--faint); font-size: 0.82rem; }

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 1.75rem; }
  .social-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .chapter { padding: 3rem 0; }
  .footer-inner { flex-direction: column; }
}
