/* Outcomes pages (Draft E, "human-first editorial") — shared by
   /applications/, /applications/personnel-vehicle-safety/, /applications/operations-management/,
   /applications/technology-integration/. Tokens only; every class is prefixed .oc- */

.oc { background: var(--paper); color: var(--body); font-family: var(--text); font-size: 18px; line-height: 1.6; overflow-x: clip; }
.oc *, .oc *::before, .oc *::after { box-sizing: border-box; }
.oc img { display: block; max-width: 100%; height: auto; }
.oc p { margin: 0; }
.oc a:not(.rp-btn) { color: inherit; }
.oc h1, .oc h2, .oc h3, .oc h4 { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -.012em; margin: 0; text-wrap: balance; }
.oc h1 em, .oc h2 em, .oc h3 em, .oc blockquote em { font-style: italic; }
.oc :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- small type pieces ---------- */
.oc-kicker { font: 500 13px/1.4 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.oc-kicker a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.oc-kicker a:hover { color: var(--red); border-color: var(--red); }
.oc-kicker span[aria-hidden] { color: var(--sand); }
.oc-kicker--red { color: var(--red); }
.oc-tag { font: 500 13.5px/1.35 var(--text); letter-spacing: 0; color: var(--mute); }
.oc-dek { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--body); max-width: 58ch; }
.oc-lede { max-width: var(--measure); }
.oc-lede > * + * { margin-top: 1em; }
.oc-note { font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 70ch; }
.oc-link { display: inline-flex; align-items: center; gap: 8px; font: 500 16px/1.3 var(--text); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 3px; transition: border-color .15s, color .15s; }
.oc-link:hover { color: var(--red); border-color: var(--red); }
.oc-link .arr { transition: transform .15s; }
.oc-link:hover .arr { transform: translateX(3px); }
.oc-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: var(--s4); }

/* ---------- sections ---------- */
.oc-sec { padding-block: clamp(64px, 9vw, 120px); }
.oc-sec--band { background: var(--paper-2); }
.oc-sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.oc-sec + .oc-sec:not(.oc-sec--band):not(.oc-night) { border-top: 1px solid var(--sand); }
.oc-sec--band + .oc-sec, .oc-night + .oc-sec { border-top: 0 !important; }
.oc-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.oc-head h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; margin-top: 14px; }
.oc-head p:not(.oc-kicker) { margin-top: 18px; font-size: 19px; max-width: 60ch; }
.oc-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.oc-h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }

/* ---------- hero ---------- */
.oc-hero { padding-top: clamp(40px, 7vw, 96px); }
.oc-hero__text { max-width: 900px; }
.oc-hero h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -.022em; margin: 22px 0 26px; font-weight: 400; }
.oc-hero h1 em { color: var(--red); }
.oc-fig.oc-hero__fig { margin: clamp(48px, 6vw, 80px) 0 0; }
.oc-hero__fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.oc-hero--split .rp-container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.oc-hero--split h1 { font-size: clamp(40px, 5.4vw, 76px); }
.oc-hero--split .oc-fig.oc-hero__fig { margin: 0; }
.oc-hero--split .oc-hero__fig img { aspect-ratio: 4 / 5; }
.oc-hero + .oc-sec { border-top: 0 !important; }

/* figure + caption */
.oc-fig { margin: 0; }
.oc-fig img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.oc-fig figcaption, .oc-cap { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 62ch; }
.oc-fig figcaption b, .oc-cap b { color: var(--ink); font-weight: 600; }

/* ---------- two-column article spread ---------- */
.oc-spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.oc-spread--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.oc-spread--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.oc-spread__side h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-top: 14px; }
.oc-spread__side .oc-sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.oc-prose { max-width: var(--measure); }
.oc-prose > * + * { margin-top: 1.05em; }
.oc-prose h3 { font-size: 26px; line-height: 1.25; margin-top: 1.6em; }
.oc-prose strong { color: var(--ink); font-weight: 600; }
.oc-drop::first-letter { font-family: var(--display); float: left; font-size: 4.1em; line-height: .86; padding: 6px 12px 0 0; color: var(--red); }

/* plain editorial list (hairlines, no bullets) */
.oc-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--sand); }
.oc-list li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--sand); position: relative; font-size: 17px; line-height: 1.5; }
.oc-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 2px; background: var(--red); border-radius: 2px; }
.oc-list li b { color: var(--ink); font-weight: 600; }
.oc-list--safe li::before { background: var(--safe); }

