/* Nibro International LLC

   Open-source code adapted in this file (full notices in assets/LICENCIAS.txt):
   - Process stepper (.steps rail and boxes): adapted from Preline UI "Responsive stepper",
     Copyright (c) 2026 Preline Labs Ltd., MIT License, https://preline.co
   - Company details list (.facts) and contact form layout (.quote-form): adapted from HyperUI
     "Details list 1" and "Contact form 5", Copyright (c) Mark Mead, MIT License, https://www.hyperui.dev
   - Arrowheads: technique from MDN's SVG <marker> example (CC0), redrawn here as CSS clip-path heads.
   - Draw-once line animation: CSS-Tricks "How SVG Line Animation Works", https://css-tricks.com/license/
   - prefers-reduced-motion pattern: MDN example (CC0).
   Pictograms: Lucide, Copyright (c) 2026 Lucide Icons and Contributors, ISC License (sprite in index.html). */

:root {
  --ink: #10212B;
  --orange: #E8501E;        /* lines, Nibro, purchase order, active step (graphics only) */
  --orange-text: #B83D12;   /* orange for text and for the button with white text (5.65:1 on white) */
  --orange-hover: #9C3310;
  --sea: #1F6F8B;           /* goods flow, transport pictograms */
  --slate: #5B6B73;         /* documents and invoices, secondary text */
  --white: #FFFFFF;
  --cool: #EEF3F4;
  --tint-o: #FCEDE6;
  --tint-b: #E3F0F4;
  --life: #7A8990;          /* lifelines, axis rules, inactive rail: 3:1 on white, cool and orange tint */
  --rule: #C9D3D6;
  --on-ink-2: #AFC0C7;
  --error: #A3321A;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 112px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li, .figcap-text, .count-u { text-wrap: pretty; }
.term-name, .doc-name, .docs-file-name, .party-name, .route-end-name, .fan-list span { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.facts-band :focus-visible { outline-color: var(--orange); }
::selection { background: var(--ink); color: var(--white); }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* All pictograms share one stroke: 2px at any size */
.ico {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
symbol * { vector-effect: non-scaling-stroke; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: var(--white);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Small tracked capitals: only for labels inside diagrams */
.pill, .lane-h, .sale > span, .axis, .note-tag, .sheet-code, .box-code, .who, .filebar-k > span:first-child, .zoom-tag span, .mode-title, .rel-mode,
.stage-axis, .lanes-quote-k, .addon-tag, .ior-mode, .term-tag {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.15;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 0;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-primary { background: var(--orange-text); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
  font-size: 1.3125rem; line-height: 1;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--ink); color: var(--white);
  border-bottom: 4px solid var(--orange);
}
.brand-mark .ico { width: 20px; height: 20px; }
.brand-name { font-weight: 750; font-stretch: 112%; letter-spacing: -0.01em; }
.brand-sub { font-weight: 450; color: var(--slate); margin-left: -4px; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  font-weight: 550; font-size: 0.96875rem; text-decoration: none; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 2px solid var(--ink); }
.lang-btn {
  min-width: 40px; height: 32px; padding: 0 8px;
  border: 0; background: var(--white); color: var(--ink);
  font-weight: 650; font-size: 0.8125rem; letter-spacing: 0.04em; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.header-cta { white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--ink); background: var(--white); cursor: pointer;
  position: relative;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  position: absolute; left: 11px; width: 18px; height: 2px; background: var(--ink); content: "";
}
.menu-toggle-bars { top: 19px; }
.menu-toggle-bars::before { top: -6px; left: 0; }
.menu-toggle-bars::after { top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Sections, bands, heads ---------- */

.section { padding-block: var(--section-y); position: relative; }
.band-cool { background: var(--cool); }
.band-blue { background: var(--tint-b); }

.sec-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(32px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.count {
  grid-row: 1 / span 2;
  display: flex; align-items: flex-end; gap: 16px;
  line-height: 1;
}
.count-n {
  font-size: clamp(6rem, 3rem + 9vw, 12.5rem);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 0.74;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.count-u {
  max-width: 15ch;
  padding-bottom: 4px;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  color: var(--slate);
}
.sec-title {
  grid-column: 2;
  max-width: 18ch;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.sec-head--plain { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
.sec-head--plain .sec-title { grid-column: 1; max-width: 22ch; }
.sec-head--plain .sec-lead { grid-column: 1; margin-top: 20px; }
.sec-lead {
  grid-column: 2;
  margin-top: 16px;
  max-width: 38rem;
  font-size: 1.1875rem; line-height: 1.5;
  color: var(--slate);
}
.band-cool .sec-lead, .band-blue .sec-lead { color: #4E5E66; }

.fig { position: relative; }
.figcap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin-top: 16px;
  font-size: 0.9375rem; color: var(--slate);
}
.band-cool .figcap, .band-blue .figcap { color: #4E5E66; }
.figcap-text { flex: 1 1 22rem; max-width: 44rem; }

/* Tiles: large pictograms on tinted squares */
.tile {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  background: var(--tint-b); color: var(--ink);
  flex: none;
}
.tile .ico { width: 36px; height: 36px; }
.tile--ink { background: var(--ink); color: var(--white); border-bottom: 4px solid var(--orange); }

/* Margin notes: a benefit pinned to the figure that proves it */
.note {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
  font-size: 0.9375rem; line-height: 1.45;
  color: var(--ink);
  max-width: 30rem;
}
.note strong { font-weight: 700; }
.note-tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
  color: var(--slate);
}
.note-tag::before { content: ""; width: 8px; height: 8px; background: var(--ink); }

/* Legend keys: line samples that match the figure */
.legend, .legend-short { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; color: var(--ink); }
.legend-short { display: none; }
.key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.key::before { content: ""; width: 28px; height: 0; }
.key--goods::before { border-top: 4px solid var(--sea); }
.key--po::before { border-top: 3px solid var(--orange); }
.key--doc::before { border-top: 2px dashed var(--slate); }

/* =========================================================
   FLOW PLATE (hero and model): three parties, lanes of arrows.
   Every connector is a CSS line inside a grid cell that runs from
   one party's centre line to another's, so it stays attached at
   any width and in either language.
   ========================================================= */

.plate { position: relative; background: var(--white); }

.flow {
  --lab: 0px;
  --pad: 24px;
  padding: 20px var(--pad) 24px;
  border-top: 4px solid var(--ink);
}
.flow--model { --lab: 7.25rem; }

.flow-bands, .flow-parties, .flow-lifelines, .lane, .flow-sales {
  display: grid;
  grid-template-columns: var(--lab) repeat(6, minmax(0, 1fr));
}
.flow-bands {
  position: absolute; top: 0; bottom: 0; left: var(--pad); right: var(--pad);
  pointer-events: none;
}
.flow-bands i:nth-child(1), .flow-parties > :nth-child(1), .flow-lifelines i:nth-child(1) { grid-column: 2 / 4; }
.flow-bands i:nth-child(2), .flow-parties > :nth-child(2), .flow-lifelines i:nth-child(2) { grid-column: 4 / 6; }
.flow-bands i:nth-child(3), .flow-parties > :nth-child(3), .flow-lifelines i:nth-child(3) { grid-column: 6 / 8; }
.flow-bands i { grid-row: 1; }
.flow-bands .is-nibro { background: var(--tint-o); }

.flow-parties { position: relative; }
.party {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.party-name { font-weight: 700; font-size: 1rem; line-height: 1.15; }
.party .tile { width: 80px; height: 80px; position: relative; z-index: 1; }
.party .tile .ico { width: 46px; height: 46px; }
.party-name { font-size: 1.0625rem; }
.party--nibro .tile { background: var(--ink); color: var(--white); border-bottom: 5px solid var(--orange); }

.flow-body { position: relative; padding-block: 6px; }
.flow-lifelines { position: absolute; inset: 0; pointer-events: none; }
.flow-lifelines i { position: relative; grid-row: 1; }
.flow-lifelines i::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: var(--life);
}

.flow-lanes { position: relative; }
.lane { min-height: 62px; }
.lane-h {
  grid-column: 1 / 2; grid-row: 1;
  align-self: center;
  padding-right: 12px;
  color: var(--slate);
}

.sn { grid-column: 3 / 5; }
.nc { grid-column: 5 / 7; }
.sc { grid-column: 3 / 7; }
.lane .arrow { grid-row: 1; }

.arrow {
  --c: var(--slate);
  --w: 2px;
  --head: 12px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 62px;
  padding: 8px calc(var(--head) + 8px);
}
.arrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: var(--w) solid var(--c);
  transform: translateY(-50%);
}
.arrow::after {
  content: ""; position: absolute; top: 50%;
  width: var(--head); height: var(--head);
  margin-top: calc(var(--head) / -2);
  background: var(--c);
}
.to-right::before { right: 4px; transform-origin: left center; }
.to-left::before { left: 4px; transform-origin: right center; }
.to-right::after { right: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.to-left::after { left: 0; clip-path: polygon(100% 0, 0 50%, 100% 100%); }

.is-goods { --c: var(--sea); --w: 5px; --head: 16px; }
.is-po { --c: var(--orange); --w: 3px; --head: 14px; }
.is-doc::before { border-top-style: dashed; }

.pill {
  position: relative; z-index: 1;
  display: inline-block;
  max-width: 100%;
  padding: 6px 12px 5px;
  font-size: 0.78125rem;
  background: var(--white);
  border: 2px solid var(--c);
  border-radius: 999px;
  text-align: center;
  color: var(--ink);
}
.is-goods .pill { color: var(--sea); }
.is-po .pill { color: var(--orange-text); }
.is-doc .pill { border-style: dashed; }
.pill .short { display: none; }
/* a flow that passes Nibro without stopping: its label sits in the supplier half, clear of Nibro's lifeline */
.arrow.sc .pill { left: -25%; max-width: calc(50% - 20px); }

.flow-sales { position: relative; }
.sale {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  height: 34px;
}
.sale::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
  border: 2px solid var(--ink); border-top: 0;
}
.sale > span { position: relative; padding: 2px 8px; background: var(--white); color: var(--ink); font-weight: 750; }
.sale.is-other::before { border-color: var(--slate); }
.sale.is-other > span { color: var(--slate); }
.sale .short, .header-cta .short { display: none; }

/* =========================================================
   HERO LANE: two origins merge into one line (origin, transit,
   arrival, delivery), held by one quote. Connectors are CSS lines
   inside each stage, so they stay attached at any width.
   ========================================================= */

.lanes {
  --pad: 24px;
  --t: 64px;        /* tile on the line */
  --ot: 52px;       /* origin tiles */
  --og: 24px;       /* gap between the two origins */
  --in: 24px;       /* incoming connector with its arrowhead */
  --lw: 5px;        /* line weight: goods flow */
  padding: 20px var(--pad) 24px;
  border-top: 4px solid var(--ink);
}
.lanes-stages {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: auto calc(var(--ot) * 2 + var(--og)) auto;
}
.stage { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; min-width: 0; }
.stage-axis { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-right: 10px; color: var(--slate); white-space: nowrap; }
.stage-axis::after { content: ""; flex: 1; min-width: 0; height: 2px; background: var(--life); }

.stage-mark { display: flex; align-items: center; min-width: 0; }
/* incoming line with its head, pointing at the tile */
.stage-mark::before {
  content: ""; flex: 0 0 var(--in); align-self: center;
  height: 16px; background: var(--sea);
  clip-path: polygon(0 calc(50% - var(--lw) / 2), calc(100% - 14px) calc(50% - var(--lw) / 2), calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, calc(100% - 14px) calc(50% + var(--lw) / 2), 0 calc(50% + var(--lw) / 2));
  transform-origin: left center;
}
/* outgoing line to the next stage */
.stage-mark::after { content: ""; flex: 1 1 0; min-width: 6px; height: var(--lw); background: var(--sea); transform-origin: left center; }
.stage--dest .stage-mark::after { display: none; }
.stage .tile { position: relative; width: var(--t); height: var(--t); color: var(--ink); }
.stage .tile .ico { width: 36px; height: 36px; }
.stage .tile--wide { width: auto; gap: 12px; grid-auto-flow: column; padding: 0 14px; }
.stage .tile--dest { background: var(--ink); color: var(--white); border-bottom: 4px solid var(--orange); }

/* origins: two tiles, each line runs right into one vertical bar */
.stage--origin .stage-mark { display: block; }
.stage--origin .stage-mark::before, .stage--origin .stage-mark::after { display: none; }
.origins { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.origin { display: grid; grid-template-columns: var(--ot) minmax(0, 1fr); align-items: center; min-width: 0; }
.origin .tile { grid-column: 1; grid-row: 1; width: var(--ot); height: var(--ot); }
.origin .tile .ico { width: 30px; height: 30px; }
.origin::after { content: ""; grid-column: 2; grid-row: 1; height: var(--lw); background: var(--sea); transform-origin: left center; }
/* the label rides on its line: above for the first origin, below for the second */
.origin-name { grid-column: 2; grid-row: 1; padding: 0 8px 0 10px; font-weight: 700; font-size: 0.9375rem; line-height: 1.15; white-space: nowrap; }
.origin:first-child .origin-name { align-self: start; }
.origin:last-child .origin-name { align-self: end; }
.origins::after {
  content: ""; position: absolute; right: 0;
  top: calc(var(--ot) / 2 - var(--lw) / 2); bottom: calc(var(--ot) / 2 - var(--lw) / 2);
  width: var(--lw); background: var(--sea);
  transform-origin: center top;
}
.origin-name .short, .stage-sub .short { display: none; }

.stage-text { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-right: 10px; }
.stage:not(.stage--origin) .stage-text { padding-left: var(--in); }
.stage-name { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.stage-sub { font-size: 0.875rem; line-height: 1.35; color: var(--slate); }

/* one quote holds the whole route: a tray under the stages */
.lanes-quote {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  margin-top: 34px; padding: 14px 20px 13px;
  background: var(--ink); color: var(--white);
  border-bottom: 5px solid var(--orange);
}
.lanes-quote::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 16px; border: 2px solid var(--ink); border-top: 0;
}
.lanes-quote-k { color: var(--on-ink-2); }
.lanes-quote-list { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.lanes-quote-list li { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1rem; line-height: 1.25; }
.lanes-quote-list li::before { content: ""; width: 7px; height: 7px; background: var(--orange); flex: none; }

.note--hero { margin-top: 20px; border-left-color: var(--orange); max-width: 32rem; }
.note--hero .note-tag::before { background: var(--orange); }

/* Hero load sequence: the goods line draws once, origin to delivery, then the quote appears */
@media (prefers-reduced-motion: no-preference) {
  .lanes .origin::after, .lanes .stage-mark::before, .lanes .stage-mark::after { animation: grow-x .45s cubic-bezier(.2,.7,.2,1) both; }
  .lanes .origins::after { animation: grow-y .3s ease-out both; animation-delay: .45s; }
  .lanes .origin::after { animation-delay: .15s; }
  .lanes .stage--transit .stage-mark::before { animation-delay: .7s; }
  .lanes .stage--transit .stage-mark::after { animation-delay: .85s; }
  .lanes .stage--entry .stage-mark::before { animation-delay: 1.15s; }
  .lanes .stage--entry .stage-mark::after { animation-delay: 1.3s; }
  .lanes .stage--dest .stage-mark::before { animation-delay: 1.6s; }
  .lanes-quote, .note--hero { animation: label-in .4s ease-out both; animation-delay: 1.85s; }
  .note--hero { animation-delay: 2s; }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes label-in { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }

/* =========================================================
   HERO
   ========================================================= */

.hero { --hero-pb: clamp(48px, 6vw, 80px); background: var(--cool); padding-block: clamp(28px, 4vw, 56px) var(--hero-pb); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.7fr) minmax(0, 7.3fr);
  grid-template-areas: "title fig" "lead fig" "actions fig";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.hero-title {
  grid-area: title;
  font-size: clamp(2.5rem, 1rem + 2.9vw, 3.625rem);
  font-weight: 750;
  font-stretch: 82%;
  line-height: 0.98;
  letter-spacing: -0.025em;
  padding-top: 8px;
}
:lang(es) .hero-title { font-size: clamp(2.25rem, 1rem + 2.4vw, 3.25rem); }
.hero-lead { grid-area: lead; margin-top: 24px; max-width: 30rem; font-size: 1.1875rem; line-height: 1.5; color: #44545C; }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { padding: 0 20px; }
.hero-fig { grid-area: fig; }
.hero-fig .plate { box-shadow: none; }

/* =========================================================
   SERVICES: the route
   ========================================================= */

.stations-wrap {
  --axis: 40px;
  --t: 72px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: var(--axis);
}
.route-line {
  position: absolute;
  left: calc(var(--sp, 24px) + var(--t) / 2);
  right: calc(100% / 6 - var(--sp, 24px) - var(--t) / 2);
  top: calc(var(--axis) + var(--t) / 2 - 2px);
  height: 4px; background: var(--orange);
}
.stations { grid-column: 1 / 6; display: grid; grid-template-columns: subgrid; }
.st { position: relative; padding: 0 18px 0 24px; }
.st .tile { width: var(--t); height: var(--t); position: relative; z-index: 1; }
.st .tile .ico { width: 40px; height: 40px; color: var(--sea); }
.axis {
  position: absolute; top: calc(var(--axis) * -1 + 6px); left: 24px;
  width: calc(200% - 24px);
  display: flex; align-items: center; gap: 10px;
  color: var(--slate);
}
.axis::after { content: ""; flex: 1; height: 2px; background: var(--life); }
.st-name { margin-top: 16px; font-size: 1.1875rem; font-weight: 700; line-height: 1.15; }
.st-line { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: #44545C; }
.mini-truck {
  position: absolute; z-index: 1;
  top: calc(var(--t) / 2 - 15px);
  left: calc(50% + 60px - 21px);
  display: grid; place-items: center;
  width: 42px; height: 30px;
  background: var(--white); color: var(--sea);
}
.mini-truck .ico { width: 26px; height: 26px; }
.route-end { grid-column: 6; position: relative; padding-left: 24px; }
.route-end .tile { width: var(--t); height: var(--t); position: relative; z-index: 1; background: var(--ink); color: var(--white); }
.route-end .tile .ico { width: 40px; height: 40px; }
.route-end-name { display: block; margin-top: 16px; font-size: 1.125rem; font-weight: 700; line-height: 1.15; }

.zoom {
  position: relative;
  margin-top: 44px;
  margin-left: calc(100% / 6);
  padding: 24px;
  background: var(--tint-b);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 36px;
  align-items: start;
}
.zoom::before {
  content: ""; position: absolute; bottom: 100%;
  left: calc(20% + 24px + 36px - 14px);
  width: 28px; height: 16px;
  background: var(--tint-b);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.zoom-tag { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--sea); }
.zoom-tag span { color: var(--ink); }
.boxes { display: contents; }
.box-k { margin-top: 10px; font-size: 0.9375rem; line-height: 1.4; }
.box-code { margin-right: 6px; padding: 2px 6px; background: var(--ink); color: var(--white); }
.cont { display: block; width: 100%; height: auto; overflow: visible; }
.cont-shell { fill: none; stroke: var(--ink); stroke-width: 3; }
.cont-ribs { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .35; }
.cont-base { stroke: var(--ink); stroke-width: 3; }
.cont-load { stroke: var(--white); stroke-width: 2; }
.cont-load--full, .cont-load--yours { fill: var(--sea); }
.cont-load--other { fill: var(--rule); }
.zoom-key { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.875rem; }
.zoom-swatch { width: 16px; height: 16px; background: var(--sea); }
.note--wh { margin-top: 16px; font-size: 0.875rem; }
@media (min-width: 900px) {
  .stations-wrap { --note-space: calc(24px + 9.5rem); padding-bottom: var(--note-space); }
  .stations .st:nth-child(2) { position: static; }
  .stations .st:nth-child(2)::after {
    content: ""; position: absolute; left: calc(100% / 6 + 7px); width: 2px;
    top: calc(var(--axis) + var(--t) / 2); bottom: calc(var(--note-space) - 24px);
    background: var(--ink);
  }
  .note--wh {
    position: absolute; margin: 0;
    top: calc(100% - var(--note-space) + 24px);
    left: calc(100% / 6 + 7px);
    width: calc(100% / 3 - 31px);
    max-width: 30rem;
  }
  .zoom { margin-top: 20px; }
}
.note--wh strong { display: block; }

/* Procurement: an optional layer on top of the same route */
.addon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "tag tag tag" "tile text link";
  align-items: center;
  column-gap: 24px;
  margin-top: 28px;
  padding: 18px 24px 22px;
  background: var(--tint-o);
  border-left: 8px solid var(--orange);
}
.addon-tag { grid-area: tag; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--orange-text); }
.addon-tag::before { content: "+"; font-size: 1.125rem; font-weight: 700; line-height: 0.8; }
.addon .tile--ink { grid-area: tile; width: 64px; height: 64px; }
.addon .tile--ink .ico { width: 36px; height: 36px; }
.addon-text { grid-area: text; }
.addon-title { font-size: 1.375rem; font-weight: 700; font-stretch: 95%; line-height: 1.15; }
.addon-text p { margin-top: 4px; max-width: 42rem; color: #44545C; }
.addon-link { grid-area: link; font-weight: 650; text-underline-offset: 4px; color: var(--orange-text); white-space: nowrap; }
.addon-link:hover { color: var(--orange-hover); }
.addon-link::after { content: "\00a0\2192"; }

/* =========================================================
   MODEL: switch, lanes, notes, 5 versus 1
   ========================================================= */

.switch { display: inline-flex; margin-bottom: 16px; border: 2px solid var(--ink); background: var(--white); }
.switch-btn {
  min-height: 46px; padding: 0 18px;
  border: 0; background: transparent; color: var(--ink);
  font-weight: 650; font-size: 0.96875rem; cursor: pointer;
}
.switch-btn + .switch-btn { border-left: 2px solid var(--ink); }
.switch-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.switch-btn[aria-pressed="true"]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px;
  background: var(--white); vertical-align: 1px;
}
.no-js .switch { display: none; }

#options { background: var(--cool); }
.model-fig .plate { padding-bottom: 20px; }
/* one switch state for the page: the model and the process follow it (JS sets data-mode on every .moded figure) */
.mode-title { display: none; }
.no-js .mode-title { display: inline-block; position: relative; z-index: 1; margin: 18px 0 4px; padding: 2px 6px 2px 0; background: var(--white); color: var(--slate); }
.js .moded[data-mode="proc"] .mode--log,
.js .moded[data-mode="log"] .mode--proc { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .moded .mode { animation: fade-in .2s ease-out; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lane--cont .arrow { grid-row: 1; }

.rel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 22px 24px 26px;
  background: var(--white);
  border-top: 2px solid var(--ink);
}
.model-fig { margin-bottom: clamp(56px, 7vw, 96px); }
.rel-mode { display: none; color: var(--slate); margin-bottom: 8px; }
.no-js .rel-mode { display: block; }
.js .model-fig[data-mode="log"] .rel-item[data-for="proc"],
.js .model-fig[data-mode="proc"] .rel-item[data-for="log"] { display: none; }
.rel-item h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; line-height: 1.2; }
.rel-item p { margin-top: 6px; font-size: 0.9375rem; color: var(--slate); }
.rel-glyph { position: relative; display: block; width: 56px; height: 32px; }
.rel-glyph--sale::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 14px; border: 2px solid var(--ink); border-top: 0; }
.rel-glyph--sale::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); }
.rel-glyph--one::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 14px; border: 2px solid var(--slate); border-top: 0; }
.rel-glyph--nibro { display: grid; place-items: center; width: 32px; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--orange); }
.rel-glyph--nibro .ico { width: 20px; height: 20px; }
.rel-glyph--doc::before { content: ""; position: absolute; left: 0; right: 10px; top: 15px; border-top: 2px dashed var(--slate); }
.rel-glyph--doc::after { content: ""; position: absolute; right: 0; top: 10px; width: 12px; height: 12px; background: var(--slate); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.rel-glyph--switch { display: flex; width: 56px; height: 32px; border: 2px solid var(--ink); }
.rel-glyph--switch i { flex: 1; }
.rel-glyph--switch i:last-child { background: var(--ink); }

/* Importer of record: two record cards, one broker for both */
.sub-title {
  max-width: 26ch;
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.25rem);
  font-weight: 700; font-stretch: 92%;
  line-height: 1.05; letter-spacing: -0.015em;
}
.ior { margin-bottom: clamp(56px, 7vw, 96px); }
.ior-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ior-card { display: flex; flex-direction: column; padding: 22px 28px 26px; background: var(--white); border-top: 4px solid var(--slate); }
.ior-card--nibro { border-top-color: var(--ink); }
.ior-mode { color: var(--slate); }
.ior-card--nibro .ior-mode { color: var(--ink); }
.ior-fields { margin-top: 14px; border: 2px solid var(--ink); }
.ior-fields > div { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 12px 16px; }
.ior-fields > div + div { border-top: 2px dashed var(--life); }
.ior-fields dt { font-size: 0.875rem; color: var(--slate); }
.ior-fields dd { font-weight: 650; line-height: 1.25; }
.ior-key { background: var(--cool); }
.ior-key dd { font-size: 1.375rem; font-weight: 750; font-stretch: 95%; line-height: 1.15; }
.ior-val { box-shadow: inset 0 -8px 0 rgba(31, 111, 139, .28); }
.ior-card--nibro .ior-val { box-shadow: inset 0 -8px 0 var(--orange); }
.ior-d { margin-top: 14px; font-size: 0.9375rem; color: var(--slate); max-width: 34rem; }
.ior-merge { position: relative; height: 22px; margin: 0 calc(25% - 6px); border: 2px solid var(--ink); border-top: 0; }
.ior-merge::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 16px; margin-left: -1px; background: var(--ink); }
.ior-broker { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.ior-broker .tile { width: 56px; height: 56px; }
.ior-broker .tile .ico { width: 30px; height: 30px; }
.ior-broker-text { display: flex; flex-direction: column; gap: 2px; }
.ior-broker-text strong { font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.ior-broker-text > span { font-size: 0.9375rem; color: #4E5E66; }
.ior-fig .figcap { justify-content: center; text-align: center; }

/* 5 versus 1: strict symmetry, same rows, same height */
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cmp-panel { background: var(--white); padding: 24px 28px 28px; border-top: 4px solid var(--slate); }
.cmp-panel--nibro { border-top-color: var(--ink); }
.cmp-title { font-size: 1.375rem; font-weight: 700; font-stretch: 95%; margin-bottom: 20px; }

.fan {
  display: grid;
  grid-template-columns: 7.5rem minmax(2.5rem, 1fr) minmax(9rem, 1.6fr);
  grid-template-rows: repeat(5, 52px);
}
.fan-hub {
  grid-column: 1; grid-row: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 8px;
  background: var(--cool);
  border: 2px solid var(--ink);
  text-align: center; font-weight: 700; font-size: 0.9375rem; line-height: 1.15;
}
.fan-hub .tile { width: 56px; height: 56px; background: var(--white); }
.fan-hub .tile .ico { width: 32px; height: 32px; }
.fan-list { grid-column: 2 / 4; grid-row: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.fan-list li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.fan-list li::before {
  content: ""; height: 2px; background: var(--slate);
  transform-origin: left center;
}
.fan-list li span {
  display: flex; align-items: center;
  min-height: 40px; padding: 4px 12px;
  border: 2px solid var(--slate);
  font-size: 0.9375rem; font-weight: 550; line-height: 1.15;
}
.fan-one {
  grid-column: 2; grid-row: 3;
  align-self: center;
  height: 4px; background: var(--orange);
  transform-origin: left center;
}
.fan-block {
  grid-column: 3; grid-row: 1 / -1;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--ink); color: var(--white);
  border-bottom: 5px solid var(--orange);
}
.fan-block-name { padding: 8px 14px 0; font-weight: 750; font-stretch: 112%; font-size: 1.0625rem; }
.fan-block-list { display: grid; grid-template-rows: repeat(5, 1fr); padding: 4px 14px 8px; }
.fan-block-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; border-top: 1px solid rgba(255,255,255,.18); }
.fan-block-list li:first-child { border-top: 0; }
.fan-block-list li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; }

.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--rule); }
.tally-i { display: flex; flex-direction: column; font-size: 0.9375rem; font-weight: 550; line-height: 1.25; color: var(--slate); }
.tally-n {
  display: block; width: max-content;
  font-size: clamp(4.5rem, 2rem + 5vw, 7.5rem);
  font-weight: 300; font-stretch: 125%;
  line-height: 0.85; letter-spacing: -0.04em;
  color: #6E7D84;
  margin-bottom: 8px;
}
.tally--one .tally-i { color: var(--ink); }
.tally--one .tally-n { color: var(--ink); font-weight: 400; box-shadow: inset 0 -10px 0 var(--orange); padding-right: 4px; }

/* draw once on entering the screen (JS adds .is-armed, then .is-in) */
@media (prefers-reduced-motion: no-preference) {
  .cmp-fig.is-armed .fan-list li::before, .cmp-fig.is-armed .fan-one { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .cmp-fig.is-armed.is-in .fan-list li::before, .cmp-fig.is-armed.is-in .fan-one { transform: scaleX(1); }
  .cmp-fig.is-armed .fan-list li:nth-child(2)::before { transition-delay: .08s; }
  .cmp-fig.is-armed .fan-list li:nth-child(3)::before { transition-delay: .16s; }
  .cmp-fig.is-armed .fan-list li:nth-child(4)::before { transition-delay: .24s; }
  .cmp-fig.is-armed .fan-list li:nth-child(5)::before { transition-delay: .32s; }
  .cmp-fig.is-armed .fan-one { transition-delay: .4s; }
}

/* =========================================================
   QUOTE: an equation
   ========================================================= */

.eq {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 28px;
  align-items: center;
}
.eq-terms { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(14px, 1.8vw, 28px); }
.term {
  flex: 0 1 auto; min-width: 0;
  display: grid; grid-template-columns: auto minmax(min-content, max-content); grid-template-rows: auto auto;
  column-gap: clamp(14px, 1.8vw, 28px); align-items: end;
}
.term:first-child { column-gap: 0; }
.term-ico { grid-column: 2; grid-row: 1; width: 34px; height: 34px; margin-bottom: 12px; color: var(--sea); }
.term-name {
  grid-column: 2; grid-row: 2;
  font-size: clamp(1.625rem, 0.6rem + 1.7vw, 2.375rem); font-weight: 700; font-stretch: 84%;
  line-height: 0.98; letter-spacing: -0.02em;
}
.op { font-size: clamp(2.5rem, 1.2rem + 2.6vw, 4rem); font-weight: 250; font-stretch: 125%; line-height: 0.8; color: var(--slate); }
.term .op { grid-column: 1; grid-row: 2; }
.op--eq { grid-column: 1; grid-row: 2; color: var(--ink); font-weight: 400; }
/* the goods: only with procurement, so an open (dashed) slot */
.term--opt { grid-template-rows: auto auto auto; }
.term--opt .term-tag { grid-column: 2; grid-row: 1; margin-bottom: 8px; color: var(--orange-text); }
.term--opt .term-ico { grid-row: 2; color: var(--orange-text); }
.term--opt .op, .term--opt .term-name { grid-row: 3; }
.term--opt .term-name { padding: 2px 10px 5px; border: 2px dashed var(--orange-text); }
.eq-result { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; background: var(--ink); color: var(--white); border-bottom: 5px solid var(--orange); }
.eq-total { display: flex; align-items: center; gap: 16px; padding: 22px 22px 18px; font-size: 1.5rem; font-weight: 700; font-stretch: 92%; line-height: 1.12; }
.tile--pin-res { width: 60px; height: 60px; background: transparent; color: var(--white); border: 2px solid var(--white); }
.note--eq { margin: 22px; color: var(--white); border-left-color: var(--orange); }

/* =========================================================
   DOCUMENT TRAIL
   ========================================================= */

.docs {
  --spine: 28px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: var(--spine) auto auto auto;
}
.docs-spine {
  grid-column: 1 / -1; grid-row: 1;
  align-self: center;
  position: relative;
  height: 4px; margin-left: calc(100% / 12); margin-right: calc(100% / 12);
  background: var(--orange);
}
.docs-list { grid-column: 1 / 6; grid-row: 1 / 3; display: grid; grid-template-columns: subgrid; }
.doc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--spine) + 20px) 10px 0; }
.doc::before {
  content: ""; position: absolute; top: calc(var(--spine) / 2 - 8px); left: 50%;
  width: 16px; height: 16px; margin-left: -8px;
  background: var(--orange); border: 3px solid var(--white);
}
.doc::after {
  content: ""; position: absolute; top: calc(var(--spine) / 2 + 8px); left: 50%;
  width: 2px; height: 14px; margin-left: -1px; background: var(--ink);
}
.sheet {
  position: relative;
  display: grid; place-items: center;
  width: 84px; height: 106px;
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.sheet::before {
  content: ""; position: absolute; inset: 2px;
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 0 100%);
}
.sheet::after {
  content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  background: var(--tint-b);
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.sheet-code { position: relative; z-index: 1; font-size: 0.8125rem; font-weight: 750; letter-spacing: .06em; color: var(--ink); padding-top: 8px; }
.sheet-code::after {
  content: ""; display: block; width: 40px; height: 22px; margin: 10px auto 0;
  border-top: 2px solid var(--life); border-bottom: 2px solid var(--life);
}
.doc-name { margin-top: 14px; font-size: 1rem; font-weight: 700; line-height: 1.2; max-width: 11rem; }

.docs-file { grid-column: 6; grid-row: 1 / 3; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--spine) + 20px) 10px 0; }
.docs-file::before {
  content: ""; position: absolute; top: calc(var(--spine) / 2 - 8px); left: 50%;
  width: 16px; height: 16px; margin-left: -8px;
  background: var(--orange); border: 3px solid var(--white);
}
.docs-file::after {
  content: ""; position: absolute; top: calc(var(--spine) / 2 + 8px); left: 50%;
  width: 2px; height: 14px; margin-left: -1px; background: var(--ink);
}
.folder {
  position: relative;
  display: grid; place-items: center;
  width: 112px; height: 106px;
  background: var(--ink); color: var(--white);
  border-bottom: 5px solid var(--orange);
}
.folder .ico { width: 56px; height: 56px; position: relative; z-index: 1; }
.folder i { position: absolute; left: 22px; right: 22px; height: 2px; background: var(--on-ink-2); }
.folder i:nth-of-type(1) { top: 14px; }
.folder i:nth-of-type(2) { top: 20px; left: 26px; right: 26px; }
.folder i:nth-of-type(3) { top: 26px; left: 30px; right: 30px; }
.docs-file-name { margin-top: 14px; font-size: 1rem; font-weight: 700; line-height: 1.2; max-width: 12rem; }

.docs-bracket {
  grid-column: 2 / 5; grid-row: 3;
  height: 18px; margin: 18px calc(100% / 6) 0;
  border: 2px solid var(--ink); border-top: 0;
  position: relative;
}
.docs-bracket::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 18px; margin-left: -1px; background: var(--ink); }
.note--docs { grid-column: 2 / 5; grid-row: 4; justify-self: center; margin-top: 18px; max-width: 26rem; }

