/* =====================================================================
   Drapeau's Sanitation LLC — styles.css
   Brand board identity + "Incident" broadsheet structure.
   No framework, no build step.
   ===================================================================== */

/* ---------------------------------------------------------------------
   TRUCK TUNING — edit these first
   --truck-w       Hero truck (restroom flatbed) width. Height follows the sprite.
   --truck-sink    How far the tires press into the road line. The sprites'
                   bottom edge is the tire contact line, so 0 = touching.
   --truck-park    Where the hero truck parks, % across the stage.
   --truck-foot-w  Footer truck (dump truck) width.
   Speeds, braking and suspension feel live at the top of the truck code in script.js.

   Where the road lines are:
     hero   = the top border of .stage__road (= top edge of the photo
              windows). The truck's box bottom is pinned to it in
              .truck--hero { bottom: ... }.
     footer = the top border of .footer. Truck pinned in .truck--foot.
   --------------------------------------------------------------------- */
:root {
  --truck-w: 340px;
  --truck-sink: 1px;
  --truck-park: 20%;
  --truck-foot-w: 200px;
}
@media (max-width: 767px) {
  :root {
    --truck-w: 190px;
    --truck-foot-w: 140px;
  }
}

/* ---------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------- */
:root {
  --concrete: #efefef;   /* page canvas */
  --paper: #ffffff;      /* cards / nav */
  --ink: #2f2e2e;        /* charcoal text */
  --rule: #111;          /* hairlines */
  --gray: #525252;       /* secondary text */
  --red: #d61043;        /* Drapeau red */
  --red-dark: #a50b32;   /* hover / pressed */
  --pink: #e8417f;       /* Cans for Cancer ONLY */
  --pink-wash: #fdeef4;  /* Cans for Cancer band */
  --shadow: 0 8px 15px -3px rgba(22, 22, 24, .04), 0 4px 6px -2px rgba(22, 22, 24, .06); /* photos only */

  --r-btn: 4px;
  --r-card: 12px;
  --max: 1200px;
  --gutter: 16px;
  --section: 64px;

  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-label: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;

  --truck-ratio-hero: .415;  /* height / width of truck-flatbed.webp */
  --truck-ratio-foot: .4292; /* height / width of truck-dump.webp */
  --win-h: 232px;        /* visible height of the hero photo windows */
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section: 96px;
  }
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 17px/1.5 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { font-size: 18px; }
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 2rem + 1.4vw, 48px); }
h3 { font-size: clamp(28px, 1.5rem + 1vw, 34px); line-height: 1.08; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  font: 500 14px/1 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 16px; }

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

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

/* ---------------------------------------------------------------------
   Buttons & links
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: 500 15px/1 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 16px; }

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color .15s ease;
}
.link:hover { color: var(--red); }
.link__arrow { display: inline-block; text-decoration: none; transition: transform .2s ease; }
.link:hover .link__arrow { transform: translateX(3px); }

/* Small uppercase section label with a red square marker */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  flex: none;
}

/* ---------------------------------------------------------------------
   Wordmark badge (recreated decal)
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 12px 8px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  line-height: 1;
  box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(255, 255, 255, .7);
  flex: none;
}
.badge__name {
  font: italic 700 23px/.95 var(--f-head);
  letter-spacing: -0.01em;
}
.badge__sub {
  margin-top: 4px;
  font: 500 9px/1 var(--f-label);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.badge--lg {
  padding: 16px 26px 18px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 5px rgba(255, 255, 255, .7);
}
.badge--lg .badge__name { font-size: clamp(52px, 9vw, 88px); }
.badge--lg .badge__sub { margin-top: 10px; font-size: clamp(12px, 1.4vw, 16px); letter-spacing: .32em; }

/* ---------------------------------------------------------------------
   1 · Ticker
   --------------------------------------------------------------------- */
.ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  font: 500 13px/1 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 11px 22px 11px 0;
  white-space: nowrap;
  flex: none;
}
.ticker__sep {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
}
.ticker__sep::before,
.ticker__sep::after {
  content: "";
  position: absolute;
  background: #fff;
}
.ticker__sep::before { left: 3px; top: 0; width: 3px; height: 9px; }
.ticker__sep::after { top: 3px; left: 0; width: 9px; height: 3px; }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; width: auto; }
  .ticker__group[aria-hidden] { display: none; }
  .ticker__group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    width: 100%;
    padding: 10px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

