@font-face {
  font-family: "PT Sans Narrow";
  src: url("/assets/fonts/PTSansNarrow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

.theme-fleet {
  --paper: #faf9f6;
  --ink: #1b2022;
  --muted: #53595a;
  --line: #cccfc9;
  --accent: #ff782a;
  --display: "PT Sans Narrow", "Arial Narrow", var(--sans);
  --section-gap: clamp(22px, 3.5vw, 58px);
  --section-space: clamp(44px, 5vw, 80px);
  --focus-ring: #a54710;
}

.theme-fleet .site-header {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.theme-fleet .brand span { font-family: var(--sans); }
.theme-fleet .site-links { background: var(--paper); }
.theme-fleet .header-quote {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
}
.theme-fleet .header-quote:hover { background: var(--ink); color: var(--paper); }

.fleet-hero {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr);
  align-items: center;
  gap: var(--section-gap);
  padding-block: clamp(24px, 2.6vw, 42px) clamp(34px, 3.5vw, 56px);
}
.fleet-intro { container-type: inline-size; padding-block: 12px; }
.fleet-origin {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font: 560 15px/1.35 var(--sans);
}
.fleet-origin i {
  display: inline-block;
  width: 23px;
  height: 8px;
  transform: skewX(-30deg);
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 8px);
}
.fleet-intro h1 {
  margin-block: clamp(18px, 1.8vw, 30px);
  font: 700 clamp(32px, 15.5cqi, 90px)/.94 var(--display);
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.fleet-lead {
  font: 450 clamp(17px, 1.35vw, 22px)/1.45 var(--sans);
  color: var(--muted);
}
.fleet-cta,
.theme-fleet .detail-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: white;
  font: 620 16px/1.25 var(--sans);
}
.fleet-cta { margin-top: clamp(22px, 2.25vw, 36px); }
.fleet-cta span, .theme-fleet .detail-send [aria-hidden="true"] { color: var(--accent); }
.fleet-cta:hover, .theme-fleet .detail-send:hover { background: #333b3d; }

.fleet-view, .fleet-scene { min-width: 0; }
.fleet-window {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px);
}
.fleet-window::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  clip-path: polygon(0 31px, 31px 0, 39px 0, 0 39px);
}
.fleet-scene {
  position: relative;
  overflow: hidden;
  height: clamp(350px, 31vw, 500px);
  touch-action: pan-y pinch-zoom;
}
.fleet-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fleet-picture-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fleet-picture-tools .sequence-toggle {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #ffffff6b;
  border-radius: 2px;
  color: #fff;
  background: #1b2022ed;
}
.fleet-picture-tools .sequence-toggle { width: 42px; }
.fleet-picture-tools .sequence-toggle[hidden] { display: none; }
.fleet-picture-tools :focus-visible { outline: 3px solid white; outline-offset: 2px; }
.fleet-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}
.fleet-picker button {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 13px 0 4px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 540 clamp(13px, 1.1vw, 17px)/1.2 var(--sans);
  text-align: left;
}
.fleet-picker button[aria-pressed="true"] { font-weight: 740; color: var(--ink); }
.fleet-picker button:hover { color: var(--ink); }
.fleet-rail {
  position: absolute;
  inset: 2px 0 auto;
  height: 3px;
  overflow: hidden;
  background: var(--line);
}
.fleet-picker [aria-pressed="true"] .fleet-rail { background: #c0b3a8; }
.fleet-rail i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.fleet-picker [aria-pressed="true"] .fleet-rail i { transform: scaleX(1); }
.theme-fleet .detail-section {
  padding-block: var(--section-space);
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.theme-fleet .detail-title {
  color: inherit;
  font: 700 clamp(38px, 4.25vw, 70px)/.98 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.theme-fleet .detail-company-grid,
.theme-fleet .detail-quote-grid,
.fleet-terms-layout {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr);
  align-items: start;
  gap: var(--section-gap);
}
.theme-fleet .detail-title + .company-profile { margin-top: clamp(18px, 2vw, 30px); }
.theme-fleet .company-profile, .fleet-term-views p, .fleet-trailer p {
  font: 430 clamp(16px, 1.15vw, 19px)/1.52 var(--sans);
  color: var(--muted);
}
.theme-fleet .detail-company-photo img { --company-ratio: 2.3; }
.theme-fleet .detail-company-photo figcaption { color: var(--ink); }
.fleet-stops {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  margin-top: clamp(18px, 2.2vw, 32px);
}
.fleet-stops::before {
  content: "";
  position: absolute;
  top: 12.5%;
  bottom: 12.5%;
  left: 8px;
  width: 1px;
  background: var(--line);
}
.fleet-stops::after {
  content: "";
  position: absolute;
  top: var(--stop-at, 12.5%);
  left: 1px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--paper);
  transform: translateY(-50%);
  pointer-events: none;
}
.fleet-stops button {
  position: relative;
  display: grid;
  grid-template-columns: 17px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 9px 2px 9px 0;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 560 clamp(17px, 1.45vw, 23px)/1.25 var(--sans);
}
.fleet-stops i {
  justify-self: center;
  height: 9px;
  width: 9px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--paper);
}
.fleet-stops button span { opacity: 0; color: var(--ink); }
.fleet-stops button:hover, .fleet-stops [aria-selected="true"] { color: var(--ink); }
.fleet-stops [aria-selected="true"] span { opacity: 1; }
.fleet-term-image, .fleet-trailer-image { overflow: hidden; }
.fleet-term-image img {
  width: 100%;
  aspect-ratio: 2;
  object-fit: cover;
  object-position: center 47%;
}
.fleet-term-views p {
  max-width: 58ch;
  min-height: 3.04em;
  margin-top: 12px;
  color: var(--ink);
}
.theme-fleet .detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px var(--section-gap);
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: clamp(20px, 2.4vw, 36px);
}
.fleet-trailers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(16px, 1.8vw, 32px);
}
.fleet-trailer {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 40px;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "photo photo" "name action" "copy copy";
  align-items: center;
  gap: 7px 6px;
}
.fleet-trailer-image { grid-area: photo; margin-bottom: 5px; }
.fleet-trailer img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.fleet-trailer h3 {
  grid-area: name;
  font: 700 clamp(23px, 1.95vw, 32px)/1.1 var(--display);
  letter-spacing: -.02em;
}
.fleet-trailer p { grid-area: copy; align-self: start; }
.fleet-trailer .detail-trailer-arrow {
  grid-area: action;
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  border-color: var(--line);
  font: 500 20px/1 var(--sans);
}
.fleet-trailer:is(:hover,:focus-visible) .detail-trailer-arrow {
  background: var(--accent);
  border-color: var(--accent);
}

