:root {
  --black: #050505;
  --white: #ffffff;
  --paper: #f8f8f4;
  --soft: #eeeeea;
  --line: #d6d6cf;
  --muted: #696963;
  --page: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--black);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: var(--black);
  color: var(--white);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: var(--page);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand,
nav a {
  text-decoration: none;
}

.brand {
  display: grid;
  line-height: 0.95;
}

.brand span,
h1,
h2,
h3 {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span {
  font-size: 1.25rem;
}

.brand small,
.kicker,
nav a,
dt,
.work-list span,
figcaption {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand small,
.kicker,
dt,
.work-list span {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 1.1rem;
}

nav a {
  padding: 0.35rem 0;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
  outline: 0;
}

.hero {
  width: var(--page);
  min-height: clamp(640px, 72svh, 780px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-copy {
  max-width: 520px;
}

.kicker {
  margin: 0 0 1.25rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 8.2vw, 7.6rem);
  line-height: 0.86;
}

.lede {
  max-width: 36rem;
  margin-bottom: 0;
  color: #343430;
  font-size: clamp(1.08rem, 1.4vw, 1.26rem);
  line-height: 1.7;
}

.scale-scene {
  margin: 0;
}

.scale-scene svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--black);
}

.scene-grid {
  color: var(--black);
}

.display path,
.platform path,
.truck path,
.pulse path,
.pulse circle {
  fill: none;
  stroke: var(--black);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 8;
}

.display path:first-child,
.trailer,
.cab,
.deck {
  fill: var(--white);
}

.under {
  fill: var(--soft);
}

.deck-lines {
  stroke-width: 4;
}

.truck {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: truck-settle 3s ease-in-out infinite;
}

.platform {
  transform-box: fill-box;
  transform-origin: center;
  animation: platform-settle 3s ease-in-out infinite;
}

.display {
  animation: display-lift 3s ease-in-out infinite;
}

.readout {
  stroke-dasharray: 18 16;
  animation: readout 3s steps(2, end) infinite;
}

.wheel {
  fill: var(--white);
  stroke: var(--black);
  stroke-width: 8;
  transform-box: fill-box;
  transform-origin: center;
  animation: wheel-roll 3s linear infinite;
}

.pulse path {
  stroke-width: 5;
  stroke-dasharray: 12 16;
  animation: pulse 3s linear infinite;
}

.pulse circle {
  fill: var(--black);
  stroke: none;
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

figcaption strong {
  font-variant-numeric: tabular-nums;
}

.statement {
  background: var(--black);
  color: var(--white);
}

.statement p,
.work,
.ports,
.record,
.site-footer {
  width: var(--page);
  margin: 0 auto;
}

.statement p {
  max-width: 960px;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  font-size: clamp(3rem, 6.3vw, 6.5rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work,
.record {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
}

.work-list {
  border-top: 1px solid var(--black);
}

.work-list article {
  display: grid;
  grid-template-columns: 4rem minmax(10rem, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--black);
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.95;
}

.work-list p {
  margin-bottom: 0;
  color: #343430;
  line-height: 1.65;
}

.ports {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.ports h2 {
  max-width: 11ch;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.84;
}

dl {
  margin: 0;
  border-top: 1px solid var(--black);
}

dl div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--black);
}

dd {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.contact-heading h2 {
  max-width: 8ch;
}

.contact-heading p:not(.kicker) {
  max-width: 27rem;
  margin: 1.5rem 0 0;
  color: #343430;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--black);
  background: var(--white);
}

.contact-card {
  min-height: 8.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem;
  color: inherit;
  font-style: normal;
  text-align: left;
  text-decoration: none;
}

.contact-card + .contact-card {
  border-left: 1px solid var(--black);
}

.contact-card:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 7.5rem;
  border-top: 1px solid var(--black);
  border-left: 0;
}

.contact-card span,
.contact-form span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.08rem, 1.4vw, 1.34rem);
  line-height: 1.18;
}

.contact-card:hover,
.contact-card:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: 0;
}

.contact-card:hover span,
.contact-card:focus-visible span {
  color: #cfcfc8;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--black);
  background: var(--black);
}

.contact-form label {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--paper);
}

.contact-form label:nth-child(3) {
  grid-column: 1 / -1;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--black);
  line-height: 1.45;
  outline: 0;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  box-shadow: inset 0 -2px 0 var(--black);
}

.contact-form button {
  grid-column: 1 / -1;
  min-height: 4rem;
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--white);
  color: var(--black);
  outline: 1px solid var(--black);
  outline-offset: -1px;
}

@keyframes truck-settle {
  0%,
  100% {
    transform: translateX(-40px) translateY(-4px);
  }

  42%,
  68% {
    transform: translateX(0) translateY(6px);
  }
}

@keyframes wheel-roll {
  0%,
  100% {
    transform: rotate(-42deg);
  }

  42%,
  68% {
    transform: rotate(0deg);
  }
}

@keyframes platform-settle {
  42%,
  68% {
    transform: translateY(5px);
  }
}

@keyframes display-lift {
  42%,
  68% {
    transform: translateY(-4px);
  }
}

@keyframes readout {
  0%,
  38% {
    stroke-dashoffset: 0;
  }

  42%,
  68% {
    stroke-dashoffset: 34;
  }
}

@keyframes pulse {
  to {
    stroke-dashoffset: -56;
  }
}

@media (max-width: 920px) {
  :root {
    --page: min(100vw - 32px, 720px);
  }

  .site-header {
    min-height: 76px;
  }

  nav {
    display: none;
  }

  .hero,
  .work,
  .record,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 5rem;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 8ch;
  }

  .work-list article {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .contact-heading h2 {
    max-width: 10ch;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-card + .contact-card {
    border-top: 1px solid var(--black);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100vw - 28px);
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 4.4rem);
  }

  .scale-scene svg {
    min-height: 260px;
    object-fit: cover;
  }

  figcaption {
    display: grid;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label:nth-child(3) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
