@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0d2426;
  --teal: #0d4a4f;
  --paper: #f5f1e6;
  --white: #ffffff;
  --amber: #f2c94c;
  --mint: #9dd8cd;
  --brick: #983528;
  --brick-light: #d46850;
  --line: #778a85;
  --muted: #526865;
  --rail: 10.25rem;
  --max: 92rem;
  --gutter: clamp(1.15rem, 4.3vw, 4.8rem);
  --section: clamp(4.8rem, 9vw, 9rem);
  --display: "Barlow Semi Condensed", Arial, sans-serif;
  --body: "Atkinson Hyperlegible Next", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: calc(var(--rail) + 0.8rem);
  z-index: 500;
  padding: 0.8rem 1rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  display: grid;
  width: var(--rail);
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid var(--paper);
}

.rail-brand {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-bottom: 1px solid #496063;
  text-decoration: none;
}

.cw-mark {
  position: relative;
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 0 100%);
}

.cw-mark::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 50%;
  width: 1px;
  background: var(--ink);
  transform: rotate(16deg);
}

.rail-brand__name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.rail-nav {
  display: grid;
  align-content: center;
}

.rail-nav a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.6rem;
  min-height: 4.1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid #496063;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.rail-nav a:last-child {
  border-bottom: 1px solid #496063;
}

.rail-nav a::before {
  content: attr(data-index);
  color: var(--mint);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 750;
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  background: var(--amber);
  color: var(--ink);
}

.rail-nav a:hover::before,
.rail-nav a[aria-current="page"]::before {
  color: var(--brick);
}

.rail-foot {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-top: 1px solid #496063;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-foot a {
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.rail-toggle {
  display: none;
  min-height: 2.8rem;
  border: 2px solid var(--paper);
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--paper);
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-drawer {
  position: fixed;
  inset: 5rem 0 0;
  z-index: 110;
  overflow-y: auto;
  background: var(--amber);
  color: var(--ink);
}

.mobile-drawer__inner {
  display: grid;
  min-height: 100%;
  grid-template-rows: 1fr auto;
  padding: clamp(2rem, 7vw, 5rem) var(--gutter);
}

.mobile-drawer nav {
  display: grid;
  align-content: start;
  border-top: 2px solid var(--ink);
}

.mobile-drawer nav a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  min-height: 5.3rem;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-drawer nav a::before {
  content: attr(data-index);
  color: var(--brick);
  font-family: var(--body);
  font-size: 0.8rem;
}

.mobile-drawer nav a::after {
  content: "↗";
  font-size: 1.1rem;
}

.mobile-drawer__contact {
  display: grid;
  gap: 0.65rem;
  padding-top: 2rem;
}

.mobile-drawer__contact a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.site-frame {
  min-width: 0;
  margin-left: var(--rail);
}

.topline {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0.55rem var(--gutter);
  background: var(--teal);
  color: var(--white);
  border-bottom: 1px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.topline__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.topline a {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 9vw, 9rem);
}

h2 {
  font-size: clamp(2.8rem, 6vw, 6.3rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 3rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--brick);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 0.32rem;
  background: currentColor;
}

.eyebrow--mint {
  color: var(--mint);
}

.eyebrow--paper {
  color: var(--paper);
}

.lead {
  max-width: 44rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.52;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 2px solid var(--ink);
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% 100%, 0.8rem 100%, 0 calc(100% - 0.8rem));
}

.button::after {
  content: "↗";
}

.button:hover {
  background: var(--amber);
  color: var(--ink);
}

.button:focus-visible {
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--brick);
}

.button--paper {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}

.button--paper:hover {
  background: var(--paper);
}