/* ---------- outcome cards (overview) ---------- */
.oc-outcomes { display: grid; gap: clamp(56px, 7vw, 96px); }
.oc-outcome { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.oc-outcome:nth-child(even) .oc-outcome__fig { order: 2; }
.oc-outcome__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.oc-outcome__fig--contain img { object-fit: contain; padding: 6%; }
.oc-outcome__n { font: 400 clamp(56px, 6vw, 84px)/1 var(--display); color: var(--sand); display: block; margin-bottom: 8px; }
.oc-outcome h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; }
.oc-outcome__who { margin-top: 10px; font-size: 15px; color: var(--mute); }
.oc-outcome__text { margin-top: 18px; max-width: 52ch; }
.oc-outcome .oc-list { margin-top: 22px; }
.oc-outcome .oc-link { margin-top: 26px; }

/* ---------- a moment in three beats (overview) ---------- */
.oc-beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: beat; }
.oc-beat { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.oc-beat .oc-tag { display: block; margin-bottom: 14px; }
.oc-beat h3 { font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.oc-beat p { font-size: 17px; }
.oc-beat--now { border-color: var(--red); }
.oc-beat--now .oc-tag { color: var(--red); }

/* ---------- by the numbers ---------- */
.oc-numbers { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.oc-num { padding: 26px 24px 8px 0; }
.oc-num + .oc-num { padding-left: 24px; border-left: 1px solid var(--sand); }
.oc-num b { display: block; font: 400 clamp(44px, 5.2vw, 72px)/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.oc-num b small { font-size: .5em; letter-spacing: 0; }
.oc-num span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--body); max-width: 26ch; }
.oc-num--red b { color: var(--red); }

/* trust row (anonymized proof) */
.oc-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-block: 1px solid var(--sand); }
.oc-trust li { list-style: none; padding: 22px 20px 22px 0; font-size: 15px; line-height: 1.45; }
.oc-trust li + li { padding-left: 20px; border-left: 1px solid var(--sand); }
.oc-trust li b { display: block; font: 400 30px/1.1 var(--display); color: var(--ink); margin-bottom: 6px; }
.oc-trust { padding: 0; margin-inline: 0; }

/* ---------- pull quote / big statement ---------- */
.oc-pull { max-width: 980px; margin-inline: auto; text-align: center; }
.oc-pull blockquote { margin: 0; font: 400 clamp(30px, 4vw, 52px)/1.16 var(--display); color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }
.oc-pull blockquote em { color: var(--red); }
.oc-pull figcaption { margin-top: 24px; font-size: 15px; color: var(--mute); }
.oc-pull .oc-mark { display: block; font: 400 96px/.6 var(--display); color: var(--red); margin-bottom: 18px; }

/* ---------- dark band ---------- */
.oc-night { background: var(--night); color: #e9e4da; }
.oc-night h2, .oc-night h3, .oc-night blockquote { color: #fff; }
.oc-night .oc-kicker, .oc-night .oc-note, .oc-night .oc-cap, .oc-night figcaption { color: #b9b2a5; }
.oc-night .oc-num b { color: #fff; }
.oc-night .oc-num span { color: #d6d0c4; }
.oc-night .oc-numbers { border-color: rgba(255,255,255,.5); }
.oc-night .oc-num + .oc-num { border-color: rgba(255,255,255,.14); }
.oc-night .oc-link { color: #fff; border-color: rgba(255,255,255,.3); }
.oc-night .oc-link:hover { border-color: #fff; color: #fff; }
.oc-night .oc-pull blockquote em { color: #ff8f86; }

/* full-bleed photo band */
.oc-band { position: relative; min-height: clamp(380px, 52vw, 620px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.oc-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,33,.15) 0%, rgba(31,36,33,.55) 45%, rgba(31,36,33,.92) 100%); }
.oc-band .rp-container { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 72px); }
.oc-band blockquote { margin: 0; max-width: 30ch; font: 400 clamp(28px, 3.6vw, 46px)/1.18 var(--display); color: #fff; text-wrap: balance; }
.oc-band figcaption, .oc-band p { margin-top: 16px; font-size: 15px; color: #e3ddd1; max-width: 60ch; }

/* ---------- feature grid (editorial columns) ---------- */
.oc-cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.oc-col { border-top: 2px solid var(--ink); padding-top: 22px; }
.oc-col h3 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.2; }
.oc-col > p { margin-top: 12px; font-size: 17px; }
.oc-col .oc-list { margin-top: 16px; }
.oc-col .oc-list li { font-size: 16px; padding-block: 10px; }
.oc-col .oc-list li::before { top: 19px; }
.oc-col__img { margin: 0 0 22px; }
.oc-col__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* feature rows: image + text alternating */
.oc-rows { display: grid; gap: clamp(56px, 8vw, 112px); }
.oc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.oc-row:nth-child(even) > .oc-fig { order: 2; }
.oc-row .oc-fig img { aspect-ratio: 5 / 4; box-shadow: var(--shadow); background: #fff; }
.oc-row .oc-fig--contain img { object-fit: contain; padding: 4%; }
.oc-row h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin-top: 12px; }
.oc-row__text > p:not(.oc-kicker) { margin-top: 16px; max-width: 56ch; }

/* ---------- story cards ---------- */
.oc-stories { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.oc-story { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--body); transition: transform .25s ease, box-shadow .25s ease; }
.oc-story:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(27,25,22,.06), 0 18px 40px rgba(27,25,22,.12); }
.oc-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.oc-story__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.oc-story__stat { font: 400 40px/1 var(--display); color: var(--red); margin-top: 4px !important; }
.oc-story__stat small { display: block; margin-top: 6px; font: 400 14px/1.4 var(--text); color: var(--mute); }
.oc-story h3 { font-size: 23px; line-height: 1.25; }
.oc-story__body > p:not([class]) { font-size: 16px; line-height: 1.55; }
.oc-story .oc-more { margin-top: auto; padding-top: 8px; font: 500 15px/1.3 var(--text); color: var(--ink); }
.oc-story:hover .oc-more { color: var(--red); }

/* ---------- steps (how it works) ---------- */
.oc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.oc-steps > li { counter-increment: step; position: relative; padding-top: 64px; }
.oc-steps > li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); font: 400 20px/42px var(--display); text-align: center; color: var(--ink); }
.oc-steps h3 { font-size: 24px; line-height: 1.2; }
.oc-steps p { margin-top: 10px; font-size: 17px; }
.oc-steps .oc-spec { margin-top: 14px; }
.oc-spec { display: inline-block; font: 400 12.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink); background: var(--paper-2); border: 1px solid var(--sand); border-radius: 999px; padding: 4px 11px; }
.oc-sec--band .oc-spec { background: var(--paper); }

/* chips: "grows with you" path */
.oc-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.oc-path > div { padding: clamp(22px, 3vw, 34px); }
.oc-path > div + div { border-left: 1px solid var(--sand); }
.oc-path h3 { font-size: 24px; line-height: 1.2; margin: 10px 0 10px; }
.oc-path p { font-size: 16px; }

/* industries index */
.oc-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.oc-index a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; }
.oc-index img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); transition: transform .3s ease; }
.oc-index a:hover img { transform: scale(1.015); }
.oc-index b { font: 400 22px/1.2 var(--display); color: var(--ink); }
.oc-index span { font-size: 15px; color: var(--mute); line-height: 1.45; }
.oc-index a:hover b { color: var(--red); }

/* callout box (certification etc.) */
.oc-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.oc-seal { width: 88px; height: 88px; border-radius: 50%; border: 1.5px solid var(--safe); display: grid; place-items: center; color: var(--safe); text-align: center; font: 500 12px/1.2 var(--mono); letter-spacing: .04em; }
.oc-seal b { display: block; font: 400 22px/1 var(--display); letter-spacing: 0; }
.oc-callout h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.oc-callout p { margin-top: 12px; max-width: 62ch; }

/* ---------- the near-miss, step by step (safety page) ----------
   A sticky plan view beside five steps. outcomes.js sets data-step on .oc-nm__stage for the step in view;
   without JS the stage stays on step 5 (the whole story at once) and the steps read as plain text. */
.oc-nm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.oc-nm__stage { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.oc-nm__card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(8px, 1.6vw, 16px); }
.oc-nm__card svg { display: block; width: 100%; height: auto; }
.oc-nm__stage figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mute); display: flex; flex-direction: column; gap: 2px; }
.oc-nm__cap { font: 500 16px/1.4 var(--text); color: var(--ink); min-height: 1.4em; }