/* ---------------------------------------------------------------------
   2 · Nav
   --------------------------------------------------------------------- */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
}
.nav__inner > .badge { margin: 10px 0; }
@media (min-width: 960px) {
  .nav__inner > .badge { margin: 12px 0; }
}

.nav__links {
  order: 3;
  width: 100%;
  border-top: 1px solid var(--rule);
}
.nav__links ul {
  display: flex;
  justify-content: space-between;
}
.nav__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 500 13px/1 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
}
.nav__links a:hover { text-decoration-line: underline; }

.nav__call { display: none; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 500 15px/1 var(--f-label);
  letter-spacing: .06em;
  text-decoration: none;
}
.nav__phone .icon { color: var(--red); width: 16px; height: 16px; }

@media (min-width: 560px) {
  .nav__call { display: inline-flex; }
  .nav__phone { display: none; }
}
@media (min-width: 960px) {
  .nav__inner { flex-wrap: nowrap; min-height: 76px; }
  .nav__links { order: 0; width: auto; border-top: 0; margin-left: auto; }
  .nav__links ul { gap: 30px; }
  .nav__links a { font-size: 14px; }
  .nav__call { margin-left: 12px; }
}

/* ---------------------------------------------------------------------
   3 · Hero
   --------------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--rule);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12.5px/1.3 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.028em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--red);
}
.hero__sub {
  max-width: 34em;
  font-size: clamp(17px, 1rem + .3vw, 20px);
  line-height: 1.5;
  color: var(--ink);
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-top: 22px;
}
.hero__ctas .btn--lg { min-height: 50px; }
.hero__micro {
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray);
}
.hero__micro a {
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.hero__micro a:hover { color: var(--red); }

@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; justify-content: center; width: auto; max-width: none; }
}
@media (min-width: 768px) {
  .hero__copy { padding-top: 64px; }
  .eyebrow { font-size: 13px; }
  .hero h1 { margin: 24px 0 24px; }
  .hero__ctas { margin-top: 32px; gap: 12px; }
  .hero__ctas .btn--lg { min-height: 54px; }
  .hero__micro { margin-top: 16px; }
}

/* ---- The stage: road line + photo windows + the truck ---- */
.stage {
  position: relative;
  /* clip sideways only: the truck drives in/out past the screen edge */
  overflow-x: clip;
  overflow-y: visible;
  /* room above the road for the parked truck */
  padding-top: calc(var(--truck-w) * var(--truck-ratio-hero) + var(--truck-headroom));
  --truck-headroom: 20px;
}
@media (min-width: 768px) {
  .stage { --truck-headroom: 34px; }
}
.stage.is-truckless { padding-top: 44px; }

/* THE HERO ROAD LINE: this element's top border. Full-bleed so the truck
   is never driving on air when it enters from the screen edge. */
.stage__road {
  border-top: 1px solid var(--rule);
}
/* pulled up 1px so its top edge IS the road line's top edge */
.stage__inner { position: relative; margin-top: -1px; }

.stage__windows {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  align-items: start;
  height: var(--win-h);      /* window tops sit exactly on the road line */
  overflow: hidden;          /* bottoms cropped by the hero's bottom hairline */
}
.win {
  display: flex;
  flex-direction: column;
  height: calc(100% + 24px); /* taller than the crop, so no bottom edge shows */
  padding-bottom: 24px;      /* ...but the photo itself ends at the crop, so nothing important hides below it */
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.win:nth-child(n + 3) { display: none; }
.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rule);
  font: 500 10.5px/1 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.win__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.win img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}

/* Phones: all four windows as a 2 × 2 grid of complete little cards.
   The top row still hangs from the road line the truck drives on. */
