/* ═══════════════════════════════════════════════════════════════════════
   /solutions/logistics — a scroll-driven shipment journey. NOT the stacked-act
   template: full-bleed route hero + sticky scroll-scrubbed journey (data
   surfaces per waypoint) + purple band + closer. Accent PURPLE, hairline, no fills.
   ═══════════════════════════════════════════════════════════════════════ */
@import url("../../_ds/fonts.css");
@import url("../../_ds/theme.css");
@import url("../../_shared/chrome.css");
@import url("../../_shared/components.css");
@import url("../../_shared/audience-switcher.css");

main { position: relative; z-index: 1; overflow-x: clip; }
.blur-t { opacity: 0; filter: blur(12px); transition: opacity 760ms cubic-bezier(0.22,1,0.36,1), filter 760ms cubic-bezier(0.22,1,0.36,1); transform: translateZ(0); backface-visibility: hidden; will-change: filter, opacity; }
.blur-t.is-in { opacity: 1; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .blur-t { opacity: 1; filter: none; transition: none; } }

/* ── Act 1 — Hero (full-bleed route, not a split panel) ───────────────── */
.lg-hero { max-width: 1500px; margin-inline: auto; padding: clamp(112px, 13vh, 150px) clamp(20px, 5vw, 72px) clamp(56px, 8vh, 96px); }
.lg-hero-text { max-width: 620px; }
.lg-hero-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 4.8vw, 72px); line-height: 0.98; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; max-width: 14ch; }
.lg-hero-h1 em { font-style: normal; color: var(--text-primary); }
.lg-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 22px 0 0; max-width: 52ch; }
.lg-hero-cta { margin-top: clamp(26px, 4vh, 40px); }
/* control-tower fleet board (distinct from the act-2 journey) */
.lg-fleet { margin-top: clamp(40px, 6vh, 68px); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
.lg-fleet-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); }
.lg-fleet-dot { width: 7px; height: 7px; border-radius: 50%; background: #7C4FE8; animation: lg-pulse 1.8s cubic-bezier(0.22,1,0.36,1) infinite; }
@keyframes lg-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #7C4FE8 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lg-fleet-title { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); flex: 1; }
.lg-fleet-count { font-family: var(--font-code); font-size: 10.5px; color: var(--text-quaternary); }
.lg-fleet-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.lg-flrow { display: grid; grid-template-columns: 86px 1fr auto 62px 96px; gap: 16px; align-items: center; padding: 13px 12px; border-radius: 10px; }
.lg-fl-id { font-family: var(--font-code); font-size: 12px; color: var(--text-primary); }
.lg-fl-lane { font-family: var(--font-base); font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-fl-status { font-family: var(--font-code); font-size: 10.5px; letter-spacing: 0.03em; color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-fl-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-quaternary); flex: none; }
.lg-fl-status--intransit::before { background: #7C4FE8; }
.lg-fl-status--delivered { color: #7C4FE8; }
.lg-fl-status--delivered::before { background: #7C4FE8; }
.lg-fl-status--delayed { color: #F0524B; } .lg-fl-status--delayed::before { background: #F0524B; }
.lg-fl-eta { font-family: var(--font-code); font-size: 11.5px; color: var(--text-quaternary); text-align: right; }
.lg-fl-bar { height: 5px; border-radius: 999px; background: var(--border-subtle); overflow: hidden; }
.lg-fl-fill { display: block; height: 100%; background: #7C4FE8; border-radius: 999px; transition: width 700ms cubic-bezier(0.22,1,0.36,1); }
.lg-fleet-foot { font-family: var(--font-code); font-size: 11px; color: var(--text-quaternary); margin: 0; padding: 12px 18px; border-top: 1px solid var(--border-subtle); }
@media (prefers-reduced-motion: reduce) { .lg-fleet-dot { animation: none; } }

/* ── Act 2 — The journey (sticky, scroll-scrubbed) ────────────────────── */
.lg-journey { position: relative; height: 320vh; }
.lg-journey-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 5vh, 56px); max-width: 1200px; margin-inline: auto; padding: clamp(56px, 9vh, 110px) clamp(20px, 5vw, 72px); }
.lg-journey-head { max-width: 640px; }
.lg-journey-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.0; letter-spacing: -0.026em; color: var(--text-primary); margin: 0; }
.lg-journey-h2 em, .lg-cover-h2 em, .lg-end-h2 em { font-style: normal; color: var(--text-primary); }
.lg-journey-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 16px 0 0; max-width: 48ch; }
.lg-track { position: relative; height: 46px; }
.lg-track::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--border-subtle); }
.lg-track-fill { position: absolute; top: 22px; left: 0; width: 0; height: 2px; background: #7C4FE8; box-shadow: 0 0 8px color-mix(in srgb, #7C4FE8 60%, transparent); transition: width 220ms linear; }
.lg-pin { position: absolute; top: 0; transform: translateX(-50%); background: none; border: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lg-pin:nth-child(2) { left: 4%; } .lg-pin:nth-child(3) { left: 23%; } .lg-pin:nth-child(4) { left: 42%; } .lg-pin:nth-child(5) { left: 61%; } .lg-pin:nth-child(6) { left: 80%; } .lg-pin:nth-child(7) { left: 96%; }
.lg-pin-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--background); border: 2px solid var(--border); margin-top: 16px; transition: border-color 240ms ease, background 240ms ease, transform 240ms ease; }
.lg-pin.is-done .lg-pin-dot { border-color: #7C4FE8; }
.lg-pin.is-active .lg-pin-dot { background: #7C4FE8; border-color: #7C4FE8; transform: scale(1.35); }
.lg-pin-label { font-family: var(--font-code); font-size: 10.5px; letter-spacing: 0.04em; color: var(--text-quaternary); transition: color 240ms ease; white-space: nowrap; }
.lg-pin.is-active .lg-pin-label { color: var(--text-primary); }
.lg-stops { position: relative; margin-top: clamp(44px, 6vh, 72px); min-height: clamp(280px, 38vh, 360px); }
.lg-stop { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 480ms cubic-bezier(0.22,1,0.36,1), transform 480ms cubic-bezier(0.22,1,0.36,1); pointer-events: none; }
.lg-stop[data-active="true"] { opacity: 1; transform: none; pointer-events: auto; }
.lg-stop-head { display: flex; align-items: center; gap: 12px; }
.lg-stop-h { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h4); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.lg-stop-tag { margin-left: auto; font-family: var(--font-code); font-size: 11px; color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 6px; }
.lg-fav { width: 15px; height: 15px; border-radius: 4px; }
.lg-stop-grid { margin-top: clamp(24px, 3.4vh, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; }
.lg-stop-mock { border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.lg-mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); }
.lg-mock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.lg-mock-url { font-family: var(--font-code); font-size: 11px; color: var(--text-tertiary); }
.lg-mock-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 13px; }
.lg-mock-title { height: 15px; width: 58%; border-radius: 4px; background: var(--border); margin-bottom: 8px; }
.lg-mock-l { height: 8px; border-radius: 3px; background: var(--border-subtle); }
.lg-mock-l--sh { width: 62%; }
.lg-stop-rec { border: 1px solid var(--border-subtle); border-radius: 14px; margin: 0; padding: 32px 34px; overflow-x: auto; }
.lg-stop-rec code { font-family: var(--font-code); font-size: 12.5px; line-height: 1.8; white-space: pre; }
.lgx-p { color: var(--text-quaternary); } .lgx-k { color: var(--text-secondary); } .lgx-s { color: var(--text-tertiary); } .lgx-n, .lgx-b { color: #7C4FE8; }


/* ── Act 3 — Coverage band (SOLID purple, bottom-right corner bloom) ───── */
.lg-cover { position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 72px); }
.lg-cover-fill { position: absolute; inset: 0; z-index: -1; background: #7C4FE8; clip-path: circle(0% at 100% 100%); transition: clip-path 900ms cubic-bezier(0.22,1,0.36,1); }
.lg-cover.is-in .lg-cover-fill { clip-path: circle(150% at 100% 100%); }
.lg-cover-inner { position: relative; z-index: 1; max-width: 1200px; margin-inline: auto; }
.lg-cover-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.0; letter-spacing: -0.026em; color: #FFFFFF; margin: 0; }
.lg-cover-list { list-style: none; margin: clamp(30px, 4vh, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.lg-cover-k { font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 23px); color: #FFFFFF; }
.lg-cover-v { font-family: var(--font-base); font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.82); max-width: 38ch; }

/* ── Act 4 — Closer (inline cross-links, not a card grid) ─────────────── */
.lg-end { padding: clamp(96px, 16vh, 200px) clamp(20px, 5vw, 72px); text-align: center; }
.lg-end-frame { max-width: 820px; margin-inline: auto; }
.lg-end-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero); line-height: 0.98; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; }
.lg-end-cta { margin-top: clamp(28px, 4vh, 44px); justify-content: center; }
.lg-end-links { font-family: var(--font-base); font-size: 14px; color: var(--text-tertiary); margin: 22px 0 0; }
.lg-end-links a { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--border); transition: color 180ms ease; }
.lg-end-links a:hover { color: var(--text-primary); }