@media (prefers-reduced-motion: no-preference) {
  .docs-fig.is-armed .sheet, .docs-fig.is-armed .folder { transform: scaleY(0); transform-origin: center top; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .docs-fig.is-armed.is-in .sheet, .docs-fig.is-armed.is-in .folder { transform: none; }
  .docs-fig.is-armed .doc:nth-child(2) .sheet { transition-delay: .12s; }
  .docs-fig.is-armed .doc:nth-child(3) .sheet { transition-delay: .24s; }
  .docs-fig.is-armed .doc:nth-child(4) .sheet { transition-delay: .36s; }
  .docs-fig.is-armed .doc:nth-child(5) .sheet { transition-delay: .48s; }
  .docs-fig.is-armed .folder { transition-delay: .62s; }
}

/* =========================================================
   PROCESS: six steps under one file-number bar
   ========================================================= */

.filebar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 16px 22px;
  background: var(--ink); color: var(--white);
  border-left: 8px solid var(--orange);
}
.filebar-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.filebar-field { display: inline-block; width: 168px; height: 32px; border: 2px dashed var(--on-ink-2); }
.filebar-scope { font-size: 0.9375rem; color: var(--on-ink-2); }
.note--file { color: var(--white); border-left-color: var(--orange); max-width: 26rem; }

