/* ==========================================================
   BRANDT SYSTEMS — dispatch-board stylesheet
   Palette: paper / ink / line / signal / steel / stamp
   Type: Archivo Black (display) · Instrument Sans (body) · IBM Plex Mono (data)
   ========================================================== */

:root {
  --paper: #F2F3F1;
  --ink: #14181B;
  --line: #C9CDC8;
  --signal: #FF4E1A;
  --steel: #5A646B;
  --stamp: #1F4D3A;

  --font-display: "Archivo", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --shell-max: 1120px;
  --pad: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

::selection { background: var(--ink); color: var(--paper); }

/* Focus — visible everywhere */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--paper);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--pad); top: -100px;
  z-index: 100;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 0.8125rem;
  padding: 10px 14px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- type scale ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.1rem, 6.5vw, 3.9rem); max-width: 17ch; }
h2 { font-size: clamp(1.55rem, 4vw, 2.4rem); max-width: 24ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 1.1rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.btn-signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}
.btn-signal:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  z-index: 50;
}

@media (min-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  list-style: none;
}

.nav-list a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--steel);
}
.nav-list a:hover { color: var(--ink); }

.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 6px 12px;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 72px; }

.hero .sub {
  max-width: 54ch;
  margin: 1.4rem 0 1.8rem;
  color: var(--steel);
  font-size: 1.125rem;
}

/* ---------- the intake race ---------- */

.race {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}

.ticket {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(20, 24, 27, 0.08); /* the one allowed elevation */
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.ticket-code { color: var(--steel); }
.ticket-name { font-weight: 500; }

.race-log {
  list-style: none;
  padding: 6px 0;
  min-height: 230px;
}

.race-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.race-row:last-child { border-bottom: 0; }

.race-row.is-on { opacity: 1; transform: none; }

.race-row .t {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding-top: 1px;
  white-space: nowrap;
}

.race-row.dead .t,
.race-row.dead .d { color: var(--steel); }

.race-row.win .t,
.race-row.win .d { color: var(--signal); font-weight: 500; }

.race-stamp-row {
  padding: 12px 16px 16px;
  min-height: 58px;
}

.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: rotate(-2deg) scale(1.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stamp.is-on { opacity: 1; transform: rotate(-2deg) scale(1); }

.stamp-lost { color: var(--steel); }
.stamp-booked { color: var(--stamp); }

/* ---------- sections / work-order grid ---------- */

.section {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.section-head { margin-bottom: 2.6rem; }

.section-sub {
  max-width: 58ch;
  margin-top: 1.1rem;
  color: var(--steel);
}

/* ---------- the leak ---------- */

.ledger {
  list-style: none;
  border-top: 1px solid var(--ink);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-what { max-width: 58ch; }

.ledger-cost {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
  white-space: nowrap;
}

.closer {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: -0.01em;
  max-width: 30ch;
}

/* ---------- rate card ---------- */

.tickets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.offer {
  display: flex;
  flex-direction: column;
}

.offer-featured { border-top: 3px solid var(--signal); }

.chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
}

.chip-signal {
  color: var(--signal);
  border: 1px solid var(--signal);
}

.offer-body { padding: 20px 16px 8px; flex: 1; }

.offer-body h3 { margin-bottom: 0.4rem; }

.price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.price-note {
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.06em;
}

.deliverables {
  list-style: none;
  border-top: 1px solid var(--line);
}

.deliverables li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9375rem;
}

.next-step {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-top: 14px;
}

.offer-foot {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.offer-foot a {
  display: block;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.offer-foot a:hover { background: var(--ink); color: var(--paper); }

/* ---------- how it works ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}

.step {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 18px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
  grid-row: span 2;
  padding-top: 5px;
}

.step h3 { font-size: 1.1rem; }

.step p {
  max-width: 52ch;
  color: var(--steel);
  font-size: 0.9375rem;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  max-width: 280px;
  background: #E7E9E6;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.about-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-top: 10px;
}

.about-copy p { max-width: 58ch; }
.about-copy p + p { margin-top: 1rem; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--ink); }

.faq-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-row dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  max-width: 26ch;
}

.faq-row dd {
  color: var(--steel);
  max-width: 58ch;
  font-size: 0.9375rem;
}

/* ---------- final CTA band ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0;
}

.band h2 {
  color: var(--paper);
  max-width: 18ch;
  margin-bottom: 2rem;
}

.band-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--line);
  margin-top: 1.8rem;
}

.band-mono a { color: var(--paper); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--steel);
  border-top: 1px solid var(--steel);
  padding: 22px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.site-footer .wordmark { color: var(--paper); }
.site-footer a { color: var(--line); }

/* ==========================================================
   breakpoints — mobile-first
   ========================================================== */

@media (min-width: 720px) {
  :root { --pad: 32px; }

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

  .ledger-row {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .faq-row { grid-template-columns: 260px 1fr; }

  .about-grid { grid-template-columns: 280px 1fr; }
}

@media (min-width: 980px) {
  .hero { padding: 88px 0 96px; }

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

  .steps { grid-template-columns: 1fr 1fr 1fr 1fr; border-top: 0; }

  .step {
    grid-template-columns: 1fr;
    border-bottom: 0;
    border-top: 1px solid var(--ink);
    padding: 22px 24px 0 0;
  }

  .step-num { grid-row: auto; margin-bottom: 10px; }
}

/* ==========================================================
   reduced motion — race freezes at end state
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .race-row, .stamp {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .stamp { transform: rotate(-2deg); }
}