@media (max-width: 600px) {
  /* Shipment rows reflow to two lines so nothing (esp. the progress bar)
     gets clipped: id + eta on top, status + bar below. Lane is dropped as
     the secondary field. */
  .lg-flrow {
    grid-template-columns: 1fr 108px;
    grid-template-areas:
      "id  eta"
      "sta bar";
    gap: 7px 12px;
    padding: 12px;
  }
  .lg-fl-id { grid-area: id; }
  .lg-fl-eta { grid-area: eta; align-self: center; }
  .lg-fl-status { grid-area: sta; }
  .lg-fl-bar { grid-area: bar; width: 100%; align-self: center; }
  .lg-fl-lane { display: none; }
  /* Journey stop: stack the site mock above its JSON record (was 1fr 1fr,
     which clipped the payload). */
  .lg-stop-grid { grid-template-columns: 1fr; gap: 14px; }
  .lg-stop-rec { padding: 20px 22px; }
  /* Route rail: tighten labels so the 6 stops don't collide, and pull the
     edge labels in from the viewport edge. */
  .lg-pin-label { font-size: 8.5px; letter-spacing: 0; }
  .lg-pin:nth-child(2) { left: 7%; } .lg-pin:nth-child(6) { left: 74%; } .lg-pin:nth-child(7) { left: 93%; }
}
@media (max-width: 960px) {
  .lg-cover-list { grid-template-columns: 1fr; }
  .lg-journey { height: auto; }
  .lg-journey-sticky { position: static; min-height: 0; }
  .lg-stops { min-height: 0; }
  .lg-stop { position: relative; opacity: 1; transform: none; margin-top: 20px; }
}
@media (min-width: 1600px) {
  .lg-hero, .lg-journey-sticky { max-width: 1640px; }
}

/* hero top row: text left, a carrier-logo marquee top-right */
.lg-hero-top { display: grid; grid-template-columns: minmax(0, 600px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.lg-marquee { padding-top: 10px; min-width: 0; }
.lg-marquee-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-quaternary); margin: 0 0 18px; }
.lg-marquee-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.lg-marquee-track { display: inline-flex; align-items: center; gap: 42px; white-space: nowrap; animation: lg-marq 28s linear infinite; will-change: transform; }
@keyframes lg-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lg-marquee:hover .lg-marquee-track { animation-play-state: paused; }
.lg-mq-logo { display: inline-flex; align-items: center; gap: 10px; }
.lg-mq-logo img { width: 22px; height: 22px; border-radius: 5px; }
.lg-mq-logo span { font-family: var(--font-base); font-size: 14.5px; color: var(--text-tertiary); }
@media (prefers-reduced-motion: reduce) { .lg-marquee-track { animation: none; } }
@media (max-width: 960px) { .lg-hero-top { grid-template-columns: 1fr; } .lg-marquee { padding-top: 4px; } }