@media (max-width: 639px) {
  .stage__windows {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: auto;
    overflow: visible;
    padding-bottom: 28px;           /* breathing room above the hero's bottom hairline */
  }
  .win,
  .win:nth-child(n + 3) {
    display: flex;
    height: auto;
    padding-bottom: 0;
    border-radius: var(--r-card);
  }
  .win img {
    flex: none;
    height: 150px;
  }
  .win__bar {
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: .07em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 640px) {
  :root { --win-h: 320px; }
  .stage__windows { grid-template-columns: 1fr 1.35fr 1fr; gap: 18px; }
  .win:nth-child(3) { display: flex; }
  .win__bar { height: 36px; padding: 0 14px; font-size: 11px; }
}
@media (min-width: 1100px) {
  :root { --win-h: 380px; }
  .stage__windows { grid-template-columns: .95fr 1.3fr 1fr .85fr; gap: 20px; }
  .win:nth-child(4) { display: flex; }
}

/* ---------------------------------------------------------------------
   The trucks — hero = the restroom flatbed, footer = the dump truck.
   Clean side-profile renders of his two real trucks (made in Higgsfield
   from his Facebook photos, rebuilt by assets/hf/build_trucks.py). Each
   wheel is its own round layer so it can actually roll. script.js drives:
     .truck__drive   translateX: where the truck is on the road
     .truck__body    suspension: road bob + pitch (nose lifts pulling
                     away, dips and settles when it brakes); the wheels
                     stay planted on the road
     .truck__wheel   rotation = distance travelled / wheel radius
   The sprite's bottom edge IS the tires' contact line.
   --------------------------------------------------------------------- */
.truck {
  position: absolute;
  left: var(--truck-park);
  width: var(--truck-w);
  z-index: 2;
  pointer-events: none;
  transform: translateY(var(--truck-sink));
}
.truck--hero {
  /* box bottom = top edge of the hero road line */
  bottom: 100%;
}
.truck__drive { position: relative; will-change: transform; }
.truck__body {
  position: relative;
  z-index: 1;
  transform-origin: 50% 100%;
  will-change: transform;
}
.truck__img { display: block; width: 100%; height: auto; }
.truck__wheel {
  position: absolute;
  z-index: 2;
  height: auto;
  aspect-ratio: 1;
  will-change: transform;
}

/* soft contact shadow on the road line */
.truck__shadow {
  position: absolute;
  left: 13%;
  right: 7%;
  bottom: 0;
  height: 10px;
  transform: translateY(50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(17, 17, 17, .26), rgba(17, 17, 17, .10) 60%, rgba(17, 17, 17, 0));
  z-index: 0;
}

/* JS on: keep a truck hidden until its sprite has actually loaded */
.js .truck:not(.is-ready) { visibility: hidden; }
.truck.is-missing { display: none; }

/* Footer truck: parks at the right end of the footer road */
.truck--foot {
  left: auto;
  right: 0;
  bottom: 0;
  width: var(--truck-foot-w);
}

/* ---------------------------------------------------------------------
   Sections (shared)
   --------------------------------------------------------------------- */
.section {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 8px;
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}
.section-head h2 { max-width: 18ch; }
.section-head--split { align-items: end; }
.section-head--split .kicker { margin-bottom: 18px; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 56px; gap: 20px; }
  .section-head--split {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
  .section-head--split .kicker { margin-bottom: 20px; }
}

/* Reveal on scroll (only when JS + motion are on) */
[data-reveal] {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.motion [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------------------------------------------------------------------
   4 · Proof strip
   --------------------------------------------------------------------- */
.proof {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.proof__cell {
  padding: 22px 16px 22px 16px;
  border-left: 1px solid var(--rule);
}
.proof__cell:nth-child(odd) { padding-left: 0; border-left: 0; }
.proof__cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }
.proof__big {
  font: 600 20px/1.15 var(--f-head);
  letter-spacing: -0.01em;
}
.proof__small {
  margin-top: 6px;
  font-size: 15px;
  color: var(--gray);
}
.proof__small a {
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.proof__small a:hover { color: var(--red); }

@media (min-width: 900px) {
  .proof__grid { grid-template-columns: repeat(4, 1fr); }
  .proof__cell,
  .proof__cell:nth-child(odd) { padding: 28px 24px; border-left: 1px solid var(--rule); }
  .proof__cell:first-child { padding-left: 0; border-left: 0; }
  .proof__cell:nth-child(n + 3) { border-top: 0; }
  .proof__big { font-size: 23px; }
  .proof__small { font-size: 16px; }
}

/* ---------------------------------------------------------------------
   5 · Services — broadsheet rows
   --------------------------------------------------------------------- */
.svc {
  display: grid;
  gap: 24px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--rule);
}
.svc__media { order: -1; position: relative; }
.svc__media > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.svc__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 13px/1 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.svc__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-weight: 600;
}
.svc__num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rule);
}
.svc h3 { margin: 16px 0 14px; max-width: 16ch; }
.svc__text > p:not(.svc__meta) { max-width: 44ch; margin-bottom: 10px; }

