/* Hallmark · atmospheric split hero · cobalt on paper
 * pre-emit critique: P4 H5 E4 S4 R5 V4
 */
:root {
  color-scheme: light;
  --paper: #f8faff;
  --surface: #fff;
  --ink: #16243c;
  --muted: #526179;
  --blue: #254fc4;
  --blue-hover: #193aa1;
  --logo-tip: #0e91ae;
  --site-gutter: clamp(19px, 5vw, 76px);
  --line: #dbe4f2;
  --wash: #e8f0ff;
  --veil: #14274672;
  --shadow: #1e3b7830;
  --error: #a1333b;
  --map-top: #e9f2ff;
  --map-top-alt: #d8e9ff;
  --map-seam: #9db9e7;
  --map-edge: #80a9ea;
  --map-base: #436bb1;
  --map-shadow: #3769b83b;
  --map-clear: #528cf000;
  --map-route: #2058d6;
  --map-route-halo: #4790ff44;
  --map-trail: #e9f7ff;
  --map-label: #193669;
  --map-label-secondary: #445f83;
  --font: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--surface); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 16px/1.6 var(--font);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.landing-hero {
  width: min(100% - 2 * var(--site-gutter), 1440px);
  margin-inline: auto;
}
.site-brand {
  position: absolute;
  inset: clamp(20px, 4svh, 36px) auto auto 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: .035em;
  white-space: nowrap;
}
.site-brand svg { display: block; width: 38px; height: 38px; }
.site-logo-blue { stop-color: var(--blue); }
.site-logo-tip { stop-color: var(--logo-tip); }
.sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.sign-in:hover { background: var(--blue); color: var(--surface); }
.sign-in svg, .dialog-close svg { width: 19px; height: 19px; }
.landing-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(16px, 3vw, 52px);
  padding-block: 84px 54px;
}
.hero-copy { padding-block: 10px; min-width: 0; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 6.55vw, 104px);
  font-weight: 825;
  line-height: 1.07;
  letter-spacing: -.075em;
}
.hero-copy h1 > span { display: block; width: fit-content; }
.hero-copy h1 > span + span { color: var(--blue); margin-top: .06em; }
.hero-copy p {
  max-width: 26em;
  margin: clamp(18px, 2.4vw, 34px) 0 0;
  font-size: clamp(15px, 1.45vw, 20px);
  color: var(--muted);
  line-height: 1.85;
}
.hero-copy .hero-platform {
  color: var(--ink);
  font-weight: 650;
  line-height: 1.55;
}
.hero-platform + p { margin-top: 9px; }
.route-map { min-width: 0; margin: 0; }
.route-map canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.21;
}
.sign-in-dialog {
  width: min(410px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 70px var(--shadow);
}
.sign-in-dialog[open] { position: fixed; inset: 0; margin: auto; }
.sign-in-dialog::backdrop { background: var(--veil); backdrop-filter: blur(7px); }
.sign-in-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sign-in-heading h2 { margin: 0; font-size: 23px; }
.dialog-close {
  display: grid;
  place-items: center;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
}
.sign-in-dialog form { display: grid; gap: 14px; margin-top: 20px; }
.sign-in-dialog label { display: grid; gap: 5px; font-weight: 600; }
.sign-in-dialog input {
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}
.submit-login { background: var(--blue); color: var(--surface); margin-top: 5px; }
.submit-login:hover { background: var(--blue-hover); }
.login-feedback { color: var(--muted); margin: 12px 0 0; }
.login-feedback--error { color: var(--error); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 > span { animation: type-in 425ms steps(5, end) 120ms both; }
  .hero-copy h1 > span + span { animation: type-in 340ms steps(4, end) 660ms both; }
  .hero-copy p { animation: hero-line-in 550ms 180ms cubic-bezier(.2,.7,.2,1) both; }
  .sign-in-dialog:modal { animation: sign-in-appear 180ms ease-out; }
  @keyframes hero-line-in {
    from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 25% 0); }
    to { opacity: 1; transform: none; clip-path: inset(0); }
  }
  @keyframes sign-in-appear { from { opacity: 0; transform: translateY(8px) scale(.985); } }
}
@media (max-width: 760px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 78px 24px; }
  .hero-copy h1 { font-size: clamp(40px, 9vw, 66px); }
  .route-map { width: min(100%, 500px); justify-self: center; }
}
.submit-login:disabled { opacity: .65; cursor: wait; }