.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 0; left: 23px; width: 2px; height: 28px; background: var(--ink); }
.step::after {
  content: ""; position: absolute; top: calc(28px + 24px - 2px); left: 48px; right: 0;
  height: 4px; background: var(--orange);
  transform-origin: left center;
}
.step:last-child::after { display: none; }
.step-box {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--orange); color: var(--white);
  border: 2px solid var(--orange);
  font-size: 1.375rem; font-weight: 750; font-variant-numeric: tabular-nums;
}
.step-body { padding: 16px 18px 0 0; }
.step-t { font-size: 1.125rem; font-weight: 700; line-height: 1.15; }
.step-d { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: #4E5E66; }
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.who::before { content: ""; width: 8px; height: 8px; background: var(--ink); }
.docpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px;
  background: var(--white);
  border: 2px dashed var(--slate);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
}
.docpill::before { content: ""; width: 9px; height: 11px; border: 2px solid var(--ink); flex: none; }
.docpill--po { border: 2px solid var(--orange); }
.note--step { margin-top: 16px; font-size: 0.875rem; }
.steps-fig .switch { margin-bottom: 20px; }
.steps-fig .filebar { margin-bottom: 0; }
.no-js .steps-fig .mode-title { background: var(--cool); }

/* steps light up as they come on screen (JS adds .is-armed, then .is-on per step) */
@media (prefers-reduced-motion: no-preference) {
  .steps-fig.is-armed .step:not(.is-on) .step-box { background: var(--white); color: var(--ink); border-color: var(--ink); }
  .steps-fig.is-armed .step:not(.is-on)::after { background: var(--life); }
  .steps-fig.is-armed .step-box, .steps-fig.is-armed .step::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
}