.oc-nm__steps { list-style: none; margin: 0; padding: 0; }
.oc-nm__steps li { position: relative; padding: 0 0 36px 52px; transition: opacity .4s ease; }
.oc-nm__steps li::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 1.5px; border-radius: 2px; background: var(--sand); }
.oc-nm__steps li:last-child::before { display: none; }
.oc-nm__steps .oc-dot { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--sand-2); background: var(--paper); font: 600 15px/29px var(--display); text-align: center; color: var(--ink); transition: border-color .3s, background .3s, color .3s; }
.oc-nm__steps li.is-on .oc-dot { border-color: var(--red); background: var(--red); color: #fff; }
.oc-nm__steps li:last-child.is-on .oc-dot { border-color: var(--safe); background: var(--safe); }
.oc-nm__steps h3 { font-size: clamp(22px, 2.1vw, 26px); line-height: 1.2; margin-top: 10px; }
.oc-nm__steps p { margin-top: 8px; font-size: 17px; }
.oc-nm__steps .oc-spec { margin-top: 12px; }
/* With JS, each step gets room to scroll through and the one in view is emphasised. */
.oc-nm.is-js .oc-nm__steps li { min-height: 42vh; }
.oc-nm.is-js .oc-nm__steps li:last-child { min-height: 0; padding-bottom: 12vh; }
.oc-nm.is-js.has-on .oc-nm__steps li:not(.is-on) { opacity: .42; }

/* which layer does the work: small friendly pills, sentence case */
.oc-layer { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--text); color: var(--ink); background: var(--paper-2); border-radius: 999px; padding: 6px 11px 6px 9px; }
.oc-layer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.oc-layer--rtls { color: var(--body); }
.oc-layer--prox { color: var(--red-dark); background: var(--red-soft); }
.oc-layer--vehicle { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--sand-2); }

