/* ============================================================
   LOADED LOGISTICS - HOME + SECTION MODULES
   ============================================================ */

/* ---------- HERO ---------- */
.hero-track { position: relative; height: 420vh; }
@media (max-width: 860px) { .hero-track { height: 320vh; } }

.hero {
  position: sticky;
  top: 0;
  height: 100vh;   /* fallback for browsers without viewport units v2 */
  height: 100svh;  /* stable while a mobile URL bar collapses, so a
                      sticky hero does not resize mid scroll */
  overflow: hidden;
  background: var(--ink-000);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__ui {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
}
/* Legibility scrim. Sits above the canvas, below the copy. */
.hero__ui::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(102deg,
    rgba(4, 6, 9, 0.88) 0%,
    rgba(4, 6, 9, 0.58) 36%,
    rgba(4, 6, 9, 0.12) 62%,
    transparent 78%);
}
@media (max-width: 760px) {
  .hero__ui::before { background: linear-gradient(to top, rgba(4,6,9,.92) 22%, rgba(4,6,9,.6) 58%, rgba(4,6,9,.2)); }
}

.hero__copy {
  align-self: center;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* No max-width here. The line break is authored in the markup, and a
   character cap fights the display size into four and five line stacks. */
.hero h1 { margin: 0; }
.hero__brand {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.hero__line {
  display: block;
  font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  color: #fbfdff;
  text-shadow: 0 6px 44px rgba(3, 5, 8, 0.7);
}
.hero .lede {
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 46ch;
  color: var(--fog-300);
  text-shadow: 0 2px 20px rgba(3, 5, 8, 0.8);
}
.hero .row { margin-top: clamp(26px, 3.2vw, 40px); }

/* Stage readout: live narrative state, not decoration */
.hero__state {
  border-top: 1px solid var(--line-2);
  background: linear-gradient(to top, rgba(6, 8, 10, 0.82), transparent);
  padding-bottom: clamp(18px, 3vw, 34px);
}
.hero__state-in {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero__meter {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 2px;
}
.hero__meter i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot));
  transform-origin: left center;
  transform: scaleX(0);
}
.hero__stagename {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 9ch;
}
.hero__legend {
  display: flex; gap: 20px;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-100);
}
@media (max-width: 720px) { .hero__legend { display: none; } }

/* Stage narrative panels swap as the haul progresses */
.hero__state-copy {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.hero__panels { position: relative; min-height: 5.2em; margin-top: 14px; }
@media (max-width: 620px) { .hero__panels { min-height: 7.2em; } }
.hero__panel {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  max-width: 44ch;
  color: var(--fog-200);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.hero__panel[data-active="true"] { opacity: 1; transform: none; }

/* ---------- CAPABILITIES BENTO ---------- */
.caps { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: clamp(38px, 5vw, 60px); }
.caps__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }

.cap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 260px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.cap:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.cap--lg { min-height: 520px; }

/* Each cell gets a distinct surface treatment */
.cap--fleet {
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(22, 199, 222, 0.16), transparent 62%),
    linear-gradient(200deg, var(--ink-300), var(--ink-050) 78%);
}
.cap--fleet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(
    100deg, transparent 0 26px, rgba(255, 255, 255, 0.035) 26px 27px);
  mask-image: linear-gradient(to top, #000 8%, transparent 72%);
}
.cap--broker {
  background: linear-gradient(150deg, var(--ink-200), var(--ink-050) 82%);
}
.cap--broker::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(rgba(22, 199, 222, 0.36) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 90% at 88% 6%, #000, transparent 66%);
}
.cap--wh {
  background: linear-gradient(150deg, var(--ink-300), var(--ink-100) 84%);
}
.cap--wh::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(115deg, #000 4%, transparent 62%);
}

.cap__k {
  font-family: var(--f-mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.cap h3 { font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.cap p { color: var(--fog-200); font-size: 0.9375rem; max-width: 42ch; line-height: 1.6; }
.cap__go {
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--paper);
}
.cap__go::after {
  content: ""; width: 18px; height: 1px; background: var(--accent);
  transition: width var(--t-fast) var(--ease);
}
.cap:hover .cap__go::after { width: 30px; }
.cap__link { position: absolute; inset: 0; z-index: 3; }

@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; }
  .cap--lg { min-height: 380px; }
}

/* ---------- FOLLOW THE LOAD ---------- */
.jrn { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }
.jrn__map {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(22, 199, 222, 0.07), transparent 62%),
    var(--ink-050);
  padding: 10px;
}
.jrn__map svg { width: 100%; height: auto; }

.jrn__panel { position: sticky; top: calc(var(--nav-h) + 24px); }
.jrn__bar { height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.jrn__bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot));
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.jrn__steps { margin: 22px 0 26px; display: grid; gap: 1px; }