/* =========================================================
   COMPANY FACTS BAND
   ========================================================= */

.facts-band { background: var(--ink); color: var(--white); padding-block: clamp(56px, 7vw, 96px); position: relative; }
.facts-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: start; }
.facts-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; font-stretch: 90%; line-height: 1.05; }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2.2fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.22); }
.facts > div:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.facts dt { color: var(--on-ink-2); font-size: 0.9375rem; padding-top: 3px; }
.facts dd { font-size: 1.1875rem; font-weight: 550; line-height: 1.35; }
.facts-title--sub { margin-top: 56px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.facts--how { margin-top: 56px; }
.facts--how dt { display: flex; align-items: flex-start; gap: 10px; }
.facts--how dt .ico { width: 20px; height: 20px; margin-top: -1px; color: var(--orange); }

/* =========================================================
   CONTACT
   ========================================================= */

.contact { padding-block: var(--section-y); position: relative; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .sec-title { grid-column: auto; }
.contact-lead { margin-top: 18px; font-size: 1.1875rem; color: #44545C; max-width: 30rem; }
.contact-details { margin-top: 36px; }
.contact-details > div { display: grid; grid-template-columns: 6rem 1fr; gap: 16px; padding: 12px 0; border-top: 2px solid var(--ink); }
.contact-details dt { color: var(--slate); font-size: 0.9375rem; padding-top: 2px; }
.contact-details dd { font-weight: 550; }
.contact-details a { text-underline-offset: 4px; }

.quote-form { position: relative; padding: 28px; background: var(--cool); border-top: 4px solid var(--orange); }
.form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 700; font-size: 1.0625rem; }
.form-node { width: 18px; height: 18px; background: var(--white); border: 4px solid var(--orange); flex: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.9375rem; font-weight: 650; }
.optional { font-weight: 450; color: #4E5E66; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--white);
  border: 2px solid var(--slate); border-radius: 0;
  font-size: 1rem;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: none; }
.field:has(select) { position: relative; }
.field:has(select)::after {
  content: ""; position: absolute; right: 16px; bottom: 20px; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field ::placeholder { color: #6A7980; }
.was-validated :invalid { border-color: var(--error); border-width: 3px; }
.form-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: center; margin-top: 4px; }
.form-hint { font-size: 0.9375rem; color: #4E5E66; }
.form-alt { grid-column: 1 / -1; font-size: 0.9375rem; }
.form-alt-link { font-weight: 600; text-underline-offset: 4px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { border-top: 2px solid var(--ink); padding-block: 40px 48px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.brand-footer { font-size: 1.25rem; }
.footer-tag { margin-top: 12px; color: var(--slate); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { font-weight: 550; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { grid-column: 1 / -1; font-size: 0.875rem; color: var(--slate); padding-top: 20px; border-top: 1px solid var(--rule); }

/* =========================================================
   PHOTOS (sources in assets/LICENCIAS.txt).
   One treatment for all: muted colour, a sea-blue cast, sharp corners.
   The band sits on the seam between Services (white) and the
   two ways of working (cool), one photo per leg of the route.
   ========================================================= */

.photo { position: relative; margin: 0; overflow: hidden; background: var(--ink); }
.photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.5) contrast(1.05) brightness(.97);
}
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--sea); mix-blend-mode: soft-light; opacity: .5;
  pointer-events: none;
}

.photo-band { position: relative; background: linear-gradient(var(--white) 50%, var(--cool) 50%); }
.photo-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: clamp(180px, 22vw, 290px);
  gap: 16px;
}
.photo--ship img { object-position: 78% 50%; }
#services { padding-bottom: clamp(48px, 6vw, 80px); }
.photo-band + #options { padding-top: clamp(48px, 6vw, 80px); }

.facts-photo { display: none; }
@media (min-width: 1024px) {
  .facts-inner { grid-template-rows: auto minmax(0, 1fr) auto; }
  .facts-inner > .facts-title { grid-column: 1; grid-row: 1; }
  .facts-inner > .facts:not(.facts--how) { grid-column: 2; grid-row: 1 / span 2; }
  /* the photo fills the space under the title, so its bottom edge meets the list's last rule */
  .facts-photo { display: block; grid-column: 1; grid-row: 2; align-self: stretch; min-height: 200px; margin-top: 32px; }
  .facts-photo img { position: absolute; inset: 0; }
  .facts-inner > .facts-title--sub { grid-column: 1; grid-row: 3; }
  .facts-inner > .facts--how { grid-column: 2; grid-row: 3; }
}

@media (max-width: 700px) {
  .photo-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
  .photo--ship { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
  .photo--ship img { object-position: 50% 50%; }
  .photo--warehouse, .photo--pallets { grid-row: 2; aspect-ratio: 1; }
  .photo-band { background: linear-gradient(var(--white) 40%, var(--cool) 40%); }
}

/* =========================================================
   THE FILE LINE: one orange thread down the page margin (wide screens)
   ========================================================= */

@media (min-width: 1024px) {
  :root { --thread-gap: 22px; }
  #services::before, .photo-band::before, #options::before, #quote::before, #documents::before, #process::before, .facts-band::before, .contact::before, .hero::after {
    content: ""; position: absolute; top: 0; bottom: 0;
    left: calc(max(var(--gutter), 50% - 600px) - var(--thread-gap) - 1px);
    width: 3px; background: var(--orange);
  }
  .hero { position: relative; }
  /* the line leaves the bottom of the hero figure, runs left in the hero's bottom margin, then down the page */
  .hero::after { top: auto; height: 26px; }
  .hero-fig { align-self: stretch; display: flex; flex-direction: column; position: relative; }
  .hero-fig::after {
    content: ""; flex: 1 0 20px;
    margin-bottom: calc(24px - var(--hero-pb));
    border-left: 3px solid var(--orange);
  }
  .hero-fig::before {
    content: ""; position: absolute; right: calc(100% - 3px);
    bottom: calc(24px - var(--hero-pb));
    width: calc(100% * 4.7 / 7.3 + clamp(32px, 4vw, 64px) + var(--thread-gap) + 4px);
    height: 3px; background: var(--orange);
  }
  .contact::before { bottom: auto; height: calc(var(--section-y) + 17px); }
  .sec-head::before, .contact-info::before {
    content: ""; position: absolute; left: calc(-1 * var(--thread-gap) - 7px); top: 0;
    width: 15px; height: 15px; background: var(--white); border: 4px solid var(--orange);
  }
  .contact-info { position: relative; }
  .contact-info::before { top: 10px; }
}
@media (min-width: 1380px) { :root { --thread-gap: 48px; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1120px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--white); border-bottom: 2px solid var(--ink);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .header-actions { margin-left: auto; }

  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-top: 0; }
  .step::before { display: none; }
  .steps .step:first-child { padding-top: 24px; }
  .steps .step:first-child::before { display: block; height: 24px; }
  .step::after { top: 48px; left: 22px; right: auto; bottom: 0; width: 4px; height: auto; transform-origin: center top; }
  .steps .step:first-child::after { top: calc(24px + 48px); }
  .step-body { padding: 8px 0 32px; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 28px; }
  .step-t { grid-column: 1; }
  .step-meta { grid-column: 1; grid-row: 2; align-self: start; }
  .step-d { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-width: 36rem; }
  .note--step { grid-column: 2; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .lanes { --pad: 18px; --t: 56px; --ot: 46px; --in: 20px; }
  .stage .tile--wide { gap: 8px; padding: 0 10px; }
  .stage .tile .ico { width: 32px; height: 32px; }
  .stage-name { font-size: 0.9375rem; }
  .origin-name .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .origin-name .short { display: inline; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "fig" "lead" "actions"; grid-template-rows: none; }
  .hero-title { max-width: 18ch; }
  .hero-fig { margin-top: 24px; }

  .stations-wrap { --t: 64px; --sp: 20px; }
  .st { padding: 0 12px 0 20px; }
  .axis { left: 20px; width: calc(200% - 20px); }
  .route-end { padding-left: 20px; }
  .mini-truck { left: calc(50% + 52px - 21px); }

  .st { padding-right: 10px; }
  .st-name { font-size: 1.0625rem; }

  .facts-inner { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .facts--how { margin-top: 0; }
  .ior-fields > div { grid-template-columns: minmax(0, 1fr); }

  .contact-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .count { grid-row: auto; margin-bottom: 20px; }
  .sec-title, .sec-lead { grid-column: 1; }

  /* services: vertical route */
  .stations-wrap { --t: 56px; display: block; padding: 28px 0 0; }
  .route-line { left: calc(var(--t) / 2 - 2px); right: auto; width: 4px; height: auto; top: calc(28px + 30px + var(--t) / 2); bottom: calc(var(--t) / 2); }
  .stations { display: block; }
  .st { display: grid; grid-template-columns: var(--t) minmax(0, 1fr); column-gap: 18px; padding: 0 0 26px; }
  .st .tile { grid-column: 1; grid-row: 2 / span 2; }
  .st .tile .ico { width: 32px; height: 32px; }
  .axis { position: static; grid-column: 2; grid-row: 1; width: auto; margin-bottom: 10px; min-height: 20px; }
  .st:not(:has(.axis)) .st-name { grid-row: 2; }
  .st-name { grid-column: 2; grid-row: 2; margin-top: 0; align-self: start; }
  .st-line { grid-column: 2; grid-row: 3; }
  .note--wh { grid-column: 2; grid-row: 4; }
  .mini-truck { display: none; }
  .route-end { display: grid; grid-template-columns: var(--t) minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 0; }
  .route-end .tile .ico { width: 32px; height: 32px; }
  .route-end-name { margin-top: 0; }
  .zoom { margin-left: 0; margin-top: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 20px; }
  .zoom::before { display: none; }

  /* equation: vertical */
  .eq { grid-template-columns: minmax(0, 1fr); max-width: 36rem; row-gap: 0; }
  .eq-terms { flex-direction: column; align-items: stretch; gap: 14px; }
  .eq-terms { justify-content: flex-start; }
  .term { grid-template-columns: 2.25rem 2rem minmax(0, 1fr); grid-template-rows: auto; column-gap: 14px; align-items: center; padding: 0; }
  .term:first-child { column-gap: 14px; }
  .term .op { grid-column: 1; grid-row: 1; font-size: 2.5rem; text-align: center; }
  .term-ico { grid-column: 2; grid-row: 1; margin: 0; width: 30px; height: 30px; }
  .term-name { grid-column: 3; grid-row: 1; font-size: 1.875rem; }
  .term--opt { grid-template-rows: auto auto; }
  .term--opt .term-tag { grid-column: 3; grid-row: 1; margin: 6px 0 4px; }
  .term--opt .op, .term--opt .term-ico, .term--opt .term-name { grid-row: 2; }
  .term--opt .term-name { justify-self: start; }
  .op--eq { grid-column: 1; grid-row: auto; margin: 18px 0 14px; height: 0; border-top: 5px solid var(--ink); font-size: 0; overflow: hidden; }
  .eq-result { grid-column: 1; grid-row: auto; display: block; }
  .note--eq { margin: 0 22px 22px; }

  /* 5 versus 1: stack */
  .cmp { grid-template-columns: minmax(0, 1fr); }

  /* documents: vertical spine */
  .docs { grid-template-columns: 28px minmax(0, 1fr) 18px; grid-template-rows: repeat(5, auto) auto auto; column-gap: 0; max-width: 32rem; }
  .docs-spine { display: none; }
  .docs-list { grid-column: 1 / 3; grid-row: 1 / 6; grid-template-columns: none; grid-template-rows: subgrid; }
  .doc { flex-direction: row; text-align: left; gap: 18px; padding: 0 12px 0 46px; min-height: 92px; }
  .doc::before { top: 50%; left: 14px; margin: -8px 0 0 -8px; }
  .doc::after { top: 0; bottom: 0; left: 14px; height: auto; width: 4px; margin-left: -2px; background: var(--orange); }
  .doc:first-child::after { top: 50%; }
  .sheet { width: 64px; height: 76px; flex: none; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
  .sheet::before { clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%); }
  .sheet::after { width: 16px; height: 16px; }
  .sheet-code { font-size: 0.75rem; letter-spacing: .02em; padding-top: 4px; }
  .sheet-code::after { width: 24px; height: 12px; margin-top: 6px; }
  .doc-name { margin-top: 0; max-width: none; }
  .docs-file { grid-column: 1 / 3; grid-row: 6; flex-direction: row; text-align: left; gap: 18px; padding: 8px 12px 0 46px; }
  .docs-file::before { left: 12px; top: 0; width: 4px; height: calc(8px + 36px); margin: 0; border: 0; }
  .docs-file::after { display: none; }
  .folder { width: 72px; height: 72px; }
  .folder .ico { width: 36px; height: 36px; }
  .folder i { left: 14px; right: 14px; }
  .folder i:nth-of-type(1) { top: 8px; } .folder i:nth-of-type(2) { top: 13px; left: 18px; right: 18px; } .folder i:nth-of-type(3) { display: none; }
  .docs-file-name { margin-top: 0; max-width: none; }
  .docs-bracket { grid-column: 3; grid-row: 2 / 5; height: auto; width: 14px; margin: 22px 0; border: 2px solid var(--ink); border-left: 0; }
  .docs-bracket::after { display: none; }
  .note--docs { grid-column: 2 / 4; grid-row: 7; justify-self: stretch; margin: 24px 0 0 18px; }
  .docs-fig.is-armed .folder { clip-path: inset(0 0 0 0); }
}

@media (max-width: 760px) {

  .addon { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tag tag" "tile text" ". link"; row-gap: 12px; column-gap: 18px; padding: 16px 18px 18px; }
  .addon-link { white-space: normal; }

  .ior-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ior-card { padding: 20px 18px 22px; }
  .ior-fields > div { grid-template-columns: minmax(0, 1fr); padding: 10px 14px; }
  .ior-merge { width: 2px; height: 22px; margin: 0 auto; border: 0; background: var(--ink); }
  .ior-merge::after { display: none; }

  .rel { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rel-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .rel-item .rel-glyph { grid-row: 1 / span 2; margin-top: 4px; }
  .rel-item h3 { margin-top: 0; }
  .rel-item .rel-mode, .rel-item h3, .rel-item p { grid-column: 2; }
  .rel-item .rel-glyph { grid-column: 1; grid-row: 1 / span 3; }

  .step-body { display: block; }
  .step-d { margin-top: 6px; }

  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-foot { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .lanes { --pad: 10px; --t: 44px; --ot: 36px; --og: 14px; --in: 16px; --lw: 4px; padding-top: 14px; padding-bottom: 16px; }
  .stage-axis { font-size: 0.6875rem; letter-spacing: 0.04em; gap: 4px; padding-right: 4px; margin-bottom: 8px; }
  .stage .tile .ico { width: 26px; height: 26px; }
  .origin .tile .ico { width: 22px; height: 22px; }
  .origin-name { padding: 0 4px 0 6px; font-size: 0.75rem; line-height: 1; }
  .stage .tile--wide { width: var(--t); padding: 0; }
  .tile--wide .ico--alt { display: none; }
  .stage-mark::before { height: 12px; clip-path: polygon(0 calc(50% - var(--lw) / 2), calc(100% - 10px) calc(50% - var(--lw) / 2), calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, calc(100% - 10px) calc(50% + var(--lw) / 2), 0 calc(50% + var(--lw) / 2)); }
  .stage-text { margin-top: 10px; padding-right: 6px; gap: 2px; }
  .stage:not(.stage--origin) .stage-text { padding-left: 0; }
  .stage-name { font-size: 0.8125rem; }
  .stage-sub { font-size: 0.75rem; }
  .origin-name .long, .stage-sub .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .origin-name .short, .stage-sub .short { display: inline; }
  .lanes-quote { margin-top: 28px; padding: 12px 14px; gap: 6px 14px; }
  .lanes-quote-list { gap: 4px 14px; }
  .lanes-quote-list li { font-size: 0.875rem; }
  .flow { --pad: 12px; padding: 14px var(--pad) 16px; }
  .flow--model { --lab: 0px; }
  .party .tile { width: 52px; height: 52px; }
  .party .tile .ico { width: 30px; height: 30px; }
  .party-name { font-size: 0.875rem; }
  .lane { min-height: 46px; }
  .arrow { min-height: 46px; }
  .arrow.to-right { padding: 6px var(--head) 6px 3px; }
  .arrow.to-left { padding: 6px 3px 6px var(--head); }
  .pill { padding: 4px 6px 3px; font-size: 0.75rem; letter-spacing: 0; }
  .arrow.sc .pill { max-width: calc(50% - 6px); }
  .sale .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sale .short { display: inline; }
  .hero-fig .legend { display: inline-flex; }
  .pill .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pill .short { display: inline; }
  .flow--model .lane { grid-template-rows: auto auto; }
  .flow--model .lane-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
  .legend { display: none; }
  .legend-short { display: inline; }
  .figcap { gap: 6px 16px; font-size: 0.875rem; }
  .figcap .legend-short { display: block; }
  .model-fig .legend { display: inline-flex; }
  .note--hero { max-width: none; }
  .switch { display: flex; }
  .switch-btn { flex: 1; padding: 6px 10px; line-height: 1.2; font-size: 0.875rem; }
  .model-fig .figcap .legend-short { display: none; }
}

@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .lang-btn { min-width: 34px; padding: 0 6px; }
  .brand { gap: 8px; }
  .is-goods { --head: 12px; --w: 4px; }
  .flow { --pad: 8px; }
  .header-cta { padding: 0 12px; }
  .header-cta .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta .short { display: inline; }
  .brand-sub { display: none; }
  .hero-title { font-size: clamp(2rem, 1rem + 4.6vw, 2.5rem); max-width: none; }
  .hero-fig { margin-top: 18px; }
  .hero-lead { font-size: 1.0625rem; margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .count-n { font-size: 6.5rem; }
  .fan { grid-template-columns: 5.75rem minmax(1.75rem, 1fr) minmax(0, 2.4fr); }
  .fan-hub { font-size: 0.8125rem; padding: 8px 4px; }
  .fan-hub .tile { width: 44px; height: 44px; }
  .fan-hub .tile .ico { width: 26px; height: 26px; }
  .fan-list li span { font-size: 0.875rem; padding: 4px 8px; }
  .cmp-panel { padding: 20px 16px 22px; }
  .tally-n { font-size: 4.25rem; }
  .tally-i { font-size: 0.8125rem; }
  .quote-form { padding: 20px 16px; }
  .zoom { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .filebar { padding: 14px 16px; }
  .filebar-field { width: 120px; }
}

/* ---------- Reduced motion: final state, no transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print: a readable document ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 10.5pt; color: #000; }
  .site-header, .skip-link, .hero-actions, .switch, .menu-toggle, .quote-form, .footer-nav, .photo-band, .facts-photo { display: none !important; }
  .hero, .band-cool, .band-blue, #options, .section { background: none !important; padding-block: 18pt !important; }
  .facts-band { background: none; color: #000; padding-block: 18pt; }
  .facts dt { color: #333; }
  .facts > div { border-color: #999; }
  .fig, .cmp-panel, .rel-item, .step, .doc { break-inside: avoid; }
  .sec-head { break-after: avoid; break-inside: avoid; }
  .figcap { break-before: avoid; break-inside: avoid; }
  h2, h3, .sec-head, .count, .cmp-title, .mode-title { break-after: avoid; }
  .sec-head + .fig, .sec-head + .sec-lead { break-before: avoid; }
  p, li { orphans: 3; widows: 3; }
  .st, .route-end, .term, .zoom { break-inside: avoid; }
  .doc { min-height: 62px; }
  .doc .sheet { width: 46px; height: 56px; }
  .sheet-code { font-size: 7pt; padding-top: 2px; }
  .sheet-code::after { display: none; }
  .folder { width: 56px; height: 56px; }
  .docs-bracket { margin: 31px 0; }
  .mode, .facts, .rel, .cmp-panel, .eq { break-inside: avoid; }
  .model-fig .mode + .mode { break-before: page; }
  .rel-item { display: block !important; }
  .rel-mode { display: block !important; }
  .hero-fig::before, .hero-fig::after { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "title" "lead" "fig"; }
  .count-n { font-size: 48pt; }
  .js .moded .mode { display: block !important; }
  .mode-title { display: block !important; margin: 12pt 0 4pt; }
  .cmp-fig .fan-list li::before, .cmp-fig .fan-one { transform: none !important; }
  .docs-fig .sheet { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%) !important; }
  .docs-fig .folder { clip-path: none !important; }
  .steps-fig .step .step-box { background: #fff !important; color: #000 !important; border-color: #000 !important; }
  a[href^="mailto:"]::after, a[href^="tel:"]::after { content: ""; }
  *, *::before, *::after { animation: none !important; transition: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