/* plan-view drawing */
.nm-floor { fill: var(--paper-2); }
.nm-lane { stroke: var(--sand-2); stroke-width: 2; stroke-dasharray: 10 12; stroke-linecap: round; }
.nm-rack { fill: #fff; stroke: var(--sand-2); stroke-width: 1.5; }
.nm-bay { stroke: var(--sand); stroke-width: 1.5; stroke-linecap: round; }
.nm-note { font: 500 13px var(--text); fill: var(--mute); }
.nm-anchor circle { fill: #fff; stroke: var(--ink); stroke-width: 1.75; }
.nm-anchor .nm-anchor__dot { fill: var(--red); stroke: none; }
.nm-ranges line { stroke: var(--mute); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0; transition: opacity .5s ease; }
.nm-body { fill: #fff; stroke: var(--ink); stroke-width: 1.75; }
.nm-cab { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.nm-driver { fill: var(--ink); }
.nm-wheel, .nm-mast { fill: var(--ink); }
.nm-forks { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.nm-tag { fill: var(--red); }
.nm-zone { fill: var(--red-soft); fill-opacity: .45; stroke: transparent; stroke-width: 1.75; transition: fill .45s, fill-opacity .45s, stroke .45s; }
.nm-person { fill: #fff; stroke: var(--ink); stroke-width: 1.75; }
.nm-head, .nm-shoulders { fill: var(--ink); }
.nm-truck__draw { transform: scale(1.2); }
.nm-badge { fill: var(--red); stroke: #fff; stroke-width: 1.2; }
.nm-ring { fill: none; stroke: var(--red); stroke-width: 1.75; opacity: 0; transition: opacity .4s; }
.nm-pill rect { fill: #fff; stroke: var(--sand-2); stroke-width: 1.25; }
.nm-pill text { font: 500 13.5px var(--text); fill: var(--ink); }
.nm-pill--warn rect { fill: var(--red-soft); stroke: transparent; }
.nm-pill--warn text { fill: var(--red-dark); }
.nm-pill--safe rect { fill: var(--safe-soft); stroke: transparent; }
.nm-pill--safe text { fill: var(--safe); }
.nm-say, .nm-after { opacity: 0; transition: opacity .4s ease; }
.nm-trail { fill: none; stroke: var(--mute); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .7; }
.nm-pin path { fill: var(--red); }
.nm-pin circle { fill: #fff; }

/* movement: the truck drives left to right along the aisle, the worker walks down the cross aisle */
.nm-truck, .nm-worker { transition: transform 1s cubic-bezier(.45, 0, .25, 1); }
.nm-truck { transform: translate(70px, 200px); }
.nm-worker { transform: translate(300px, 88px); }
.oc-nm__stage[data-step="1"] .nm-truck { transform: translate(130px, 200px); }
.oc-nm__stage[data-step="2"] .nm-truck, .oc-nm__stage[data-step="3"] .nm-truck { transform: translate(196px, 200px); }
.oc-nm__stage[data-step="4"] .nm-truck { transform: translate(214px, 200px); transition-duration: 1.4s; transition-timing-function: cubic-bezier(.1, .7, .2, 1); }
.oc-nm__stage[data-step="5"] .nm-truck { transform: translate(430px, 200px); transition-duration: 1.6s; }
.oc-nm__stage[data-step="1"] .nm-worker, .oc-nm__stage[data-step="2"] .nm-worker,
.oc-nm__stage[data-step="3"] .nm-worker, .oc-nm__stage[data-step="4"] .nm-worker { transform: translate(300px, 150px); }
.oc-nm__stage[data-step="5"] .nm-worker { transform: translate(300px, 330px); }

/* step 1 (RTLS): anchors find the worker */
.oc-nm__stage[data-step="1"] .nm-ranges line { opacity: .85; }
.oc-nm__stage[data-step="2"] .nm-ranges line, .oc-nm__stage[data-step="3"] .nm-ranges line,
.oc-nm__stage[data-step="4"] .nm-ranges line { opacity: .3; }
/* steps 2-4 (proximity sensing, vehicle control): the zone is active */
.oc-nm__stage[data-step="2"] .nm-zone, .oc-nm__stage[data-step="3"] .nm-zone,
.oc-nm__stage[data-step="4"] .nm-zone { fill-opacity: .9; stroke: var(--red); }
.oc-nm__stage[data-step="2"] .nm-ring, .oc-nm__stage[data-step="3"] .nm-ring,
.oc-nm__stage[data-step="4"] .nm-ring { opacity: .7; }
.oc-nm__stage[data-step="3"] .nm-ring--2, .oc-nm__stage[data-step="4"] .nm-ring--2 { opacity: .35; }
.oc-nm__stage[data-step="3"] .nm-say--alert, .oc-nm__stage[data-step="3"] .nm-say--buzz,
.oc-nm__stage[data-step="4"] .nm-say--slow { opacity: 1; }
/* step 5 (RTLS): path clear, back to full speed, close call saved */
.oc-nm__stage[data-step="5"] .nm-zone { fill: var(--safe-soft); fill-opacity: .8; stroke: var(--safe); }
.oc-nm__stage[data-step="5"] .nm-say--clear, .oc-nm__stage[data-step="5"] .nm-after { opacity: 1; }
.oc-nm__stage[data-step="5"] .nm-after { transition-delay: .5s; }

.oc-nm__stage[data-step="3"] .nm-ring--2 { transform-box: fill-box; transform-origin: center; animation: nmPing 1.3s ease-out infinite; }
@keyframes nmPing { from { transform: scale(.75); opacity: .5; } to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nm-truck, .nm-worker, .nm-say, .nm-after, .nm-zone, .nm-ring, .nm-ranges line, .oc-nm__steps li, .oc-nm__steps .oc-dot { transition: none !important; }
  .oc-nm__stage[data-step="3"] .nm-ring--2 { animation: none; }
}

/* ---------- a shift, played back (operations page) ----------
   Paths build up over a shift and the busy corner glows. outcomes.js drives it; without JS it shows the end of the shift. */
.oc-flow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.oc-flow__fig { margin: 0; }
.oc-flow__card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(8px, 1.6vw, 16px); }
.oc-flow__card svg { display: block; width: 100%; height: auto; }
.oc-flow__fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 62ch; }
.oc-scrub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 14px; padding: 0 4px; font-size: 14px; color: var(--mute); }
.oc-scrub[hidden] { display: none; }
.oc-scrub__play { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--sand-2); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.oc-scrub__play:hover { border-color: var(--ink); }
.oc-scrub__play svg { width: 14px; height: 14px; }
.oc-scrub__play .i-play { display: none; }
.oc-scrub__play[aria-pressed="false"] .i-play { display: block; }
.oc-scrub__play[aria-pressed="false"] .i-pause { display: none; }
.oc-scrub__track { position: relative; display: flex; flex-direction: column; gap: 6px; }
.oc-scrub input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 100%; }
.oc-scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--p), var(--sand) var(--p)); }
.oc-scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--p), var(--sand) var(--p)); }
.oc-scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--red); box-shadow: var(--shadow); }
.oc-scrub input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.oc-scrub__ends { display: flex; justify-content: space-between; font-size: 13px; }
.oc-scrub__now { font: 500 14px/1.3 var(--text); color: var(--ink); white-space: nowrap; min-width: 11ch; text-align: right; }
.oc-flow__key { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.oc-flow__key li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 17px; line-height: 1.5; }
.oc-flow__key b { color: var(--ink); font-weight: 600; }
.oc-flow__key svg { width: 34px; height: 24px; margin-top: 2px; }

