/* Camioneros public site. Static, self-hosted Barlow (CSP font-src 'self'), no inline styles.
   Shape rule: buttons and nav links are pills, tiles 16px, cards 24px, panels 28px, phones 34px. */

@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f3f5f9;
  --bg-raise: #fbfcfe;
  --ink: #111a2e;
  --ink-2: #47526a;
  --ink-3: #5d6780;
  --line: #dde2ec;
  --line-strong: #c3cbda;
  --route: #1f5bff;
  --route-hover: #1648d9;
  --route-ink: #1846d6;
  --route-tint: #e5ecff;
  --signal: #f5b400;
  --night: #0d1530;
  --night-2: #18234b;
  --on-night: #eef2fb;
  --on-night-2: #b9c3dc;
  --on-night-line: rgba(238, 242, 251, 0.16);
  --t-red: #fde8e6;
  --t-amber: #fff1cc;
  --t-blue: #e3ebff;
  --t-slate: #e7ebf2;
  --bezel: #0b1020;
  --shadow: 0 1px 2px rgba(17, 26, 46, 0.06), 0 20px 44px -18px rgba(17, 26, 46, 0.32);
  --shadow-phone: 0 2px 6px rgba(17, 26, 46, 0.12), 0 34px 60px -24px rgba(13, 21, 48, 0.55);
  --radius-tile: 16px;
  --radius-card: 24px;
  --radius-panel: 28px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Barlow Condensed", "Bahnschrift", "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: min(1200px, 100% - 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1d;
    --bg-raise: #111931;
    --ink: #e8ecf6;
    --ink-2: #aeb7cb;
    --ink-3: #9099af;
    --line: #212b44;
    --line-strong: #34405f;
    --route-ink: #93b3ff;
    --route-tint: rgba(79, 124, 255, 0.16);
    --night: #121b39;
    --night-2: #1b2650;
    --t-red: rgba(239, 96, 84, 0.16);
    --t-amber: rgba(245, 180, 0, 0.14);
    --t-blue: rgba(79, 124, 255, 0.17);
    --t-slate: rgba(150, 165, 195, 0.12);
    --bezel: #04070f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 44px -18px rgba(0, 0, 0, 0.7);
    --shadow-phone: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 34px 60px -24px rgba(0, 0, 0, 0.85);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(31, 91, 255, 0.24);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--route-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--route);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :focus-visible {
    outline-color: var(--signal);
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 20;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header and navigation (shared by every page) */

.site-header {
  position: relative;
  width: var(--page);
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px -6px rgba(13, 21, 48, 0.45);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand span span {
  display: block;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav a[aria-current="page"] {
  background: var(--route-tint);
  color: var(--ink);
}

.nav a[lang] {
  margin-left: 0.4rem;
  padding: 0 0.95rem;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background: var(--route-tint);
    color: var(--ink);
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--route);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 91, 255, 0.8);
}

.button.ghost,
.button.secondary {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .button.primary:hover {
    background: var(--route-hover);
  }

  .button.ghost:hover,
  .button.secondary:hover {
    background: var(--route-tint);
  }
}

main {
  width: var(--page);
  margin-inline: auto;
}

/* Landing: hero */

.hero {
  padding-top: clamp(20px, 4.5vw, 56px);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.5;
}

.hero-scene {
  --pw: clamp(124px, 21vw, 262px);
  --overhang: 0.5;
  position: relative;
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding-bottom: calc(var(--pw) * var(--overhang));
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: var(--radius-panel);
  background: var(--night);
}

.hero-phone {
  position: absolute;
  left: 5%;
  bottom: 0;
  width: var(--pw);
}

.scene-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(5% + var(--pw) + clamp(16px, 2.4vw, 36px));
  min-height: calc(var(--pw) * var(--overhang));
  display: flex;
  align-items: center;
  margin: 0;
  max-width: 46ch;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Phones with real app screens */

.phone {
  margin: 0;
  padding: 7px;
  border-radius: 34px;
  background: var(--bezel);
  box-shadow: var(--shadow-phone);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

/* Landing: sections */

.section {
  padding-block: clamp(72px, 10vw, 136px) 0;
}

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 20ch;
}

.section-lead {
  margin: 1.1rem 0 0;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.truck {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.truck-copy p {
  max-width: 54ch;
}

.truck-copy p:not(.section-lead) {
  margin: 0.9rem 0 0;
  color: var(--ink-2);
}

.alerts-title {
  margin-top: 2.2rem;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.truck-copy .alerts-title + p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.truck-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.truck-alerts li {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.9rem 0.5rem 0.8rem;
  border-radius: var(--radius-tile);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.truck-alerts img,
.tile img {
  width: 64px;
  height: 64px;
}

.truck-stage {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--route-tint), transparent 70%),
    var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

.truck-stage .phone {
  width: min(300px, 78%);
}

.reports h2 {
  max-width: 26ch;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  padding: 1.1rem 0.4rem 1rem;
  border-radius: var(--radius-tile);
  background: var(--t-slate);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  transition: transform 220ms var(--ease-out);
}

.tile.red {
  background: var(--t-red);
}

.tile.amber {
  background: var(--t-amber);
}

.tile.blue {
  background: var(--t-blue);
}

.tile img {
  width: 72px;
  height: 72px;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(-3px);
  }
}

.report-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.report-notes h3 {
  font-size: 1.35rem;
}

.report-notes p {
  margin: 0.5rem 0 0;
  max-width: 50ch;
  color: var(--ink-2);
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}

.cell {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cell img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cell-text {
  padding: 1.25rem 1.4rem 1.5rem;
}

.cell h3 {
  font-size: 1.4rem;
}

.cell p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
}

.cell-map {
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-rows: 1fr auto;
}

.cell-map img {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}

.cell-route {
  grid-column: 2 / span 2;
  grid-template-rows: auto;
  align-content: end;
  min-height: 220px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--route);
  box-shadow: none;
  color: #fff;
}

.cell-route .cell-text {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.cell-route h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.cell-route p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.road {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.road-media {
  position: sticky;
  top: 24px;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(110% 70% at 50% 100%, var(--night-2), transparent 75%),
    var(--night);
}

.road-media .phone {
  width: min(290px, 80%);
}

.road-list {
  margin: clamp(24px, 3vw, 40px) 0 0;
}

.road-item {
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.road-item h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.road-item p {
  margin: 0.45rem 0 0;
  max-width: 52ch;
  color: var(--ink-2);
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(72px, 10vw, 136px);
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(80% 90% at 0% 100%, rgba(232, 135, 94, 0.22), transparent 70%),
    radial-gradient(70% 80% at 100% 0%, var(--night-2), transparent 70%),
    var(--night);
  color: var(--on-night);
}

.safety h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 12ch;
}

.safety .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.4rem;
  color: var(--on-night);
  font-weight: 700;
}

.safety :focus-visible {
  outline-color: var(--signal);
}

.safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding-block: 1.3rem;
  border-top: 1px solid var(--on-night-line);
}

.safety-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.safety-claim {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.safety-list p:not(.safety-claim) {
  margin: 0.45rem 0 0;
  max-width: 50ch;
  color: var(--on-night-2);
}

.closing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding-bottom: clamp(72px, 10vw, 128px);
}

.closing-icon {
  width: clamp(88px, 11vw, 132px);
  height: auto;
  border-radius: 28%;
  box-shadow: var(--shadow);
}

.closing p {
  margin: 0.8rem 0 1.4rem;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1.1rem;
}

/* Footer (shared) */

.site-footer {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: start;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0.4rem 0 0;
  max-width: 60ch;
}

.site-footer time {
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 1.1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--route-ink);
    text-decoration: underline;
  }
}

