/* The page's layout: option 5, "Intro, then page" (the owner's pick; data-layout="5" on <html>). The opening screen
   (index.html), then the sections one after another on black, each one's words and pictures in a column up to 1180 px
   wide. (Until 2 December 2026 the page walked round a 3D truck and four other layouts for that were kept here; that
   version is under the git tag truck-3d-animation.) */

/* The sections after the opening screen. Each link in the header lands with its section's heading just under the
   header (52 px below it): the section's top padding (--sec-pad) goes up behind the header. */
html[data-layout="5"] .section {
  --sec-pad: 64px; min-height: 0; display: block; background: #050506;
  padding: var(--sec-pad) var(--gutter); scroll-margin-top: calc(44px - var(--sec-pad));
}
/* (the sections alternate black, carrying on from the opening picture's black edge, and a raised black) */
html[data-layout="5"] :is(#lift, #work, #contact, #reviews) { background: #0a0b0d; }
/* (with the reviews showing, the request box after them turns black again, so the sections keep alternating) */
html[data-layout="5"] #reviews:not([hidden]) + #contact { background: #050506; }
html[data-layout="5"] main :is(.section > .panel, #work .panel) {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0; background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; gap: 34px;
}
html[data-layout="5"] footer { background: #050506; }
@media (min-width: 761px) {
  html[data-layout="5"] .hero h1 { font-size: clamp(2.9rem, 5vw, 5rem); }
  html[data-layout="5"] .section { --sec-pad: clamp(84px, 9vw, 128px); }
  html[data-layout="5"] .head h2 { font-size: clamp(2.8rem, 4.6vw, 4.4rem); line-height: 0.96; }
  /* service area: the heading, the state map across the page, then the locations beside the routes */
  html[data-layout="5"] main #area .area { row-gap: 44px; }
  html[data-layout="5"] .area-lists { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); column-gap: clamp(40px, 5vw, 72px); }
  html[data-layout="5"] .area-lists .towns { grid-template-columns: none; }
  html[data-layout="5"] .roads { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  html[data-layout="5"] .contact { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
}
html[data-layout="5"] .area-map { display: block; }
/* recent jobs: the job photos in a mosaic of "plates", two on computers and five on phones. Like the slanted gold
   plate under "TOWING" in the logo, every plate leans forward (--lean, with --t its tangent); the photos inside stay
   upright. A plate is two grid rows tall: the lead photo takes two columns and two rows, the upright photos two rows,
   the small and wide ones one row (the upper or lower half of their plate). Every photo leans about the middle of its
   plate, so the slanted gaps between them stay even; the rows are as tall as a 4:3 photo one column wide (container
   units), and the gallery is inset by the lean's overhang (--over) so the plates' corners stay inside the page. */
html[data-layout="5"] #work .panel { container-type: inline-size; }
html[data-layout="5"] #work .gallery {
  --cols: 4; --gap: 14px; --lean: 8deg; --t: 0.1405;
  --k: calc(0.75 / var(--cols));
  --row: calc(var(--k) * (100cqi - var(--t) * var(--gap) - (var(--cols) - 1) * var(--gap)) / (1 + 2 * var(--k) * var(--t)));
  --over: calc((var(--row) + var(--gap) / 2) * var(--t));
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--row);
  gap: var(--gap); padding-inline: var(--over);
}
html[data-layout="5"] #work .job {
  --h: var(--row);
  position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--raised);
  transform: skewX(calc(-1 * var(--lean)));
}
html[data-layout="5"] #work :is(.job-lead, .job-tall) { grid-row: span 2; --h: calc(2 * var(--row) + var(--gap)); }
html[data-layout="5"] #work :is(.job-lead, .job-wide) { grid-column: span 2; }
html[data-layout="5"] #work .job-upper { transform-origin: 50% calc(100% + var(--gap) / 2); }
html[data-layout="5"] #work .job-lower { transform-origin: 50% calc(var(--gap) / -2); }
html[data-layout="5"] #work .job .photo { position: absolute; inset: 0; aspect-ratio: auto; }
/* (each photo leans back by the same angle, so it shows upright, and is drawn wider than its frame by the lean, so it
   still fills the slanted corners) */