/* "Good for" tags — hairline work-order tags (Incident tag shape) */
.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}
.svc__tags li {
  padding: 6px 10px 5px;
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  background: var(--paper);
  font: 500 12px/1 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Restrooms: hand-wash station inset */
.svc__media--inset .svc__inset {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 5px solid var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .svc {
    --svc-photo: 42%;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--svc-photo));
    gap: 48px;
    align-items: center;
    padding: 48px 0;
  }
  .svc__media { order: 1; }
  .svc:nth-child(even) { grid-template-columns: minmax(0, var(--svc-photo)) minmax(0, 1fr); }
  .svc:nth-child(even) .svc__media { order: -1; }
  .svc__media > img { aspect-ratio: 4 / 5; }
}
@media (min-width: 900px) {
  .svc { --svc-photo: 46%; gap: 64px; padding: 56px 0; }
  .svc h3 { font-size: 46px; margin: 22px 0 18px; }
  .svc__text > p:not(.svc__meta) { font-size: 19px; max-width: 40ch; margin-bottom: 14px; }
  .svc__media > img { aspect-ratio: 5 / 4; }
  .svc__media--inset .svc__inset {
    right: auto;
    left: -36px;
    bottom: -28px;
    width: 40%;
    border-width: 6px;
  }
}

/* ---------------------------------------------------------------------
   6 · How it works
   --------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 40px;
}
.step {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.step__num {
  display: block;
  margin-bottom: 18px;
  font: 400 88px/.9 var(--f-head);
  letter-spacing: -0.04em;
}
.step__dot { color: var(--red); }
.step h3 { font-size: 26px; max-width: 16ch; margin-bottom: 10px; }
.step p { max-width: 34ch; color: var(--ink); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step__num { font-size: 120px; margin-bottom: 24px; }
  .step h3 { font-size: 28px; min-height: 2.16em; }
}

/* ---------------------------------------------------------------------
   7 · Out on the route — photo page
   --------------------------------------------------------------------- */
.route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
}
.fig { display: flex; flex-direction: column; }
.fig__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: #e2e2e2;
}
.fig__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fig--wide { grid-column: span 2; }
.fig--wide .fig__frame { aspect-ratio: 4 / 3; }
.fig figcaption {
  margin-top: 10px;
  font: 500 11px/1.4 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}
.fig__no { color: var(--ink); font-weight: 600; }

@media (min-width: 900px) {
  .route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  /* first-row tall photos stretch to the wide photo's height */
  .fig--fill .fig__frame { aspect-ratio: auto; flex: 1; min-height: 240px; }
  .fig figcaption { font-size: 11.5px; min-height: 2.8em; }
}

/* ---------------------------------------------------------------------
   8 · Reviews
   --------------------------------------------------------------------- */