.button--amber {
  background: var(--amber);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.text-link {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dispatch-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  min-height: calc(100vh - 3.2rem);
  padding: clamp(3.5rem, 7vw, 7rem) var(--gutter);
  overflow: hidden;
  background: var(--paper);
}

.dispatch-hero::before {
  content: "HOU / 77042";
  position: absolute;
  top: 1.2rem;
  right: var(--gutter);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 7;
  align-self: start;
  padding: 2rem 0 3rem;
}

.hero-copy h1 {
  max-width: 7.8ch;
  margin-bottom: 1.35rem;
}

.hero-copy h1 span {
  display: block;
  color: var(--brick);
}

.hero-note {
  grid-column: 1 / span 4;
  align-self: end;
  padding: 1.6rem;
  background: var(--amber);
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.hero-note p {
  margin-bottom: 0;
}

.hero-photo {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 1 / span 2;
  align-self: center;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 1.1rem 1.1rem 0 var(--mint);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-caption {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stamp {
  position: absolute;
  right: calc(50% - 2rem);
  bottom: clamp(2rem, 6vw, 6rem);
  z-index: 3;
  display: grid;
  width: 8.2rem;
  height: 8.2rem;
  place-items: center;
  border: 0.45rem solid var(--paper);
  background: var(--brick);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(5deg);
}

.service-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 2px solid var(--ink);
  background: var(--white);
}

.service-index a {
  display: grid;
  min-height: 10rem;
  align-content: space-between;
  padding: 1.25rem 0.8rem;
  border-right: 2px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.65rem);
  font-weight: 800;
  line-height: 0.95;
  text-decoration: none;
  text-transform: uppercase;
}

.service-index a:last-child {
  border-right: 0;
}

.service-index a::before {
  content: attr(data-index);
  color: var(--brick);
  font-family: var(--body);
  font-size: 0.75rem;
}

.service-index a::after {
  content: "↗";
  justify-self: end;
  font-size: 1rem;
}

.service-index a:hover {
  background: var(--mint);
}

.brief-section {
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--paper);
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.brief-layout h2 {
  max-width: 7ch;
}

.brief-intro {
  max-width: 31rem;
}

.brief-rows {
  border-top: 1px solid #496063;
}

.brief-row {
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #496063;
}

.brief-row > span {
  color: var(--amber);
  font-weight: 800;
}

.brief-row h3,
.brief-row p {
  margin-bottom: 0;
}

.brief-row h3 {
  font-size: 1.6rem;
}

.place-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  min-height: 35rem;
  background: var(--mint);
}

.place-copy {
  display: grid;
  align-content: center;
  padding: var(--section) var(--gutter);
}

.place-copy h2 {
  max-width: 9ch;
  margin-bottom: 1.2rem;
}

.place-copy address {
  font-style: normal;
  font-weight: 750;
}

.place-block {
  display: grid;
  place-items: center;
  padding: 3rem;
  background: var(--amber);
  border-left: 2px solid var(--ink);
}

.place-block__mark {
  display: grid;
  width: min(22rem, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--brick);
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 20% 100%, 0 80%);
}

.page-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.45fr);
  gap: 3rem;
  align-items: end;
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
}

.page-lead h1,
.page-lead p {
  margin-bottom: 0;
}

.page-lead h1 {
  max-width: 8.3ch;
  font-size: clamp(4rem, 7.5vw, 8rem);
}

.freight-visual {
  padding: 0 var(--gutter) var(--section);
}

.freight-visual figure {
  border: 2px solid var(--ink);
  box-shadow: -1rem 1rem 0 var(--amber);
}

.freight-visual img,
.handoff-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.freight-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 2px solid var(--ink);
}

.freight-card {
  min-height: 32rem;
  padding: clamp(2rem, 6vw, 6rem);
  background: var(--amber);
}

.freight-card:last-child {
  border-left: 2px solid var(--ink);
  background: var(--mint);
}

.freight-card h2 {
  max-width: 7ch;
  margin-bottom: 1.4rem;
}

.dispatch-section {
  padding: var(--section) 0;
}

.dispatch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.45fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.dispatch-head h2,
.dispatch-head p {
  margin-bottom: 0;
}

.dispatch-list {
  border-top: 2px solid var(--ink);
}

.dispatch-item {
  display: grid;
  grid-template-columns: 4rem minmax(13rem, 0.55fr) minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  min-height: 7rem;
  border-bottom: 2px solid var(--ink);
}

.dispatch-item > span {
  color: var(--brick);
  font-weight: 800;
}

.dispatch-item h3,
.dispatch-item p {
  margin-bottom: 0;
}

.dispatch-item h3 {
  font-size: 1.7rem;
}

.dispatch-item i {
  font-style: normal;
  font-weight: 800;
}

.warehouse-split {
  display: grid;
  grid-template-columns: minmax(24rem, 0.86fr) minmax(0, 1.14fr);
  min-height: calc(100vh - 3.2rem);
  background: var(--ink);
  color: var(--paper);
}

.warehouse-portrait {
  position: relative;
  min-height: 42rem;
  border-right: 2px solid var(--paper);
}

