/* Northline Cold Chain Desk — cold corridor investigation system */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --night: #0c1316;
  --night-2: #111b1f;
  --steel: #1b292f;
  --steel-2: #253840;
  --steel-3: #324b54;
  --frost: #dceee9;
  --frost-soft: #b8d2cd;
  --muted: #8fa9a5;
  --ice: #79c4c3;
  --ice-deep: #2f777c;
  --safety: #ff6a2b;
  --safety-soft: #ffb08c;
  --paper: #edf3f0;
  --ink: #10191c;
  --line: rgba(220,238,233,.17);
  --line-strong: rgba(220,238,233,.4);
  --mono: "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "DIN Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 64px);
  --max: 1560px;
}
html { scroll-behavior: smooth; overflow-x: clip; background: var(--night); }
body {
  min-width: 320px; margin: 0; overflow-x: clip;
  color: var(--frost); background:
    radial-gradient(ellipse 55% 42% at 82% -6%, rgba(121,196,195,.18), transparent 68%),
    radial-gradient(ellipse 42% 30% at 6% 12%, rgba(255,106,43,.08), transparent 68%),
    repeating-linear-gradient(90deg, rgba(220,238,233,.026) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(220,238,233,.018) 0 1px, transparent 1px 80px),
    var(--night);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 0 46%, rgba(121,196,195,.035) 46.2% 46.5%, transparent 46.7% 100%);
}
::selection { color: var(--night); background: var(--ice); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { color: inherit; }
h1,h2,h3,h4,p,dl,dd,dt,ul,ol,figure,blockquote { margin: 0; }
ul,ol { padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 11px 16px; color: var(--night); background: var(--ice); border: 1px solid var(--frost); transform: translateY(-180%); }
.skip-link:focus-visible { transform: translateY(0); }
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.micro { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ice); font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--safety); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; }

/* Header */
.desk-head { position: relative; z-index: 60; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(14px,2.4vw,38px); max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); border-bottom: 1px solid var(--line-strong); }
.desk-head::after { content: ""; position: absolute; right: var(--gutter); bottom: -5px; left: var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3,5px); gap: 3px; width: 38px; height: 38px; padding: 8px 7px; border: 1px solid var(--line-strong); transform: skewX(-6deg); }
.brand-mark span { display: block; background: var(--ice); }
.brand-mark span:nth-child(2) { background: var(--safety); transform: translateY(4px); }
.brand-mark span:nth-child(3) { background: var(--frost); transform: translateY(8px); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--display); font-size: 25px; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .2em; }
.desk-nav { display: flex; align-items: center; justify-content: center; gap: clamp(2px,1vw,18px); min-width: 0; }
.desk-nav a { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 9px; color: var(--frost-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.desk-nav a::after { content: ""; position: absolute; right: 9px; bottom: 6px; left: 9px; height: 2px; background: transparent; }
.desk-nav a:hover, .desk-nav a:focus-visible { color: var(--frost); }
.desk-nav a[aria-current="page"] { color: var(--frost); }
.desk-nav a[aria-current="page"]::after { background: var(--safety); }
.head-status { display: grid; justify-items: end; gap: 4px; text-align: right; }
.demo-flag { display: inline-flex; align-items: center; gap: 7px; color: var(--safety-soft); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.demo-square { width: 7px; height: 7px; background: var(--safety); box-shadow: 0 0 0 3px rgba(255,106,43,.12); }
.head-note { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; }
.shift-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 9px; color: var(--frost-soft); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--ice); background: var(--ice); color: var(--night); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform 150ms ease, background 150ms ease; }
.button:hover { transform: translateY(-2px); background: var(--frost); }
.button--ghost { border-color: var(--line-strong); background: transparent; color: var(--frost); }
.button--ghost:hover { background: rgba(121,196,195,.08); }
.button--safety { border-color: var(--safety); background: var(--safety); color: var(--night); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--frost); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); }
.text-link:hover { border-bottom-color: var(--safety); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }

