/* ============================================================
   Azeem Baig — Fulfilment & Operations Consultant
   Design system: industrial / waybill aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #15181B;
  --paper: #EFEBE1;
  --paper-dim: #E4DFD1;
  --signal: #FF4E1F;
  --signal-dim: #C93D16;
  --steel: #3D4A52;
  --line: #C9C2B0;
  --line-soft: rgba(21,24,27,0.12);
  --stamp: #2F5233;
  --white: #FBFAF6;

  --display: 'Big Shoulders Stencil', sans-serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--signal);
  display: inline-block;
  border-radius: 1px;
}

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--steel);
  max-width: 62ch;
}

.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 24px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: var(--signal); border-color: var(--signal); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}
.btn-signal:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Header ---------- */

header.site {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.wordmark {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wordmark .mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0;
  flex-shrink: 0;
}
nav.main {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main a:hover, nav.main a.active {
  color: var(--ink);
  border-color: var(--signal);
}
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.mobile-toggle { display: none; }
@media (max-width: 859px) {
  nav.main { display: none; }
  .mobile-toggle {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid var(--ink);
    background: none;
    padding: 8px 14px;
    cursor: pointer;
  }
  nav.main.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    padding: 20px 28px 24px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1.5px solid var(--ink);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  margin: 18px 0 22px;
}
.hero h1 span { color: var(--signal); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: end;
  margin-top: 28px;
}
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Manifest route strip ---------- */

.manifest {
  border: 1.5px solid var(--ink);
  background: var(--white);
  padding: 18px 20px;
}
.manifest-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.route {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--mono);
  font-size: 13.5px;
}
.route .stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.route .stop::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}
.route .stop:first-child::before { background: var(--stamp); }
.route .arrow { color: var(--line); margin: 0 10px; }

/* ---------- Sections ---------- */

section { padding: 76px 0; }
section.tight { padding: 56px 0; }
.section-head {
  margin-bottom: 44px;
  max-width: 68ch;
}
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 14px; }

.divider {
  border: none;
  border-top: 1.5px solid var(--ink);
  margin: 0;
}
.divider-soft {
  border: none;
  border-top: 1px dashed var(--line);
}

section.on-ink {
  background: var(--ink);
  color: var(--paper);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
section.on-ink .eyebrow { color: var(--signal); }
section.on-ink h2, section.on-ink h1, section.on-ink h3 { color: var(--paper); }
section.on-ink .lede { color: #B9C2C6; }

section.on-signal {
  background: var(--signal);
  color: var(--white);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
section.on-signal .eyebrow { color: var(--ink); }
section.on-signal h2 { color: var(--white); }

/* ---------- Waybill cards ---------- */

.waybill {
  border: 1.5px solid var(--ink);
  background: var(--white);
  padding: 26px 24px;
  position: relative;
  height: 100%;
}
.waybill::before, .waybill::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  top: -6px;
}
.waybill::before { left: -6px; }
.waybill::after { right: -6px; }
.waybill .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-dim);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
  display: block;
}
.waybill h3 {
  font-size: 24px;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
  font-weight: 700;
}
.waybill p { color: var(--steel); font-size: 15px; }
.waybill ul { margin: 14px 0 0; padding-left: 18px; color: var(--steel); font-size: 14.5px; }
.waybill li { margin-bottom: 6px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */

.stat {
  border: 1.5px solid var(--line-soft);
  padding: 20px 18px;
}
section.on-ink .stat { border-color: rgba(239,235,225,0.25); }
.stat .num {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 600;
  color: var(--signal);
  line-height: 1;
}
.stat .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 10px;
  display: block;
}
section.on-ink .stat .label { color: #9BA7AC; }

/* ---------- Timeline ---------- */

.tl-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px dashed var(--line);
}
.tl-item:first-child { border-top: 1.5px solid var(--ink); }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 8px; } }
.tl-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--signal-dim);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.tl-content h3 {
  font-family: var(--body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 21px;
  margin-bottom: 4px;
}
.tl-content .role-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}
.tl-content p { color: var(--steel); font-size: 15px; max-width: 68ch; }
.tl-content ul { color: var(--steel); font-size: 14.5px; padding-left: 18px; margin: 10px 0 0; max-width: 68ch; }
.tl-content li { margin-bottom: 5px; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
footer.site h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 14px;
  font-weight: 500;
}
footer.site a { text-decoration: none; color: var(--paper); opacity: 0.85; }
footer.site a:hover { opacity: 1; color: var(--signal); }
footer.site .flinks { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid rgba(239,235,225,0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: #9BA7AC;
  letter-spacing: 0.02em;
}

/* ---------- Misc components ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 7px 12px;
  background: var(--white);
}

.quote-block {
  border-left: 3px solid var(--signal);
  padding-left: 24px;
  font-family: var(--display);
  text-transform: none;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 700;
  max-width: 50ch;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }

.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  transform: rotate(-1.5deg);
}

.page-hero {
  padding: 56px 0 44px;
  border-bottom: 1.5px solid var(--ink);
}
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); margin-top: 14px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