html[data-layout="5"] #work .job img {
  position: absolute; top: 0; left: calc(var(--h) * var(--t) / -2);
  width: calc(100% + var(--h) * var(--t)); height: 100%; max-width: none; transform: skewX(var(--lean));
}
/* (a photo under the mouse gets a gold edge to show it opens; one reached with the keyboard a thicker one, drawn over
   the photo, since the upright photo would cover an outline) */
html[data-layout="5"] #work .job .photo:focus-visible { outline: none; }
html[data-layout="5"] #work .job .photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow .18s ease-out;
}
html[data-layout="5"] #work .job .photo:hover::after { box-shadow: inset 0 0 0 3px var(--gold); }
html[data-layout="5"] #work .job .photo:focus-visible::after { box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 0 6px #000; }
@media (max-width: 760px) {
  html[data-layout="5"] #work .gallery { --cols: 2; --gap: 10px; }
  /* (the wide photos take two rows on a phone, a plate of their own, or they'd be thin strips) */
  html[data-layout="5"] #work .job-wide { grid-row: span 2; --h: calc(2 * var(--row) + var(--gap)); transform-origin: 50% 50%; }
}
/* services: the logo's own vocabulary. Its lettering leans forward and "TOWING" sits on a slanted gold plate, so here
   the heading and the six service names are set in the headline cut's heavy italic, each service's icon stands black
   on a small slanted gold plate (lit like the logo's, lighter at the top), and the photo's caption is a gold plate
   tag on its corner. The six sit on one board joined by hairlines; beside it the heading, the call buttons and the
   photo (wide screens), above it (medium), or all in one column (phones). */