.jstep {
  width: 100%;
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  background: none; border: 0; border-left: 2px solid transparent;
  border-radius: 0 var(--r) var(--r) 0;
  text-align: left; cursor: pointer;
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--fog-100);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.jstep:hover { color: var(--fog-300); background: rgba(255, 255, 255, 0.03); }
.jstep__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-400); flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.jstep[data-on="true"] {
  color: var(--paper);
  background: rgba(22, 199, 222, 0.07);
  border-left-color: var(--accent);
}
.jstep[data-on="true"] .jstep__dot {
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(22, 199, 222, 0.65);
}

/* Tractor marker. Clicking swings the trailer doors. */
.jtruck { cursor: pointer; }
.jtruck:focus-visible { outline: none; }
.jdoor {
  transform-box: fill-box;
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.25s var(--ease);
}
.jdoor--t { transform-origin: right bottom; }
.jdoor--b { transform-origin: right top; }
.jtruck[data-doors="open"] .jdoor { opacity: 1; }
.jtruck[data-doors="open"] .jdoor--t { transform: rotate(-118deg); }
.jtruck[data-doors="open"] .jdoor--b { transform: rotate(118deg); }
.jtruck:hover rect:first-of-type,
.jtruck:focus-visible rect:first-of-type { stroke: #fff; }

.jrn__detail {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.jrn__detail h3 { text-transform: uppercase; letter-spacing: 0.008em; }
.jrn__detail p { color: var(--fog-200); margin-top: 12px; font-size: 0.9375rem; line-height: 1.68; }
.jrn__meta {
  margin-top: 18px;
  font-family: var(--f-mono); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}

@media (max-width: 940px) {
  .jrn { grid-template-columns: 1fr; }
  .jrn__panel { position: static; }
}

/* ---------- OPERATING STANDARD (scroll rail) ---------- */
.rail {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink-400); border-radius: 2px; }
.rail__card {
  scroll-snap-align: start;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(168deg, var(--ink-200), var(--ink-050));
  display: grid; gap: 14px; align-content: start;
  transition: border-color var(--t-fast) var(--ease);
}
.rail__card:hover { border-color: var(--line-2); }
.rail__card h3 { text-transform: uppercase; font-size: 1.0625rem; letter-spacing: 0.01em; }
.rail__card p { color: var(--fog-200); font-size: 0.9375rem; line-height: 1.62; }
.rail__ord {
  font-family: var(--f-mono); font-size: 1.75rem; font-weight: 500;
  color: var(--ink-400); line-height: 1;
}

/* ---------- BUILD YOUR LOAD ---------- */
.bld { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }

.bld__steps { display: grid; gap: 2px; }
.bstep {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.bstep:last-of-type { border-bottom: 0; }
.bstep__n {
  width: 26px; height: 26px; margin-top: 4px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-family: var(--f-mono); font-size: 0.6875rem; color: var(--fog-100);
  transition: all var(--t-fast) var(--ease);
}
.bstep[data-done="true"] .bstep__n {
  border-color: var(--accent); color: var(--ink-000); background: var(--accent); font-weight: 700;
}

.bld__contact {
  margin-top: 26px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 560px) { .bld__contact { grid-template-columns: 1fr; } }

.bld__aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.bld__map {
  border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(80% 60% at 50% 0%, rgba(22, 199, 222, 0.07), transparent 62%), var(--ink-050);
  padding: 8px;
}
.bld__map svg { width: 100%; height: auto; }

.bld__readout {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.bld__cell { background: var(--ink-050); padding: 16px 18px; }
.bld__cell span {
  display: block;
  font-family: var(--f-mono); font-size: 0.625rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fog-100);
}
.bld__cell b {
  display: block; margin-top: 7px;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.008em;
  color: var(--paper);
}
.bld__cell--wide { grid-column: 1 / -1; }
.bld__cell--wide b { font-size: 0.9375rem; }

.bld__ready {
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: linear-gradient(150deg, rgba(22, 199, 222, 0.13), rgba(22, 199, 222, 0.03));
  padding: 22px;
  display: grid; gap: 16px;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
[data-ready="true"] .bld__ready { opacity: 1; transform: none; }
.bld__ready strong {
  font-size: 1.0625rem; font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.bld__ready .btn { width: 100%; }

.bld__status { font-size: 0.875rem; min-height: 1.4em; color: var(--fog-200); }
.bld__status[data-tone="ok"] { color: #8fdca8; }
.bld__status[data-tone="err"] { color: #ff9b7a; }

@media (max-width: 940px) {
  .bld { grid-template-columns: 1fr; }
  .bld__aside { position: static; }
}

/* ---------- COVERAGE ATLAS ---------- */
.atlas {
  position: relative;
  background:
    radial-gradient(70% 60% at 50% 12%, rgba(22, 199, 222, 0.08), transparent 66%),
    var(--ink-050);
  border-block: 1px solid var(--line);
}
.atlas__grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(24px, 3vw, 44px); align-items: center; margin-top: clamp(30px, 4vw, 46px); }
.atlas__svg { width: 100%; height: auto; }

.st { cursor: pointer; }
.st__dot {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  transition: fill 0.22s ease, stroke 0.22s ease, r 0.22s ease;
}
.st__ab {
  font-family: var(--f-mono); font-size: 7px; font-weight: 500;
  letter-spacing: 0.06em; fill: rgba(255, 255, 255, 0.0);
  pointer-events: none; transition: fill 0.22s ease;
}
.st__halo { opacity: 0; transition: opacity 0.28s ease; }
.st[data-tier="lane"] .st__dot { fill: rgba(22, 199, 222, 0.34); stroke: rgba(22, 199, 222, 0.55); }
.st[data-tier="base"] .st__dot { fill: var(--accent); stroke: var(--accent-hot); stroke-width: 1.5; }
/* The dot grows on focus so the abbreviation has a legible field to
   sit on. Dark type on a small dot over a dark map is unreadable. */
.st:hover .st__dot,
.st:focus-visible .st__dot,
.st[data-on="true"] .st__dot { r: 8px; }
.st:hover .st__dot { fill: var(--accent-hot); stroke: var(--accent-hot); }
.st:hover .st__ab, .st:focus-visible .st__ab { fill: #04060b; }
.st[data-on="true"] .st__dot { fill: var(--accent-hot); stroke: #fff; stroke-width: 1.4; }
.st[data-on="true"] .st__ab { fill: #04060b; }
.st[data-on="true"] .st__halo { opacity: 1; }
.st:focus-visible { outline: none; }
.st:focus-visible .st__halo { opacity: 1; }

.lane { transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease; }
.lane[data-lit="true"] { stroke: var(--accent-hot); stroke-width: 2.1; }

.atlas__card {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--ink-100);
  padding: 26px;
}
.atlas__ab {
  font-family: var(--f-mono); font-size: 2.75rem; font-weight: 500;
  line-height: 1; color: var(--accent); letter-spacing: 0.008em;
}
.atlas__card h3 { margin-top: 10px; text-transform: uppercase; font-size: 1.25rem; }
.atlas__tier {
  margin-top: 14px;
  display: inline-block; padding: 5px 11px;
  border: 1px solid var(--accent-line); border-radius: var(--r);
  font-family: var(--f-mono); font-size: 0.625rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.atlas__note { margin-top: 16px; font-size: 0.9375rem; color: var(--fog-200); line-height: 1.62; }
.atlas__chip {
  margin-top: 16px; display: block; padding: 9px 12px;
  border: 1px dashed rgba(255, 155, 122, 0.5); border-radius: var(--r);
  font-family: var(--f-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #ff9b7a;
}
.atlas__legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px;
  font-family: var(--f-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog-100);
}
.atlas__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

@media (max-width: 940px) {
  .atlas__grid { grid-template-columns: 1fr; }
}

/* ---------- SPLIT (carrier network) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip .split__media { order: -1; }
.split__media { min-height: 420px; }
.split__body { display: grid; gap: 20px; justify-items: start; }
.split ul { display: grid; gap: 14px; margin-top: 4px; }
.split li {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px;
  color: var(--fog-200); font-size: 0.9375rem; line-height: 1.55;
}
.split li b { color: var(--paper); font-weight: 700; }
.split li::before {
  content: ""; width: 8px; height: 8px; margin-top: 7px;
  border: 1px solid var(--accent); border-radius: 1px;
  transform: rotate(45deg);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media { min-height: 280px; }
}

/* ---------- CLOSING CTA ---------- */
.close-cta {
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(22, 199, 222, 0.14), transparent 68%),
    var(--ink-050);
  border-top: 1px solid var(--line);
}
.close-cta .display { max-width: 18ch; margin-inline: auto; }
.close-cta .lede { margin: 22px auto 0; text-align: center; }
.close-cta .row { justify-content: center; margin-top: 34px; }

/* ---------- INTERIOR PAGE HEADER ---------- */
.phead {
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 108px));
  padding-bottom: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(22, 199, 222, 0.11), transparent 62%),
    var(--ink-050);
  border-bottom: 1px solid var(--line);
}
.phead .lede { margin-top: 22px; }
.phead .row { margin-top: 30px; }

/* ---------- SIMPLE CONTENT GRID ---------- */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(32px, 4vw, 50px); }
.panel {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(165deg, var(--ink-200), var(--ink-050));
  padding: clamp(24px, 3vw, 34px);
  display: grid; gap: 13px; align-content: start;
}
.panel h3 { text-transform: uppercase; font-size: 1.0625rem; }
.panel p { color: var(--fog-200); font-size: 0.9375rem; line-height: 1.62; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- NOTICE ---------- */
.notice {
  border: 1px dashed rgba(255, 155, 122, 0.45);
  border-radius: var(--r);
  background: rgba(255, 155, 122, 0.05);
  padding: 16px 20px;
  font-family: var(--f-mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffb49b; line-height: 1.8;
}
