/* ============================================================
   Freeway Mobile Truck & Trailer Repair
   Composition: rotating full-bleed section palette, receipt
   layout, stacked headline, drag band, grain overlay.
   ============================================================ */

:root {
  --ink:      #0a0a0a;
  --red:      #e10600;
  --blue:     #003c8a;
  --yellow:   #f4ff33;

  --on-ink:   #f2f0ea;
  --on-red:   #fff6f4;
  --on-blue:  #eef3ff;
  --on-yellow:#0a0a0a;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: "Bricolage Grotesque", "JetBrains Mono", system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --col: 46ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.55vw + 0.82rem, 1.05rem);
  line-height: 1.62;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.5rem;
}

/* --- grain overlay ------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- call bar (always reachable) ---------------------------------- */
.callbar {
  position: fixed;
  z-index: 70;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.5rem var(--pad);
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-top: 2px solid var(--ink);
}
.callbar__label { font-weight: 400; opacity: 0.75; }
.callbar__num { font-size: 1.05em; }
.callbar__hint { font-weight: 400; opacity: 0.6; font-size: 0.8em; }
.callbar:hover .callbar__num { text-decoration: underline; text-underline-offset: 3px; }

/* --- masthead ------------------------------------------------------ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent);
  color: var(--on-ink);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.7rem var(--pad);
  max-width: 1180px;
  margin: 0 auto;
}
.masthead__mark {
  margin: 0;
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.masthead__mark span { font-weight: 400; opacity: 0.65; }
.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.masthead__nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  opacity: 0.8;
}
.masthead__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* --- section shell ------------------------------------------------- */
.sec {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  position: relative;
}
.sec .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.sec--ink    { background: var(--ink);    color: var(--on-ink); }
.sec--red    { background: var(--red);    color: var(--on-red); }
.sec--blue   { background: var(--blue);   color: var(--on-blue); }
.sec--yellow { background: var(--yellow); color: var(--on-yellow); }

.sec--red, .sec--blue, .sec--yellow { border-top: 2px solid var(--ink); }

/* --- type ---------------------------------------------------------- */
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  opacity: 0.72;
}

h1, h2 {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 9.5vw, 6.2rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); }

/* stacked headline breaking the baseline */
.stack { max-width: 16ch; }
.stack span { display: block; }
.stack span:nth-child(2) { margin-left: 1.6em; }
.stack span:nth-child(3) { margin-left: -0.35em; font-weight: 400; font-size: 0.62em; letter-spacing: -0.02em; opacity: 0.85; }

.lede {
  max-width: var(--col);
  font-size: 1.02em;
  margin: 0 0 1.1rem;
}
.body { max-width: var(--col); margin: 0 0 1rem; }
.note {
  max-width: var(--col);
  margin: 1.6rem 0 0;
  font-size: 0.86em;
  opacity: 0.78;
}

/* --- receipt block ------------------------------------------------- */
.receipt {
  max-width: var(--col);
  margin: 2.2rem 0 0;
  border-top: 1px dotted currentColor;
  border-bottom: 1px dotted currentColor;
  padding: 0.5rem 0;
}
.receipt--tight { margin-top: 1.6rem; }
.receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent);
  font-size: 0.9em;
}
.receipt__row:last-child { border-bottom: 0; }
.receipt__row > span:first-child {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82em;
  opacity: 0.72;
  flex: 0 0 auto;
}
.receipt__row > span:last-child { text-align: right; }
.receipt__row a { text-decoration: underline; text-underline-offset: 3px; }

/* --- service lines ------------------------------------------------- */
.lines {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  max-width: 62ch;
  border-top: 1px dotted currentColor;
}
.lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent);
}
.lines__name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.12em;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.lines__meta {
  font-size: 0.74em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: right;
  white-space: nowrap;
  padding-top: 0.35em;
}
.lines__desc {
  grid-column: 1 / -1;
  font-size: 0.88em;
  opacity: 0.85;
  max-width: 58ch;
}

/* --- call to action ------------------------------------------------ */
.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin: 2.4rem 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--yellow);
  transition: background 180ms ease, color 180ms ease;
}
.btn:hover { background: transparent; color: var(--yellow); }
.cta-note { font-size: 0.84em; opacity: 0.75; max-width: 34ch; }

.bigcall {
  margin: 2rem 0 0;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.bigcall a { text-decoration: none; }
.bigcall a:hover { text-decoration: underline; text-underline-offset: 8px; }

/* --- drag band ----------------------------------------------------- */
.band {
  margin-top: 2.6rem;
  padding: 0 var(--pad) 1rem;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}
.band.is-dragging { cursor: grabbing; }
.band__track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}
.band__hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-left: var(--pad);
}

.card {
  margin: 0;
  width: min(78vw, 340px);
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-blue) 30%, transparent);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(0.9) contrast(1.05);
}
.card figcaption {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.card__title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.card__body { font-size: 0.84rem; opacity: 0.85; line-height: 1.5; }

/* --- footer -------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: var(--on-ink);
  border-top: 2px solid var(--yellow);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.foot .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.foot__name {
  margin: 0 0 0.4rem;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.foot__meta { margin: 0 0 1.6rem; font-size: 0.86rem; opacity: 0.75; }
.foot__meta a { text-decoration: underline; text-underline-offset: 3px; }

.claim-banner {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--on-ink);
  background: color-mix(in srgb, var(--on-ink) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent);
}
.claim-banner:hover { background: color-mix(in srgb, var(--on-ink) 16%, transparent); }

.attribution {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.5;
}
.attribution a { color: inherit; }

/* --- motion: gentle fade + rise on scroll enter -------------------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec > .wrap,
    .band {
      animation: fadeRise 420ms cubic-bezier(.2,.7,.1,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- small screens ------------------------------------------------- */
@media (max-width: 640px) {
  .stack span:nth-child(2) { margin-left: 0.9em; }
  .stack span:nth-child(3) { margin-left: 0; }
  .lines li { grid-template-columns: 1fr; }
  .lines__meta { text-align: left; padding-top: 0.1rem; }
  .card { width: 82vw; }
  .masthead__nav { font-size: 0.78rem; gap: 0.3rem 0.9rem; }
  .callbar__hint { display: none; }
}

@media (min-width: 900px) {
  .lines li { grid-template-columns: 1fr auto; }
}