html[data-layout="5"] main #services .services-panel {
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "list"; row-gap: 36px; column-gap: 0; align-items: start;
}
html[data-layout="5"] #services .head { grid-area: head; gap: 16px; }
html[data-layout="5"] #services .head p { color: #c9ccd1; font-size: clamp(1.1rem, 1.3vw, 1.25rem); text-wrap: pretty; hyphens: manual; }
html[data-layout="5"] #services .head p .nowrap { white-space: nowrap; }
html[data-layout="5"] #services .head .actions { margin-top: 8px; }
html[data-layout="5"] .services-figure { grid-area: fig; position: relative; display: block; }
html[data-layout="5"] .services-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--raised); }
html[data-layout="5"] .services-figure figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 9px 16px; border-radius: 3px; transform: skewX(-12deg);
  background: linear-gradient(#f6c94f, #e0a51f); color: #000; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
html[data-layout="5"] .services-figure figcaption span { display: block; transform: skewX(12deg); font: italic 800 1.02rem/1.1 var(--font-display); }
html[data-layout="5"] .services {
  grid-area: list; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 4px; overflow: hidden;
}
html[data-layout="5"] .services li { border-top: 0; padding: clamp(24px, 2.6vw, 36px); gap: 10px; align-content: start; background: linear-gradient(#111216, #0b0c0e); }
html[data-layout="5"] .svc-plate {
  display: grid; place-items: center; width: 64px; height: 46px; margin: 0 0 10px 6px; border-radius: 3px; transform: skewX(-12deg);
  background: linear-gradient(#f6c94f, #e0a51f); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}
html[data-layout="5"] .services .svc-plate .svc-icon { width: 30px; height: 30px; margin: 0; color: #000; stroke-width: 2.1; transform: skewX(12deg); }
html[data-layout="5"] .services h3 { font-style: italic; font-weight: 800; font-size: clamp(1.45rem, 1.9vw, 1.75rem); line-height: 1.05; letter-spacing: -0.005em; }
html[data-layout="5"] .services p { color: #c3c7cc; font-size: 1.02rem; line-height: 1.55; max-width: 26em; }
/* how it works: on a computer the heading is centred over the four steps, which stand side by side, each centred under
   its plate, and the gold line runs across from plate to plate; on a phone they run down the side (page styles) */
@media (min-width: 761px) {
  html[data-layout="5"] #how .head { justify-items: center; text-align: center; }
  html[data-layout="5"] #how .steps { justify-self: center; max-width: 66rem; }
  html[data-layout="5"] .steps { --plate-w: 64px; --plate-h: 46px; --step-gap: clamp(18px, 2.4vw, 36px); grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--step-gap); margin-top: 8px; }
  html[data-layout="5"] .steps li { grid-template-columns: none; justify-items: center; text-align: center; row-gap: 6px; }
  html[data-layout="5"] .step-plate { grid-row: auto; margin-bottom: 12px; }
  html[data-layout="5"] .step-plate .svc-icon { width: 28px; height: 28px; stroke-width: 2.1; }
  html[data-layout="5"] .steps li:not(:last-child)::after {
    left: calc(50% + var(--plate-w) / 2 + 12px); right: auto; top: calc(var(--plate-h) / 2 - 1px); bottom: auto;
    width: calc(100% + var(--step-gap) - var(--plate-w) - 24px); height: 2px;
  }
  html[data-layout="5"] .steps h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); }
  html[data-layout="5"] .steps p { max-width: 15.5em; }
}
/* uprights and on call: two short blocks, side by side on a computer with a hairline between them, one under the other
   on a phone */
html[data-layout="5"] main #lift .duo { gap: 44px; }
html[data-layout="5"] .duo > div { display: grid; gap: 18px; align-content: start; }
html[data-layout="5"] .duo > div + div { padding-top: 44px; border-top: 1px solid var(--rule); }
html[data-layout="5"] .duo .lede { color: #dcdbd6; }
@media (min-width: 761px) {
  html[data-layout="5"] main #lift .duo { --duo-gap: clamp(40px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--duo-gap); }
  html[data-layout="5"] .duo > div + div { padding: 0 0 0 var(--duo-gap); border-top: 0; border-left: 1px solid var(--rule); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  html[data-layout="5"] main #services .services-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head fig" "list list"; column-gap: 40px; }
}
@media (min-width: 1100px) {
  html[data-layout="5"] main #services .services-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); grid-template-rows: auto 1fr; grid-template-areas: "head list" "fig list";
    column-gap: clamp(48px, 5vw, 80px); row-gap: 36px;
  }
  /* (the photo fills the column down to the board's foot, so the two end level) */
  html[data-layout="5"] .services-figure { align-self: stretch; min-height: 280px; }
  html[data-layout="5"] .services-figure img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 55% 50%; }
}
@media (max-width: 760px) {
  /* (phones: one service under another, the icon beside its name to keep them short) */
  html[data-layout="5"] .services { grid-template-columns: minmax(0, 1fr); }
  html[data-layout="5"] .services li { grid-template-columns: 54px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px 18px; }
  html[data-layout="5"] .svc-plate { grid-row: span 2; width: 50px; height: 38px; margin: 2px 0 0 4px; }
  html[data-layout="5"] .services .svc-plate .svc-icon { width: 25px; height: 25px; }
  html[data-layout="5"] .services h3 { font-size: 1.4rem; }
  html[data-layout="5"] #services .head .actions .btn { flex: 1 1 auto; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  /* (medium screens: the routes under the locations, across the page, so their names don't wrap) */
  html[data-layout="5"] .area-lists { grid-template-columns: none; }
  html[data-layout="5"] .area-lists .towns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  html[data-layout="5"] main #area .area { gap: 30px; }
  html[data-layout="5"] .area-lists { grid-template-columns: none; }
  html[data-layout="5"] .area-lists .towns { grid-template-columns: 1fr 1fr; }
  html[data-layout="5"] .roads { grid-template-columns: none; }
  /* (on a phone the state is small: just the four locations are named on it, in bigger letters, and the roads lose
     their shields; the cities and routes are in the lists below) */
  html[data-layout="5"] .area-map .cities-map text, html[data-layout="5"] .area-map .shield { display: none; }
  html[data-layout="5"] .area-map .city-dot { r: 7px; }
  html[data-layout="5"] .area-map .roads-map path { stroke-width: 4; }
  html[data-layout="5"] .area-map .bases-map circle { r: 13px; stroke-width: 4; }
  html[data-layout="5"] .area-map .bases-map text { font-size: 40px; stroke-width: 9px; }
  html[data-layout="5"] .steps { width: min(100%, 22.5rem); --step-gap: 12px; }
  html[data-layout="5"] .hero h1 { font-size: 2.45rem; }
  html[data-layout="5"] .head h2 { font-size: 2.5rem; line-height: 1; }
}
