:root {
  color-scheme: dark;
  --background: #101a16;
  --panel: #16251e;
  --ink: #f0f3eb;
  --muted: #b1c2b6;
  --line: #3e5548;
  --accent: #e1ef77;
  --metal-dark: #25382e;
  --tire: #0e1713;
  font-family: Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--background);
}

.page-shell {
  width: min(100%, 94rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 5.1vw, 5rem);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: clamp(.875rem, 2.8vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.brand-mark {
  width: 1.75rem;
  height: 1.15rem;
  background: var(--accent);
  clip-path: polygon(0 75%, 30% 0, 46% 0, 22% 60%, 67% 60%, 84% 0, 100% 0, 77% 100%, 0 100%);
}

.domain, .service { margin: 0; }

.domain {
  font-size: clamp(.95rem, 1.5vw, 1.125rem);
  font-weight: 700;
}

.service {
  color: var(--muted);
  font-size: .875rem;
}

.hero {
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(1.625rem, 4vw, 3rem);
  padding-block: clamp(2rem, 6vh, 4.5rem);
}

.message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7.15vw, 7rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.phone-link {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 4.375rem;
  align-items: center;
  gap: .85rem;
  padding: .625rem 1.25rem .625rem .75rem;
  border: 1px solid var(--accent);
  border-radius: .25rem;
  color: var(--background);
  background: var(--accent);
  text-decoration: none;
}

.phone-link:hover { background: #eef8a2; }
.phone-link:active { background: #cbd963; }
.phone-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.phone-icon {
  position: relative;
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--background);
}

.phone-icon::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-left: .235rem solid;
  border-bottom: .235rem solid;
  border-bottom-left-radius: .9rem;
  transform: rotate(-12deg);
}

.phone-icon::after {
  content: "";
  position: absolute;
  top: calc(50% - .63rem);
  left: calc(50% - .72rem);
  width: .38rem;
  height: .43rem;
  border-radius: .12rem;
  background: currentColor;
  box-shadow: 1.01rem 1.03rem currentColor;
  transform: rotate(-12deg);
}

.phone-copy { display: grid; gap: .15rem; }
.phone-label { font-size: .875rem; font-weight: 700; }
.phone-number {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.scene {
  --grid-size: clamp(1.5rem, 3.75vw, 3.25rem);
  position: relative;
  width: 100%;
  aspect-ratio: 2.95;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, #31453870 1px, transparent 1px) center / var(--grid-size) var(--grid-size),
    linear-gradient(#31453870 1px, transparent 1px) center / var(--grid-size) var(--grid-size),
    var(--panel);
}

/* Hangar frame and marked concrete apron */
.workshop {
  position: absolute;
  inset: 13% 6% 18% 7%;
  border-top: 1px solid #647d6b;
}

.wall-panels {
  position: absolute;
  inset: 0 50% 0 0;
  border-inline: 1px solid var(--line);
  background:
    linear-gradient(0deg, transparent 31%, #576f60 31% 32%, transparent 32% 68%, #576f60 68% 69%, transparent 69%),
    repeating-linear-gradient(90deg, #23362c 0 2px, #1e3027 2px 24%, #577360 24% 24.4%);
}

.address-plaque {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 4%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  width: max-content;
  max-width: calc(100% - .75rem);
  margin: 0;
  padding: .32rem .5rem;
  border: 1px solid #f4f6fa;
  border-radius: .22rem;
  color: #f7f8fb;
  background: #123553;
  box-shadow: 0 .25rem .75rem #0007;
  font-size: clamp(.75rem, 1vw, .875rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}

.address-plaque strong {
  padding-left: .55rem;
  border-left: 1px solid #d5deea;
  color: #fff;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1;
  white-space: nowrap;
}

.wall-panels::before {
  content: "";
  position: absolute;
  inset: 58% 12% 9%;
  border: 1px solid #77917e;
  background: repeating-linear-gradient(0deg, #314a3c 0 10%, #6a8271 10% 12%, #314a3c 12% 18%);
}

.bay {
  position: absolute;
  inset: 0 0 0 46%;
  border: 1px solid #789382;
  border-top-width: 2px;
  border-bottom: 0;
  background: #354d3f;
}

.bay-opening {
  position: absolute;
  inset: 7% 5% 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 52% 3%, #54654a, transparent 67%),
    #192921;
}

.bay-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #73928629;
  clip-path: polygon(3% 0, 18% 0, 37% 100%, 5% 100%);
}

.bay-light {
  position: absolute;
  top: 10%;
  left: 19%;
  right: 19%;
  height: 2%;
  background: #eff5bf;
  box-shadow: 0 0 1.25rem .12rem #ebf1a472;
}

.shutter {
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--tire);
  background: repeating-linear-gradient(0deg, #425e50 0 .65rem, #768f7e .65rem .72rem, #253b30 .72rem .77rem);
  animation: open-bay 1.32s cubic-bezier(.55, .05, .24, 1) both;
}

.bay-guard {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 2%;
  min-width: 4px;
  height: 35%;
  background: repeating-linear-gradient(145deg, var(--accent) 0 9%, #3c4b39 9% 18%);
}

.apron {
  position: absolute;
  inset: 82% 0 0;
  border-top: 1px solid #698275;
  background: #23392d;
}

.apron::after {
  content: "";
  position: absolute;
  inset: 58% 5.5% auto;
  height: .17rem;
  background: repeating-linear-gradient(90deg, #92aa92 0 11%, transparent 11% 20%);
  transform: skewX(-46deg);
}

/* Side profile of a cab-over tractor and semitrailer */
.truck {
  --arrival-duration: 3.16s;
  --arrival-delay: 1.4s;
  --arrival-easing: cubic-bezier(.3, .1, .25, 1);
  position: absolute;
  left: 17%;
  bottom: 13%;
  width: 73%;
  aspect-ratio: 3.55;
  animation: arrive var(--arrival-duration) var(--arrival-easing) var(--arrival-delay) both;
}

.truck-shadow {
  position: absolute;
  inset: auto 1% -1%;
  height: 15%;
  border-radius: 50%;
  background: #112219;
}

.chassis {
  position: absolute;
  left: 3%;
  right: 2%;
  top: 71%;
  height: 13%;
  border-top: 1px solid #89a093;
  background: var(--metal-dark);
}

.chassis::before {
  content: "";
  position: absolute;
  inset: 15% 31% 32% 37%;
  background: #9bb19e;
  border-bottom: 1px solid var(--tire);
}

.trailer {
  position: absolute;
  inset: 4% 34% 27% 0;
  overflow: hidden;
  border: 2px solid #283c2e;
  background:
    repeating-linear-gradient(90deg, transparent 0 13.9%, #829987 13.9% 14.17%),
    linear-gradient(158deg, #e1e8d9 0 50%, #b6c8b5 50%);
}

.trailer::before, .trailer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5%;
  background: #a2b6a4;
}

.trailer::after {
  inset: auto 0 0;
  height: 7%;
  background: #8ca491;
  border-top: 1px solid #637c68;
}

.trailer-stripes {
  position: absolute;
  inset: 13% 1% 10% 44%;
  background: #4b6958;
  clip-path: polygon(0 100%, 41% 0, 64% 0, 23% 100%, 33% 100%, 74% 0, 83% 0, 42% 100%);
}

.tractor { position: absolute; inset: 10% 0 15% 67.5%; }

.cab {
  position: absolute;
  inset: 0;
  border-radius: 8% 7% 3% 2%;
  background: linear-gradient(155deg, #d4e17a 0 51%, #b1c35b 51%);
  clip-path: polygon(0 94%, 1% 18%, 13% 3%, 20% 0, 77% 0, 89% 6%, 97% 21%, 100% 43%, 100% 82%, 94% 96%, 5% 100%);
}

.cab-glazing {
  position: absolute;
  inset: 12% 9% 55% 22%;
  background: linear-gradient(110deg, #30483a, #526a58 58%, #293f33);
  clip-path: polygon(0 0, 77% 0, 100% 100%, 0 100%);
}

.cab-door {
  position: absolute;
  inset: 48% 27% 16% 28%;
  border: 1px solid #6a7e42;
  border-top: 0;
}

.cab-door::before {
  content: "";
  position: absolute;
  top: 17%;
  left: 13%;
  width: 19%;
  height: 10%;
  background: var(--tire);
}

.cab-grille {
  position: absolute;
  inset: 52% 0 27% auto;
  width: 7%;
  background: #24372d;
}

.headlamp {
  position: absolute;
  top: 34%;
  right: 8%;
  width: 42%;
  height: 24%;
  background: #eff3b6;
}

.cab-bumper {
  position: absolute;
  right: 0;
  bottom: 5%;
  width: 17%;
  height: 10%;
  border-radius: 0 0 2px 0;
  background: #24372d;
}

.wheel {
  position: absolute;
  bottom: 0;
  width: 8.2%;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--tire);
  animation: roll var(--arrival-duration) var(--arrival-easing) var(--arrival-delay) both;
}

.wheel::before {
  content: "";
  width: 54%;
  aspect-ratio: 1;
  border: 2px solid #a9c0af;
  border-radius: 50%;
  background:
    radial-gradient(circle, #dce5d4 0 25%, transparent 26%),
    repeating-conic-gradient(#557064 0 18%, #b6c8b9 18% 25%);
}

.wheel-trailer-rear { left: 16%; }
.wheel-trailer-middle { left: 25%; }
.wheel-trailer-front { left: 34%; }
.wheel-drive { left: 68%; }
.wheel-steer { left: 89%; }

@keyframes open-bay {
  from { transform: translateY(0); }
  to { transform: translateY(-94%); }
}

@keyframes arrive {
  from { transform: translateX(-22%); }
  to { transform: translateX(0); }
}

@keyframes roll {
  from { transform: rotate(0); }
  to { transform: rotate(307deg); }
}

@media (max-width: 860px) {
  .hero {
    align-content: start;
    padding-block: clamp(2rem, 6vw, 3.5rem);
  }

  .message {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-link { align-self: center; }

  h1 {
    font-size: clamp(2.95rem, 9.9vw, 5.5rem);
    text-wrap: initial;
  }

  .scene { aspect-ratio: 2.05; }
  .truck { left: 8%; width: 85%; }
}

@media (max-width: 520px) {
  .scene { aspect-ratio: 1.4; }
  .truck { left: 4%; width: 93%; }
  .workshop { inset-inline: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .truck, .wheel, .shutter { animation: none; }

  .shutter { transform: translateY(-94%); }
  .wheel { transform: rotate(307deg); }
}
