/* Shared controls; A retains the current page's original stylesheet and artwork. */
.site-header { flex-wrap: wrap; gap: 20px; }
.menu-toggle { order: 4; }
.workflow ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.enhanced .workflow li { display: block; position: relative; padding: 0; border: 0; background: none; grid-column: auto; }
.enhanced .workflow li::before { display: none; }
.enhanced .workflow li:not(:last-child)::after { content: ''; position: absolute; z-index: 0; width: 24px; height: 2px; right: -24px; top: 68px; background: var(--line); }
.enhanced .workflow li[data-active="true"]::after, .enhanced .workflow li[data-passed="true"]::after { background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); background-size: 12px 12px; animation: route-flow 1s linear infinite; }
@keyframes route-flow { to { background-position: 12px 12px; } }
.workflow-step { display: block; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: white; color: var(--navy); text-align: left; cursor: pointer; position: relative; }
.workflow-step::before { content: counter(step, decimal-leading-zero); position: absolute; right: 14px; top: 14px; color: var(--body); font-size: 12px; }
.workflow-step:hover { border-color: var(--teal); }
.workflow-step[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 -4px var(--teal); }
.workflow-step svg, .workflow-detail > svg { width: 60px; height: 60px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.workflow .workflow-step strong { margin-top: 16px; font-size: 17px; }
.workflow .workflow-step span { font-size: 15px; line-height: 1.5; }
.workflow-detail { display: grid; grid-template-columns: 72px 1fr; align-items: start; gap: 24px; border-left: 3px solid var(--teal); padding: 24px; margin: 24px 0; background: white; color: var(--navy); }
.workflow-detail h3 { font-size: 22px; }
.workflow-detail p { max-width: 80ch; margin-top: 8px; font-size: 16px; color: var(--body); }

/* B: route-led operations editorial, asymmetric chapters and quiet rules. */
html[data-design="b"] .hero { background: white; }
html[data-design="b"] .hero-grid { width: min(1328px, calc(100% - 112px)); height: auto; margin: auto; padding: 56px 0; grid-template-columns: .85fr 1.15fr; gap: 40px; }
html[data-design="b"] .hero-copy { grid-area: auto; width: auto; margin: 0; padding: 0; }
html[data-design="b"] h1 { font-size: clamp(44px, 5vw, 72px); }
html[data-design="b"] .tracking-hero { grid-area: auto; width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: contain; }
html[data-design="b"] .primary-link { border-radius: 4px; }
html[data-design="b"] .hero-workflow { border-top: 1px solid var(--line); }
html[data-design="b"] .workflow-step { border-radius: 0; background: var(--ice); }
html[data-design="b"] .workflow-detail { background: var(--ice); }
html[data-design="b"] .premise { background: var(--ice); color: var(--navy); border-block: 1px solid var(--line); }
html[data-design="b"] .premise p { color: var(--body); }
html[data-design="b"] .premise h2 { font-size: 30px; }
html[data-design="b"] .stage { grid-template-columns: .85fr 1.15fr; column-gap: 64px; padding-block: 88px; }
html[data-design="b"] .stage-reverse { grid-template-columns: 1.15fr .85fr; padding-block: 0; }
html[data-design="b"] .chapter-label { padding-top: 20px; border-top: 3px solid var(--teal); }
html[data-design="b"] .chapter-label span { font-size: 24px; font-weight: 600; color: var(--teal); }
html[data-design="b"] .stage-heading h2 { font-size: clamp(34px, 3vw, 44px); }
html[data-design="b"] .stage-details { padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
html[data-design="b"] .stage-visual, html[data-design="b"] .collection-photo img { border-radius: 0; }
html[data-design="b"] .field-section { background: white; border-block: 1px solid var(--line); }
html[data-design="b"] .record-branches { gap: 32px; }
html[data-design="b"] .perspectives article { border-left: 2px solid var(--line); padding-left: 24px; }
html[data-design="b"] .question { background: var(--ice); padding-inline: 20px; border: 0; }

/* C: fleet-to-reporting, centered masthead, broad visual chapters and dark field band. */
html[data-design="c"] .hero { background: var(--navy); }
html[data-design="c"] .hero-grid { height: auto; padding: 40px 24px 0; justify-items: center; }
html[data-design="c"] .hero-copy { grid-area: auto; width: min(100%, 1000px); max-width: none; margin: 0; padding: 0; text-align: center; }
html[data-design="c"] .hero h1 { color: white; font-size: clamp(48px, 6vw, 80px); max-width: 1000px; }
html[data-design="c"] .hero-copy .eyebrow { color: white; letter-spacing: .08em; }
html[data-design="c"] .hero-intro { color: var(--ice); max-width: 580px; margin: 16px auto 0; }
html[data-design="c"] .primary-link { color: var(--navy); background: white; border-radius: 0; }
html[data-design="c"] .hero a:focus-visible { outline-color: white; }
html[data-design="c"] .tracking-hero { grid-area: auto; width: min(100%, 800px); height: auto; object-fit: contain; margin-top: 20px; }
html[data-design="c"] .hero-workflow { width: 100%; background: var(--ice); padding: 40px max(56px, calc((100% - 1200px) / 2)); }
html[data-design="c"] .workflow-step { border-radius: 0; }
html[data-design="c"] .premise { background: white; color: var(--navy); padding-block: 64px; }
html[data-design="c"] .premise-grid { grid-template-columns: 1fr 1fr; }
html[data-design="c"] .premise h2 { font-size: 42px; max-width: none; }
html[data-design="c"] .premise p { color: var(--body); }
html[data-design="c"] .stage { grid-template-areas: "heading intro" "visual visual" "detail detail" "support support" "question question"; gap: 32px 64px; }
html[data-design="c"] .stage-heading { align-self: start; }
html[data-design="c"] .stage-heading h2 { font-size: clamp(38px, 4vw, 58px); }
html[data-design="c"] .chapter-label { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
html[data-design="c"] .chapter-label span { font-size: 32px; color: var(--teal); font-weight: 600; }
html[data-design="c"] .stage-visual { width: min(100%, 1000px); justify-self: center; border-radius: 0; max-height: 600px; background: none; }
html[data-design="c"] .stage-details { border-radius: 0; padding: 32px; }
html[data-design="c"] .planning-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
html[data-design="c"] .planning-list > div + div { margin: 0; }
html[data-design="c"] .collection-photo { width: min(100%, 440px); justify-self: center; }
html[data-design="c"] .collection-photo img { border-radius: 0; }
html[data-design="c"] .field-section { background: var(--navy); color: white; }
html[data-design="c"] .field-section .stage-intro, html[data-design="c"] .field-section .chapter-label, html[data-design="c"] .field-section .chapter-label span, html[data-design="c"] .field-section .question p { color: var(--ice); }
html[data-design="c"] .field-section .stage-details { color: var(--navy); }
html[data-design="c"] .field-section summary:focus-visible { outline-color: white; }

@media (max-width: 1100px) and (min-width: 801px) {
  .site-header #site-nav { flex-basis: 100%; justify-content: center; order: 5; }
  html[data-design="b"] .hero-grid { width: calc(100% - 96px); gap: 24px; }
  html[data-design="b"] .stage { column-gap: 32px; }
  .workflow-step { padding: 14px 10px; }
}
@media (max-width: 800px) {
  .site-header { gap: 12px; }
  .workflow ol { grid-template-columns: 1fr; gap: 20px; }
  .enhanced .workflow li:not(:last-child)::after { top: auto; right: auto; bottom: -20px; left: 48px; width: 2px; height: 20px; }
  .workflow-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 18px; }
  .workflow-step svg { grid-row: 1 / 3; align-self: center; }
  .workflow .workflow-step strong { margin: 0 20px 0 0; }
  .workflow .workflow-step span { margin-top: 5px; }
  .workflow-step::before { font-size: 11px; right: 10px; top: 10px; }
  .workflow-detail { grid-template-columns: 1fr; gap: 8px; padding: 16px; margin-block: 16px; }
  .workflow-detail > svg { width: 44px; height: 44px; }
  html[data-design="b"] .hero-grid { width: calc(100% - 48px); grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  html[data-design="b"] .hero-copy { max-width: 580px; }
  html[data-design="b"] .stage, html[data-design="b"] .stage-reverse { grid-template-columns: 1fr; column-gap: 0; }
  html[data-design="b"] .stage { padding-block: 56px; }
  html[data-design="b"] .stage-reverse { padding-block: 0; }
  html[data-design="b"] .perspectives article { padding-left: 16px; }
  html[data-design="c"] .hero-grid { padding-top: 32px; }
  html[data-design="c"] .hero h1 { font-size: clamp(44px, 9vw, 64px); }
  html[data-design="c"] .hero-workflow { padding: 32px 24px; }
  html[data-design="c"] .premise-grid { grid-template-columns: 1fr; gap: 24px; }
  html[data-design="c"] .premise h2 { font-size: 34px; }
  html[data-design="c"] .stage { grid-template-areas: "heading" "intro" "visual" "detail" "support" "question"; gap: 24px; }
  html[data-design="c"] .stage-heading h2 { font-size: 38px; }
  html[data-design="c"] .stage-details { padding: 20px; }
  html[data-design="c"] .planning-list { grid-template-columns: 1fr; gap: 24px; }
  html:not(.enhanced) #site-nav { display: flex; position: static; flex-basis: 100%; flex-wrap: wrap; }
  html:not(.enhanced) .menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.enhanced .workflow li[data-active]::after { animation: none; }
}

.motion-toggle, .hero-choice { min-height: 44px; padding: 10px 16px; font: inherit; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.motion-toggle { margin-bottom: 20px; }
.motion-toggle:disabled { cursor: default; }
.hero-explorer { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-explorer[hidden] { display: none; }
.hero-explorer-label { flex-basis: 100%; font-size: 13px; font-weight: 500; letter-spacing: .04em; margin-bottom: 4px; }
.hero-choice:hover, .hero-choice[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: white; }
.hero-explorer-detail { flex-basis: 100%; max-width: 70ch; font-size: 17px; line-height: 1.6; margin-top: 12px; }
html[data-design="c"] .hero-explorer { justify-content: center; color: white; text-align: center; padding-block: 16px 24px; }
html[data-design="c"] .hero-explorer button:focus-visible { outline-color: white; }
.motion-art { position: relative; aspect-ratio: 3 / 2; }
.motion-art.tracking-hero { aspect-ratio: 10 / 7; }
.motion-art > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.motion-art:has(> svg) > img { opacity: 0; }
.motion-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.workflow-detail { grid-template-columns: minmax(150px, 260px) 1fr; }
.workflow-detail > .workflow-route { width: 100%; height: auto; stroke: none; stroke-linecap: round; stroke-linejoin: round; }
.motion-art .truck-motion { animation: truck-travel 18s cubic-bezier(.45,0,.55,1) infinite alternate; }
.workflow-truck-position { translate: 0 0; transition: translate .95s cubic-bezier(.22,1,.36,1); }
.route-motion { stroke-dasharray: 9 9; animation: route-dash 8s linear infinite; }
@keyframes truck-travel { from { translate: -4px 0; } to { translate: 4px 0; } }
@keyframes route-dash { to { stroke-dashoffset: -36; } }
@keyframes section-reveal { from { opacity: .65; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.revealed { animation: section-reveal .6s cubic-bezier(.22,1,.36,1) both; }
[data-motion="paused"] *, [data-motion="paused"] *::after { animation-play-state: paused !important; }
[data-motion="paused"] .revealed { animation: none; }
.workflow-step, .hero-choice, .motion-toggle { transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease; }
.workflow-step:hover:not([aria-pressed="true"]) { box-shadow: inset 0 -2px var(--teal); }
.hero-choice:hover { box-shadow: 0 2px 8px #102d4214; }
.motion-toggle:not(:disabled):hover { border-color: var(--teal); background: var(--ice); }
@media (max-width: 800px) { .workflow-detail { grid-template-columns: 1fr; } .workflow-detail > .workflow-route { max-width: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .truck-motion, .route-motion, .revealed { animation: none !important; }
  .workflow-step, .hero-choice, .motion-toggle, .workflow-truck-position { transition: none; }
}