.warehouse-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.warehouse-portrait .photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.warehouse-copy {
  display: grid;
  align-content: center;
  padding: var(--section) var(--gutter);
}

.warehouse-copy h1 {
  max-width: 7.3ch;
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 7.5vw, 8rem);
}

.warehouse-labels {
  padding: var(--section) 0;
  background: var(--white);
}

.label-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.work-label {
  min-height: 18rem;
  padding: 1.6rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.work-label:nth-child(2),
.work-label:nth-child(5) {
  background: var(--mint);
}

.work-label:nth-child(3),
.work-label:nth-child(4) {
  background: var(--amber);
}

.work-label span {
  display: block;
  margin-bottom: 4rem;
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 800;
}

.work-label h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

.work-order {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: var(--section) var(--gutter);
  background: var(--brick);
  color: var(--paper);
}

.work-order h2 {
  max-width: 7ch;
}

.work-order__copy {
  max-width: 48rem;
}

.handoff-lead {
  padding: var(--section) var(--gutter) 0;
  background: var(--amber);
}

.handoff-lead__title {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.45fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: -4rem;
}

.handoff-lead__title h1 {
  max-width: 8ch;
  margin-bottom: 0;
  color: var(--brick);
}

.handoff-lead__title p {
  margin-bottom: 5rem;
}

.handoff-figure {
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 1rem 1rem 0 var(--mint);
}

.handoff-sequence {
  padding: calc(var(--section) + 3rem) 0 var(--section);
  background: var(--paper);
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sequence-card {
  display: grid;
  min-height: 23rem;
  align-content: space-between;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--white);
}

.sequence-card:nth-child(2) {
  transform: translateY(2rem);
  background: var(--mint);
}

.sequence-card:nth-child(3) {
  transform: translateY(4rem);
  background: var(--amber);
}

.sequence-card:nth-child(4) {
  transform: translateY(6rem);
  background: var(--ink);
  color: var(--paper);
}

.sequence-card span {
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 800;
}

.sequence-card:nth-child(4) span {
  color: var(--amber);
}

.sequence-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.65rem, 2.2vw, 2.4rem);
}

.known-pending {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 2px solid var(--ink);
}

.known-box {
  padding: var(--section) var(--gutter);
  background: var(--mint);
}

.known-box:last-child {
  border-left: 2px solid var(--ink);
  background: var(--teal);
  color: var(--white);
}

.known-box h2 {
  max-width: 8ch;
  margin-bottom: 1.3rem;
}

.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(23rem, 0.9fr);
  min-height: 40rem;
  background: var(--paper);
}

.contact-title {
  display: grid;
  align-content: center;
  padding: var(--section) var(--gutter);
}

.contact-title h1 {
  max-width: 7.5ch;
  margin-bottom: 1.2rem;
}

.contact-directory {
  display: grid;
  align-content: center;
  padding: var(--section) var(--gutter);
  background: var(--amber);
  border-left: 2px solid var(--ink);
}

.directory-row {
  display: grid;
  gap: 0.45rem;
  padding: 1.4rem 0;
  border-top: 2px solid var(--ink);
}

.directory-row:last-child {
  border-bottom: 2px solid var(--ink);
}

.directory-row span {
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.directory-row a,
.directory-row address {
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.request-sheet {
  padding: var(--section) 0;
  background: var(--white);
}

.sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.45fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.sheet-head h2,
.sheet-head p {
  margin-bottom: 0;
}

.request-form {
  border: 2px solid var(--ink);
  background: var(--paper);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  padding: 0.65rem 0.75rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.form-side {
  display: grid;
  align-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--teal);
  color: var(--white);
  border-left: 2px solid var(--ink);
}

.form-side h3 {
  margin-bottom: 1rem;
}

.contact-rule {
  padding: 0.8rem;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
}

.form-disclosure {
  font-size: 0.875rem;
}

.form-status {
  min-height: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--amber);
  font-size: 0.875rem;
  font-weight: 800;
}

.site-footer {
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) 2rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.footer-word {
  margin: 0 0 3rem;
  color: var(--amber);
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.72;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.6fr) auto;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #496063;
}