/* Shared section language */
.section { padding-block: clamp(40px,5.5vw,76px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 86px minmax(0,1fr) minmax(220px,.5fr); gap: clamp(16px,2.4vw,38px); align-items: start; margin-bottom: clamp(24px,3.4vw,46px); }
.section-no { color: var(--safety-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.section-head h1, .section-head h2 { font-family: var(--display); font-size: clamp(38px,4.1vw,68px); line-height: .9; letter-spacing: -.025em; }
.section-head p { max-width: 450px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-head .head-note { grid-column: 3; color: var(--frost-soft); }
.section--paper { background: var(--paper); color: var(--ink); border-top-color: rgba(16,25,28,.2); }
.section--paper .section-head p, .section--paper .micro { color: #526864; }
.section--paper .section-no { color: #a74a25; }
.section--paper .eyebrow { color: var(--ice-deep); }
.section--paper .text-link { color: var(--ink); border-bottom-color: rgba(16,25,28,.28); }
.section--paper .button--ghost { color: var(--ink); border-color: rgba(16,25,28,.4); }

/* Home hero */
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(330px,.82fr); gap: clamp(28px,4vw,70px); align-items: end; padding-block: clamp(48px,7vw,96px) clamp(36px,5vw,70px); }
.home-hero::before { content: "6.8°"; position: absolute; top: 1%; right: 27%; z-index: -1; color: rgba(220,238,233,.035); font-family: var(--display); font-size: clamp(200px,25vw,400px); line-height: .7; letter-spacing: -.06em; pointer-events: none; }
.home-hero h1 { margin-top: 18px; font-family: var(--display); font-size: clamp(66px,8.2vw,138px); font-weight: 600; line-height: .82; letter-spacing: -.035em; }
.home-hero h1 em { color: var(--ice); font-style: normal; }
.home-hero .deck { max-width: 650px; margin-top: 24px; color: var(--frost-soft); font-size: clamp(15px,1.25vw,18px); line-height: 1.65; }
.hero-status { position: relative; padding: 22px 0 0 26px; border-left: 1px solid var(--line-strong); }
.hero-status::before { content: ""; position: absolute; top: -1px; left: -1px; width: 1px; height: 74px; background: var(--safety); }
.status-load { display: flex; align-items: baseline; gap: 12px; }
.status-load strong { font-family: var(--display); font-size: 54px; line-height: .9; letter-spacing: .01em; }
.status-load span { color: var(--safety-soft); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.status-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.status-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.status-row span:first-child { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.status-row strong { font-weight: 500; text-align: right; }
.status-row .alarm { color: var(--safety-soft); }
.mini-route { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 20px; }
.mini-stop { position: relative; padding-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; }
.mini-stop::before { content: ""; position: absolute; top: 3px; left: 0; width: 7px; height: 7px; background: var(--ice); }
.mini-stop::after { content: ""; position: absolute; top: 6px; right: 0; left: 10px; height: 1px; background: var(--line-strong); }
.mini-stop:last-child::after { display: none; }
.mini-stop.is-alarm::before { background: var(--safety); }
.mini-stop strong { display: block; color: var(--frost); font-size: 9px; letter-spacing: .02em; }
.hero-footnote { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }

/* Exception queue */
.queue { border-top: 1px solid var(--line-strong); }
.queue-row { display: grid; grid-template-columns: 82px minmax(180px,1.2fr) minmax(130px,.9fr) 105px 100px 92px; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 150ms ease, background 150ms ease; }
.queue-row:hover { padding-left: 12px; background: rgba(121,196,195,.055); }
.queue-id { font-family: var(--display); font-size: 26px; letter-spacing: .02em; }
.queue-lane { font-size: 14px; }
.queue-lane small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.queue-reading { font-family: var(--mono); font-size: 15px; }
.queue-reading small { display: block; color: var(--muted); font-size: 8px; }
.queue-delay { color: var(--frost-soft); font-family: var(--mono); font-size: 10px; }
.state { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 7px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.state::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.state--excursion { color: var(--safety-soft); border-color: rgba(255,106,43,.45); }
.state--watch { color: #e9ce72; border-color: rgba(233,206,114,.4); }
.state--stable { color: var(--ice); border-color: rgba(121,196,195,.4); }
.queue-go { justify-self: end; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.queue-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }

/* Reefer cutaway */
.lens { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(280px,.84fr); gap: clamp(24px,4vw,64px); align-items: start; }
.lens-stage { position: relative; min-height: 420px; padding: 24px 18px 30px; overflow: hidden; }
.reefer { position: relative; width: min(100%, 770px); margin: 28px auto 0; transform: perspective(1200px) rotateY(-7deg) rotateX(1deg); transform-origin: 50% 100%; }
.reefer-body { position: relative; height: clamp(250px,28vw,390px); border: 1px solid var(--line-strong); background: linear-gradient(105deg, #263940 0%, #1a292f 52%, #2b4148 100%); clip-path: polygon(0 0, 94% 0, 100% 9%, 100% 100%, 0 100%); box-shadow: 20px 30px 60px -40px #000; }
.reefer-body::before { content: ""; position: absolute; inset: 13px 12px 13px 24px; border: 1px solid rgba(220,238,233,.12); background: repeating-linear-gradient(90deg, rgba(220,238,233,.09) 0 1px, transparent 1px 15px); }
.reefer-body::after { content: ""; position: absolute; top: 8%; right: 7%; width: 21%; height: 80%; border: 1px solid rgba(220,238,233,.24); background: repeating-linear-gradient(0deg, rgba(220,238,233,.055) 0 2px, transparent 2px 12px); }
.reefer-door { position: absolute; top: 13%; right: 9%; z-index: 2; width: 18%; height: 66%; border: 1px solid rgba(220,238,233,.3); background: linear-gradient(90deg, rgba(121,196,195,.06), rgba(121,196,195,.17)); }
.reefer-door::before, .reefer-door::after { content: ""; position: absolute; left: 18%; width: 64%; height: 2px; background: rgba(220,238,233,.5); }
.reefer-door::before { top: 20%; }
.reefer-door::after { top: 76%; }
.reefer-vent { position: absolute; top: 17%; left: 5%; z-index: 2; width: 12%; height: 23%; border: 1px solid rgba(220,238,233,.28); background: repeating-linear-gradient(0deg, rgba(220,238,233,.3) 0 1px, transparent 1px 5px); }
.pallet-stack { position: absolute; bottom: 10%; left: 8%; z-index: 2; display: flex; gap: 5px; width: 60%; height: 44%; align-items: end; }
.pallet { flex: 1; height: 68%; border: 1px solid rgba(220,238,233,.23); background: repeating-linear-gradient(0deg, rgba(121,196,195,.16) 0 11px, transparent 11px 14px); }
.pallet:nth-child(2) { height: 88%; }
.pallet:nth-child(3) { height: 58%; }
.pallet:nth-child(4) { height: 78%; }
.reefer-code { position: absolute; top: 9%; left: 4%; z-index: 3; color: var(--frost); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; }
.reefer-temp { position: absolute; right: 4%; bottom: 5%; z-index: 3; color: var(--safety-soft); font-family: var(--display); font-size: 24px; letter-spacing: .03em; }
.temp-trace { position: absolute; top: 14%; left: 5%; z-index: 4; width: 82%; height: 58%; pointer-events: none; overflow: visible; }
.temp-trace path { fill: none; stroke: var(--safety); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.temp-trace .trace-dash { stroke: rgba(255,176,140,.28); stroke-width: 1; stroke-dasharray: 3 6; }
.temp-trace circle { fill: var(--night); stroke: var(--safety); stroke-width: 2; }
.plinth { position: relative; height: 30px; margin: 0 5% 0 2%; border-top: 2px solid var(--line-strong); background: repeating-linear-gradient(90deg, rgba(220,238,233,.2) 0 1px, transparent 1px 34px); }
.plinth::before { content: "EVIDENCE STAGE / REEFER 01"; position: absolute; top: 7px; left: 3%; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .12em; }
.plinth::after { content: ""; position: absolute; right: 0; bottom: -10px; width: 58%; height: 8px; background: repeating-linear-gradient(135deg, var(--safety) 0 6px, var(--night) 6px 12px); opacity: .55; }
.evidence-tag { position: absolute; right: 2%; bottom: 8%; z-index: 8; width: min(250px, 43%); padding: 14px 16px 15px; color: var(--ink); background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 78%, 92% 100%, 0 100%); transform: rotate(2.5deg); box-shadow: 0 24px 40px -30px #000; }
.evidence-tag .micro { color: #536865; }
.evidence-tag strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 25px; line-height: .95; }
.evidence-tag p { margin-top: 6px; color: #3f5551; font-size: 11px; line-height: 1.45; }
.evidence-tag .tag-rule { display: block; width: 32px; height: 3px; margin-top: 9px; background: var(--safety); }
.lens-copy h3 { font-family: var(--display); font-size: clamp(34px,3.4vw,54px); line-height: .92; }
.lens-copy > p { margin-top: 16px; max-width: 470px; color: var(--frost-soft); font-size: 14px; }
.lens-list { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.lens-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lens-list .n { color: var(--safety-soft); font-family: var(--mono); font-size: 9px; }
.lens-list strong { display: block; font-weight: 500; }
.lens-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.quote-line { margin-top: 26px; padding: 16px 0 0 18px; border-left: 2px solid var(--ice); color: var(--frost-soft); font-family: var(--display); font-size: 21px; line-height: 1.2; }

/* Shift timeline */
.shift-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(24px,4vw,64px); }
.shift-grid h3 { font-family: var(--display); font-size: 40px; line-height: .9; }
.shift-grid > div > p { margin-top: 14px; color: var(--frost-soft); font-size: 13px; }
.timeline { border-top: 1px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--ice); font-family: var(--mono); font-size: 10px; }
.timeline strong { display: block; font-weight: 500; }
.timeline small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.timeline .state { justify-self: end; }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 26px; align-items: center; padding: clamp(26px,4vw,44px); border: 1px solid var(--line-strong); background: linear-gradient(110deg, rgba(121,196,195,.12), rgba(255,106,43,.055)); }
.cta h2 { font-family: var(--display); font-size: clamp(38px,4vw,62px); line-height: .9; }
.cta p { max-width: 600px; margin-top: 10px; color: var(--frost-soft); font-size: 13px; }

/* Catalog */
.page-intro { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(260px,.6fr); gap: clamp(24px,4vw,64px); align-items: end; padding-block: clamp(42px,6vw,86px) clamp(30px,4vw,54px); }
.page-intro h1 { margin-top: 15px; font-family: var(--display); font-size: clamp(58px,7vw,112px); font-weight: 600; line-height: .82; letter-spacing: -.03em; }
.page-intro h1 em { color: var(--ice); font-style: normal; }
.page-intro .deck { max-width: 700px; margin-top: 20px; color: var(--frost-soft); font-size: 15px; }
.intro-aside { padding: 18px 0 4px 22px; border-left: 1px solid var(--line-strong); }
.intro-aside .micro { margin-bottom: 9px; }
.intro-aside p { color: var(--frost-soft); font-size: 13px; }
.intro-aside strong { color: var(--frost); font-weight: 500; }
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.search-box { display: flex; align-items: center; gap: 8px; min-width: min(100%, 320px); padding: 0 11px; border: 1px solid var(--line); background: rgba(220,238,233,.035); }
.search-box span { color: var(--muted); font-family: var(--mono); }
.search-box input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; color: var(--frost); font-size: 13px; }
.search-box input::placeholder { color: #718985; }
.filter-set { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--safety); background: rgba(255,106,43,.12); color: var(--safety-soft); }
.catalog-count { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.load-rows { border-top: 1px solid var(--line-strong); }
.load-row { display: grid; grid-template-columns: 92px minmax(220px,1.25fr) minmax(130px,1fr) 92px 88px 106px 28px; gap: 14px; align-items: center; padding: 16px 3px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 150ms ease, padding 150ms ease; }
.load-row:hover { padding-left: 11px; background: rgba(121,196,195,.055); }
.load-row .id { font-family: var(--display); font-size: 25px; }
.load-row .lane { font-size: 14px; }
.load-row .lane small, .load-row .product small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.load-row .product { color: var(--frost-soft); font-size: 12px; }
.load-row .temp { font-family: var(--mono); font-size: 14px; }
.load-row .temp small { display: block; color: var(--muted); font-size: 8px; }
.load-row .go { justify-self: end; color: var(--muted); font-family: var(--mono); }
.empty-row { padding: 30px 2px; color: var(--muted); font-family: var(--mono); font-size: 11px; }

/* Lane board */
.lane-board { border-top: 1px solid var(--line-strong); }
.lane-row { display: grid; grid-template-columns: 78px minmax(0,1fr) 100px; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.lane-id { font-family: var(--mono); font-size: 10px; color: var(--frost-soft); }
.load-path { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.load-path::before { content: ""; position: absolute; top: 7px; right: 4%; left: 4%; height: 2px; background: var(--state-color, var(--ice)); opacity: .55; }
.lane-node { position: relative; padding-top: 17px; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .04em; }
.lane-node::before { content: ""; position: absolute; top: 2px; left: 0; width: 10px; height: 10px; border: 2px solid var(--night); background: var(--state-color, var(--ice)); box-shadow: 0 0 0 1px var(--state-color, var(--ice)); }
.lane-node.is-peak::before { background: var(--safety); box-shadow: 0 0 0 1px var(--safety); }
.lane-node strong { display: block; color: var(--frost-soft); font-size: 8px; font-weight: 500; }
.lane-state { justify-self: end; }

/* Tables and notes */
.ledger { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-strong); }
.ledger th { padding: 10px 8px; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 400; letter-spacing: .1em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.ledger td { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.ledger td strong { font-family: var(--display); font-size: 19px; font-weight: 500; }
.ledger .alarm { color: var(--safety-soft); }
.ledger .ice { color: var(--ice); }
.checks-panel { border: 1px solid var(--line-strong); background: rgba(220,238,233,.035); padding: 22px; }
.checks-panel h3 { font-family: var(--display); font-size: 30px; line-height: .95; }
.checks-panel p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.check-list { margin-top: 16px; border-top: 1px solid var(--line); }
.check-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.check-item strong { display: block; font-family: var(--mono); font-size: 9px; color: var(--ice); letter-spacing: .05em; }
.check-item p { margin-top: 3px; color: var(--frost-soft); font-size: 11px; }
.check-empty { padding: 18px 0; color: var(--muted); font-family: var(--mono); font-size: 10px; }

/* Dossier detail */
.dossier-hero { position: relative; overflow: clip; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.55fr); gap: clamp(24px,4vw,60px); align-items: end; padding-block: clamp(40px,5vw,76px) clamp(26px,3.4vw,46px); }
.dossier-hero::before { content: attr(data-load); position: absolute; top: 0; left: 44%; z-index: -1; color: rgba(220,238,233,.035); font-family: var(--display); font-size: clamp(160px,20vw,330px); line-height: .8; letter-spacing: -.04em; pointer-events: none; }
.dossier-hero h1 { margin-top: 12px; font-family: var(--display); font-size: clamp(56px,6.4vw,104px); line-height: .82; letter-spacing: -.025em; }
.dossier-hero h1 span { color: var(--ice); }
.dossier-sub { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: var(--frost-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.dossier-sub .alarm { color: var(--safety-soft); }
.dossier-aside { padding-left: 22px; border-left: 1px solid var(--line-strong); }
.dossier-aside .big-temp { font-family: var(--display); font-size: clamp(54px,5.5vw,82px); line-height: .8; color: var(--safety-soft); }
.dossier-aside p { margin-top: 10px; color: var(--muted); font-size: 12px; }
.dossier-aside .actions { margin-top: 18px; }
.investigation { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(300px,.78fr); gap: clamp(22px,3.5vw,50px); align-items: start; }
.stage-block { min-width: 0; }
.stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.stage-head h2 { font-family: var(--display); font-size: clamp(32px,3.4vw,48px); line-height: .9; }
.stage-head p { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-align: right; }
.reefer--detail { margin-top: 10px; transform: none; }
.reefer--detail .reefer-body { height: clamp(280px,31vw,420px); }
.stop-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-top: 8px; border-top: 1px solid var(--line-strong); }
.stop { position: relative; padding: 14px 10px 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.stop::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: transparent; }
.stop[aria-pressed="true"]::before { background: var(--safety); }
.stop:hover { background: rgba(121,196,195,.045); }
.stop time { display: block; color: var(--ice); font-family: var(--mono); font-size: 10px; }
.stop strong { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; }
.stop small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.stop.is-peak small { color: var(--safety-soft); }
.stop-readout { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.stop-readout h3 { font-family: var(--display); font-size: 30px; line-height: .95; }
.stop-readout p { margin-top: 8px; max-width: 700px; color: var(--frost-soft); font-size: 13px; }
.stop-readout dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.stop-readout dl > div { padding: 12px; background: var(--night-2); }
.stop-readout dt { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.stop-readout dd { margin-top: 4px; font-family: var(--mono); font-size: 14px; }
.evidence-card { position: relative; padding: 24px 22px 22px; color: var(--ink); background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%); box-shadow: 0 30px 60px -34px #000; transform: rotate(.7deg); }
.evidence-card::before { content: ""; position: absolute; top: -8px; left: 26px; width: 76px; height: 17px; background: rgba(255,106,43,.68); transform: rotate(-3deg); }
.evidence-card .micro { color: #5a6b67; }
.evidence-card h2 { margin-top: 8px; font-family: var(--display); font-size: 38px; line-height: .9; }
.evidence-card .confidence { display: inline-flex; margin-top: 10px; padding: 4px 7px; border: 1px solid #8aa29c; color: #3f5c56; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.evidence-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 14px; border-top: 1px solid rgba(16,25,28,.25); }
.evidence-facts div { padding: 9px 0; border-bottom: 1px solid rgba(16,25,28,.16); }
.evidence-facts span { display: block; color: #61736f; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.evidence-facts strong { display: block; margin-top: 3px; font-family: var(--mono); font-size: 13px; }
.evidence-note { margin-top: 14px; color: #3b504c; font-size: 12px; line-height: 1.55; }
.check-form { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(16,25,28,.3); }
.check-form label { display: block; color: #405550; font-family: var(--mono); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.check-form label span { float: right; color: #7c8d89; letter-spacing: 0; text-transform: none; }
.check-form textarea { width: 100%; min-height: 74px; margin-top: 7px; padding: 9px 10px; border: 1px solid rgba(16,25,28,.3); background: #fbfdfb; color: var(--ink); font-size: 12px; resize: vertical; }
.form-error { margin-top: 8px; padding: 7px 9px; border: 1px solid #a3482c; background: #f6ded4; color: #7c2f1a; font-size: 11px; }
.form-privacy { margin-top: 8px; color: #6a7d78; font-family: var(--mono); font-size: 8px; line-height: 1.4; }
.evidence-card .button { margin-top: 10px; min-height: 42px; border-color: var(--ink); background: var(--ink); color: var(--paper); font-size: 9px; }
.evidence-card .button:hover { background: #263b3a; }
.check-success { margin-top: 16px; padding: 14px; border: 1px dashed #48645e; background: #e2eee9; }
.check-success h3 { font-family: var(--display); font-size: 27px; line-height: .95; }
.check-success p { margin-top: 6px; color: #415853; font-size: 11px; }
.check-success button { margin-top: 10px; padding: 7px 10px; border: 1px solid #4d6b65; background: transparent; color: #2f4a45; font-family: var(--mono); font-size: 8px; cursor: pointer; }

/* Decisions / history */
.decision-list { border-top: 1px solid var(--line-strong); }
.decision { display: grid; grid-template-columns: 52px minmax(0,1fr) 130px; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.decision .n { color: var(--safety-soft); font-family: var(--mono); font-size: 9px; }
.decision h3 { font-family: var(--display); font-size: 25px; font-weight: 500; line-height: .95; }
.decision p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.decision .state { justify-self: end; }
.history-list { border-top: 1px solid var(--line-strong); }
.history-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-item time { color: var(--ice); font-family: var(--mono); font-size: 9px; }
.history-item p { color: var(--frost-soft); font-size: 12px; }
.history-item button { border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 8px; text-decoration: underline; cursor: pointer; }

/* Method page */
.method-hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(280px,.6fr); gap: clamp(24px,4vw,58px); align-items: end; padding-block: clamp(44px,6vw,88px) clamp(32px,4vw,58px); }
.method-hero h1 { margin-top: 14px; font-family: var(--display); font-size: clamp(58px,7vw,112px); line-height: .82; letter-spacing: -.03em; }
.method-hero h1 em { color: var(--ice); font-style: normal; }
.method-hero .deck { max-width: 700px; margin-top: 20px; color: var(--frost-soft); font-size: 15px; }
.method-aside { padding: 18px 0 4px 22px; border-left: 1px solid var(--line-strong); }
.method-aside strong { display: block; font-family: var(--display); font-size: 47px; line-height: .85; color: var(--safety-soft); }
.method-aside p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-card { min-height: 250px; padding: 24px 22px; background: var(--night-2); }
.method-card .n { color: var(--safety-soft); font-family: var(--mono); font-size: 10px; }
.method-card h3 { margin-top: 36px; font-family: var(--display); font-size: 37px; line-height: .9; }
.method-card p { margin-top: 12px; color: var(--muted); font-size: 12px; }
.method-card .rule { display: block; width: 40px; height: 3px; margin-top: 20px; background: var(--ice); }
.ladder { border-top: 1px solid var(--line-strong); }
.ladder li { display: grid; grid-template-columns: 64px minmax(0,1fr) minmax(180px,.45fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ladder .level { color: var(--safety-soft); font-family: var(--mono); font-size: 10px; }
.ladder h3 { font-family: var(--display); font-size: 29px; font-weight: 500; line-height: .95; }
.ladder p { color: var(--muted); font-size: 12px; }
.limits { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: clamp(24px,4vw,64px); }
.limits h3 { font-family: var(--display); font-size: 42px; line-height: .9; }
.limits ul { border-top: 1px solid var(--line-strong); }
.limits li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--frost-soft); font-size: 12px; }
.limits li strong { display: inline-block; min-width: 30px; color: var(--safety-soft); font-family: var(--mono); font-size: 9px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 16px 2px; font-family: var(--display); font-size: 25px; line-height: .95; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--safety-soft); font-family: var(--mono); font-size: 16px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 780px; padding: 0 2px 18px; color: var(--muted); font-size: 12px; }

/* Footer */
.site-footer { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.footer-inner { display: grid; grid-template-columns: 1.1fr .9fr .8fr; gap: 24px; padding-block: 32px; }
.footer-inner h2 { font-family: var(--display); font-size: 28px; letter-spacing: .04em; }
.footer-inner p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.footer-inner .footer-note { color: var(--safety-soft); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 5px; align-content: start; }
.footer-links a { color: var(--frost-soft); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: var(--ice); }
.footer-meta { text-align: right; }

@media (max-width: 1120px) {
  .desk-head { grid-template-columns: auto 1fr; }
  .head-status { display: none; }
  .home-hero, .page-intro, .dossier-hero, .method-hero, .lens, .shift-grid, .limits { grid-template-columns: 1fr; }
  .hero-status, .intro-aside, .dossier-aside, .method-aside { padding-left: 18px; }
  .section-head { grid-template-columns: 58px minmax(0,1fr); }
  .section-head .head-note { grid-column: 2; }
  .queue-row { grid-template-columns: 72px 1.2fr 1fr 90px 78px; }
  .queue-row .state { display: none; }
  .load-row { grid-template-columns: 78px 1.3fr 1fr 80px 70px 26px; }
  .load-row .state { display: none; }
  .investigation { grid-template-columns: 1fr; }
  .evidence-card { max-width: 620px; transform: none; }
}
@media (max-width: 760px) {
  .desk-head { grid-template-columns: 1fr; gap: 4px; padding-bottom: 9px; }
  .desk-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .desk-nav a { padding: 0 8px; }
  .home-hero h1, .page-intro h1, .dossier-hero h1, .method-hero h1 { font-size: clamp(52px,15vw,80px); }
  .home-hero { padding-top: 30px; }
  .hero-status { padding-left: 14px; }
  .section-head, .section-head .head-note { grid-template-columns: 1fr; gap: 8px; grid-column: 1; }
  .queue-row { grid-template-columns: 1fr auto; gap: 5px 10px; padding: 14px 2px; }
  .queue-row .queue-id { grid-column: 1; }
  .queue-row .queue-go { grid-row: 1; grid-column: 2; }
  .queue-row .queue-lane, .queue-row .queue-reading, .queue-row .queue-delay { grid-column: 1; }
  .queue-row .state { display: none; }
  .lens-stage { min-height: 0; padding: 12px 0 20px; overflow: visible; }
  .reefer { transform: none; }
  .reefer-body { height: 270px; }
  .evidence-tag { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 12px; transform: none; }
  .load-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 2px; }
  .load-row .id { grid-column: 1; }
  .load-row .go { grid-row: 1; grid-column: 2; }
  .load-row .lane, .load-row .product, .load-row .temp { grid-column: 1; }
  .load-row .delay, .load-row .state { display: none; }
  .lane-row { grid-template-columns: 58px minmax(0,1fr); gap: 8px; }
  .lane-state { display: none; }
  .lane-node { font-size: 6px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 0; }
  .ladder li { grid-template-columns: 44px minmax(0,1fr); gap: 8px; }
  .ladder p { grid-column: 2; }
  .stop-strip { grid-template-columns: 1fr 1fr; }
  .stop { padding-right: 8px; }
  .stop-readout dl { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; gap: 3px; }
  .history-item button { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-meta { text-align: left; }
  .cta { grid-template-columns: 1fr; }
  .evidence-card { padding: 20px 16px; }
  .dossier-hero::before { left: 8%; }
  .ledger { table-layout: fixed; }
  .ledger th { padding: 8px 4px; font-size: 7px; letter-spacing: .04em; }
  .ledger td { padding: 10px 4px; font-size: 10px; overflow-wrap: anywhere; }
  .ledger td strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