:root {
  --section-paper: #fff;
  --freight-paper: #edf4ff;
  --freight-rule: #ccd9ee;
  --freight-shadow: #26497d1c;
  --freight-ground: #111;
  --freight-text: #f4f7fc;
  --freight-accent: #2f63ff;
  --freight-secondary: #b8c2d1;
  --freight-divider: #ffffff30;
  --freight-lettering-ink: #e7eaef;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 34px);
}
.hero-actions #sign-in { background: var(--blue); color: var(--surface); }
.hero-actions #sign-in:hover { background: var(--blue-hover); }
.hero-action { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .hero-action > .sign-in {
    translate: var(--magnetic-x, 0px) var(--magnetic-y, 0px);
    transition: background-color 160ms ease, color 160ms ease,
      translate 240ms cubic-bezier(.2, .7, .25, 1);
  }
  .hero-action > .sign-in:focus-visible { translate: none; }
}
.landing-overview {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 10vw, 148px) 0 clamp(62px, 8vw, 116px);
  background: var(--section-paper);
}
.hero-horizon {
  display: none;
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2);
  pointer-events: none;
  opacity: var(--horizon-opacity, 0);
  background: radial-gradient(ellipse 120% 72% at 50% var(--horizon-center, 180%),
    var(--section-paper) 40%, #e3ecff 67%, #87a9fff0 86%, #3c6bf690 96%, transparent 100%);
}
.landing-overview-inner {
  width: min(100% - 2 * clamp(24px, 5vw, 76px), 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 9vw, 136px);
}
.overview-intro h2 {
  margin: 24px 0 0;
  font-size: clamp(36px, 5.1vw, 76px);
  font-weight: 820;
  letter-spacing: -.06em;
  line-height: 1.07;
}
.overview-intro h2 > span { display: block; width: fit-content; }
.overview-intro h2 > span + span { color: var(--blue); }
.overview-photo {
  aspect-ratio: 2.05;
  max-height: 32svh;
  overflow: clip;
  background: var(--freight-paper);
}
.overview-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 63%; }
.overview-data > p {
  max-width: 27em;
  margin: 0 0 35px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.8;
}
.overview-data .overview-status { margin-bottom: 12px; font-size: 14px; }
.overview-metrics { margin: 0; }
.overview-metric {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  min-height: clamp(138px, 22svh, 225px);
  padding-block: 20px;
}
.overview-metric::before, .overview-metric:last-child::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}
.overview-metric:last-child::after { inset: auto 0 0; }
.overview-metric dt { margin-top: 12px; color: var(--muted); font-size: 16px; }
.overview-metric dd { margin: 0; color: var(--blue); line-height: 1; }
.overview-count {
  font-size: clamp(40px, 5.7vw, 84px);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
}
.overview-unit { margin-left: 10px; font-size: clamp(14px, 1.55vw, 22px); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .overview-intro.replay-reveal:not(.is-revealed) .overview-photo { clip-path: inset(100% 0 0); }
  .overview-intro.replay-reveal:not(.is-revealed) h2 > span { clip-path: inset(-.1em 100% -.1em 0); }
  .overview-intro.is-revealed .overview-photo { animation: overview-photo-in 900ms cubic-bezier(.22,.7,.22,1) both; }
  .overview-intro.is-revealed img { animation: overview-photo-settle 1250ms cubic-bezier(.22,.7,.22,1) both; }
  .overview-intro.is-revealed h2 > span { animation: type-in 425ms steps(5, end) 650ms both; }
  .overview-intro.is-revealed h2 > span + span { animation: type-in 510ms steps(6, end) 1075ms both; }
  .overview-metric.is-revealed::before {
    transform-origin: left;
    animation: overview-rule-in 720ms cubic-bezier(.22,.7,.22,1) both;
  }
  .overview-metric.is-revealed :is(dt, dd) { animation: overview-title-in 560ms cubic-bezier(.22,.7,.22,1) both; }
}
@keyframes overview-photo-in { from { clip-path: inset(100% 0 0); } to { clip-path: inset(0); } }
@keyframes overview-photo-settle { from { transform: scale(1.13); } to { transform: scale(1); } }
@keyframes type-in {
  from { clip-path: inset(-.1em 100% -.1em 0); }
  to { clip-path: inset(-.1em 0 -.1em 0); }
}
@keyframes overview-title-in {
  from { opacity: 0; clip-path: inset(0 0 100%); transform: translateY(16px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}
@keyframes overview-rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.freight-track {
  background: linear-gradient(165deg, var(--paper), var(--freight-paper));
  border-top: 1px solid var(--line);
}
.freight-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  width: min(100% - 2 * clamp(24px, 5vw, 76px), 1280px);
  margin-inline: auto;
  padding-block: clamp(48px, 8svh, 96px);
}
.freight-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: clip;
  border: 1px solid var(--freight-rule);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 46px var(--freight-shadow);
}
.freight-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--wash);
}
.freight-image, .freight-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.freight-canvas, .freight-truck-layer, .freight-lettering { display: none; }
.freight-truck-layer {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}
.freight-truck-layer canvas { display: block; }
.freight-truck-layer .freight-wheel { position: absolute; will-change: transform; }
.freight-lettering {
  position: absolute;
  inset: 0 0 auto;
  height: var(--freight-band-top, 45%);
  z-index: 1;
  align-items: end;
  overflow: clip;
  visibility: var(--freight-lettering-visibility, hidden);
  opacity: var(--freight-lettering-opacity, 0);
  pointer-events: none;
}
.freight-lettering span {
  width: 100%;
  color: var(--freight-lettering-ink);
  font-size: min(14.5vw, calc(var(--freight-band-top, 300px) * .94), 480px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .92;
  text-align: center;
  white-space: nowrap;
  transform: translate3d(var(--freight-lettering-x, 40%), 0, 0);
}
.freight-media figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.landing-reference h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.landing-reference h2 span { color: var(--freight-accent); }
.landing-reference-list {
  counter-reset: reference;
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-reference-list li {
  counter-increment: reference;
  position: relative;
  padding: 17px 0 17px 44px;
  border-top: 1px solid var(--freight-rule);
}
.landing-reference-list li:last-child { border-bottom: 1px solid var(--freight-rule); }
.landing-reference-list li::before {
  content: counter(reference, decimal-leading-zero);
  position: absolute;
  inset: 18px auto auto 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.landing-reference-list h3 { margin: 0 0 4px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; }
.landing-reference-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (min-width: 761px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .landing-hero-track { min-height: 152svh; }
  .landing-hero-track .landing-hero { position: sticky; top: 0; }
  .hero-horizon { display: block; }
  .overview-intro { position: sticky; top: 32px; }
  .freight-track.has-scroll-motion {
    min-height: 325svh;
    background: var(--freight-ground);
  }
  .has-scroll-motion .freight-stage {
    position: sticky;
    top: 0;
    display: block;
    isolation: isolate;
    width: 100%;
    height: 100svh;
    padding: 0;
    overflow: clip;
    background: var(--surface);
  }
  .has-scroll-motion .freight-media,
  .has-scroll-motion .freight-visual {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
  }
  .has-scroll-motion .freight-media figcaption,
  .has-scroll-motion .freight-image { display: none; }
  .has-scroll-motion .freight-canvas { display: block; }
  .has-scroll-motion .freight-lettering { display: flex; }
  .has-scroll-motion .freight-truck-layer:not([hidden]) { display: block; }
  .has-scroll-motion .landing-reference {
    position: absolute;
    inset: var(--freight-band-top, 45%) 0 0;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 2.6fr);
    align-content: center;
    align-items: start;
    gap: clamp(22px, 4vw, 64px);
    padding: clamp(18px, 4svh, 44px) max(clamp(28px, 5vw, 76px), calc((100% - 1320px) / 2));
    color: var(--freight-text);
    transform: translate3d(var(--freight-strip-x, 100%), 0, 0);
  }
  .has-scroll-motion .landing-reference h2 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 48px);
    text-wrap: balance;
  }
  .has-scroll-motion .landing-reference h2 span { display: block; }
  .has-scroll-motion .landing-reference-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .has-scroll-motion .landing-reference-list li {
    padding: 25px clamp(10px, 1.8vw, 28px) 0;
    border: 0;
    border-left: 1px solid var(--freight-divider);
  }
  .has-scroll-motion .landing-reference-list li::before {
    inset: 0 auto auto clamp(10px, 1.8vw, 28px);
    color: var(--freight-secondary);
  }
  .has-scroll-motion .landing-reference-list p { color: var(--freight-secondary); }
}
@media (max-width: 760px) {
  .landing-overview-inner, .freight-stage { grid-template-columns: minmax(0, 1fr); }
}