/* Legal, support and contact pages */

.policy,
.compact {
  max-width: 760px;
  padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 96px);
}

.policy h1,
.compact h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.policy h2,
.compact h2 {
  margin: 2.6rem 0 0.7rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.15;
}

.policy h3,
.compact h3 {
  margin: 1.6rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 1.08rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.policy p,
.policy li,
.compact p,
.compact li {
  color: var(--ink-2);
}

.policy strong,
.compact strong {
  color: var(--ink);
}

.policy ol,
.policy ul,
.compact ol,
.compact ul {
  padding-left: 1.3rem;
}

.policy li + li,
.compact li + li {
  margin-top: 0.5rem;
}

.policy section,
.compact section {
  padding: 0.6rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.policy section:last-child,
.compact section:last-child {
  border-bottom: 0;
}

.policy section h2,
.compact section h2 {
  margin-top: 1.6rem;
}

.policy .button,
.compact .button {
  margin: 0.4rem 0.2rem;
}

#fallback-title {
  overflow-wrap: anywhere;
}

.app-downloads {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 1.6rem 0 0.5rem;
}

.app-downloads .button {
  min-height: 56px;
  margin: 0;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.app-download-note {
  max-width: 28rem;
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--route-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.lead {
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.8vw, 1.2rem);
}

.meta {
  margin: 0 0 1.2rem;
  color: var(--ink-3);
  font-weight: 600;
}

.download-box,
.compact .download-box {
  margin-top: 1.4rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-card);
  border-bottom: 0;
  background: var(--night);
  color: var(--on-night);
}

.download-box h2,
.compact .download-box h2 {
  margin-top: 0;
}

.download-box p {
  color: var(--on-night-2);
}

/* Motion: one entrance for the hero, scroll-linked arrival for the report tiles and phones */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(56px);
  }
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 760ms var(--ease-out-expo) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 90ms;
  }

  .hero-photo {
    animation: settle 1100ms var(--ease-out-expo) 120ms both;
  }

  .hero-phone {
    animation: phone-in 980ms var(--ease-out-expo) 280ms both;
  }

  .scene-note {
    animation: rise 760ms var(--ease-out-expo) 520ms both;
  }

  @supports (animation-timeline: view()) {
    .tile {
      animation: tile-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .tile:nth-child(2) { animation-range: entry 4% entry 84%; }
    .tile:nth-child(3) { animation-range: entry 8% entry 88%; }
    .tile:nth-child(4) { animation-range: entry 12% entry 92%; }
    .tile:nth-child(5) { animation-range: entry 16% entry 96%; }
    .tile:nth-child(6) { animation-range: entry 20% entry 100%; }
    .tile:nth-child(7) { animation-range: entry 24% cover 26%; }
    .tile:nth-child(8) { animation-range: entry 28% cover 28%; }

    .truck-stage .phone,
    .road-media .phone {
      animation: lift-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */

@media (max-width: 1040px) {
  .report-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cell-map {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .cell-map img {
    aspect-ratio: 16 / 8;
    min-height: 0;
  }

  .cell-route {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 6px;
  }

  .nav {
    flex: 0 0 calc(100% + 32px);
    margin-inline: -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a:first-child {
    padding-left: 0;
  }

  .nav a:first-child[aria-current="page"] {
    padding-left: 0.85rem;
  }

  .nav a[lang] {
    position: absolute;
    top: 16px;
    right: 0;
    margin: 0;
    background: var(--bg);
  }

  .brand {
    padding-right: 72px;
  }

  .hero-copy,
  .truck,
  .road,
  .safety {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lead {
    max-width: 46ch;
  }

  .road-media {
    position: static;
    order: 2;
  }

  .report-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero-scene {
    --pw: clamp(116px, 36vw, 190px);
    --overhang: 0.72;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
    object-position: 58% 58%;
    border-radius: var(--radius-card);
  }

  .hero-phone {
    left: 4%;
  }

  .scene-note {
    font-size: 0.86rem;
  }

  .phone {
    padding: 5px;
    border-radius: 26px;
  }

  .phone img {
    border-radius: 21px;
  }

  .truck-alerts {
    gap: 8px;
  }

  .truck-alerts li {
    font-size: 0.82rem;
  }

  .truck-alerts img {
    width: 52px;
    height: 52px;
  }

  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tile {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    align-content: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    text-align: left;
  }

  .tile img {
    width: 44px;
    height: 44px;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell-map img {
    aspect-ratio: 4 / 3;
  }

  .cell-route {
    min-height: 0;
  }

  .safety {
    margin-inline: -4px;
  }

  .closing {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .actions .button,
  .closing .actions .button {
    flex: 1 1 100%;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

[hidden] { display: none !important; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms cubic-bezier(0.23, 1, 0.32, 1) both vt-out; }
::view-transition-new(root) { animation: 280ms cubic-bezier(0.23, 1, 0.32, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
