/* LS Logistix
   Road signage colours (sign green, sign white, warning yellow, trailer-tape red)
   and Barlow, which was drawn from California's highway signs and plates.
   Motion follows the same idea: signs drop onto gantries, letters flip like
   dispatch boards, trucks drive through, and headlights catch the sign. */

/* Fonts (self-hosted, SIL Open Font License) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --green: #006b3f;
  --green-deep: #00522f;
  --white: #ffffff;
  --concrete: #ecedea;
  --asphalt: #2a2e2c;
  --asphalt-soft: #555b58;
  --line: #c6cac5;
  --yellow: #f7c600;
  --red: #c8102e;
  --error: #a40e26;
  --road: #3d4240;
  --glass: #bcd6df;

  --font-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 71rem;
  --road-h: clamp(5.5rem, 10vw, 8rem);
  --ease-out: cubic-bezier(0.2, 0.8, 0.25, 1);
  --ease-spring: cubic-bezier(0.3, 1.45, 0.5, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--asphalt);
  background: var(--concrete);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); color: var(--green-deep); }
h3 { font-size: 1.5rem; }
p, ul, ol, dl, dd { margin: 0; }
a { color: var(--green-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 90;
  padding: 0.6rem 1rem; border-radius: 6px;
  background: var(--yellow); color: var(--asphalt); font-weight: 600;
}
.skip:focus { top: 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons: a headlight glint runs across on hover */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font: 600 1.05rem/1.1 var(--font-body);
  border: 2px solid transparent; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease-out);
}
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn-outline:hover { background: var(--white); color: var(--green-deep); }
.btn-outline::after { background: linear-gradient(105deg, transparent 30%, rgba(0, 107, 63, 0.14) 50%, transparent 70%); }
.btn-dark { background: var(--asphalt); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn:disabled { opacity: 0.65; cursor: progress; }

/* Header (sticky, with a scroll-progress lane and a little truck) */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; min-height: 4.75rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--asphalt); text-decoration: none;
}
.brand:hover { color: var(--asphalt); }
.brand svg { width: 2.5rem; height: 2.5rem; flex: none; transition: transform 0.5s var(--ease-spring); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-link { position: relative; color: var(--asphalt); font-weight: 500; text-decoration: none; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.3rem; height: 3px;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 12px);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--green-deep); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-ooc { color: var(--asphalt-soft); }
.nav-toggle {
  display: none; margin-left: auto; padding: 0.55rem 0.9rem;
  font: 600 1rem/1 var(--font-body); color: var(--asphalt);
  background: none; border: 2px solid var(--asphalt); border-radius: 6px; cursor: pointer;
}
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--progress, 0) * 100%);
  background: repeating-linear-gradient(90deg, var(--green) 0 16px, transparent 16px 26px);
}
.progress-truck {
  position: absolute; bottom: 2px; width: 2.75rem;
  left: calc(var(--progress, 0) * (100% - 2.75rem));
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.site-header.is-scrolled .progress-truck { opacity: 1; transform: none; }
.progress-truck svg, .route-truck svg, .success-truck svg { width: 100%; height: auto; }

@media (max-width: 54rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.25rem 0 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 0.75rem 0; border-top: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav .btn { margin-top: 0.75rem; }
}

/* ============ Sign (shared) ============ */
.sign { position: relative; padding: 8px; border-radius: 22px; background: var(--green); color: var(--white); }
.sign-face { position: relative; border: 3px solid var(--white); border-radius: 15px; overflow: hidden; background: var(--green); }
.sign-main { padding: clamp(1.6rem, 5vw, 3.5rem) clamp(1.35rem, 5vw, 3.5rem) clamp(1.5rem, 4.5vw, 2.75rem); }
.sign h1 { font-size: clamp(2.75rem, 7.4vw, 6rem); line-height: 0.98; letter-spacing: 0.004em; max-width: 12em; }
.sign :focus-visible { outline-color: var(--white); }

/* Words flip down one by one, like panels on a changeable sign */
.w { display: inline-block; perspective: 700px; }
.w > span {
  display: inline-block; transform-origin: 50% 0;
  animation: word-flip 0.65s var(--ease-spring) calc(var(--start, 1.45s) + var(--i, 0) * 95ms) both;
}
@keyframes word-flip {
  from { transform: rotateX(-105deg); opacity: 0; }
  45% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

.destinations {
  display: flex; flex-wrap: wrap; gap: 0.9rem 2.75rem;
  margin-top: clamp(1.6rem, 4vw, 2.5rem); padding: 0; list-style: none;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1.1;
}
.destinations li {
  display: flex; align-items: center; gap: 0.55rem;
  animation: word-flip 0.55s var(--ease-spring) calc(var(--start, 2.05s) + var(--i, 0) * 150ms) both;
  transform-origin: 50% 0;
}
.arrow-wrap { display: inline-flex; animation: arrow-in 0.7s var(--ease-out) calc(var(--start, 2.05s) + 0.15s + var(--i, 0) * 150ms) both; }
@keyframes arrow-in { from { transform: translate(var(--dx, 0), var(--dy, 0)); opacity: 0; } }
.arrow { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.arrow-upleft { transform: rotate(-45deg); }
.arrow-upright { transform: rotate(45deg); }
.arrow-right { transform: rotate(90deg); }

.sign-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding: 1.1rem clamp(1.35rem, 5vw, 3.5rem);
  border-top: 3px solid var(--white);
  background: var(--yellow); color: var(--asphalt);
  transform-origin: 50% 0; backface-visibility: hidden;
  animation: strip-hinge 0.8s var(--ease-spring) 2.55s both;
}
.sign-strip p { flex: 1 1 18rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.5vw, 1.75rem); line-height: 1.15; }
.sign-strip :focus-visible { outline-color: var(--asphalt); }
@keyframes strip-hinge {
  from { transform: perspective(800px) rotateX(-95deg); }
  to { transform: perspective(800px) rotateX(0); }
}

/* Flashing amber beacons next to the hiring line */
.beacons { display: inline-flex; gap: 0.4rem; flex: none; }
.beacons i {
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: #ffa21a; border: 3px solid var(--asphalt);
  box-shadow: 0 0 0 3px rgba(255, 162, 26, 0.35), 0 0 18px 5px rgba(255, 140, 0, 0.85);
  animation: beacon 1.1s steps(1, end) 3.2s infinite;
}
.beacons i:nth-child(2) { animation-delay: 3.75s; }
@keyframes beacon { 50% { background: #7d5b12; box-shadow: none; } }

/* Headlight glint that sweeps the sign when a truck passes */
.glint {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, var(--glint, 0.5)) 50%, transparent 62%);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: glint 11s linear 0.9s infinite both;
}
@keyframes glint {
  0%, 13% { transform: translateX(-120%); }
  25%, 100% { transform: translateX(120%); }
}

/* ============ Hero scene ============ */
.hero {
  --sky-1: #28345d; --sky-2: #7c4368; --sky-3: #d9714a; --sky-4: #f5bd7c;
  --hill: #57405e; --city: #342a40; --palm: #231b2d;
  --sun: #ffb56b; --sun-glow: rgba(255, 150, 80, 0.55); --sun-top: 52%; --sun-size: clamp(6rem, 13vw, 12rem);
  --win-o: 0.5; --star-o: 0; --beam-o: 0.55; --glint: 0.6;
  --steel: #6f6874; --steel-hi: #9a919c; --road: #35353c; --glass: #f0b48e;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 38%, var(--sky-3) 70%, var(--sky-4) 100%);
}
[data-time="day"] .hero {
  --sky-1: #a9cfe0; --sky-2: #c9e0e6; --sky-3: #e8e8dc; --sky-4: #f3ead4;
  --hill: #b3c1b1; --city: #9aaba7; --palm: #5f7b6e;
  --sun: #fffbea; --sun-glow: rgba(255, 250, 220, 0.85); --sun-top: 9%; --sun-size: clamp(4rem, 7vw, 6rem);
  --win-o: 0; --star-o: 0; --beam-o: 0; --glint: 0.35;
  --steel: #858c89; --steel-hi: #b5bbb7; --road: #4a4f4d; --glass: #bcd6df;
}
[data-time="night"] .hero {
  --sky-1: #060b18; --sky-2: #0d1830; --sky-3: #182746; --sky-4: #2a3a5c;
  --hill: #121a2d; --city: #0c1223; --palm: #070a14;
  --sun: #e9eefb; --sun-glow: rgba(200, 215, 255, 0.35); --sun-top: 9%; --sun-size: clamp(3rem, 5vw, 4.5rem);
  --win-o: 0.85; --star-o: 1; --beam-o: 0.9; --glint: 0.85;
  --steel: #3b4250; --steel-hi: #596170; --road: #1f2227; --glass: #22324e;
}

.scene { position: absolute; inset: 0 0 var(--road-h) 0; z-index: 0; pointer-events: none; }
.stars {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%;
  opacity: var(--star-o);
  box-shadow:
    4vw 2rem #fff, 11vw 6rem #fff, 17vw 1.5rem #fff, 23vw 9rem #fff, 29vw 4rem #fff, 34vw 12rem #fff,
    39vw 2.5rem #fff, 45vw 7rem #fff, 51vw 1rem #fff, 56vw 10rem #fff, 61vw 5rem #fff, 66vw 13rem #fff,
    71vw 3rem #fff, 77vw 8rem #fff, 82vw 1.8rem #fff, 87vw 11rem #fff, 92vw 4.5rem #fff, 97vw 9.5rem #fff,
    8vw 14rem #fff, 20vw 16rem #fff, 48vw 15rem #fff, 74vw 16rem #fff, 94vw 15rem #fff, 58vw 2rem #fff;
  animation: twinkle 3.5s ease-in-out infinite alternate;
  translate: 0 calc(var(--sy, 0) * 0.08px);
}
@keyframes twinkle { to { filter: brightness(0.5); } }
.sun {
  position: absolute; left: 76%; top: var(--sun-top);
  width: var(--sun-size); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 70px 30px var(--sun-glow);
  transform: translateX(-50%);
  translate: 0 calc(var(--sy, 0) * 0.35px);
  animation: sun-rise 2.6s var(--ease-out) both;
}
@keyframes sun-rise { from { transform: translate(-50%, 3rem); opacity: 0; } }
.skyline {
  position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(9rem, 26vw, 21rem);
  translate: 0 calc(var(--sy, 0) * 0.18px);
  animation: city-rise 1.5s var(--ease-out) both;
}
@keyframes city-rise { from { transform: translateY(16%); opacity: 0; } }
.hills { fill: var(--hill); }
.city { fill: var(--city); }
.cranes { fill: var(--city); stroke: var(--city); }
.windows { opacity: var(--win-o); }
.twinkles { opacity: var(--win-o); }
.tw { fill: #fff3c4; animation: window-blink 6s steps(1, end) infinite; }
.tw:nth-child(2n) { animation-duration: 8s; animation-delay: -2s; }
.tw:nth-child(3n) { animation-duration: 5s; animation-delay: -4s; }
@keyframes window-blink { 50% { opacity: 0; } }
.palm { color: var(--palm); transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite alternate; }
.palm:nth-of-type(2n) { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }

.hero-stage {
  position: relative; z-index: 2;
  padding-top: calc(clamp(1rem, 3vw, 2rem) + 3.35rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}
.gantry { position: absolute; top: clamp(1rem, 3vw, 2rem); bottom: 0; left: calc(-1 * min(2.75rem, var(--gutter))); right: calc(-1 * min(2.75rem, var(--gutter))); pointer-events: none; }
.post {
  position: absolute; top: 0; bottom: -2rem; width: 1.1rem;
  background: linear-gradient(90deg, var(--steel), var(--steel-hi) 45%, var(--steel));
  transform-origin: 50% 100%;
  animation: post-rise 0.6s var(--ease-out) 0.05s both;
}
.post-left { left: 0; }
.post-right { right: 0; }
@keyframes post-rise { from { transform: scaleY(0); } }
.beam {
  position: absolute; top: 0; left: 0; right: 0; height: 2.2rem;
  border-block: 5px solid var(--steel-hi);
  background:
    repeating-linear-gradient(55deg, transparent 0 12px, var(--steel) 12px 15px),
    repeating-linear-gradient(-55deg, transparent 0 12px, var(--steel) 12px 15px);
  transform-origin: 0 50%;
  animation: beam-slide 0.65s var(--ease-out) 0.35s both;
}
@keyframes beam-slide { from { transform: scaleX(0); } }

.sign-hero { transform-origin: 50% -1.2rem; animation: sign-drop 1.2s cubic-bezier(0.22, 0.9, 0.3, 1) 0.75s both; }
.hanger { position: absolute; top: -1.25rem; width: 0.55rem; height: 1.3rem; background: var(--steel-hi); }
.hanger-left { left: 16%; }
.hanger-right { right: 16%; }
@keyframes sign-drop {
  0% { transform: translateY(-145%) rotate(-4deg); }
  55% { transform: translateY(3%) rotate(2.2deg); }
  72% { transform: translateY(-1%) rotate(-1.2deg); }
  86% { transform: translateY(0.4%) rotate(0.5deg); }
  100% { transform: none; }
}

/* Road and the passing truck */
.road { position: relative; z-index: 3; height: var(--road-h); background: var(--road); }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #d9dcd6; }
.road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 60%; height: 5px;
  background: repeating-linear-gradient(90deg, #f2f2ec 0 64px, transparent 64px 128px);
  opacity: 0.85;
}
.rail {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 1.6rem;
  background:
    linear-gradient(var(--steel-hi), var(--steel)) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 90px) bottom / 100% calc(100% - 7px) no-repeat;
}
.truck-run {
  position: absolute; left: 0; bottom: 28%; z-index: 2;
  width: clamp(15rem, 34vw, 31rem);
  animation: drive-by 11s linear 0.9s infinite both;
}
@keyframes drive-by {
  0% { transform: translateX(-105%); }
  38%, 100% { transform: translateX(calc(100vw + 5%)); }
}
.truck { position: relative; }
.truck-svg { width: 100%; height: auto; overflow: visible; }
.truck-word { font-family: var(--font-display); font-weight: 700; font-size: 40px; fill: var(--green); }
.glass { fill: var(--glass); }
.headbeam {
  position: absolute; left: 97%; bottom: 14%; width: 80%; height: 40%;
  background: linear-gradient(90deg, rgba(255, 236, 170, 0.8), rgba(255, 236, 170, 0) 85%);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 62%);
  opacity: var(--beam-o, 0); filter: blur(1px);
}
[data-time="night"] .hero .headlight { filter: drop-shadow(0 0 6px #fff4c2); }
[data-time="night"] .hero .taillight { filter: drop-shadow(0 0 5px #ff3355); }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 0.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.truck-body { animation: bump 0.9s ease-in-out infinite; }
@keyframes bump { 50% { transform: translateY(-1.2px); } }
.smoke circle { fill: rgba(205, 205, 205, 0.6); opacity: 0; transform-box: fill-box; transform-origin: center; animation: puff 1.6s ease-out infinite; }
.smoke circle:nth-child(2) { animation-delay: 0.53s; }
.smoke circle:nth-child(3) { animation-delay: 1.06s; }
@keyframes puff {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0.7; }
  100% { transform: translate(-42px, -26px) scale(2.3); opacity: 0; }
}

/* Paused when scrolled out of view */
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* Text under the hero */
.hero-after { padding-block: clamp(1.75rem, 4vw, 2.5rem) 0; }
.hero-after-inner {
  display: grid; grid-template-columns: minmax(0, 38rem) auto;
  justify-content: space-between; align-items: end; gap: 1.5rem 3rem;
}
.hero-after-inner > p { font-size: 1.2rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.dispatch-line { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.dispatch-line strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
@media (max-width: 54rem) { .hero-after-inner { grid-template-columns: 1fr; } }

/* ============ Sections ============ */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-white { background: var(--white); }
.page-intro + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section-head { max-width: 42rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head p, .lead { margin-top: 0.85rem; font-size: 1.15rem; color: var(--asphalt-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
@media (max-width: 54rem) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 38rem; font-size: 1.125rem; }
.prose p + p { margin-top: 1em; }

/* Headings arrive from the left and lay down a lane marking */
.reveal-head { position: relative; padding-bottom: 0.95rem; }
.reveal-head::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(13rem, 70%); height: 5px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 40px);
}
.js .reveal-head { opacity: 0; transform: translateX(-2rem); }
.js .reveal-head::after { transform: scaleX(0); transform-origin: left; }
.js .reveal-head.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.8s var(--ease-out); }
.js .reveal-head.is-in::after { transform: scaleX(1); transition: transform 1s var(--ease-out) 0.2s; }

.js .reveal-fade { opacity: 0; transform: translateY(1.25rem); }
.js .reveal-fade.is-in { opacity: 1; transform: none; transition: opacity 0.7s ease 0.1s, transform 0.8s var(--ease-out) 0.1s; }

/* ============ What we haul: rigs roll in ============ */
.freight { padding: 0; list-style: none; border-top: 2px solid var(--asphalt); }
.freight li {
  display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: end; gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.freight h3 { font-size: 1.65rem; }
.freight p { max-width: 34rem; }
.rig-lane { position: relative; overflow: hidden; border-bottom: 3px solid var(--asphalt); }
.rig-roll { display: block; }
.rig { width: 100%; height: auto; }
.js .freight li .rig-roll { transform: translateX(-115%); }
.js .freight li.is-in .rig-roll { transform: none; transition: transform 1.05s var(--ease-out); }
.js .freight li.is-in:hover .rig-roll { transform: translateX(7%); transition-duration: 0.6s; }
.rig .spin { animation: none; }
.freight li.is-in .rig .spin { animation: spin 0.35s linear 3; }
.freight li.is-in:hover .rig .spin { animation: spin 0.35s linear infinite; }
@media (max-width: 54rem) {
  .freight li { grid-template-columns: 1fr; }
  .rig-lane { max-width: 18rem; }
}

/* ============ Where we run: split-flap board ============ */
.board {
  position: relative; padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--asphalt); color: #f1f2ee;
  border-radius: 14px; box-shadow: inset 0 0 0 2px #3b413e;
}
.board-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem;
  padding-bottom: 1rem; border-bottom: 2px solid #3b413e;
}
.board-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--yellow); }
.board-clock { display: flex; align-items: center; gap: 0.75rem; color: #b9bfbb; font-weight: 500; }
.board-time { font-size: 1.35rem; }
.board .table-wrap { overflow-x: auto; }
.lanes { width: 100%; border-collapse: collapse; }
.lanes th, .lanes td { padding: 0.75rem 0.9rem 0.75rem 0; text-align: left; vertical-align: middle; }
.lanes th { padding-top: 1rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--yellow); border-bottom: 1px solid #3b413e; }
.lanes td { font-size: clamp(0.8rem, 1.05vw, 1rem); font-weight: 600; border-bottom: 1px solid #3b413e; }
.lanes tr:last-child td { border-bottom: 0; }

.flap { display: inline-flex; flex-wrap: wrap; gap: 4px 0; vertical-align: middle; }
.flap-word { display: inline-flex; gap: 2px; margin-right: 2px; }
.tile {
  display: inline-block; width: 0.7em; height: 1.55em; line-height: 1.55em; text-align: center;
  font-family: var(--font-display); font-weight: 600; color: #f6f6f1;
  background: linear-gradient(180deg, #3a403d 0 48%, #151817 48% 52%, #323835 52% 100%);
  border-radius: 2px;
}
.tile-space { background: linear-gradient(180deg, #2f3432 0 48%, #151817 48% 52%, #2a2f2d 52% 100%); }
.tile[data-f="a"] { animation: flap-a 0.11s linear; }
.tile[data-f="b"] { animation: flap-b 0.11s linear; }
@keyframes flap-a { 50% { transform: scaleY(0.1); filter: brightness(0.55); } }
@keyframes flap-b { 50% { transform: scaleY(0.1); filter: brightness(0.55); } }

@media (max-width: 70rem) {
  .lanes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lanes tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid #3b413e; }
  .lanes tr:last-child { border-bottom: 0; }
  .lanes td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 0.75rem; padding: 0.2rem 0; border: 0; font-size: 0.95rem; }
  .lanes td::before { content: attr(data-label); font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--yellow); }
}
@media (max-width: 30rem) { .lanes td { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ============ Hiring list ============ */
.roles { padding: 0; list-style: none; }
.roles li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.roles li:last-child { border-bottom: 1px solid var(--line); }
.roles a, .roles strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.roles span { display: block; margin-top: 0.25rem; color: var(--asphalt-soft); }
.js .roles li { opacity: 0; transform: translateX(2.5rem); }
.js .roles.is-in li { opacity: 1; transform: none; transition: opacity 0.5s ease calc(var(--i, 0) * 110ms), transform 0.8s var(--ease-out) calc(var(--i, 0) * 110ms); }
.hiring-intro .btn { margin-top: 1.75rem; }

/* ============ Contact ============ */
.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list dt { font-size: 0.95rem; font-weight: 600; color: var(--asphalt-soft); }
.contact-list dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.contact-list dd .tile { font-size: 1.3rem; }

/* ============ Forms ============ */
.form-panel { padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.form-section { margin: 0 0 2.25rem; padding: 0; border: 0; min-width: 0; }
.form-section > legend { margin-bottom: 1.1rem; padding: 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; color: var(--green-deep); }
.form-note { margin: -0.5rem 0 1.1rem; color: var(--asphalt-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
.label { font-weight: 600; }
.optional { font-weight: 400; color: var(--asphalt-soft); }
.hint { font-size: 0.93rem; line-height: 1.4; color: var(--asphalt-soft); }
.input {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem;
  font: inherit; color: inherit; background: var(--white);
  border: 1.5px solid #858b87; border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:hover { border-color: var(--asphalt); }
.input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.25); }
textarea.input { min-height: 8rem; resize: vertical; }
select.input {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232a2e2c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 0.75rem;
}
.input[aria-invalid="true"] { border-color: var(--error); animation: nudge 0.35s ease; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field-error { font-size: 0.95rem; font-weight: 500; color: var(--error); }
.choice-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; min-height: 3rem; align-items: center; }
.choice, .check { display: flex; gap: 0.6rem; cursor: pointer; }
.choice { align-items: center; }
.check { align-items: flex-start; }
.choice input, .check input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--green); }
.check input { margin-top: 0.2rem; }
.form-grid + .form-actions { margin-top: 1.5rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-alert { flex-basis: 100%; padding: 0.8rem 1rem; border-left: 4px solid var(--error); background: #fbeef0; color: var(--error); font-weight: 500; }
.form-success { padding: 1.5rem; border-left: 6px solid var(--green); background: #e8f2ec; }
.form-success:focus { outline: none; }
.form-success h3 { color: var(--green-deep); font-size: 1.8rem; }
.form-success p { margin-top: 0.5rem; }
.success-road { position: relative; height: 2.6rem; margin-bottom: 1rem; overflow: hidden; border-bottom: 3px solid var(--green-deep); }
.success-truck { position: absolute; bottom: 2px; left: 0; width: 4.5rem; animation: drive-off 2.2s cubic-bezier(0.55, 0, 0.75, 0.35) 0.35s both; }
@keyframes drive-off { from { left: 0; } to { left: 105%; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Careers page ============ */
.careers-hero { position: relative; overflow: hidden; }
.careers-intro {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center; gap: 2rem clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
}
@media (max-width: 54rem) { .careers-intro { grid-template-columns: 1fr; } }
.careers-intro > p { font-size: 1.2rem; line-height: 1.55; }
.sign-careers { transform-origin: 50% 0; animation: sign-drop 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s both; }
.sign-careers h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
.sign-careers .w > span { --start: 0.95s; }
.sign-careers .destinations li, .sign-careers .arrow-wrap { --start: 1.45s; }
.exit-tab {
  position: absolute; right: 9%; bottom: calc(100% - 8px); z-index: -1;
  padding: 7px 7px 0; background: var(--green); border-radius: 14px 14px 0 0;
  animation: tab-up 0.55s var(--ease-spring) 1.6s both;
}
.exit-tab span {
  display: block; padding: 0.3rem 1rem 0.45rem;
  border: 3px solid var(--white); border-bottom: 0; border-radius: 9px 9px 0 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1;
}
@keyframes tab-up { from { transform: translateY(100%); } }
.careers-road { position: relative; height: clamp(5rem, 9vw, 7rem); background: var(--road); }
.careers-road::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #d9dcd6; }
.careers-road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 60%; height: 5px;
  background: repeating-linear-gradient(90deg, #f2f2ec 0 64px, transparent 64px 128px); opacity: 0.85;
}
.truck-park {
  --park: calc(100vw - 100% - 7vw);
  position: absolute; left: 0; bottom: 26%; z-index: 2;
  width: clamp(14rem, 30vw, 27rem);
  animation: pull-in 2.6s cubic-bezier(0.16, 0.7, 0.3, 1) 0.9s both;
}
@keyframes pull-in { from { transform: translateX(-105%); } to { transform: translateX(var(--park)); } }
.truck-park .spin { animation: spin 0.32s linear 0.9s 8 both; }
.truck-park .smoke circle { animation-duration: 2.4s; }
.truck-park .headlight, .truck-park .taillight { animation: hazard 0.8s steps(1, end) 3.5s 4; }
@keyframes hazard { 0% { fill: #ffb300; } 50% { fill: #5a4a1a; } }

.positions { padding: 0; list-style: none; border-top: 2px solid var(--asphalt); }
.position {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  align-items: start; gap: 0.85rem clamp(1.5rem, 4vw, 3rem);
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.position h3 { font-size: 1.8rem; }
.position-meta { margin-top: 0.35rem; color: var(--asphalt-soft); }
.position-meta > span { display: block; }
.position-pay { margin-top: 0.55rem; font-size: 1.1rem; }
.position-needs { margin-top: 0.6rem; font-size: 0.98rem; color: var(--asphalt-soft); }
.js .position { opacity: 0; transform: translateX(-2.5rem); }
.js .position.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.85s var(--ease-out); }
@media (max-width: 54rem) { .position { grid-template-columns: 1fr; } }
.empty-note { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }

/* The hiring steps as a road: the truck follows your scroll and lights each exit */
.route { position: relative; }
.route-road { position: relative; height: 2.4rem; margin-bottom: 1.75rem; background: var(--asphalt); border-radius: 5px; }
.route-road::before {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; top: 50%; height: 3px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 40px);
}
.route-truck { position: absolute; top: 50%; left: calc(var(--p, 0) * (100% - 3.6rem)); width: 3.6rem; transform: translateY(-50%); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; padding: 0; list-style: none; }
.exit {
  display: block; width: fit-content; min-width: 2.4rem; margin-bottom: 0.8rem; padding: 0.15rem 0.6rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; text-align: center;
  color: var(--white); background: var(--green);
  border: 2px solid var(--white); border-radius: 6px; box-shadow: 0 0 0 2px var(--green);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.js .steps li { opacity: 0.4; transition: opacity 0.4s ease; }
.js .steps li .exit { background: #9aa19d; box-shadow: 0 0 0 2px #9aa19d; }
.js .steps li.is-reached { opacity: 1; }
.js .steps li.is-reached .exit { background: var(--green); box-shadow: 0 0 0 2px var(--green); animation: exit-pop 0.5s var(--ease-spring); }
@keyframes exit-pop { 0% { transform: scale(0.7); } }
@media (max-width: 54rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .route { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 1.25rem; }
  .route-road { height: auto; margin: 0; }
  .route-road::before {
    left: 50%; right: auto; top: 0.75rem; bottom: 0.75rem; width: 3px; height: auto; transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, var(--yellow) 0 22px, transparent 22px 40px);
  }
  .route-truck { left: 50%; top: calc(1.8rem + var(--p, 0) * (100% - 3.6rem)); transform: translate(-50%, -50%) rotate(90deg); }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 0.25rem; }
}

.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 60rem) { .apply-layout { grid-template-columns: 1fr; } }
.notice { padding: 1.25rem 1.5rem; border-left: 6px solid var(--yellow); background: var(--white); }

/* ============ Footer ============ */
.site-footer { padding-top: 10px; background: var(--asphalt); color: #dfe2e0; }
.tape { height: 12px; background: repeating-linear-gradient(90deg, var(--red) 0 46px, var(--white) 46px 92px); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; padding-block: 3rem 2.25rem; }
@media (max-width: 40rem) { .footer-inner { grid-template-columns: 1fr; } }
.door-name { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--white); }
.door-name ~ p { margin-top: 0.4rem; color: #c4c9c6; }
.door-name + p { margin-top: 0.75rem; }
.footer-links { display: grid; gap: 0.45rem; padding: 0; list-style: none; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.ooc-note { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid #474d4a; font-size: 0.93rem; color: #b3b9b5; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* ============ Reduced motion: everything lands in its final place ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0s !important;
  }
  .truck-run { animation: none !important; transform: translateX(calc(100vw - 115%)); }
  .truck-park { animation: none !important; transform: translateX(var(--park)); }
  .glint, .smoke, .headbeam { display: none; }
}

/* ============ Sign-in and applicant status (careers page) ============ */
.account-card, .my-apps {
  margin-bottom: 1.25rem; padding: 1.25rem 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.account-card { border-left: 6px solid var(--green); }
.account-card h3, .my-apps h3 { font-size: 1.55rem; color: var(--green-deep); }
.account-card > p { margin-top: 0.4rem; }
.account-card .field { margin-top: 0.9rem; max-width: 22rem; }
.account-label { color: var(--asphalt-soft); font-weight: 600; font-size: 0.95rem; }
.account-card .account-name { margin-top: 0.1rem; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--asphalt); }
.account-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1rem; }
.account-alert { margin-bottom: 0.9rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--yellow); background: #fff8dc; font-weight: 500; }
.ooc-small { margin-top: 0.9rem; font-size: 0.93rem; color: var(--asphalt-soft); }
.link-button {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--green-deep);
  text-decoration: underline; text-underline-offset: 0.18em;
}
.link-button:hover { color: var(--green); }
.input[readonly] { background: #f1f3f0; color: var(--asphalt-soft); border-style: dashed; cursor: default; }
.input[readonly]:hover { border-color: #858b87; }
.my-apps ul { margin-top: 0.75rem; padding: 0; list-style: none; }
.my-apps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.my-apps li strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.my-apps li span:not(.chip) { color: var(--asphalt-soft); font-size: 0.95rem; }
.my-apps .note { grid-column: 1 / -1; padding: 0.65rem 0.85rem; background: var(--concrete); border-radius: 6px; white-space: pre-wrap; }
.open-note { margin-top: 0.75rem; font-weight: 500; }

.chip { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.chip-new { background: #e6e8e5; color: var(--asphalt); }
.chip-interview { background: #dde9f5; color: #1f4f7a; }
.chip-hired { background: #dcefe4; color: var(--green-deep); }
.chip-declined { background: #f6e1e4; color: #8a1022; }

/* ============ Live dispatch board ============ */
.board-tabs { display: flex; gap: 0.4rem; }
.board-tab {
  padding: 0.45rem 0.8rem; cursor: pointer;
  font: 600 0.95rem/1 var(--font-body); color: #c4c9c6;
  background: transparent; border: 2px solid #4a504d; border-radius: 6px;
}
.board-tab:hover { border-color: #737a76; color: #fff; }
.board-tab[aria-pressed="true"] { color: var(--asphalt); background: var(--yellow); border-color: var(--yellow); }
.board .board-tab:focus-visible { outline-color: var(--yellow); }
.board-live {
  display: none; align-items: center; gap: 0.4rem; margin-left: 0.6rem; vertical-align: middle;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: #8fe3b4;
}
.board.is-live .board-live { display: inline-flex; }
.board-live i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #3ddc84; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.25; } }
.lanes td[data-status="loading"] .tile { color: #a9d2fb; }
.lanes td[data-status="delayed"] .tile { color: var(--yellow); }
.lanes td[data-status="delivered"] .tile { color: #8fe3b4; }

/* ============ Staff panel ============ */
.staff-intro h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.staff-intro p { font-size: 1.1rem; }
.staff-section { padding-top: clamp(1rem, 3vw, 2rem); }
.staff-gate p + p { margin-top: 0.5rem; }
.staff-gate .btn { margin-top: 0.25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--asphalt); }
.tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: -2px; padding: 0.75rem 1.1rem; cursor: pointer;
  font: 600 1.05rem/1 var(--font-body); color: var(--asphalt-soft);
  background: none; border: 0; border-bottom: 4px solid transparent;
}
.tab:hover { color: var(--asphalt); }
.tab[aria-selected="true"] { color: var(--green-deep); border-bottom-color: var(--green); }
.tab-badge { min-width: 1.5rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.8rem; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; cursor: pointer;
  font: 600 0.95rem/1 var(--font-body); color: var(--asphalt);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
}
.filter span { color: var(--asphalt-soft); font-weight: 500; }
.filter[aria-pressed="true"] { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }
.filter[aria-pressed="true"] span { color: #c4c9c6; }
.app-list, .load-list { padding: 0; list-style: none; }
.app-item { margin-bottom: 0.75rem; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.app-summary {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto auto; align-items: center; gap: 0.5rem 1.25rem;
  width: 100%; padding: 1rem 1.25rem; cursor: pointer; text-align: left;
  font: inherit; color: inherit; background: none; border: 0;
}
.app-summary:hover { background: #f6f7f5; }
.app-summary:focus-visible { outline-offset: -3px; }
.app-id { font-family: var(--font-display); font-size: 1.2rem; color: var(--asphalt-soft); }
.app-who strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.app-who span, .app-date { color: var(--asphalt-soft); font-size: 0.95rem; }
.app-detail { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.answers { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0.55rem 1.25rem; margin: 1.1rem 0 1.25rem; }
.answers dt { font-weight: 600; color: var(--asphalt-soft); }
.answers dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.decision { display: grid; gap: 0.55rem; padding: 1rem 1.1rem; background: var(--concrete); border-radius: 8px; }
.decision-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.97rem; }
.btn-danger { background: var(--white); color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #fbeef0; color: var(--error); }
.btn-quiet { background: transparent; color: var(--asphalt); border-color: var(--line); }
.btn-quiet:hover { background: var(--white); color: var(--asphalt); border-color: var(--asphalt-soft); }
.dispatch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
.panel-title { margin-bottom: 1rem; font-size: 1.8rem; }
.panel-hint { margin-top: 0.9rem; }
.load-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 11rem auto; align-items: center; gap: 0.6rem 1rem;
  margin-bottom: 0.6rem; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.load-route { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.load-meta { margin-top: 0.2rem; color: var(--asphalt-soft); font-size: 0.95rem; }
.select-sm { min-height: 2.5rem; padding-block: 0.35rem; }
.load-list + .empty-note + .hint, .load-list + .empty-note[hidden] + .hint { margin-top: 0.75rem; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; transform: translateX(-50%);
  max-width: min(34rem, calc(100% - 2rem)); padding: 0.8rem 1.1rem;
  background: var(--asphalt); color: var(--white); border-left: 5px solid var(--yellow); border-radius: 8px;
}
@media (max-width: 54rem) {
  .dispatch-layout { grid-template-columns: 1fr; }
  .app-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .app-id, .app-date { display: none; }
  .answers { grid-template-columns: 1fr; gap: 0.2rem; }
  .answers dd { margin-bottom: 0.6rem; }
  .load-item { grid-template-columns: 1fr; }
}

/* Jobs that aren't hiring right now */
.chip-closed { background: #e6e8e5; color: var(--asphalt-soft); }
.position.is-closed h3 { font-weight: 500; color: var(--asphalt-soft); }
.position.is-closed p { color: var(--asphalt-soft); }
.position.is-closed .tile { color: #aab0ad; }
.roles li.is-closed strong { font-weight: 500; color: var(--asphalt-soft); }
/* Same width for the button and the "Not hiring" label so every job's text lines up */
@media (min-width: 54.01rem) {
  .position { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 11rem; }
  .position > div:last-child { justify-self: end; }
}

/* ============ Who we deliver to: roadside service signs ============ */
.service-signs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: end; gap: 2rem 1.5rem;
  border-bottom: 4px solid var(--asphalt);
}
.service-face { padding: 6px; background: #1d4f91; border-radius: 14px; }
.service-inner { padding: 0.9rem 0.9rem 1rem; border: 3px solid var(--white); border-radius: 9px; }
.service-type { margin-bottom: 0.75rem; font-size: 1.65rem; line-height: 1; color: var(--white); }
.plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0; list-style: none; }
.plaque {
  display: flex; align-items: center; justify-content: center; min-height: 4.4rem; padding: 0.55rem;
  background: var(--white); border-radius: 4px; text-align: center;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.1; color: var(--asphalt);
}
.plaque:last-child:nth-child(odd) { grid-column: 1 / -1; }
.plaque img { max-width: 100%; max-height: 3.3rem; object-fit: contain; }
.service-posts { display: flex; justify-content: space-between; height: 2.5rem; padding-inline: 24%; }
.service-posts::before, .service-posts::after { content: ""; width: 0.55rem; background: linear-gradient(90deg, #7d8481, #b5bbb7 45%, #7d8481); }
.js .service-sign { opacity: 0; transform: translateY(2.5rem); }
.js .service-sign.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease calc(var(--g, 0) * 130ms), transform 0.9s var(--ease-spring) calc(var(--g, 0) * 130ms);
}
.js .service-sign .plaque { opacity: 0; transform: perspective(600px) rotateX(-95deg); transform-origin: 50% 0; }
.js .service-sign.is-in .plaque {
  opacity: 1; transform: none;
  transition: transform 0.6s var(--ease-spring) calc(0.4s + var(--g, 0) * 130ms + var(--i, 0) * 90ms),
              opacity 0.2s ease calc(0.4s + var(--g, 0) * 130ms + var(--i, 0) * 90ms);
}
.section-white .form-panel { background: #f6f7f5; }

/* ============ Staff panel: Pay ============ */
.week-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.week-title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.table-card { overflow-x: auto; margin-bottom: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th, .pay-table td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.pay-table thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--asphalt-soft); }
.pay-table tbody th { font-weight: 600; }
.pay-table th:nth-child(n+2), .pay-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.pay-table tfoot th, .pay-table tfoot td { font-weight: 700; border-bottom: 0; background: #f6f7f5; }
.pay-table tr.is-unpaid .pay-amount { color: var(--error); font-weight: 600; }
.pay-table .pay-empty-row { text-align: left; color: var(--asphalt-soft); }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
.pay-layout .panel-title ~ .panel-title { margin-top: 2rem; }
.panel-title + .hint { margin: -0.5rem 0 0.9rem; }
.input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; white-space: pre; overflow-x: auto; }
.import-preview { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--asphalt); }
.preview-title { font-size: 1.5rem; color: var(--green-deep); }
.preview-list { margin: 0.75rem 0 1rem; padding: 0; list-style: none; }
.preview-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.preview-list li.is-duplicate { opacity: 0.55; }
.preview-list input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--green); }
.preview-list label { cursor: pointer; }
.preview-main strong, .pay-line strong { font-family: var(--font-display); font-size: 1.25rem; }
.preview-meta { display: block; font-size: 0.92rem; color: var(--asphalt-soft); }
.pay-raw { display: block; margin-top: 0.2rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; color: #767c79; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-unmatched { margin-bottom: 1rem; }
.preview-unmatched summary { cursor: pointer; font-weight: 600; }
.preview-unmatched ul { margin: 0.5rem 0; padding: 0; list-style: none; }
.preview-unmatched li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.pay-list, .driver-list, .team-list { padding: 0; list-style: none; }
.pay-item, .driver-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 1rem;
  margin-bottom: 0.5rem; padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.driver-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.driver-meta { font-size: 0.92rem; color: var(--asphalt-soft); }
.driver-item.is-inactive { opacity: 0.6; }
.driver-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: end; gap: 0.6rem; margin-top: 0.75rem; }

/* ============ Staff panel: Staff ============ */
.team-item {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; align-items: center; gap: 0.75rem 1.5rem;
  margin-bottom: 0.6rem; padding: 0.9rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.team-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.team-meta { font-size: 0.92rem; color: var(--asphalt-soft); }
.role-boxes { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.role-box { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; cursor: pointer; }
.role-box input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--green); }
.team-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.team-gap { margin-top: 2.25rem; }
.id-form {
  display: grid; grid-template-columns: minmax(0, 15rem) auto auto; align-items: end; gap: 0.75rem 1.5rem;
  margin-top: 1rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
@media (max-width: 54rem) {
  .pay-layout, .team-item, .driver-form, .id-form { grid-template-columns: 1fr; }
  .team-actions { justify-content: flex-start; }
}

/* ============ Road closed (404) ============ */
.closed-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: 2rem clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 7vw, 5rem) clamp(4.5rem, 9vw, 7rem);
}
@media (max-width: 54rem) { .closed-stage { grid-template-columns: 1fr; } }
.closed-sign {
  justify-self: start; padding: 7px; background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px #c9ccc7;
  transform-origin: 50% 0; animation: sign-drop 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s both;
}
.closed-sign h1 { padding: 0.35em 0.7em 0.4em; border: 5px solid #1f2322; border-radius: 8px; font-size: clamp(3.2rem, 8.5vw, 6.5rem); line-height: 0.95; color: #1f2322; }
.closed-copy > p { max-width: 32rem; font-size: 1.2rem; line-height: 1.55; }
.detours { display: grid; gap: 0.75rem; max-width: 26rem; margin-top: 1.5rem; }
.detour {
  display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem 0.8rem 1.25rem;
  background: #f28c28; color: #1f2322; text-decoration: none; border-radius: 10px;
  box-shadow: inset 0 0 0 5px #f28c28, inset 0 0 0 8px #1f2322;
  transform-origin: 50% 0; animation: word-flip 0.55s var(--ease-spring) calc(1.3s + var(--i, 0) * 140ms) both;
}
.detour:hover { color: #1f2322; background: #f59b40; box-shadow: inset 0 0 0 5px #f59b40, inset 0 0 0 8px #1f2322; }
.detour-word { padding: 0.1rem 0.5rem; border: 2px solid #1f2322; border-radius: 4px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.detour-to { flex: 1; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.detour .arrow { width: 1.6rem; height: 1.6rem; transition: transform 0.3s var(--ease-out); }
.detour:hover .arrow-right { transform: rotate(90deg) translateY(-5px); }
.closed-road { --bw: clamp(7rem, 20vw, 16rem); --tw: clamp(11rem, 30vw, 27rem); }
.barricade {
  position: absolute; right: 6vw; bottom: 30%; z-index: 1; width: var(--bw); height: calc(var(--bw) * 0.62);
  animation: barricade-drop 0.85s cubic-bezier(0.3, 1.5, 0.5, 1) 0.5s both;
}
@keyframes barricade-drop { from { transform: translateY(-170%); opacity: 0; } 35% { opacity: 1; } }
.barricade::before, .barricade::after {
  content: ""; position: absolute; top: 12%; bottom: 0; width: 7%;
  background: linear-gradient(90deg, #7d8481, #b5bbb7 45%, #7d8481);
}
.barricade::before { left: 10%; }
.barricade::after { right: 10%; }
.barricade-board {
  position: absolute; left: 0; right: 0; z-index: 1; height: 17%; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #f28c28 0 14px, #fff 14px 28px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.barricade-board:nth-child(3) { top: 16%; }
.barricade-board:nth-child(4) { top: 44%; }
.barricade-board:nth-child(5) { top: 72%; }
.barricade-light {
  position: absolute; top: -7%; z-index: 2; width: 13%; aspect-ratio: 1; border-radius: 50%;
  background: #ffa21a; border: 3px solid var(--asphalt); box-shadow: 0 0 16px 5px rgba(255, 150, 0, 0.85);
  animation: beacon 1s steps(1, end) 1.3s infinite;
}
.barricade-light:nth-child(1) { left: 7%; }
.barricade-light:nth-child(2) { right: 7%; animation-delay: 1.8s; }
.truck-stop {
  position: absolute; left: 0; bottom: 26%; z-index: 2; width: var(--tw);
  animation: stop-short 2.4s cubic-bezier(0.2, 0.75, 0.25, 1) 0.9s both;
}
@keyframes stop-short { from { transform: translateX(-105%); } to { transform: translateX(calc(100vw - var(--tw) - var(--bw) - 6vw - 1.5rem)); } }
.truck-stop .spin { animation: spin 0.3s linear 0.9s 8 both; }
.truck-stop .headlight, .truck-stop .taillight { animation: hazard 0.8s steps(1, end) 3.4s infinite; }

/* ============ Tracking ============ */
.tracking-line { margin-top: 0.75rem; padding: 0.7rem 0.9rem; background: var(--white); border-radius: 6px; }
.tracking-line strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.03em; }
.track-form { max-width: 32rem; margin-top: 1.5rem; }
.track-row { display: flex; gap: 0.75rem; margin-top: 0.35rem; }
.track-row .input { flex: 1; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.track-row .input::placeholder { color: #a3a9a5; }
.track-form .field-error { margin-top: 0.5rem; }
.track-head { margin-bottom: 1.75rem; }
.track-code .tile { font-size: 1.55rem; }
.track-route { margin-top: 0.9rem; font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.track-status { margin-top: 0.35rem; font-size: 1.15rem; font-weight: 600; color: var(--green-deep); }
.track-line .route-truck { transition: left 1.6s var(--ease-out), top 1.6s var(--ease-out); }
.track-line.is-declined .route-road { opacity: 0.45; }
.track-note { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border-left: 5px solid var(--yellow); background: #fff8dc; }
.track-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 1.75rem; }
.track-facts dt { font-size: 0.95rem; font-weight: 600; color: var(--asphalt-soft); }
.track-facts dd { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }

/* ============ My loads (drivers) ============ */
.driver-week {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 3rem;
  margin-bottom: 2rem; padding: 1.25rem 1.5rem; background: var(--asphalt); color: #f1f2ee; border-radius: 12px;
}
.stat-label { font-size: 0.95rem; font-weight: 600; color: var(--yellow); }
.stat { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.2rem); font-weight: 700; line-height: 1; }
.driver-week-note { flex-basis: 100%; color: #b9bfbb; }
.driver-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
.run-list { padding: 0; list-style: none; }
.run-card {
  margin-bottom: 0.75rem; padding: 1rem 1.1rem; background: var(--white);
  border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 10px;
}
.run-card[data-status="delayed"] { border-left-color: var(--yellow); }
.run-card[data-status="delivered"] { border-left-color: #9aa19d; }
.run-card.is-open { border-left-color: var(--asphalt-soft); }
.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.run-route { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.run-meta { margin-top: 0.25rem; font-size: 0.95rem; color: var(--asphalt-soft); }
.run-lane { position: relative; height: 1.9rem; margin: 0.8rem 0 0.9rem; background: var(--asphalt); border-radius: 4px; }
.run-lane::before {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; top: 50%; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, transparent 16px 28px);
}
.run-truck { position: absolute; top: 50%; width: 3rem; left: calc(var(--p, 0) * (100% - 3rem)); transform: translateY(-50%); transition: left 1.4s var(--ease-out); }
.run-truck svg { width: 100%; height: auto; }
.run-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-loading { background: #dde9f5; color: #1f4f7a; }
.chip-on_road { background: #e3efe8; color: var(--green-deep); }
.chip-delayed { background: #fff3c4; color: #6b5200; }
.chip-delivered { background: #e6e8e5; color: var(--asphalt-soft); }
.gate-field { max-width: 22rem; margin-top: 0.75rem; }
@media (max-width: 54rem) { .driver-layout { grid-template-columns: 1fr; } }

/* ============ Staff panel: haul requests and the pay report ============ */
.requests { margin-bottom: 2.5rem; }
.request-list { padding: 0; list-style: none; }
.request-item {
  margin-bottom: 0.75rem; padding: 1rem 1.1rem; background: var(--white);
  border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: 10px;
}
.request-head { display: flex; justify-content: space-between; gap: 1rem; }
.request-code { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.03em; }
.request-when { font-size: 0.92rem; color: var(--asphalt-soft); }
.request-route { margin-top: 0.2rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.request-meta { margin-top: 0.2rem; font-size: 0.95rem; color: var(--asphalt-soft); }
.request-cargo { margin-top: 0.5rem; white-space: pre-wrap; }
.request-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.request-done { margin-top: 1rem; }
.request-done summary { cursor: pointer; font-weight: 600; }
.request-done ul { margin-top: 0.5rem; padding: 0; list-style: none; }
.request-done li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.from-request {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin-bottom: 1rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--yellow); background: #fff8dc; font-weight: 500;
}
.report-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin: -1rem 0 2rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ============ Printable paperwork ============ */
.doc-page { background: #dfe1dd; }
.doc-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 2rem); background: var(--asphalt); color: var(--white);
}
.doc-bar .link-button { color: var(--white); }
.doc-bar .link-button:hover { color: var(--yellow); }
.doc-wrap { padding: clamp(1rem, 4vw, 2.5rem); }
.doc-error { max-width: 44rem; margin-inline: auto; }
.sheet {
  width: min(52rem, 100%); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white); color: #1f2322; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 4px solid var(--green); }
.sheet-brand { display: flex; gap: 0.9rem; }
.sheet-brand svg { width: 3.2rem; height: 3.2rem; flex: none; }
.sheet-name { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.sheet-sub { font-size: 0.92rem; color: #555b58; }
.sheet-meta { text-align: right; }
.sheet-type { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; color: var(--green-deep); }
.sheet-meta dl { display: grid; gap: 0.2rem; margin-top: 0.6rem; }
.sheet-meta div { display: flex; justify-content: flex-end; gap: 0.6rem; }
.sheet-meta dt { font-size: 0.9rem; color: #555b58; }
.sheet-meta dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.sheet-parties h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #555b58; }
.party-name { margin-top: 0.2rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.sheet-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.sheet-table th, .sheet-table td { padding: 0.7rem 0.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid #c9ccc7; }
.sheet-table thead th { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #555b58; border-bottom: 2px solid #1f2322; }
.sheet-table td { white-space: pre-wrap; }
.amount-col { width: 9rem; text-align: right; font-variant-numeric: tabular-nums; }
.sheet-table tfoot th, .sheet-table tfoot td { padding-top: 0.9rem; font-size: 1.15rem; font-weight: 700; border-bottom: 0; }
.sheet-table tfoot th { text-align: right; }
body:not([data-doc-type="invoice"]) .amount-col { display: none; }
.sheet-lines { display: flex; flex-wrap: wrap; gap: 0.6rem 3rem; }
.sheet-lines div { display: flex; gap: 0.6rem; }
.sheet-lines dt { color: #555b58; }
.sheet-lines dd { font-weight: 600; }
.sheet-pay { margin-top: 1.25rem; padding: 0.7rem 0.9rem; background: #f1f3f0; border-left: 4px solid var(--green); }
.sheet-sign { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.sign-rule { display: block; height: 2.2rem; border-bottom: 1px solid #1f2322; }
.sheet-sign p { margin-top: 0.35rem; font-size: 0.85rem; color: #555b58; }
.sheet-stamp {
  margin: 1.75rem 0 0; padding: 0.35rem 1rem; width: fit-content;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); border: 4px solid var(--green); border-radius: 6px; transform: rotate(-4deg);
}
.sheet-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #c9ccc7; font-size: 0.82rem; color: #555b58; }
.sheet-ooc { margin-top: 0.3rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.load-papers { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.4rem; font-size: 0.95rem; }
@media (max-width: 40rem) {
  .sheet-parties, .sheet-sign { grid-template-columns: 1fr; }
  .sheet-meta { text-align: left; }
  .sheet-meta div { justify-content: flex-start; }
}
@media print {
  .doc-page { background: var(--white); }
  .doc-bar, .site-header, .site-footer, .skip { display: none !important; }
  .doc-wrap { padding: 0; }
  .sheet { width: auto; box-shadow: none; padding: 0; }
  .sheet-table thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 16mm; }
}

/* ============ Staff panel: Settings ============ */
.settings-form { max-width: 58rem; }
.editor-card { margin-bottom: 1rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.editor-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.editor-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: end; gap: 0.6rem 1rem; margin-bottom: 0.6rem; padding: 0.75rem 0.9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.editor-row .hint { font-size: 0.85rem; }
.editor-row-actions { display: flex; justify-content: flex-end; }
@media (max-width: 54rem) { .editor-row { grid-template-columns: 1fr; } }

/* ============ Polish ============ */
/* Links that sit on their own line get a bigger tap area on touch screens */
.footer-links a, .roles a, .roles strong, .contact-list dd a, .my-apps li strong {
  display: inline-block; padding-block: 0.2rem;
}
@media (max-width: 54rem) {
  .footer-links a, .contact-list dd a { padding-block: 0.45rem; }
  .footer-links { gap: 0.15rem; }
}
/* On narrow screens the reveal animations slide a shorter distance, so nothing
   pokes past the edge of the page while it's arriving */
@media (max-width: 40rem) {
  .js .reveal-head { transform: translateX(-0.75rem); }
  .js .roles li { transform: translateX(0.75rem); }
  .js .position { transform: translateX(-0.75rem); }
  .js .service-sign { transform: translateY(1.25rem); }
}
/* The barricade and the parked truck can sit slightly off the page on small
   screens without dragging the whole page sideways */
.closed-road, .careers-road { overflow: hidden; }
@media (max-width: 40rem) {
  .sheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid #c9ccc7; }
  .sheet-table td { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.25rem 0; border: 0; }
  .sheet-table td::before { content: attr(data-label); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #555b58; }
  .sheet-table .amount-col { width: auto; text-align: left; }
  .sheet-table tfoot tr { display: flex; justify-content: space-between; border-bottom: 0; }
  .sheet-table tfoot th { text-align: left; }
  .sheet-table tfoot td::before { content: none; }
  .sheet-table tfoot td { display: block; }
}