.reviews__grid {
  display: grid;
  gap: 18px;
}
.reviews__title {
  display: grid;
  gap: 14px;
}
.reviews__stat {
  display: block;
  font-size: clamp(112px, 22vw, 240px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -0.055em;
}
.reviews__pct { color: var(--red); }
.reviews__line {
  display: block;
  max-width: 19ch;
  font-size: clamp(26px, 1.2rem + 1.6vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
@media (min-width: 900px) {
  .reviews__grid {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 20px;
    align-items: end;
  }
  .reviews__kicker { grid-column: 1 / -1; }
  .reviews__title {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    column-gap: 48px;
  }
  .reviews__line { padding-bottom: .35em; }
  .reviews__link { grid-column: 1 / -1; }
}

/* Ready for up to 3 real Facebook quotes (see the commented slot in index.html) */
.quotes {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.rquote {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.rquote blockquote { margin: 0; }
.rquote blockquote p {
  font: 500 22px/1.3 var(--f-head);
  letter-spacing: -0.01em;
}
.rquote__by {
  margin-top: 14px;
  font: 500 12px/1 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
}

/* ---------------------------------------------------------------------
   9 · Community — Cans for Cancer (the only pink)
   --------------------------------------------------------------------- */
.community { background: var(--pink-wash); }
.community__grid {
  display: grid;
  gap: 44px;
}
.kicker--pink::before { background: var(--pink); }
.community h2 { margin-top: 18px; max-width: 14ch; }

.cfc {
  margin-top: 32px;
  border-top: 1px solid var(--pink);
}
.cfc__row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pink);
}
.cfc dt {
  font: 500 12px/1 var(--f-label);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cfc__date {
  font: 600 clamp(30px, 1.4rem + 2vw, 46px)/1 var(--f-head);
  letter-spacing: -0.02em;
  color: var(--pink);
}
.cfc__place {
  font: 500 20px/1.3 var(--f-head);
}
.cfc__place span { color: var(--gray); font-family: var(--f-body); font-size: 17px; font-weight: 400; }

.cfc__list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.cfc__list li {
  position: relative;
  padding-left: 30px;
}
.cfc__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--pink);
  border-bottom: 2.5px solid var(--pink);
  transform: rotate(-45deg);
}
.cfc__note {
  margin-top: 26px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--pink);
  font-size: 16px;
}
.community .link { margin-top: 18px; }
.link--pink:hover { color: var(--ink); text-decoration-color: var(--pink); }

.poster {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--pink);
  border-radius: var(--r-card);
}
.poster img {
  width: 100%;
  aspect-ratio: 526 / 789;
  object-fit: contain;
  border-radius: 6px;
}

@media (min-width: 900px) {
  .community__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 72px;
    align-items: center;
  }
  .poster { max-width: none; justify-self: end; }
  .cfc__row { grid-template-columns: 96px 1fr; padding: 18px 0; }
  .cfc__place { font-size: 22px; }
}

/* ---------------------------------------------------------------------
   10 · Quote — the work order
   --------------------------------------------------------------------- */
.quote {
  /* leave room for the footer truck that parks on the footer line */
  padding-bottom: max(var(--section), calc(var(--truck-foot-w) * var(--truck-ratio-foot) + 40px));
}
/* no truck.png -> no need to reserve that room */
main:has(+ .footer.is-truckless) .quote { padding-bottom: var(--section); }

.quote__grid {
  display: grid;
  gap: 44px;
}
.quote__intro h2 { margin-top: 18px; max-width: 13ch; }
.quote__lede { margin-top: 18px; max-width: 34ch; font-size: 18px; }