.theme-fleet .detail-form {
  gap: 18px clamp(14px, 1.8vw, 28px);
}
.theme-fleet .detail-form label { align-content: end; }
.theme-fleet .detail-form :is(input, select, textarea) {
  border: 1px solid #a2a6a4;
  border-radius: 2px;
  background: #fff;
}
.theme-fleet .detail-form :is(input, select) { height: 50px; }
.theme-fleet .detail-form :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fleet-waybill { margin-top: 24px; max-width: 42ch; }
.fleet-waypoints {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 25px;
}
.fleet-wayline {
  position: absolute;
  inset: 29px 4px auto;
  border-top: 1px dashed var(--muted);
}
.fleet-wayline i {
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 29px;
  height: 19px;
  background: url("/assets/mark.webp") center / contain no-repeat;
}
.route-complete .fleet-wayline i { left: calc(100% - 29px); }
.fleet-city {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.fleet-city:last-child { align-items: flex-end; text-align: right; }
.fleet-city i {
  height: 9px;
  width: 9px;
  justify-self: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
}
.fleet-city:last-child i { border-radius: 0; }
.fleet-waypoints .has-city { font-weight: 650; color: var(--ink); }
.fleet-waypoints .has-city i { background: var(--accent); }
.fleet-load {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 15px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.fleet-load[hidden] { display: none; }
.fleet-load img { object-fit: cover; }
.theme-fleet .detail-footer { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .fleet-stops::after { transition: top .42s cubic-bezier(.2,.75,.22,1); }
  .fleet-wayline i { transition: left 1s cubic-bezier(.22,.75,.26,1); }
  .fleet-intro h1 { animation: fleet-headline-in .65s cubic-bezier(.18,.65,.24,1) both; }
  .fleet-window { animation: fleet-window-in .85s cubic-bezier(.2,.75,.25,1) both; }
  .fleet-term-views [role="tabpanel"]:not([hidden]) img { animation: fleet-scene-in .46s cubic-bezier(.24,.8,.22,1) both; }
  .fleet-term-views [role="tabpanel"]:not([hidden]) p, .fleet-load:not([hidden]) { animation: fleet-caption-in .32s ease-out both; }
  .fleet-trailer img, .fleet-cta span, .fleet-stops i, .fleet-stops button span { transition: transform .35s ease, opacity .25s; }
  .fleet-stops button:not([aria-selected="true"]) span { transform: translateX(-8px); }
  .fleet-trailer:is(:hover, :focus-visible) img { transform: scale(1.045); }
  .fleet-cta:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }
  .fleet-waypoints .has-city i { animation: fleet-pin .4s ease-out; }
}
:root:has(.theme-fleet) { view-transition-name: none; }
::view-transition-group(selected-trailer) {
  animation-duration: .48s;
  animation-timing-function: cubic-bezier(.2,.72,.22,1);
}
::view-transition-old(selected-trailer),
::view-transition-new(selected-trailer) { height: 100%; object-fit: cover; }
@keyframes fleet-headline-in { from { opacity: .25; transform: translateY(12px); } }
@keyframes fleet-window-in { from { clip-path: polygon(32px 0, 88% 0, 88% 100%, 0 100%, 0 32px); opacity: .5; } }
@keyframes fleet-scene-in { from { opacity: .6; transform: scale(1.035) translateX(1%); } }
@keyframes fleet-caption-in { from { opacity: .2; transform: translateY(5px); } }
@keyframes fleet-pin { 45% { transform: scale(1.45); } }

@media (max-width: 1120px) {
  .fleet-trailers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .fleet-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .fleet-scene { height: 320px; }
  .theme-fleet .detail-quote-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
}
@media (max-width: 680px) {
  .fleet-hero, .theme-fleet .detail-company-grid, .fleet-terms-layout, .theme-fleet .detail-quote-grid { grid-template-columns: 1fr; }
  .fleet-hero { gap: 23px; padding-top: 24px; }
  .fleet-intro { padding: 0; }
  .fleet-origin { font-size: 14px; }
  .fleet-intro h1 { margin: 13px 0; }
  .fleet-cta { margin-top: 16px; }
  .fleet-scene { height: auto; aspect-ratio: 1.6; }
  .fleet-picker { gap: 7px; padding-top: 8px; }
  .fleet-picker button { font-size: 13px; }
  .fleet-picture-tools { right: 9px; bottom: 9px; }
  .fleet-window { clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px); }
  .fleet-window::after { width: 36px; height: 36px; clip-path: polygon(0 21px, 21px 0, 28px 0, 0 28px); }
  .theme-fleet .detail-company-photo img, .fleet-term-image img { aspect-ratio: 1.85; }
  .fleet-term-views p { min-height: 0; }
  .fleet-stops { margin-top: 12px; }
  .fleet-stops button { min-height: 44px; }
  .fleet-waybill { margin-top: 14px; }
}
@media (max-width: 520px) {
  .fleet-trailers-grid { grid-template-columns: 1fr; }
  .fleet-trailer img { aspect-ratio: 2; }
  .theme-fleet .detail-form { grid-template-columns: 1fr; }
}