.fl-floor { fill: var(--paper-2); }
.fl-rack { fill: #fff; stroke: var(--sand-2); stroke-width: 1.5; }
.fl-dock { fill: #fff; stroke: var(--sand-2); stroke-width: 1.5; }
.fl-note { font: 500 13px var(--text); fill: var(--mute); }
.fl-path { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.fl-path--truck { stroke: var(--red); stroke-opacity: .42; }
.fl-path--person { stroke: var(--ink); stroke-opacity: .3; }
.fl-heat { opacity: 1; }
.fl-dot { opacity: 0; }
.oc-flow.is-js .fl-dot { opacity: 1; }
.fl-dot--truck { fill: var(--red); }
.fl-dot--person { fill: var(--ink); }
.fl-dot circle { stroke: #fff; stroke-width: 2; }

/* ---------- reveal on scroll (added by outcomes.js; content is visible without JS) ---------- */
.oc-js .oc-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.oc-js .oc-rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .oc-js .oc-rv { opacity: 1; transform: none; transition: none; }
  .oc-story, .oc-index img, .oc-link .arr { transition: none; }
  .oc-story:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .oc-numbers { --n: 2 !important; }
  .oc-num:nth-child(3) { padding-left: 0; border-left: 0; }
  .oc-num:nth-child(n+3) { border-top: 1px solid var(--sand); }
  .oc-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .oc-trust li:nth-child(n+3) { border-top: 1px solid var(--sand); }
  .oc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-cols[style*="--n:4"], .oc-cols[style*="--n: 4"] { --n: 2 !important; }
}
@media (max-width: 900px) {
  .oc { font-size: 17px; }
  .oc-hero--split .rp-container, .oc-spread, .oc-spread--flip, .oc-spread--even, .oc-outcome, .oc-row { grid-template-columns: minmax(0, 1fr); }
  .oc-hero--split .oc-hero__fig img { aspect-ratio: 4 / 3; }
  .oc-outcome:nth-child(even) .oc-outcome__fig, .oc-row:nth-child(even) > .oc-fig { order: 0; }
  .oc-spread__side .oc-sticky { position: static; }
  .oc-cols, .oc-stories, .oc-steps { --n: 1 !important; }
  .oc-beats { grid-template-columns: minmax(0, 1fr); }
  .oc-path { grid-template-columns: minmax(0, 1fr); }
  .oc-path > div + div { border-left: 0; border-top: 1px solid var(--sand); }
  .oc-hero__fig img { aspect-ratio: 4 / 3; }
  .oc-nm, .oc-flow { grid-template-columns: minmax(0, 1fr); }
  .oc-nm__stage { top: calc(var(--nav-h) + 8px); z-index: 3; background: var(--paper); padding-bottom: 10px; }
  .oc-nm__stage figcaption > span:last-child { display: none; }
  .oc-nm.is-js .oc-nm__steps li { min-height: 38vh; }
  .oc-nm.is-js .oc-nm__steps li:last-child { min-height: 0; }
}
@media (max-width: 560px) {
  .oc-numbers { --n: 1 !important; }
  .oc-num, .oc-num + .oc-num { padding-left: 0; border-left: 0; }
  .oc-num + .oc-num { border-top: 1px solid var(--sand); }
  .oc-trust { grid-template-columns: minmax(0, 1fr); }
  .oc-trust li, .oc-trust li + li { padding-left: 0; border-left: 0; }
  .oc-trust li + li { border-top: 1px solid var(--sand); }
  .oc-callout { grid-template-columns: minmax(0, 1fr); }
  .oc-index { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .oc-index b { font-size: 19px; }
  .oc-actions .rp-btn { width: 100%; }
  .oc-nm__steps li { padding-left: 44px; }
  .oc-scrub__now { display: none; }
}