.contact {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.contact__label {
  font: 500 12px/1 var(--f-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact__label + a { margin: 8px 0 22px; }
.contact__phone {
  display: inline-block;
  font: 600 clamp(40px, 1.6rem + 3vw, 60px)/1 var(--f-head);
  letter-spacing: -0.025em;
  text-decoration: none;
}
.contact__phone:hover { color: var(--red); }
.contact__email {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.contact__email:hover { color: var(--red); }

/* The paper */
.wo {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0 0 var(--r-card) var(--r-card);
}
/* torn-from-the-pad perforation along the top */
.wo__perf {
  height: 22px;
  border-bottom: 1px dashed var(--rule);
  background:
    radial-gradient(circle at 50% 50%, var(--concrete) 0 3px, rgba(17, 17, 17, .38) 3.2px 4px, transparent 4.4px)
    0 50% / 16px 22px repeat-x;
}
.wo__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.wo__title {
  font: 600 22px/1 var(--f-label);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wo__no {
  font: 500 15px/1 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}
.wo__no span { color: var(--red); font-weight: 600; letter-spacing: .12em; }
.wo__from {
  margin: 10px 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font: 500 11px/1.4 var(--f-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}
.wo__from span { white-space: nowrap; }
.wo__body {
  display: grid;
  gap: 24px;
  padding: 22px 20px 24px;
}

.field { display: grid; gap: 4px; }
.field__label {
  font: 500 12px/1.2 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field__hint {
  margin-left: 6px;
  color: var(--gray);
  letter-spacing: .06em;
  text-transform: none;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 13px;
}
.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a8a8a; opacity: 1; }
.field input:not([type="checkbox"]):focus,
.field textarea:focus { border-bottom-color: var(--red); }
.field textarea {
  min-height: 108px;
  padding: 0;
  resize: vertical;
  line-height: 36px;
  /* ruled lines, like the back of a work order */
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(17, 17, 17, .16) 35px 36px);
  background-attachment: local;
  border-bottom: 0;
}
.field textarea:focus { box-shadow: 0 1px 0 var(--red); }

.field--ticks legend { margin-bottom: 8px; padding: 0; }
.ticks { display: grid; gap: 0 20px; }
.tick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: var(--r-btn);
  cursor: pointer;
}
.tick input {
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.tick input::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--red);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
  transform: scale(0);
  transition: transform .12s ease-out;
}
.tick input:checked::before { transform: scale(1); }
.tick input:checked { border-color: var(--rule); }
.tick span { font-size: 17px; }
.tick.is-flagged { animation: flag 1.8s ease-out; }
@keyframes flag {
  0%, 35% { background: rgba(214, 16, 67, .12); }
  100%    { background: transparent; }
}

.field-row { display: grid; gap: 24px; }

.wo__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.wo__note {
  font-size: 14px;
  line-height: 1.45;
  color: var(--gray);
}
.wo__note.is-warn { color: var(--red-dark); font-weight: 500; }

@media (min-width: 560px) {
  .ticks { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .wo__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .wo__head { padding: 24px 32px 0; }
  .wo__from { margin: 10px 32px 0; }
  .wo__body { padding: 26px 32px 32px; gap: 26px; }
  .wo__title { font-size: 24px; }
}
@media (min-width: 900px) {
  .quote__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 72px;
    align-items: start;
  }
  .quote__intro { position: sticky; top: 32px; }
}

/* ---------------------------------------------------------------------
   11 · Footer — its top hairline is the second road
   --------------------------------------------------------------------- */
.footer {
  position: relative;
  /* THE FOOTER ROAD LINE */
  border-top: 1px solid var(--rule);
  overflow-x: clip;
  overflow-y: visible;
  padding: 56px 0 32px;
}
.footer__road {
  position: absolute;
  top: -1px;               /* = top edge of the footer's border line */
  left: 0;
  right: 0;
  height: 0;
}
.footer__road-inner { position: relative; height: 0; }

.footer__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.footer__grid .badge { justify-self: start; }
.footer__brand {
  display: grid;
  gap: 18px;
  justify-items: start;
}
/* his own sign-off, set like the italic phrase in the hero */
.footer__tagline {
  margin: 0;
  font: italic 500 clamp(22px, 2.6vw, 30px)/1.15 var(--f-head);
  color: var(--red);
}
.footer__contact {
  display: grid;
  gap: 18px;
  align-content: start;
}
.footer__contact dt {
  font: 500 12px/1 var(--f-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}
.footer__contact dd { margin-top: 6px; }
.footer__contact a {
  font-weight: 500;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.footer__contact a:hover { color: var(--red); }
.footer__contact .footer__phone {
  font: 600 32px/1 var(--f-head);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer__base {
  display: grid;
  gap: 8px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--gray);
}
.footer__credit {
  font: 500 11px/1.6 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer__credit a { color: var(--gray); text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .footer { padding: 72px 0 36px; }
  .footer__contact { grid-template-columns: auto auto; gap: 22px 56px; }
  .footer__contact > div:first-child { grid-column: 1 / -1; }
  .footer__contact .footer__phone { font-size: 40px; }
  .footer__base {
    grid-template-columns: 1fr auto auto;
    gap: 32px;
    align-items: baseline;
    margin-top: 64px;
  }
}

/* brand + contact side by side only once both fit (badge ~420px + contact ~615px) */
@media (min-width: 1180px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end; }
}

/* ---------------------------------------------------------------------
   Mobile call / text bar
   --------------------------------------------------------------------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.callbar .btn { min-height: 48px; padding: 0 12px; }
.callbar .btn--red { flex: 1.7; }
.callbar .btn--line { flex: 1; }

@media (max-width: 767px) {
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) {
  .callbar { display: none; }
}

/* ---------------------------------------------------------------------
   Reduced motion: everything parked, nothing slides
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
  .motion [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .link__arrow, .btn { transition: none; }
  .tick.is-flagged { animation: none; }
}