.footer-grid h2 {
  max-width: 8ch;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.footer-contact,
.footer-nav {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.footer-nav {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid #496063;
  color: #c7d1cf;
  font-size: 0.78rem;
}

.footer-bottom p {
  max-width: 60rem;
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  :root {
    --rail: 9rem;
  }

  .rail-brand__name {
    font-size: 0.95rem;
  }

  .hero-copy {
    grid-column: 1 / span 8;
  }

  .hero-note {
    grid-column: 1 / span 5;
  }

  .hero-photo {
    grid-column: 7 / -1;
  }

  .sequence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sequence-card:nth-child(n) {
    transform: none;
  }

  .handoff-sequence {
    padding-bottom: var(--section);
  }

  .label-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .form-side {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }
}

@media (max-width: 1040px) {
  .skip-link {
    left: 0.8rem;
  }

  .side-rail {
    position: sticky;
    top: 0;
    right: 0;
    width: 100%;
    height: 5rem;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--paper);
  }

  .rail-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: max-content;
    padding: 0.45rem var(--gutter);
    border-bottom: 0;
  }

  .cw-mark {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.35rem;
  }

  .rail-brand__name {
    font-size: 1.05rem;
  }

  .rail-nav,
  .rail-foot {
    display: none;
  }

  .rail-toggle {
    display: inline-flex;
    align-items: center;
    margin-right: var(--gutter);
  }

  .site-frame {
    margin-left: 0;
  }

  .dispatch-hero {
    min-height: auto;
  }

  .warehouse-split {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .topline {
    align-items: flex-start;
  }

  .topline > span {
    display: none;
  }

  .topline__links {
    width: 100%;
    justify-content: space-between;
  }

  .dispatch-hero,
  .brief-layout,
  .place-section,
  .page-lead,
  .freight-pair,
  .dispatch-head,
  .warehouse-split,
  .work-order,
  .handoff-lead__title,
  .known-pending,
  .contact-top,
  .sheet-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-hero {
    gap: 2rem;
    padding-block: 4rem;
  }

  .hero-copy,
  .hero-note,
  .hero-photo {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 17vw, 7rem);
  }

  .hero-photo {
    order: 2;
    margin-right: 1rem;
  }

  .hero-note {
    order: 3;
  }

  .hero-stamp {
    display: none;
  }

  .service-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-index a {
    border-bottom: 2px solid var(--ink);
  }

  .service-index a:nth-child(even) {
    border-right: 0;
  }

  .service-index a:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .brief-layout h2 {
    max-width: 9ch;
  }

  .place-block {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .page-lead,
  .dispatch-head,
  .handoff-lead__title,
  .sheet-head {
    align-items: start;
  }

  .freight-card:last-child,
  .known-box:last-child,
  .contact-directory {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .warehouse-portrait {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--paper);
  }

  .warehouse-portrait img {
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .warehouse-copy {
    order: -1;
  }

  .handoff-lead__title {
    margin-bottom: 2rem;
  }

  .handoff-lead__title p {
    margin-bottom: 0;
  }

  .contact-title {
    padding-bottom: 2rem;
  }
}

@media (max-width: 660px) {
  :root {
    --section: 4.4rem;
  }

  .topline__links a[href^="mailto:"] {
    display: none;
  }

  .service-index,
  .label-grid,
  .sequence-grid,
  .form-fields {
    grid-template-columns: 1fr;
  }

  .service-index a:nth-child(n) {
    grid-column: auto;
    min-height: 7rem;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .service-index a:last-child {
    border-bottom: 0;
  }

  .brief-row,
  .dispatch-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
    padding: 1.2rem 0;
  }

  .brief-row p,
  .dispatch-item p,
  .dispatch-item i {
    grid-column: 2;
  }

  .freight-visual {
    padding-inline: 1rem;
  }

  .label-grid {
    border-left: 0;
  }

  .work-label {
    min-height: 14rem;
    border-left: 2px solid var(--ink);
  }

  .sequence-card {
    min-height: 17rem;
  }

  .field--wide {
    grid-column: auto;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-word {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hero-copy h1,
  .page-lead h1,
  .warehouse-copy h1,
  .handoff-lead__title h1,
  .contact-title h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .rail-brand__name {
    font-size: 0.88rem;
  }

  .rail-toggle {
    padding-inline: 0.7rem;
  }

  .mobile-drawer nav a {
    grid-template-columns: 2.5rem 1fr auto;
    font-size: 1.75rem;
  }

  .hero-photo,
  .handoff-figure {
    box-shadow: 0.55rem 0.55rem 0 var(--mint);
  }

  .button-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
