/* ==========================================================================
   ARGO SHIPPING — design system
   Aligned to the Argo Branding Style Guide.
   Palette: Regal Blue (#004574) primary, Azure Radiance (#008AE8) accent,
   Wild Sand / Foam neutrals, Ocean Green & Guardsman Red as semantics.
   Type: Inter (the guide's approved web fallback) for headings and body.
   Wordmark uses the true Contrax logo lockup, delivered as SVG.
   No frameworks. No external requests. Everything on this sheet.
   ========================================================================== */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* brand core */
  --regal: #004574;         /* primary brand blue — headings, buttons, marks */
  --regal-deep: #013a61;    /* darker regal for hover / depth */
  --navy: #02273f;          /* deepest — footer ground */
  --azure: #008ae8;         /* Azure Radiance — accent, large text, non-text UI */
  --malibu: #7fc4f3;        /* light blue — accents/links on dark grounds */
  --foam: #e5f3fc;          /* pale blue tint — callouts, soft fills */

  /* neutrals */
  --white: #ffffff;
  --wild-sand: #f4f4f4;     /* alternating section background */
  --french: #c8c9cc;        /* strong dividers / inactive */
  --line: #e6e7ea;          /* hairline borders */
  --line-strong: #d3d5d9;

  /* text (all AA on white, >= 4.5:1) */
  --text: #1a1d21;          /* body ink */
  --text-2: #484a4c;        /* Abbey Gray — secondary */
  --text-3: #6a6d72;        /* tertiary / captions */

  /* semantic */
  --green: #349d73;         /* Ocean Green — success */
  --green-ink: #1f6b4d;     /* accessible green text on light */
  --red: #c00000;           /* Guardsman Red — error / alert */

  /* fonts — Inter throughout (Contrax is print/M365 only; Inter is the
     guide's named web fallback). Kept as three vars for intent clarity. */
  --font-display: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --font-label: "Inter", "Segoe UI", system-ui, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.56rem, 1.35rem + 1vw, 2.1rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.44rem, 1.8rem + 3.2vw, 4.4rem);
  --step-5: clamp(3.05rem, 2rem + 5.2vw, 6.2rem);

  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem;
  --space-4: 2.25rem; --space-5: 3.5rem; --space-6: 5rem;

  --wrap: 80rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.06);
  --shadow-lift: 0 14px 34px -16px rgba(0, 69, 116, 0.32);
  --tick: 1px solid var(--line);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--step-4); color: var(--regal); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
/* body copy: justified per brand guide, wide measure to use the column */
p { margin: 0 0 var(--space-2); max-width: 75ch; text-align: justify; hyphens: auto; }
a { color: var(--regal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
/* never strand one or two words on a wrapped line (progressive, Chromium/Safari) */
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--regal); color: var(--white); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--regal); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--ink { background: var(--regal); color: #eaf2f8; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink p { color: #cddeeb; }
.section--ink a { color: var(--malibu); }
.section--ink a:hover { color: var(--white); }
.section--paper2 { background: var(--wild-sand); }
.section--foam { background: var(--foam); }

/* brand icon system — approved icon library via CSS mask ------------------ */
.icon {
  display: inline-block; width: 1.5rem; height: 1.5rem;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.75rem; height: 3.75rem; border-radius: var(--radius-sm);
  background: var(--foam); color: var(--regal-deep);
}
.icon-chip .icon { width: 2.5rem; height: 2.5rem; }
.section--ink .icon-chip { background: rgba(255, 255, 255, 0.1); color: var(--malibu); }

.mono { font-family: var(--font-label); }

/* announcement strip over header ---------------------------------------- */
.topstrip {
  background: var(--navy); color: #fff;
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; font-weight: 500;
  padding: 0.5rem 1rem;
  /* the strip carries a CTA, so it must survive long copy: balanced wrapping
     keeps two lines even rather than orphaning the link on its own line */
  text-wrap: balance;
}
.topstrip strong { color: var(--malibu); font-weight: 700; }
.topstrip a {
  color: #fff; text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 2px;
  /* keep the CTA whole — a link broken across lines is a smaller tap target
     and reads as two separate phrases */
  display: inline-block;
}
.topstrip a:hover, .topstrip a:focus-visible { text-decoration-color: #fff; }

/* phones: drop the tracking and tighten the type before the copy wraps to a
   third line. The separator is decorative — hide it and let the CTA break to
   its own line, which also gives the link a full-width tap row. */
@media (max-width: 30rem) {
  .topstrip {
    font-size: 0.66rem; letter-spacing: 0.04em;
    padding: 0.45rem 0.75rem; line-height: 1.45;
  }
  .topstrip .sep { display: none; }
  /* the CTA gets its own row; the padding brings the tap target up to the
     24px minimum without visibly changing the strip */
  .topstrip a { display: block; margin-top: 0.1rem; padding-block: 0.32rem; }
}

/* ---------- header / nav ---------- */
/* keep anchor targets clear of the pinned header when jumped to */
[id] { scroll-margin-top: 5.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
/* 3.45rem puts the visible wordmark at the CTA button's height (the SVG
   carries ~4% breathing room inside its cropped viewBox) */
.brand img { height: 3.45rem; width: auto; display: block; }
/* the wordmark is 5× as wide as it is tall — step it down so the logo and
   the Menu toggle share a phone-width header without overflowing */
@media (max-width: 48rem) { .brand img { height: 2.6rem; } }
@media (max-width: 22.5rem) { .brand img { height: 2.1rem; } }

.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
/* :not(.btn) keeps these link rules from overriding .btn's own colors (the CTA) */
.nav > a:not(.btn), .nav-drop > summary {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--text); text-decoration: none;
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  cursor: pointer; list-style: none; white-space: nowrap;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: " ▾"; font-size: 0.7em; color: var(--text-3); }
.nav > a:not(.btn):hover, .nav-drop > summary:hover { background: var(--wild-sand); color: var(--regal); }
.nav > a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--azure); }
/* Pages that live inside a drop (About group) still need a "you are here" mark
   on the collapsed bar — carry the underline up to the parent summary. */
.nav-drop:has(> div a[aria-current="page"]) > summary { box-shadow: inset 0 -2px 0 var(--azure); }
.nav-drop > div a[aria-current="page"] { color: var(--regal); background: var(--wild-sand); }

.nav-drop { position: relative; }
.nav-drop > div {
  position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 17rem;
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--regal);
  box-shadow: var(--shadow-lift); border-radius: var(--radius-sm);
  padding: 0.5rem; z-index: 60;
}
.nav-drop > div a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: 0.92rem;
}
.nav-drop > div a:hover { background: var(--wild-sand); color: var(--regal); }
.nav-drop > div .drop-all {
  font-family: var(--font-label); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--regal); font-weight: 600;
  border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.6rem;
}
.nav .btn { margin-left: 0.6rem; white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-label); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.5rem 0.9rem; cursor: pointer; color: var(--text);
}
/* 79rem: the full nav + the button-height wordmark needs ~1260px before it fits */
@media (max-width: 79rem) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 2px solid var(--regal);
    padding: 0.75rem 1rem 1.25rem; box-shadow: var(--shadow-lift);
    max-height: calc(100vh - 8rem); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-drop > div {
    position: static; box-shadow: none; border: none;
    border-left: 2px solid var(--line); border-radius: 0; margin-left: 0.75rem;
  }
  .nav .btn { margin: 0.75rem 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--regal);
  border: 2px solid var(--regal); border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--regal-deep); border-color: var(--regal-deep); color: var(--white); transform: translateY(-2px); }
/* the emphasized CTA carries a soft brand lift to stand apart from plain .btn */
.btn--signal { box-shadow: 0 10px 22px -12px rgba(0, 138, 232, 0.7); }
.btn--signal:hover { box-shadow: 0 12px 26px -12px rgba(0, 138, 232, 0.85); }
.btn--ghost { background: transparent; color: var(--regal); border-color: var(--regal); box-shadow: none; }
.btn--ghost:hover { background: var(--regal); color: var(--white); }
.section--ink .btn { background: var(--white); color: var(--regal); border-color: var(--white); box-shadow: none; }
.section--ink .btn:hover { background: var(--foam); border-color: var(--foam); color: var(--regal); }
.section--ink .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.section--ink .btn--ghost:hover { background: var(--white); color: var(--regal); }
/* buttons over the photo hero read on a dark ground (same as --ink sections) */
.hero--stage .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.04); }
.hero--stage .btn--ghost:hover { background: #fff; color: var(--regal); border-color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-5); }
.hero h1 { max-width: 26ch; }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 58ch; color: var(--text-2); text-align: left; hyphens: none; }
/* give the headline column more room than the media column */
@media (min-width: 56rem) {
  .hero .split { grid-template-columns: 1.25fr 1fr; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* ---------- stage hero (home) — one-line promise over the real floor -------
   Full-viewport: a live fulfillment center (conveyors carrying parcels) fills
   the frame under a brand-tinted scrim; the headline runs a single line across
   the monitor with the lede + CTA centered beneath it. The photo drifts on a
   slow cinematic push. Reduced motion holds the frame still. */
.hero--stage {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: calc((100svh - 6.6rem) * 0.7);   /* 30% shorter than viewport minus topstrip + header */
  padding-block: clamp(2.5rem, 7vh, 6rem);
  overflow: hidden;
}
/* the photo layer — sits behind the copy, edge to edge */
.stage-photo {
  position: absolute; inset: 0; margin: 0; z-index: -1;
  background: var(--navy);   /* fallback while the image decodes */
}
.stage-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  display: block; transform-origin: 60% 55%;
}
/* brand-tinted scrim — deepest at the lower-left so centered white copy holds
   AA contrast over the busy floor, fading to a clear view up top */
.stage-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(2, 39, 63, 0.62) 0%,
      rgba(2, 39, 63, 0.30) 34%,
      rgba(2, 39, 63, 0.48) 72%,
      rgba(1, 24, 41, 0.82) 100%),
    radial-gradient(120% 90% at 50% 46%,
      rgba(0, 69, 116, 0.28), rgba(0, 69, 116, 0) 60%);
}
.hero--stage .wrap { max-width: 92rem; width: 100%; }
.stage-copy { text-align: center; }
.stage-title {
  max-width: none; margin: 0 auto;
  white-space: nowrap;                 /* one line across the monitor */
  /* sized so the full line fills the width but never overruns it. Measured:
     text width ≈ 20.6× font-size. Coefficient tuned (with margin for the
     scrollbar + wrap padding) so the line fits from the 62rem breakpoint up;
     capped at 3.7rem so it also clears the 92rem wrap on large screens.
     Guaranteed one line across every desktop width. */
  font-size: min(4.15vw, 3.7rem);
  line-height: 1.03; letter-spacing: -0.028em;
  color: #fff; text-shadow: 0 2px 30px rgba(1, 24, 41, 0.45);
}
.stage-title em { font-style: normal; color: var(--malibu); }
/* below ~62rem the one-line headline would overrun — let it wrap gracefully */
@media (max-width: 62rem) {
  .stage-title {
    white-space: normal; text-wrap: balance;
    font-size: clamp(1.85rem, 6.2vw, 3.2rem);
  }
}
.stage-sub {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3); margin-top: clamp(1.1rem, 2.4vh, 1.9rem);
}
.stage-sub .lede {
  margin: 0; max-width: 64ch; text-align: center;
  color: rgba(255, 255, 255, 0.9);
}
.stage-sub .hero-cta { margin-top: 0; justify-content: center; }

/* slow cinematic push on the floor — parcels feel like they're still moving */
@media (prefers-reduced-motion: no-preference) {
  .stage-photo img {
    will-change: transform;
    animation: stage-drift 26s ease-in-out infinite alternate;
  }
}
@keyframes stage-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.6%, -1.2%, 0); }
}

.hero > .wrap { position: relative; z-index: 1; }

/* photo hero — split layout with layered image + floating proof card ------ */
.hero--photo .split { align-items: center; gap: var(--space-4); }
.hero-media { position: relative; }
.hero-media > img {
  border-radius: var(--radius); width: 100%;
  aspect-ratio: 5 / 4; object-fit: cover;
  box-shadow: var(--shadow-lift);
}
.float-card {
  position: absolute; left: -1rem; bottom: 1.4rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 0.85rem 1.1rem; max-width: 17rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.float-card .icon { flex-shrink: 0; color: var(--green-ink); width: 1.9rem; height: 1.9rem; }
.float-card strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.float-card span { font-size: 0.78rem; color: var(--text-3); }
@media (max-width: 56rem) {
  .float-card { left: 0.75rem; bottom: 0.75rem; }
}

/* facts card — the hero's clean spec block --------------------------------- */
.waybill {
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  font-family: var(--font-body); font-size: 0.85rem;
  max-width: 21rem; overflow: hidden;
}
.waybill header {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--regal); color: var(--white);
  padding: 0.7rem 1rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 600;
}
.waybill header span:last-child { color: var(--malibu); }
.waybill .rows { padding: 1rem 1.1rem; display: grid; gap: 0.55rem; }
.waybill .row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.55rem; }
.waybill .row:last-child { border-bottom: 0; padding-bottom: 0; }
.waybill .row dt { color: var(--text-3); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.08em; font-weight: 600; }
.waybill .row dd { margin: 0; font-weight: 600; text-align: right; color: var(--regal); }
.waybill .barcode { padding: 0.2rem 1.1rem 1.1rem; }

/* slim brand accent bar (replaces the old barcode motif) */
.barcode-strip {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--regal), var(--azure));
}

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.grid--halves { grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(19.5rem, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }

.card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card .card-kicker {
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}
/* ---------- insight categories --------------------------------------------
   Every Insights article carries exactly one category so readers can tell a
   Print piece from a Shipping piece at a glance. The badge is the label; the
   filter bar on /insights/ reads data-cat and is progressive enhancement only
   (no JS = every card visible, which is the correct fallback). Category names
   and their slugs are fixed: Shipping, Fulfillment, Print, Technology,
   Industry. Add a new one here and in the filter bar, not ad hoc per page. */
.post-cat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid currentColor; text-decoration: none;
  align-self: flex-start; line-height: 1;
}
.post-cat::before {
  content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: currentColor;
}
.post-cat[data-cat="shipping"]    { color: var(--regal); }
.post-cat[data-cat="fulfillment"] { color: #0b7a5d; }
.post-cat[data-cat="print"]       { color: #a8432c; }
.post-cat[data-cat="technology"]  { color: #5b3fa8; }
.post-cat[data-cat="industry"]    { color: var(--text-2); }
/* in the post header, the badge sits inline with the meta row */
.prose .post-cat { margin-bottom: 0.75rem; }

/* filter bar on /insights/ — only useful with JS, so it stays hidden without it */
.cat-filter { display: none; }
.js .cat-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-3); align-items: center; }
.cat-filter button {
  font-family: var(--font-label); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--text-2);
  border: 1.5px solid var(--line-strong);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cat-filter button:hover { border-color: var(--regal); color: var(--regal); }
.cat-filter button[aria-pressed="true"] { background: var(--regal); color: var(--white); border-color: var(--regal); }
.cat-count { font-family: var(--font-label); font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.06em; }
/* html.js only: hidden cards. Without JS nothing is ever hidden. */
.js .card[hidden] { display: none; }

/* icon feature card — chip + short heading + one line */
.card--icon { gap: 0.85rem; }
.card--icon h3 { font-size: 1.1rem; margin: 0; }
.card--icon p { margin: 0; }
.card h3 { margin-bottom: 0.1rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--regal); }
.card p { font-size: var(--step--1); color: var(--text-2); margin: 0; text-align: left; hyphens: none; }
.card .card-go { margin-top: auto; font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--regal); font-weight: 600; }
.card--img { padding: 0; overflow: hidden; }
.card--img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card--img .card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }

/* guarantee cards ---------------------------------------------------------- */
.stamps { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.stamp {
  --stamp-color: var(--regal);
  background: var(--white);
  border: 1px solid var(--line-strong); border-left: 4px solid var(--stamp-color);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; max-width: 15rem;
}
.stamp .stamp-big { font-size: var(--step-2); font-weight: 700; font-family: var(--font-display); line-height: 1; display: block; color: var(--stamp-color); }
.stamp .stamp-sub { font-size: 0.8rem; line-height: 1.4; color: var(--text-2); display: block; margin-top: 0.4rem; text-wrap: balance; }
.section--ink .stamp { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); --stamp-color: var(--malibu); }
.section--ink .stamp .stamp-sub { color: #cddeeb; }

/* numbered manifest list (differentiators) -------------------------------- */
.manifest { list-style: none; padding: 0; margin: 0; counter-reset: mani; }
.manifest > li {
  counter-increment: mani;
  display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-3);
  padding: var(--space-3) 0; margin: 0; border-top: var(--tick);
  align-items: start;
}
.manifest > li::before {
  content: counter(mani, decimal-leading-zero);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700;
  color: var(--azure); line-height: 1;
}
.manifest h3 { margin-bottom: 0.3rem; }
.manifest p { margin: 0; color: var(--text-2); }
.manifest ul { margin: 0.6rem 0 0; }

/* process flow — the service drawn as stations on a line ------------------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2) 0; }
.flow li {
  margin: 0; position: relative;
  display: grid; grid-template-columns: 3.75rem 1fr; column-gap: 1rem; align-items: center;
}
.flow .icon-chip { border-radius: 50%; }
.flow strong { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.3; }
.flow .flow-sub { display: block; font-size: var(--step--1); color: var(--text-2); line-height: 1.45; text-wrap: balance; }
@media (min-width: 56rem) {
  .flow { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
  .flow li {
    grid-template-columns: none; justify-items: center; text-align: center;
    row-gap: 0.55rem; padding-inline: 1rem; align-content: start;
  }
  /* dashed lane connecting one station's chip to the next */
  .flow li + li::before {
    content: ""; position: absolute; top: 1.8rem;
    left: calc(-50% + 2.9rem); right: calc(50% + 2.9rem);
    border-top: 2px dashed var(--line-strong);
  }
}

/* the switch — transition sequence card ------------------------------------ */
/* Steps, not dates: duration depends on inventory release, freight, and data
   readiness, so the card shows order of operations and defers timing to the
   .wk-foot note. See snippets/transition-timeline.html before editing copy. */
.wk {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 1.5rem 1.7rem;
  width: 100%; max-width: 26rem; justify-self: center;
}
.wk-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--regal);
  border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; margin-bottom: 0.9rem;
}
.wk-head span:last-child { color: var(--text-3); font-weight: 600; }
.wk ol { list-style: none; margin: 0; padding: 0; position: relative; }
/* Rail runs first dot-centre to last dot-centre. The dot sits near the TOP of
   its row (just under the step label), so the two insets differ: --wk-dot is the
   dot's offset from its row's top, and the bottom inset is the remainder of that
   last row (row height ~2.85rem − 0.95rem). Keep them in step if padding or the
   label/title sizes below change. */
.wk ol { --wk-dot: 0.95rem; }
.wk ol::before {
  content: ""; position: absolute; top: var(--wk-dot); bottom: 1.9rem; left: 0.5rem;
  width: 2px; background: var(--line-strong);
}
.wk li { position: relative; margin: 0; padding: 0.35rem 0 0.35rem 2rem; }
.wk li::before {
  content: ""; position: absolute; left: 0.5rem; top: var(--wk-dot); transform: translate(-50%, -50%);
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--white); border: 3px solid var(--azure);
}
.wk .d {
  display: block; font-family: var(--font-label); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}
.wk li strong { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.wk li.live::before { background: var(--green); border-color: var(--green); }
.wk li.live strong { color: var(--green-ink); }
.wk-foot {
  margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line);
  font-size: 0.8rem; line-height: 1.45; color: var(--text-2); text-wrap: pretty;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .wk li.live::before { animation: pulse 2s ease-in-out infinite; }
}

/* stat band ---------------------------------------------------------------- */
.stat-band { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.stat-band .stat { border-left: 3px solid var(--azure); padding-left: var(--space-2); }
.stat-band .stat-num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1; display: block; color: var(--text); }
.stat-band .stat-label { display: block; font-family: var(--font-label); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); text-wrap: balance; }
.section--ink .stat-band .stat { border-left-color: var(--malibu); }
.section--ink .stat-band .stat-num { color: var(--white); }
.section--ink .stat-band .stat-label { color: #bcd0e0; }

/* platform logo strip -------------------------------------------------------- */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.logo-strip img { max-height: 2.4rem; width: auto; opacity: 0.8; }
.logo-strip-note {
  text-align: center; font-family: var(--font-label); font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-2); margin-bottom: var(--space-3);
}

/* green check list — scannable benefits --------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.check-list li {
  padding-left: 1.9rem; position: relative; margin-bottom: 0.65rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.18em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green);
  -webkit-mask: none; mask: none;
}
.check-list li::after {
  content: ""; position: absolute; left: 0.28rem; top: calc(0.18em + 0.3rem);
  width: 0.6rem; height: 0.32rem;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* big display statement (guarantee band) -------------------------------------- */
.display-xl {
  font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.02em;
  max-width: 18ch;
}
.display-xl em { font-style: normal; color: var(--malibu); }

/* split (text + media) ----------------------------------------------------- */
.split { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
/* legacy image wrapper — now renders like hero-media (rounded, lifted) */
.frame-tick { position: relative; }
.frame-tick img {
  border: none; border-radius: var(--radius);
  width: 100%; box-shadow: var(--shadow-lift);
}

/* CTA band ------------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; text-align: center; hyphens: none; }
.center p { text-align: center; hyphens: none; }
.site-footer p, .form-note, .form-status { text-align: left; hyphens: none; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-family: var(--font-label); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding-block: var(--space-2);
  color: var(--text-3);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--french); }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--regal); }

/* ---------- FAQ / details accordion ---------- */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); margin-bottom: var(--space-2);
}
.faq-item summary {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  padding: var(--space-3); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-display); color: var(--azure);
  font-size: 1.5rem; line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 var(--space-3) var(--space-3); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
.form-grid .form-full { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
label {
  font-family: var(--font-label); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2);
  display: block; margin-bottom: 0.35rem;
}
input, textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--regal); outline: 2px solid var(--azure); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--text-3); }
.form-status { font-family: var(--font-body); font-size: 0.9rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: #e8f5ee; color: var(--green-ink); border: 1px solid var(--green); }
.form-status.err { display: block; background: #fdecec; color: var(--red); border: 1px solid var(--red); }
.form-status.busy { display: block; background: var(--foam); color: var(--text-2); border: 1px solid var(--line-strong); }

/* file drop — the native input covers the panel so click + drag both work
   without JS; the cue underneath is purely visual (pointer-events: none) */
.file-drop {
  position: relative; display: block;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--foam); padding: var(--space-3) var(--space-2);
  text-align: center; transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; padding: 0; border: 0;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--regal); background: var(--white); }
.file-drop input[type="file"]:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.file-drop-cue {
  pointer-events: none; display: block;
  font-size: 0.92rem; color: var(--text-2);
}
.file-drop-cue strong { color: var(--regal); }
.file-drop-hint {
  display: block; margin-top: 0.35rem;
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.03em;
  color: var(--text-3);
}
.file-list {
  list-style: none; margin: 0; padding: 0; text-align: left;
  position: relative; /* above the covering input so the remove button is clickable */
}
.file-list:not(:empty) { margin-top: var(--space-2); }
.file-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-label); font-size: 0.78rem; color: var(--text-2);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; margin-top: 0.4rem;
}
.file-list .fl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fl-size { color: var(--text-3); font-variant-numeric: tabular-nums; }
.file-list .fl-bad { color: var(--red); }
.file-list .fl-rm {
  flex: none; width: 1.4rem; height: 1.4rem; padding: 0; line-height: 1;
  font-size: 1rem; color: var(--text-3); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px;
}
.file-list .fl-rm:hover { color: var(--red); border-color: var(--red); }

/* ---------- prose (long-form: terms, policies, blog) ---------- */
.prose { max-width: 56rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin-block: var(--space-3); }
.prose blockquote {
  border-left: 3px solid var(--azure); margin: var(--space-3) 0;
  padding: 0.5rem 0 0.5rem var(--space-3); color: var(--text-2); font-style: italic;
}
.post-meta {
  font-family: var(--font-label); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; margin-bottom: var(--space-3);
}
.post-meta::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 9px solid var(--azure);
}

/* callout box */
.callout {
  border: 1px solid var(--line-strong); border-left: 4px solid var(--azure);
  background: var(--foam); border-radius: var(--radius);
  padding: var(--space-3); margin-block: var(--space-3);
}

/* ---------- integration logo wall ---------- */
.logo-wall { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.logo-wall a {
  background: var(--white); padding: var(--space-3); display: flex; align-items: center; justify-content: center;
  min-height: 6.5rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; color: var(--text-2); text-align: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.logo-wall a:hover { color: var(--regal); background: var(--wild-sand); }
.logo-wall img { max-height: 3rem; width: auto; transition: transform 0.15s ease; }
.logo-wall a:hover img { transform: scale(1.04); }

/* ---------- footer ---------- */
/* single-band footer: logo left, contact rows right, legal line below —
   minimal vertical footprint */
.site-footer { background: var(--navy); color: #b9c7d3; margin-top: var(--space-5); font-size: 0.92rem; line-height: 1.5; }
.site-footer .barcode-strip { border-radius: 0; }
.site-footer a { color: #b9c7d3; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .foot-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem 3rem; padding-block: 1.25rem;
}
/* 2.5rem keeps the footer wordmark the size it was before the viewBox crop */
.site-footer .foot-brand img { height: 2.5rem; width: auto; display: block; }
.foot-contact { display: grid; gap: 0.45rem; justify-items: end; }
.foot-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 0.35rem;
}
.foot-row li { display: flex; align-items: center; }
.foot-row li + li::before { content: "·"; margin-inline: 0.75rem; color: rgba(255, 255, 255, 0.35); }
@media (max-width: 64rem) {
  .site-footer .foot-main { flex-direction: column; }
  .foot-contact { justify-items: center; }
  .foot-row { justify-content: center; }
}
@media (max-width: 36rem) {
  .foot-row { flex-direction: column; }
  .foot-row li + li::before { content: none; }
}
/* legal line: © left, social icons dead-center, policy links right */
.site-footer .foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 0.85rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-footer .foot-legal > :last-child { justify-self: end; }
.foot-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.1rem; }
.foot-social a { display: inline-flex; }
.foot-social svg { width: 1.1rem; height: 1.1rem; display: block; }
@media (max-width: 36rem) {
  .site-footer .foot-legal { grid-template-columns: 1fr; justify-items: center; gap: 0.5rem; text-align: center; }
  .site-footer .foot-legal > :last-child { justify-self: center; }
}

/* ---------- utilities ---------- */
.center { text-align: center; }
.measure { max-width: 75ch; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ==========================================================================
   MOTION & TECH LAYER
   Scroll reveals, live components, and the dark "technology" treatment.
   All motion is progressive enhancement: hidden states only exist when
   JS has stamped html.js AND the user allows motion.
   ========================================================================== */

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
  /* stagger direct children of a revealed group */
  html.js .reveal-group > * {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .reveal-group.in > * { opacity: 1; transform: none; }
  html.js .reveal-group.in > *:nth-child(2) { transition-delay: 0.09s; }
  html.js .reveal-group.in > *:nth-child(3) { transition-delay: 0.18s; }
  html.js .reveal-group.in > *:nth-child(4) { transition-delay: 0.27s; }
  html.js .reveal-group.in > *:nth-child(5) { transition-delay: 0.36s; }
  html.js .reveal-group.in > *:nth-child(6) { transition-delay: 0.45s; }
}
.stat-num, [data-count] { font-variant-numeric: tabular-nums; }

/* ---------- value tag — the values as a visible thread through pages ------ */
.value-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-label); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--regal); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin-bottom: var(--space-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.value-tag::before {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 7px solid var(--azure);
}
.value-tag:hover { background: var(--foam); border-color: var(--azure); color: var(--regal); }
.section--ink .value-tag { color: var(--malibu); border-color: rgba(127, 196, 243, 0.35); }
.section--ink .value-tag:hover { background: rgba(127, 196, 243, 0.12); border-color: var(--malibu); color: var(--white); }

/* ---------- dark tech band (compose with .section--ink) ------------------- */
.section--tech {
  background:
    radial-gradient(52rem 26rem at 85% -12%, rgba(0, 138, 232, 0.32), transparent 62%),
    radial-gradient(40rem 22rem at -8% 108%, rgba(0, 138, 232, 0.16), transparent 60%),
    var(--navy);
  position: relative; overflow: hidden;
}
.section--tech::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 196, 243, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 196, 243, 0.07) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(70rem 40rem at 60% 0%, #000 30%, transparent 75%);
}
.section--tech > .wrap { position: relative; z-index: 1; }

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(127, 196, 243, 0.2);
  border-radius: var(--radius); padding: var(--space-3);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(127, 196, 243, 0.5); background: rgba(255, 255, 255, 0.08); }
.glass-card h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.glass-card p { margin: 0; font-size: var(--step--1); text-align: left; hyphens: none; }
.glass-card .icon-chip { background: rgba(0, 138, 232, 0.18); color: var(--malibu); }

/* AI / feature pill */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--malibu); background: rgba(0, 138, 232, 0.16);
  border: 1px solid rgba(127, 196, 243, 0.35);
  border-radius: 999px; padding: 0.2rem 0.65rem;
  align-self: flex-start;
}
.pill--light { color: var(--regal); background: var(--foam); border-color: rgba(0, 138, 232, 0.3); }

/* ---------- portal mock — the live dashboard window ----------------------- */
.portal {
  background: var(--navy); border-radius: var(--radius);
  border: 1px solid rgba(127, 196, 243, 0.25);
  box-shadow: 0 30px 60px -28px rgba(2, 39, 63, 0.65);
  overflow: hidden; font-size: 0.85rem; color: #cddeeb;
}
.portal-head {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(127, 196, 243, 0.18);
  padding: 0.65rem 1rem;
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--malibu);
}
.portal-head .dots { display: flex; gap: 0.35rem; margin-right: 0.5rem; }
.portal-head .dots span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(127, 196, 243, 0.3); }
/* No "Live" status badge here on purpose. The portal window is an interface
   illustration, not a view of production data — see docs/content-audit-sample-data.md.
   `pulse` stays: it drives the .wk "Go live" onboarding milestone, which is a real
   scheduled event rather than a data-freshness claim. */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.portal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(127, 196, 243, 0.18);
}
.portal-stats > div { padding: 0.9rem 1rem; border-right: 1px solid rgba(127, 196, 243, 0.12); }
.portal-stats > div:last-child { border-right: 0; }
.portal-stats .num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; line-height: 1.1; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.portal-stats .lbl {
  font-family: var(--font-label); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #8fb4cd;
}

.portal-feed { list-style: none; margin: 0; padding: 0.5rem 0; min-height: 13.5rem; }
.portal-feed li {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.5rem 1rem; margin: 0; line-height: 1.4;
}
.portal-feed li::before {
  content: ""; flex-shrink: 0; width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--azure); transform: translateY(-0.1rem);
}
.portal-feed li.ok::before { background: #35c98a; }
.portal-feed li.ai::before { background: var(--malibu); box-shadow: 0 0 8px rgba(127, 196, 243, 0.9); }
.portal-feed .tag {
  font-family: var(--font-label); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--navy); background: var(--malibu);
  border-radius: 4px; padding: 0.08rem 0.35rem; margin-right: 0.15rem;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .portal-feed li.new { animation: feed-in 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
}
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* animated bar chart strip at the base of the portal */
.portal-bars {
  display: flex; align-items: flex-end; gap: 0.45rem; height: 4.25rem;
  padding: 0 1rem 1rem;
}
.portal-bars i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--azure), rgba(0, 138, 232, 0.25));
  height: var(--h, 40%);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal .portal-bars i, html.js .reveal-group .portal-bars i { height: 4%; transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  html.js .reveal.in .portal-bars i, html.js .reveal-group.in .portal-bars i { height: var(--h, 40%); }
  html.js .portal-bars i:nth-child(2) { transition-delay: 0.06s; } html.js .portal-bars i:nth-child(3) { transition-delay: 0.12s; }
  html.js .portal-bars i:nth-child(4) { transition-delay: 0.18s; } html.js .portal-bars i:nth-child(5) { transition-delay: 0.24s; }
  html.js .portal-bars i:nth-child(6) { transition-delay: 0.3s; }  html.js .portal-bars i:nth-child(7) { transition-delay: 0.36s; }
  html.js .portal-bars i:nth-child(8) { transition-delay: 0.42s; } html.js .portal-bars i:nth-child(9) { transition-delay: 0.48s; }
  html.js .portal-bars i:nth-child(10) { transition-delay: 0.54s; } html.js .portal-bars i:nth-child(11) { transition-delay: 0.6s; }
  html.js .portal-bars i:nth-child(12) { transition-delay: 0.66s; }
}

/* ---------- category tags — angled, tactile, each one a door --------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; }
.cat-tag {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.35rem); letter-spacing: -0.01em;
  color: var(--text-2); background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 0.55rem 1.35rem;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-tag:nth-child(odd) { --tilt: -2deg; }
.cat-tag:nth-child(even) { --tilt: 1.6deg; }
.cat-tag:nth-child(3n) { --tilt: 2.6deg; }
.cat-tag:hover { transform: rotate(0deg) scale(1.07); background: var(--regal); color: var(--white); border-color: var(--regal); }
.cat-tag:focus-visible { transform: rotate(0deg); }

/* ---------- ship-best gallery — asymmetrical bento; label always shown, zoom on hover
   Mobile: simple 2-col mosaic. From 48rem up: a 12-col / 4-row editorial bento
   where a few categories span larger cells so the grid reads intentional. */
.ship-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(9rem, auto);
  margin-top: 1.5rem;
}
/* let two "hero" tiles read bigger even on mobile (2-col span) */
@media (max-width: 47.99rem) {
  .ship-grid > .ship-tile--wide  { grid-column: span 2; }
}

@media (min-width: 48rem) {
  .ship-grid {
    gap: 0.9rem;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, minmax(8.5rem, 1fr));
    grid-auto-flow: dense;
  }
  /* explicit bento placement — column-start / span, row-start / span.
     Scoped under .ship-grid so specificity beats the mobile span rule. */
  .ship-grid > .ship-tile--golf   { grid-column: 1 / span 5;  grid-row: 1 / span 2; }   /* big hero, left */
  .ship-grid > .ship-tile--supp   { grid-column: 6 / span 4;  grid-row: 1 / span 1; }
  .ship-grid > .ship-tile--skin   { grid-column: 10 / span 3; grid-row: 1 / span 2; }   /* tall, right */
  .ship-grid > .ship-tile--pet    { grid-column: 6 / span 4;  grid-row: 2 / span 1; }
  .ship-grid > .ship-tile--cpg    { grid-column: 1 / span 4;  grid-row: 3 / span 2; }
  .ship-grid > .ship-tile--home   { grid-column: 5 / span 3;  grid-row: 3 / span 1; }
  .ship-grid > .ship-tile--subs   { grid-column: 8 / span 5;  grid-row: 3 / span 2; }   /* big hero, right */
  .ship-grid > .ship-tile--cta    { grid-column: 5 / span 3;  grid-row: 4 / span 1; }
}

.ship-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none; color: var(--white);
  background: var(--navy);
  box-shadow: 0 1px 2px rgba(2, 39, 63, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
/* on mobile only, give photo tiles a pleasant portrait proportion */
@media (max-width: 47.99rem) {
  .ship-tile { aspect-ratio: 4 / 5; }
  .ship-tile--wide { aspect-ratio: 16 / 9; }
}
.ship-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.4s ease;
  filter: saturate(0.96);
}
/* label scrim — always visible, deepens on hover */
.ship-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(2, 39, 63, 0) 40%,
    rgba(2, 39, 63, 0.32) 70%,
    rgba(1, 24, 41, 0.85) 100%);
  transition: background 0.35s ease;
}
.ship-tile .ship-label {
  position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 0.9rem;
  color: var(--white);              /* stays white in every state */
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem); line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(1, 24, 41, 0.55);
}
/* bigger tiles carry a slightly bigger label */
.ship-tile--golf .ship-label,
.ship-tile--subs .ship-label { font-size: clamp(1.05rem, 1.5vw, 1.4rem); }

/* hover = a gentle zoom only. No lift, no shadow, no scrim change —
   these are showcase tiles, not links to other pages. */
.ship-tile:hover img, .ship-tile:focus-visible img { transform: scale(1.05); }
.ship-tile:focus-visible { outline: 2px solid var(--regal); outline-offset: 2px; }
.ship-tile:hover .ship-label, .ship-tile:focus-visible .ship-label { color: var(--white); }

/* the "Your brand" call-to-action tile — regal fill, no photo */
.ship-tile--cta {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  background: linear-gradient(150deg, var(--regal), var(--navy));
}
.ship-tile--cta::after { display: none; }
.ship-tile--cta .ship-label {
  position: static; left: auto; right: auto; bottom: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}
.ship-tile--cta:hover, .ship-tile--cta:focus-visible { background: linear-gradient(150deg, var(--navy), var(--regal)); }

@media (prefers-reduced-motion: reduce) {
  .ship-tile img { transition: none; }
  .ship-tile:hover img, .ship-tile:focus-visible img { transform: none; }
}

/* ---------- transit compare — the bicoastal argument, drawn ---------------- */
.transit { display: grid; gap: var(--space-3); }
.transit-row strong { display: block; font-size: 0.95rem; margin-bottom: 0.4rem; }
.transit-row .lane { background: var(--wild-sand); border-radius: 999px; height: 2.4rem; position: relative; overflow: hidden; }
.transit-row .fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 100%);
  border-radius: 999px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.9rem; color: var(--white);
  font-family: var(--font-label); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; white-space: nowrap;
  background: linear-gradient(90deg, var(--french), var(--text-3));
}
.transit-row .fill.argo { background: linear-gradient(90deg, var(--regal), var(--azure)); }
.transit-note { font-size: var(--step--1); color: var(--text-3); text-align: left; hyphens: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal .transit-row .fill, html.js .reveal-group .transit-row .fill { width: 2.6rem; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
  html.js .reveal.in .transit-row .fill, html.js .reveal-group.in .transit-row .fill { width: var(--w, 100%); }
}

/* ---------- mission display — the statement, oversized --------------------- */
.mission-display {
  font-size: var(--step-4); line-height: 1.12; letter-spacing: -0.02em;
  font-weight: 700; max-width: 24ch; text-wrap: balance;
}
.mission-display em { font-style: normal; color: var(--azure); position: relative; }
.section--ink .mission-display em { color: var(--malibu); }

/* ==========================================================================
   TACTILE LAYER — 3D objects, bento, micro-interactions, drawn UI.
   Everything here is hand-drawn in CSS/SVG (no stock imagery) and degrades
   to a clean static composition without JS or with reduced motion.
   ========================================================================== */

/* ---------- page cross-fade (View Transitions, progressive) --------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.16s; }
  ::view-transition-new(root) { animation-duration: 0.24s; }
}

/* ---------- cursor-reactive glow (JS sets --mx/--my) ----------------------- */
.glow-track { position: relative; }
.glow-track::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(30rem circle at var(--mx, 75%) var(--my, 25%),
              rgba(0, 138, 232, 0.07), transparent 65%);
}
.section--tech.glow-track::after {
  background: radial-gradient(34rem circle at var(--mx, 75%) var(--my, 25%),
              rgba(127, 196, 243, 0.13), transparent 65%);
}
.glow-track > .wrap { position: relative; z-index: 1; }

/* ---------- the box — an Argo parcel you can pick up and spin -------------- */
.box-scene {
  position: relative; display: grid; place-items: center;
  min-height: clamp(22rem, 46vw, 30rem);
  perspective: 1200px; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.box-float { position: relative; transform-style: preserve-3d; }
@media (prefers-reduced-motion: no-preference) {
  html.js .box-float { animation: box-bob 5.5s ease-in-out infinite alternate; }
}
@keyframes box-bob { from { translate: 0 -6px; } to { translate: 0 8px; } }
.box3d {
  --bs: clamp(190px, 22vw, 270px);
  width: var(--bs); height: var(--bs);
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, -20deg)) rotateY(var(--ry, 32deg));
  cursor: grab; will-change: transform;
}
.box3d.grabbing { cursor: grabbing; }
.box3d .f {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(140deg, #e6cda6 0%, #dcbf90 55%, #d2b17e 100%);
  box-shadow: inset 0 0 0 1px rgba(96, 66, 26, 0.14);
}
.box3d .f--front  { transform: translateZ(calc(var(--bs) / 2)); }
.box3d .f--back   { transform: rotateY(180deg) translateZ(calc(var(--bs) / 2)); }
.box3d .f--right  { transform: rotateY(90deg) translateZ(calc(var(--bs) / 2)); }
.box3d .f--left   { transform: rotateY(-90deg) translateZ(calc(var(--bs) / 2)); }
.box3d .f--top    { transform: rotateX(90deg) translateZ(calc(var(--bs) / 2)); }
.box3d .f--bottom { transform: rotateX(-90deg) translateZ(calc(var(--bs) / 2)); background: #c4a26e; }
/* branded packing tape across the lid and down the sides */
.box3d .f--top::before, .box3d .f--front::before, .box3d .f--back::before {
  content: ""; position: absolute; left: 39%; width: 22%; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0, 105, 178, 0.92), rgba(0, 138, 232, 0.88) 45%, rgba(0, 105, 178, 0.92));
}
.box3d .f--front::before, .box3d .f--back::before { bottom: auto; height: 24%; }
.box3d .f--front > *, .box3d .f--back > *, .box3d .f--left > *, .box3d .f--right > * { position: relative; z-index: 1; }
.box3d .f--front img { width: 62%; height: auto; opacity: 0.92; }
/* the shipping label */
.box-label {
  background: var(--white); width: 74%; padding: 0.65rem 0.7rem;
  border-radius: 2px; box-shadow: 0 2px 8px rgba(60, 38, 8, 0.25);
  font-family: var(--font-label); text-align: left;
}
.box-label .lr {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-block: 0.22rem;
}
.box-label .lr dt { color: var(--text-3); font-weight: 600; }
.box-label .lr dd { margin: 0; font-weight: 700; color: var(--regal); }
.box-label .lr:last-of-type { border-bottom: 0; }
.box-label .code {
  margin-top: 0.35rem; height: 1.6rem;
  background: repeating-linear-gradient(90deg, #16181b 0 2px, transparent 2px 5px, #16181b 5px 6px, transparent 6px 8px, #16181b 8px 11px, transparent 11px 13px);
}
/* stenciled sides */
.box-stencil {
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.72rem; text-align: center;
  color: rgba(84, 56, 20, 0.6); border: 2px solid rgba(84, 56, 20, 0.5);
  padding: 0.5rem 0.9rem; transform: rotate(-3deg);
}
.box-stencil strong { display: block; font-size: 1.3rem; letter-spacing: 0.1em; color: rgba(84, 56, 20, 0.72); }
.box-arrows { font-size: 1.3rem; color: rgba(84, 56, 20, 0.55); letter-spacing: 0.6em; text-indent: 0.6em; }
/* grounding shadow */
.box-ground {
  position: absolute; left: 50%; bottom: clamp(-0.5rem, -1vw, -1.5rem);
  width: 62%; height: 2.4rem; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 39, 63, 0.30), transparent 72%);
  filter: blur(5px); pointer-events: none;
}
.drag-hint {
  position: absolute; bottom: -0.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  transition: opacity 0.5s ease; white-space: nowrap;
}
.drag-hint.hide { opacity: 0; }
/* the box lives inside a .split — keep its face art clear of the img frame rule */
.box-scene img { border: 0; border-radius: 0; }

/* ---------- bento — proof, arranged like an operating system --------------- */
.bento { display: grid; gap: clamp(0.8rem, 1.5vw, 1.1rem); grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.55rem; min-height: 10rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.tile:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.tile--span2 { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--ink { background: linear-gradient(155deg, var(--regal) 0%, var(--navy) 90%); border-color: transparent; color: #d7e7f3; }
.tile--azure { background: linear-gradient(135deg, var(--azure), var(--regal) 85%); border-color: transparent; color: #eaf5fd; }
.tile--foam { background: var(--foam); }
.tile h3 { margin: 0; font-size: 1.12rem; }
.tile--ink h3, .tile--azure h3 { color: var(--white); }
.tile p { margin: 0; font-size: var(--step--1); color: var(--text-2); text-align: left; hyphens: none; }
.tile--ink p { color: #bcd4e6; }
.tile--azure p { color: #dceefb; }
.tile--ink a { color: var(--malibu); }
.tile--azure a { color: var(--white); }
.tile-kicker {
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}
.tile--ink .tile-kicker, .tile--azure .tile-kicker { color: rgba(255, 255, 255, 0.65); }
.tile-big {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-3);
  line-height: 1; color: var(--regal); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tile--ink .tile-big, .tile--azure .tile-big { color: var(--white); }
.tile-foot { margin-top: auto; font-size: var(--step--1); }
.tile--ink .lane { background: rgba(255, 255, 255, 0.14); }
.tile--ink .transit-row strong { color: var(--white); font-size: 0.85rem; }
.tile--ink .transit-note { color: #9fb9cc; }
@media (max-width: 56rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) {
  .bento { grid-template-columns: 1fr; }
  .tile--span2 { grid-column: auto; }
  .tile--tall { grid-row: auto; }
}

/* live pulse dot (generic) */
.pulse-dot {
  display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: #35c98a; animation: pulse 2s ease-in-out infinite;
}

/* sparkline bars (light surfaces) */
.spark { display: flex; align-items: flex-end; gap: 0.35rem; height: 3.2rem; margin-top: auto; }
.spark i {
  flex: 1; border-radius: 3px 3px 0 0; height: var(--h, 40%);
  background: linear-gradient(180deg, var(--azure), rgba(0, 138, 232, 0.35));
}
.tile--ink .spark i, .tile--azure .spark i { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.35)); }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal-group .spark i, html.js .reveal .spark i { height: 6%; transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  html.js .reveal-group.in .spark i, html.js .reveal.in .spark i { height: var(--h, 40%); }
  html.js .spark i:nth-child(2) { transition-delay: 0.07s; } html.js .spark i:nth-child(3) { transition-delay: 0.14s; }
  html.js .spark i:nth-child(4) { transition-delay: 0.21s; } html.js .spark i:nth-child(5) { transition-delay: 0.28s; }
  html.js .spark i:nth-child(6) { transition-delay: 0.35s; } html.js .spark i:nth-child(7) { transition-delay: 0.42s; }
  html.js .spark i:nth-child(8) { transition-delay: 0.49s; }
}

/* animated route line (inline SVG) */
.route-svg { width: 100%; height: auto; display: block; }
.route-svg .lane-dash { stroke-dasharray: 5 9; }
@media (prefers-reduced-motion: no-preference) {
  html.js .route-svg .lane-dash { animation: route-flow 1.4s linear infinite; }
}
@keyframes route-flow { to { stroke-dashoffset: -14; } }
.route-svg .node-pulse { transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  html.js .route-svg .node-pulse { animation: node-throb 2.4s ease-in-out infinite; }
  html.js .route-svg .node-pulse.late { animation-delay: 1.2s; }
}
@keyframes node-throb { 0%, 100% { opacity: 0.25; scale: 1; } 50% { opacity: 0.6; scale: 1.5; } }

/* staggered grid offsets (margin-based: safe with reveal transforms) */
@media (min-width: 56rem) {
  .stagger { align-items: start; }
  .stagger > *:nth-child(2) { margin-top: 1.8rem; }
  .stagger > *:nth-child(3) { margin-top: 3.4rem; }
}

/* ---------- terminal — the routing rules, typed ----------------------------- */
.term {
  background: #071723; border: 1px solid rgba(127, 196, 243, 0.22);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(2, 39, 63, 0.65);
}
.term-body {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.8rem; line-height: 1.75; color: #bcd9ee;
  padding: 1.1rem 1.25rem 1.4rem; min-height: 16rem;
}
.term-body code { display: block; white-space: pre-wrap; }
.term .tk-k { color: var(--malibu); font-weight: 600; }
.term .tk-s { color: #7fe3b8; }
.term .tk-c { color: #58748a; font-style: italic; }
.term .tk-f { color: #fff; }
.term-caret {
  display: inline-block; width: 0.55em; height: 1.05em;
  background: var(--malibu); vertical-align: -0.18em; margin-left: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .term-caret { animation: caret-blink 1s steps(1) infinite; }
  html.js .term[data-type] .term-body code { visibility: hidden; }
  html.js .term[data-type] .term-body code.on { visibility: visible; }
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- dashboard — a Partner Portal analytics view, drawn -------------- */
.dash {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden;
  display: grid; grid-template-columns: 3.4rem 1fr;
}
.dash-side {
  background: var(--navy); display: flex; flex-direction: column;
  align-items: center; gap: 0.9rem; padding-block: 1rem;
}
.dash-side i {
  width: 1.15rem; height: 1.15rem; border-radius: 5px;
  background: rgba(127, 196, 243, 0.25);
}
.dash-side i:first-child { background: var(--azure); }
.dash-main { padding: 1rem 1.15rem 1.15rem; display: grid; gap: 0.85rem; min-width: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.dash-kpi { background: var(--wild-sand); border-radius: 10px; padding: 0.55rem 0.7rem; }
.dash-kpi .num { display: block; font-weight: 700; color: var(--regal); font-size: 1.15rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash-kpi .lbl { font-family: var(--font-label); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.dash .chart { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal .chart .line { stroke-dasharray: 480; stroke-dashoffset: 480; transition: stroke-dashoffset 1.6s ease 0.25s; }
  html.js .reveal.in .chart .line { stroke-dashoffset: 0; }
  html.js .reveal .chart .area { opacity: 0; transition: opacity 0.8s ease 1s; }
  html.js .reveal.in .chart .area { opacity: 1; }
}
.dash-rows { display: grid; gap: 0.4rem; font-size: 0.72rem; }
.dash-row {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--wild-sand); border-radius: 8px; padding: 0.45rem 0.65rem;
  white-space: nowrap; overflow: hidden;
}
.dash-row .id { font-family: var(--font-label); font-weight: 700; color: var(--regal); }
.dash-row .dest { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.dash-row .st {
  margin-left: auto; font-family: var(--font-label); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 0.14rem 0.55rem;
}
.dash-row .st--ok { background: #e2f4ea; color: var(--green-ink); }
.dash-row .st--move { background: var(--foam); color: var(--regal); }
.dash-row .st--ai { background: var(--regal); color: var(--white); }

/* ---------- 3D book — print services you can open --------------------------- */
.book-scene { display: grid; place-items: center; min-height: clamp(20rem, 40vw, 26rem); perspective: 1400px; position: relative; }
.book3d {
  --bw: clamp(180px, 18vw, 240px); --bh: calc(var(--bw) * 1.38); --bd: calc(var(--bw) * 0.16);
  position: relative; width: var(--bw); height: var(--bh);
  transform-style: preserve-3d; transform: rotateX(6deg) rotateY(-28deg);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .book3d { animation: box-bob 6s ease-in-out infinite alternate; }
}
.book3d { transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.book3d .bk { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; }
.book-back {
  background: var(--regal-deep);
  transform: rotateY(180deg) translateZ(calc(var(--bd) / 2));
  box-shadow: 0 24px 44px -18px rgba(2, 39, 63, 0.5);
}
/* fore-edge: the page block, visible on the right side */
.book-pages {
  position: absolute; top: 3px; bottom: 3px; height: auto;
  left: calc(50% - var(--bd) / 2 + 2px); width: calc(var(--bd) - 4px);
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e3e5e8 2px 3px);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 2px));
}
.book-spine {
  position: absolute; top: 0; height: 100%;
  left: calc(50% - var(--bd) / 2); width: var(--bd);
  background: linear-gradient(90deg, var(--regal-deep), var(--regal));
  border-radius: 3px 0 0 3px;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  display: flex; align-items: center; justify-content: center;
}
.book-spine img { width: 60%; height: auto; }
.book-cover {
  background: linear-gradient(150deg, var(--regal) 0%, var(--regal-deep) 80%);
  color: var(--white); display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.1rem;
  transform: translateZ(calc(var(--bd) / 2));
}
/* a foil-stamp accent band across the cover */
.book-cover::after {
  content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 4px;
  background: linear-gradient(90deg, var(--azure), var(--malibu));
}
.book-cover .bc-mark { width: 2.2rem; height: auto; }
.book-cover .bc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.book-cover .bc-foot { font-family: var(--font-label); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--malibu); }
@media (hover: hover) {
  .book-scene:hover .book3d { transform: rotateX(4deg) rotateY(-52deg) scale(1.04); }
}
.book-ground {
  position: absolute; left: 50%; bottom: 6%; width: 58%; height: 2rem;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 39, 63, 0.28), transparent 72%);
  filter: blur(5px); pointer-events: none;
}

/* logo strip: quiet by default, alive on hover */
.logo-strip img { filter: grayscale(1); opacity: 0.65; transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease; }
.logo-strip img:hover { filter: none; opacity: 1; transform: translateY(-2px) scale(1.05); }

/* ==========================================================================
   ZONE MAP — /logistics/zone-map/
   Interactive USPS zone choropleth (886 three-digit ZIP areas, drawn from
   Census boundaries + USPS zone charts). Data renders client-side from
   /assets/data/zone-map.json; without JS the page shows a static summary.
   ========================================================================== */

.zm {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden;
}

/* toolbar: origin switcher + legend */
.zm-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  justify-content: space-between; padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.zm-seg {
  display: inline-flex; flex-wrap: wrap; gap: 0.25rem;
  background: var(--wild-sand); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 0.25rem;
}
.zm-seg button {
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  color: var(--text-2); background: transparent; border: 0; border-radius: 10px;
  padding: 0.4rem 1rem; cursor: pointer; line-height: 1.2; text-align: left;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.zm-seg button .sub {
  display: block; font-family: var(--font-label); font-weight: 600;
  font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}
.zm-seg button:hover { color: var(--regal); }
.zm-seg button[aria-pressed="true"] {
  background: var(--regal); color: var(--white);
  box-shadow: 0 6px 14px -8px rgba(0, 69, 116, 0.65);
}
.zm-seg button[aria-pressed="true"] .sub { color: var(--malibu); }

.zm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 0; }
.zm-legend li {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 600;
  color: var(--text-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.18rem 0.55rem; cursor: default;
  font-variant-numeric: tabular-nums;
}
.zm-legend .sw { width: 0.8rem; height: 0.8rem; border-radius: 3px; display: inline-block; }
.zm-legend .ct { color: var(--text-3); font-weight: 500; }
.zm-legend li:hover { border-color: var(--azure); }

/* the map itself */
.zm-canvas { position: relative; padding: var(--space-2) var(--space-2) var(--space-3); }
.zm-canvas svg { width: 100%; height: auto; display: block; }
.zm-loading, .zm-error {
  display: grid; place-items: center; min-height: 22rem;
  font-family: var(--font-label); font-size: 0.85rem; color: var(--text-3);
}
.zm-error a { color: var(--regal); }

.zm-base { fill: #dfe3e7; }
.zm-a {
  fill: var(--wild-sand); stroke: #fff; stroke-width: 0.7;
  transition: fill 0.5s ease, opacity 0.25s ease;
}
.zm-a:hover { stroke: #000; stroke-width: 2.5; }
/* zone ramp across the full brand palette: Ocean Green (close) through the
   blues to Navy, with Guardsman Red for the painful zone-8 tail */
.zm-a.z1, .zc.z1, .sw.z1 { fill: #349d73; background: #349d73; }
.zm-a.z2, .zc.z2, .sw.z2 { fill: #85c7ab; background: #85c7ab; }
.zm-a.z3, .zc.z3, .sw.z3 { fill: #cfe9fa; background: #cfe9fa; }
.zm-a.z4, .zc.z4, .sw.z4 { fill: #7fc4f3; background: #7fc4f3; }
.zm-a.z5, .zc.z5, .sw.z5 { fill: #008ae8; background: #008ae8; }
.zm-a.z6, .zc.z6, .sw.z6 { fill: #004574; background: #004574; }
.zm-a.z7, .zc.z7, .sw.z7 { fill: #02273f; background: #02273f; }
.zm-a.z8, .zc.z8, .sw.z8 { fill: #c00000; background: #c00000; }
.zm-a.z9, .zc.z9, .sw.z9 { fill: #8a0e0e; background: #8a0e0e; }
.zm-legend .sw.z2, .zm-legend .sw.z3 { border: 1px solid var(--line-strong); }
/* transit compare bars on dark bands */
.section--ink .transit-row strong { color: var(--white); }
.section--ink .transit-row .lane { background: rgba(255, 255, 255, 0.14); }
.section--ink .transit-note { color: #9fb9cc; }
/* legend hover focus: dim everything except the hovered zone */
.zm-canvas[data-focus] .zm-a { opacity: 0.12; }
.zm-canvas[data-focus="1"] .zm-a.z1, .zm-canvas[data-focus="2"] .zm-a.z2,
.zm-canvas[data-focus="3"] .zm-a.z3, .zm-canvas[data-focus="4"] .zm-a.z4,
.zm-canvas[data-focus="5"] .zm-a.z5, .zm-canvas[data-focus="6"] .zm-a.z6,
.zm-canvas[data-focus="7"] .zm-a.z7, .zm-canvas[data-focus="8"] .zm-a.z8 { opacity: 1; }
/* looked-up destination highlight */
.zm-a.hit { stroke: var(--navy); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  html.js .zm-a.hit { animation: zm-hit 1.6s ease-in-out infinite; }
}
@keyframes zm-hit { 0%, 100% { stroke-width: 3; } 50% { stroke-width: 1; } }

/* warehouse markers */
.zm-node { cursor: pointer; }
.zm-node .tri {
  fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgba(2, 39, 63, 0.45));
}
.zm-node .ring { fill: none; stroke: #35c98a; stroke-width: 3; opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  html.js .zm-node .ring { transform-origin: center; transform-box: fill-box; animation: node-throb 2.4s ease-in-out infinite; }
  html.js .zm-node[data-id="600"] .ring { animation-delay: 1.2s; }
}
.zm-node text {
  font-family: var(--font-label); font-size: 26px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  fill: var(--navy); stroke: #fff; stroke-width: 5; paint-order: stroke;
}
.zm-node.idle .ring { display: none; }
.zm-node.idle .tri { fill: var(--wild-sand); stroke-dasharray: 5 4; opacity: 0.75; }
.zm-node.idle text { opacity: 0.65; }

/* tooltip */
.zm-tip {
  position: absolute; z-index: 5; pointer-events: none; display: none;
  background: var(--navy); color: #dceefb; border-radius: var(--radius-sm);
  box-shadow: 0 14px 30px -12px rgba(2, 39, 63, 0.6);
  padding: 0.6rem 0.75rem; min-width: 11.5rem; font-size: 0.8rem; line-height: 1.45;
}
.zm-tip.on { display: block; }
.zm-tip .tt-head {
  font-family: var(--font-label); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--malibu);
  margin-bottom: 0.3rem;
}
.zm-tip .tt-row { display: flex; justify-content: space-between; gap: 1rem; }
.zm-tip .tt-row strong { color: #fff; font-variant-numeric: tabular-nums; }
.zm-tip .tt-win { color: #7fe3b8; }

/* live stats strip under the map */
.zm-strip {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  border-top: 1px solid var(--line);
}
.zm-strip > div { background: var(--wild-sand); padding: 0.9rem var(--space-3); }
.zm-strip .num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-2); line-height: 1.1; color: var(--regal);
  font-variant-numeric: tabular-nums;
}
.zm-strip .num .win { color: var(--green-ink); }
.zm-strip .lbl {
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-2);
}
.zm-note {
  padding: 0.7rem var(--space-3); border-top: 1px solid var(--line);
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.03em;
  color: var(--text-3);
}

/* destination lookup */
.zm-lookup form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-2); }
.zm-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.zm-try button {
  font: inherit; font-family: var(--font-label); font-size: 0.72rem; font-weight: 600;
  color: var(--regal); background: var(--foam); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zm-try button:hover { background: var(--white); border-color: var(--azure); }
.zm-lookup input { max-width: 11rem; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.zm-result { display: none; }
.zm-result.on { display: block; }
.zm-result .zr-dest {
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2);
}
.zm-result .zr-rows { display: grid; gap: 0.5rem; margin-top: var(--space-2); }
.zm-result .zr-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem; font-size: 0.92rem;
}
.zm-result .zr-row.win { border-color: var(--green); background: #f2faf6; }
.zm-result .zr-row .who { font-weight: 600; }
.zm-result .zr-row .badge {
  margin-left: auto; font-family: var(--font-label); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-ink);
}
.zc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 6px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums;
}
.zc.z1, .zc.z2 { color: var(--navy); }
.zc.z3, .zc.z4 { color: var(--regal); }
.zm-result .zr-note { font-size: var(--step--1); color: var(--text-3); margin: 0.6rem 0 0; text-align: left; }
.zm-result .zr-err { color: var(--red); font-size: 0.9rem; }

/* compare-your-warehouse: side-by-side split maps */
.zm-cmp {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: var(--space-3) var(--space-3) var(--space-4);
}
.zm-cmp-head {
  display: grid; gap: var(--space-3); align-items: end;
  border-bottom: 1px solid var(--line); padding-bottom: var(--space-3);
}
@media (min-width: 48rem) { .zm-cmp-head { grid-template-columns: 1.3fr 1fr; } }
.zm-cmp-head h2 { margin: 0.35rem 0 0.4rem; }
.zm-cmp-head p { margin: 0; }
.zm-cmp-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.zm-cmp-form input { max-width: 13rem; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.zm-cmp-try {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  font-family: var(--font-label); font-size: 0.72rem; color: var(--text-3);
}
.zm-cmp-try button {
  font: inherit; font-family: var(--font-label); font-weight: 600;
  color: var(--regal); background: var(--foam); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zm-cmp-try button:hover { background: var(--white); border-color: var(--azure); }

.zm-compare { display: none; margin-top: var(--space-3); }
.zm-compare.on { display: block; }
.zm-compare .zr-err { color: var(--red); font-size: 0.9rem; }
/* your-warehouse map + one map per Argo location (two today, or a single
   combined-network map if multi-node allocation is ever enabled) */
.zm-cmp-grid { display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .zm-cmp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) {
  .zm-cmp-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}
.zm-mini { margin: 0; }
.zm-mini figcaption {
  font-family: var(--font-label); font-size: 0.74rem; font-weight: 600;
  color: var(--text-2); display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 0.5rem;
}
.zm-mini-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-3); background: var(--wild-sand); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.16rem 0.55rem;
}
.zm-mini-tag.argo { color: var(--white); background: var(--regal); border-color: var(--regal); }
.zm-mini-canvas {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--foam); overflow: hidden;
}
.zm-mini-svg { width: 100%; height: auto; display: block; }
.zm-mini-svg .zm-a { stroke: #fff; stroke-width: 0.6; }
.zm-mini-mark {
  fill: #fff; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgba(2, 39, 63, 0.5));
}
.zm-mini-stat {
  margin-top: 0.5rem; font-family: var(--font-label); font-size: 0.78rem;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.zm-mini-stat strong { color: var(--regal); font-family: var(--font-display); }
.zm-cmp-verdict {
  margin-top: var(--space-3); padding: var(--space-2) var(--space-3);
  background: #f2faf6; border: 1px solid var(--green); border-radius: var(--radius-sm);
  font-size: 0.95rem; line-height: 1.5; color: var(--text);
}
.zm-cmp-verdict strong { color: var(--green-ink); }
.zm-cmp-note {
  margin: var(--space-2) 0 0; font-family: var(--font-label);
  font-size: 0.7rem; letter-spacing: 0.03em; color: var(--text-3); text-align: left;
}
.zm-cmp-note a { color: var(--regal); }

/* ==========================================================================
   ORDER STORY — "The life of an order" homepage vertical timeline.
   Eight scenes on a numbered rail; scenes fade in via the shared .reveal
   observer. All artwork is code-drawn; map scenes render from zone-map.json.
   ========================================================================== */

.story { background: var(--navy); position: relative; }
.story-intro { position: relative; padding-block: var(--space-5) var(--space-4); }
/* atmosphere: brand radials + a faint engineering grid */
.story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 82% -4%, rgba(0, 138, 232, 0.22), transparent 62%),
    radial-gradient(40rem 24rem at -6% 104%, rgba(0, 138, 232, 0.12), transparent 60%);
}
.story::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 196, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 196, 243, 0.06) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(90rem 60rem at 60% 10%, #000 30%, transparent 78%);
}
.story > .wrap { position: relative; z-index: 1; }

/* the timeline — a rail down the left with one numbered stop per scene */
.story-flow {
  list-style: none; margin: 0; padding: 0 0 var(--space-5);
  position: relative; counter-reset: scene;
}
.story-flow::before {
  content: ""; position: absolute; top: 0.4rem; bottom: 0;
  left: calc(1.25rem - 1px); width: 2px;
  background: linear-gradient(180deg, rgba(127, 196, 243, 0.45), rgba(127, 196, 243, 0.15) 88%, transparent);
}

.sc {
  position: relative; margin: 0; counter-increment: scene;
  padding: var(--space-4) 0 var(--space-4) clamp(2.6rem, 6vw, 4rem);
  display: grid; gap: clamp(1.6rem, 4vw, 4rem); align-items: center;
}
@media (min-width: 56rem) { .sc { grid-template-columns: minmax(19rem, 30rem) 1fr; } }
.sc:first-child { padding-top: 0.4rem; }
.sc:last-child { padding-bottom: 0; }
/* the numbered stop; the navy ring punches it out of the rail */
.sc::before {
  content: counter(scene, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-4);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--malibu); background: #06304d;
  border: 1px solid rgba(127, 196, 243, 0.45);
  box-shadow: 0 0 0 6px var(--navy);
}
.sc:first-child::before { top: 0.4rem; }

/* scene copy */
.sc-copy { max-width: 34rem; }
.sc-copy h3 { font-size: var(--step-3); color: var(--white); letter-spacing: -0.02em; max-width: 16ch; }
.sc-copy p { color: #cddeeb; text-align: left; hyphens: none; }
.sc-time {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-label); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--malibu);
  background: rgba(0, 138, 232, 0.14); border: 1px solid rgba(127, 196, 243, 0.3);
  border-radius: 999px; padding: 0.32rem 0.8rem; margin-bottom: var(--space-2);
}
.sc-time::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--azure); }
/* the flashback scenes run on kraft, not blue */
.sc-time--flash { color: #ecd9b8; border-color: rgba(230, 205, 166, 0.4); background: rgba(230, 205, 166, 0.08); }
.sc-time--flash::before { background: #e6cda6; }
.sc-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: var(--space-3); }
.sc-art { position: relative; min-width: 0; }

/* ---------- scene 0 · the checkout ---------- */
.chk {
  width: min(100%, 23rem); margin-inline: auto;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.75);
}
.chk-head {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.9rem;
  background: var(--wild-sand); border-bottom: 1px solid var(--line);
  font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-3);
}
.chk-head .dots { display: flex; gap: 0.3rem; }
.chk-head .dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--french); }
.chk-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.7rem; color: var(--text); }
.chk-item { display: flex; align-items: center; gap: 0.75rem; }
.chk-thumb {
  flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: 8px;
  background: linear-gradient(160deg, var(--wild-sand), #e7ece7);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.chk-thumb svg { width: 2.35rem; height: 2.35rem; display: block; }
.chk-item strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.chk-item span { font-size: 0.78rem; color: var(--text-3); }
.chk-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.chk-row span:first-child { color: var(--text-3); }
.chk-btn {
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
  background: var(--regal); border: 0; border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; cursor: default; transition: transform 0.2s ease, background 0.2s ease;
}
.chk-done { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--green-ink); }
.chk-check {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--green); color: var(--white); font-size: 0.78rem;
}

/* ---------- scene 1 · the handoff ---------- */
.sync { display: flex; align-items: center; gap: 0.8rem; width: min(100%, 30rem); margin-inline: auto; }
.sync-node {
  flex-shrink: 0; display: grid; gap: 0.45rem; justify-items: center;
  font-family: var(--font-label); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--malibu); text-align: center;
}
.sync-glyph {
  width: 3.4rem; height: 3.4rem; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(127, 196, 243, 0.3);
  font-size: 1.4rem; color: var(--white);
}
.sync-glyph img { width: 1.9rem; height: auto; }
.sync-wire { flex: 1; overflow: visible; min-width: 0; }
.sync-wire .wire { fill: none; stroke: rgba(127, 196, 243, 0.35); stroke-width: 2; stroke-dasharray: 4 7; }
.sync-wire .pkt rect { fill: var(--navy); stroke: var(--malibu); stroke-width: 1.5; }
.sync-wire .pkt text {
  fill: #dceefb; font-family: ui-monospace, Consolas, monospace; font-size: 11px;
  text-anchor: middle; font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .sync-wire .wire { animation: route-flow 1.2s linear infinite; }
  html.js .sync-wire .pkt { animation: pkt-fly 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
}
@keyframes pkt-fly {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(124px, -8px); }
  90% { opacity: 1; }
  100% { transform: translate(248px, 0); opacity: 0; }
}
.sync-log {
  list-style: none; margin: 1.5rem auto 0; padding: 0; width: min(100%, 30rem);
  display: grid; gap: 0.45rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.76rem; color: #bcd9ee;
}
.sync-log li {
  margin: 0; display: flex; align-items: baseline; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(127, 196, 243, 0.16);
  border-radius: 8px; padding: 0.5rem 0.8rem;
}
.sync-log .tag {
  font-family: var(--font-label); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--navy); background: var(--malibu); border-radius: 4px; padding: 0.08rem 0.35rem;
}
.sync-log .t { margin-left: auto; color: #7f93a4; font-size: 0.68rem; white-space: nowrap; }

/* ---------- scene 2 · received & stocked (flashback) ---------- */
.dock { width: min(100%, 26rem); margin-inline: auto; }
.dock-door {
  position: relative; height: clamp(9rem, 24vh, 12rem); border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(127, 196, 243, 0.07) 0 1.4rem, rgba(127, 196, 243, 0.02) 1.4rem 1.5rem),
    linear-gradient(180deg, rgba(127, 196, 243, 0.06), rgba(127, 196, 243, 0.01));
  border: 1px solid rgba(127, 196, 243, 0.22);
}
.pallet-svg {
  position: absolute; left: 50%; bottom: 0.55rem; transform: translateX(-50%);
  width: min(76%, 15rem); height: auto; display: block;
}
.dock-beam {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2.5rem;
  background: linear-gradient(90deg, transparent, rgba(0, 138, 232, 0.4), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .dock-beam { animation: dock-sweep 2.6s ease-in-out infinite alternate; }
}
@keyframes dock-sweep { from { left: 0; } to { left: calc(100% - 2.5rem); } }
.dock-count { display: flex; align-items: baseline; gap: 0.9rem; margin-top: 1.1rem; }
.dock-count .num {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-4);
  line-height: 1; color: var(--white); font-variant-numeric: tabular-nums;
}
.dock-count .lbl {
  font-family: var(--font-label); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #8fb4cd; max-width: 11rem;
}
.story-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.story-chips span {
  font-family: var(--font-label); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #dceefb;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(127, 196, 243, 0.25);
  border-radius: 999px; padding: 0.35rem 0.8rem;
}

/* ---------- map window (scenes 3 & 7) ---------- */
.story-map {
  width: 100%; max-width: 46rem; margin-inline: auto;
  background: rgba(2, 23, 38, 0.72); border: 1px solid rgba(127, 196, 243, 0.28);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
}
.story-map-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(127, 196, 243, 0.18);
  font-family: var(--font-label); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--malibu);
}
.story-map-head .dots { display: flex; gap: 0.35rem; margin-right: 0.4rem; }
.story-map-head .dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(127, 196, 243, 0.3); }
/* Same rule as .portal-head: no "Live" badge. The story maps illustrate one
   representative order's journey, not a tracked shipment. */
.story-map-canvas { position: relative; padding: 0.6rem 0.8rem 0.8rem; }
.smap, .story-map-fallback { width: 100%; height: auto; display: block; }

.smap-base { fill: #0c2f4a; }
.smap-a { fill: rgba(255, 255, 255, 0.05); stroke: rgba(4, 32, 52, 0.75); stroke-width: 0.7; }
.smap-a.z1 { fill: #349d73; } .smap-a.z2 { fill: #85c7ab; }
.smap-a.z3 { fill: #cfe9fa; } .smap-a.z4 { fill: #7fc4f3; }
.smap-a.z5 { fill: #008ae8; } .smap-a.z6 { fill: #004574; }
.smap-a.z7 { fill: #02273f; } .smap-a.z8 { fill: #c00000; }
.smap-a.dest { stroke: #fff; stroke-width: 6; }
.smap-node path { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.smap-node text {
  font-family: var(--font-label); font-size: 40px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  fill: #dceefb; stroke: rgba(2, 39, 63, 0.85); stroke-width: 6; paint-order: stroke;
}
.smap-dest .ring { fill: none; stroke: var(--navy); stroke-width: 7; opacity: 0.4; transform-origin: center; transform-box: fill-box; }
.smap-dest .dot { fill: var(--navy); stroke: #fff; stroke-width: 4; }
.smap--night .smap-dest .ring { stroke: #fff; stroke-width: 1.5; }
.smap--night .smap-dest .dot { fill: #fff; stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .smap-dest .ring { animation: node-throb 2.4s ease-in-out infinite; }
}

/* candidate lanes: both bid at beat 1, the closer node wins at beat 2.
   White halo under a navy core keeps them legible over every zone color. */
.smap-halo, .smap-lane {
  fill: none; stroke-linecap: round; stroke-dasharray: 2.5 5.5;
  transition: opacity 0.5s ease, stroke 0.5s ease, stroke-dasharray 0.9s ease;
}
.smap-halo { stroke: rgba(255, 255, 255, 0.9); stroke-width: 24; }
.smap-lane { stroke: rgba(2, 39, 63, 0.85); stroke-width: 11; }
.smap-halo.win { stroke-dasharray: 100 100; opacity: 1; }
.smap-lane.win { stroke: var(--green); stroke-dasharray: 100 100; opacity: 1; }
.smap-lane.lose, .smap-halo.lose { opacity: 0.3; }

/* HTML chips pinned onto map coordinates */
.smap-chip {
  position: absolute; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap;
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  color: #dceefb; background: rgba(2, 39, 63, 0.92);
  border: 1px solid rgba(127, 196, 243, 0.4); border-radius: 999px; padding: 0.28rem 0.7rem;
}
.smap-chip.chip-win { color: #7fe3b8; border-color: rgba(53, 201, 138, 0.6); }
.smap-chip.chip-lose { opacity: 0.4; }
.smap-chip.chip-dest { color: var(--white); background: var(--regal); border-color: var(--malibu); }

/* verdict rows under the map */
.story-lanes { border-top: 1px solid rgba(127, 196, 243, 0.18); }
.lane-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 1rem;
  font-size: 0.85rem; color: #cddeeb; border-top: 1px solid rgba(127, 196, 243, 0.08);
}
.lane-row:first-child { border-top: 0; }
.lane-row .zc { width: 1.6rem; height: 1.6rem; font-size: 0.85rem; }
.lane-row--win { background: rgba(53, 201, 138, 0.08); }
.lane-row .badge {
  margin-left: auto; font-family: var(--font-label); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #7fe3b8;
}

/* the night run (scene 8) — zoomed viewBox, so sizes are in tighter units */
.smap--night .smap-base { fill: #0a2740; }
.smap-ghost { fill: none; stroke: rgba(127, 196, 243, 0.1); stroke-width: 0.4; }
.smap--night .smap-node text { font-size: 9px; stroke-width: 2; letter-spacing: 0.04em; }
.smap--night .smap-node path { stroke-width: 1; }
.smap-route {
  fill: none; stroke: var(--malibu); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(127, 196, 243, 0.6));
}
.smap-truck { fill: #fff; stroke: var(--azure); stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(0, 138, 232, 0.9)); }
.smap-place {
  font-family: var(--font-label); font-size: 7.5px; font-weight: 700; letter-spacing: 0.1em;
  fill: #8fb4cd; text-transform: uppercase;
}
.dlv-card {
  position: absolute; right: 5%; top: 9%; z-index: 2;
  display: flex; align-items: center; gap: 0.6rem; max-width: 15rem;
  background: var(--white); color: var(--text); border-radius: 12px;
  padding: 0.7rem 0.95rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
}
.dlv-card strong { display: block; font-size: 0.85rem; line-height: 1.25; }
.dlv-card span { font-size: 0.72rem; color: var(--text-3); }
.sc .transit { gap: 0.8rem; margin-top: var(--space-3); }
.sc .transit-row strong { color: var(--white); font-size: 0.85rem; }
.sc .lane { background: rgba(255, 255, 255, 0.14); height: 2rem; }

/* fallback diagram (no JS / data failed to load) */
.story-map-fallback .fmap-lane { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; stroke-dasharray: 4 7; }
.story-map-fallback .fmap-win { stroke: #35c98a; stroke-dasharray: none; stroke-width: 3; }
.story-map-fallback .fmap-node { fill: #fff; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.story-map-fallback .fmap-dest { fill: #fff; }
.story-map-fallback text {
  font-family: var(--font-label); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; fill: #8fb4cd;
}
.story-map-fallback .fmap-zone { fill: #dceefb; font-size: 12px; }

/* ---------- scene 4 · the pick ---------- */
.pick { width: min(100%, 26rem); margin-inline: auto; position: relative; }
.pick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.pick-grid i {
  aspect-ratio: 4 / 3; border-radius: 4px; position: relative;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(127, 196, 243, 0.15);
}
.pick-grid i.target { background: rgba(0, 138, 232, 0.3); border-color: var(--azure); }
@media (prefers-reduced-motion: no-preference) {
  html.js .pick-grid i.target { animation: pick-pulse 1.8s ease-in-out infinite; }
}
@keyframes pick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 138, 232, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(0, 138, 232, 0); }
}
.pick-grid i.target::after {
  content: "C-12"; position: absolute; top: calc(100% + 0.35rem); left: 50%; transform: translateX(-50%);
  font-family: var(--font-label); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--malibu);
}
/* picked units fly from bin C-12 into the tote while the scene is in view */
.pick-fly {
  position: absolute; left: 40%; top: 24%; width: 0.95rem; height: 0.95rem;
  border-radius: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(140deg, #e6cda6, #d2b17e);
  box-shadow: inset 0 0 0 1px rgba(96, 66, 26, 0.25), 0 5px 12px rgba(0, 0, 0, 0.4);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .sc.in .pick-fly { animation: pick-fly 3s cubic-bezier(0.5, 0.05, 0.45, 1) infinite; }
  html.js .sc.in .pick-fly--2 { animation-delay: 0.5s; }
  html.js .sc.in .tote-box { animation: tote-bump 3s ease infinite; }
}
@keyframes pick-fly {
  0%   { left: 40%; top: 24%; opacity: 0; transform: scale(0.6) rotate(0deg); }
  10%  { left: 40%; top: 12%; opacity: 1; transform: scale(1) rotate(8deg); }
  50%  { left: 18%; top: 34%; opacity: 1; transform: scale(1) rotate(-14deg); }
  74%  { left: 6.5%; top: 60%; opacity: 1; transform: scale(0.9) rotate(-24deg); }
  84%  { left: 5.5%; top: 70%; opacity: 0; transform: scale(0.45) rotate(-30deg); }
  100% { left: 5.5%; top: 70%; opacity: 0; transform: scale(0.45); }
}
@keyframes tote-bump {
  0%, 78%, 92%, 100% { transform: none; }
  84% { transform: translateY(2px) scale(1.05); }
}
.pick-tote { display: flex; align-items: center; gap: 0.8rem; margin-top: 2.1rem; }
.tote-box {
  width: 3.4rem; height: 2.3rem; border-radius: 4px 4px 9px 9px; position: relative;
  background: linear-gradient(180deg, var(--azure), var(--regal));
}
.tote-box::after {
  content: ""; position: absolute; left: 26%; top: 26%; width: 34%; aspect-ratio: 1;
  border-radius: 2px; background: linear-gradient(140deg, #e6cda6, #d2b17e);
}
.pick-tote .lbl {
  font-family: var(--font-label); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #8fb4cd; max-width: 12rem;
}
.pick-scan {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1rem;
  font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; color: #7fe3b8;
  background: rgba(53, 201, 138, 0.08); border: 1px solid rgba(53, 201, 138, 0.4);
  border-radius: 8px; padding: 0.5rem 0.85rem;
}

/* ---------- scene 5 · the pack (reuses the 3D box) ---------- */
.pack-scene { display: grid; place-items: center; perspective: 1100px; position: relative; padding-block: 1.4rem 2.4rem; }
.pack-scene .box3d { --bs: clamp(140px, 15vw, 190px); cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  html.js .pack-scene .box3d { animation: pack-swing 9s ease-in-out infinite alternate; }
}
@keyframes pack-swing {
  from { transform: rotateX(-18deg) rotateY(-22deg); }
  to { transform: rotateX(-12deg) rotateY(-74deg); }
}
.pack-label {
  display: inline-flex; margin-top: 0.4rem;
  font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; color: #bcd9ee;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(127, 196, 243, 0.25);
  border-radius: 8px; padding: 0.5rem 0.85rem;
}

/* ---------- scene 6 · the carrier handoff ---------- */
.ship { width: min(100%, 28rem); margin-inline: auto; overflow: hidden; padding-block: 0.5rem; }
.rig { width: 100%; height: auto; display: block; }
.rig-wheel { transform-origin: center; transform-box: fill-box; }
/* the rig rolls in when the scene reveals, wheels turning */
@media (prefers-reduced-motion: no-preference) {
  html.js .sc .rig { transform: translateX(-9%); opacity: 0; transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease; }
  html.js .sc.in .rig { transform: none; opacity: 1; }
  html.js .sc.in .rig .rig-wheel { animation: wheel-roll 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1; }
}
@keyframes wheel-roll { from { transform: rotate(-300deg); } to { transform: rotate(0deg); } }
.ship-road {
  height: 3px; margin-top: 1.4rem; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(127, 196, 243, 0.4) 0 1.2rem, transparent 1.2rem 2.3rem);
}

/* ---------- small screens ---------- */
.sc .value-tag { margin-left: 0.6rem; }
@media (max-width: 56rem) {
  .sc-copy h3 { font-size: var(--step-2); }
  .dlv-card { max-width: 11rem; padding: 0.5rem 0.7rem; }
}

/* ==========================================================================
   DOC TABLE — data tables in long-form content (blog posts)
   The site's only table styling. Introduced for the 3PL transition post
   (/post/what-a-3pl-transition-actually-looks-like/), which presents the seven
   transition gates and five dependencies as tables. Scoped to .doc-table so it
   can't leak into marketing layouts. Always wrap in .doc-table-wrap — the wrap
   is what keeps a wide table from scrolling the page body on narrow screens.
   ========================================================================== */
.doc-table-wrap { overflow-x: auto; margin-block: var(--space-3); }
.doc-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.86rem; line-height: 1.45;
}
.doc-table th, .doc-table td {
  text-align: left; vertical-align: top;
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line);
}
.doc-table thead th {
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--regal);
  border-bottom: 2px solid var(--line-strong); white-space: nowrap;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:nth-child(even) { background: var(--wild-sand); }
/* row-header cells carry the label; keep them readable against the zebra fill */
.doc-table tbody th[scope="row"] { font-weight: 600; color: var(--text); }
/* short codes (gate IDs, owner labels) read as data, not prose */
.doc-table .who, .doc-table .num {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem;
  color: var(--regal); font-weight: 600; white-space: nowrap;
}

/* wide tables scroll inside their own box instead of pushing the page sideways.
   The cookie inventory is five columns and cannot shrink to a phone. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .doc-table { min-width: 38rem; }

/* ---------- cookie consent ------------------------------------------------
   Bottom sheet, not a full-screen interstitial: the page stays readable and
   scrollable behind it. A modal that blocks content until a visitor consents
   is the pattern regulators treat as coercive, so this one is deliberately
   ignorable. Injected by site.js — see the consent banner UI block there. */
.consent {
  position: fixed; z-index: 60;
  inset-inline: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -10px 30px -18px rgba(2, 39, 63, 0.35);
}
.consent-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--space-3) var(--space-2);
  display: grid; gap: var(--space-2);
}
@media (min-width: 56rem) {
  /* copy and actions sit side by side until the detail panel opens, at which
     point it spans and pushes the buttons below it */
  .consent-inner { grid-template-columns: 1fr auto; align-items: center; padding-inline: var(--space-3); }
  .consent-detail { grid-column: 1 / -1; }
  .consent--open .consent-actions { grid-column: 1 / -1; }
}
.consent-lede { margin: 0; font-size: var(--step-0); color: var(--text); max-width: 68ch; }
.consent-fine { margin: 0.35rem 0 0; font-size: var(--step--1); color: var(--text-3); }
.consent-fine a { color: var(--regal); }

.consent-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
/* .btn sets display:inline-block, which outranks the [hidden] default of
   display:none — without this the Save button shows in the collapsed state. */
.consent [hidden] { display: none !important; }
/* Accept and Reject share a footprint on purpose. Equal prominence is what
   keeps consent freely given — a muted reject next to a bold accept is the
   textbook dark pattern, and it invalidates the consent it collects. */
.consent-accept, .consent-reject { flex: 0 0 auto; min-width: 9.5rem; text-align: center; }
.consent-more, .consent-prefs-link {
  background: none; border: 0; padding: 0.5rem 0.25rem;
  font-family: var(--font-body); font-size: var(--step--1);
  color: var(--text-2); text-decoration: underline; cursor: pointer;
}
.consent-more:hover, .consent-prefs-link:hover { color: var(--regal); }

.consent-detail { border-top: 1px solid var(--line); padding-top: var(--space-2); }
.consent-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
@media (min-width: 42rem) {
  .consent-cats { grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
}
.consent-cats li { display: grid; gap: 0.2rem; }
.consent-cat-name { font-weight: 600; color: var(--text); font-size: var(--step-0); }
.consent-cat-state {
  font-family: var(--font-label); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink);
}
.consent-cat-note { font-size: var(--step--1); color: var(--text-2); line-height: 1.45; max-width: 46ch; }
/* the global form `label` rule is uppercase 0.75rem for field captions — reset
   it here so the category name matches "Strictly necessary" beside it */
.consent-switch {
  display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer;
  font-family: var(--font-body); font-size: inherit; font-weight: 400;
  text-transform: none; letter-spacing: normal; color: inherit;
  margin-bottom: 0;
}
/* likewise `input { width: 100% }` would stretch the checkbox across the cell */
.consent-switch input {
  width: 1.1rem; height: 1.1rem; flex: 0 0 auto;
  accent-color: var(--regal); cursor: pointer; margin: 0;
}
.consent-switch input:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }

/* the footer withdrawal link rides in .foot-legal on a dark ground */
.foot-legal .consent-prefs-link { color: inherit; opacity: 0.85; }
.foot-legal .consent-prefs-link:hover { color: var(--malibu); opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-rise 0.28s ease-out both; }
}
@keyframes consent-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* print — long-form posts get printed and forwarded ----------------------- */
@media print {
  .topstrip, .site-header, .site-footer, .skip-link, .crumbs,
  .cta-band, .card-go, .consent { display: none !important; }
  html, body { background: #fff; font-size: 10.5pt; }
  .section { padding-block: 0.6rem !important; }
  .wrap { max-width: none; padding-inline: 0; }
  .doc-table thead { display: table-header-group; }
  .doc-table tbody tr { break-inside: avoid; page-break-inside: avoid; }
  .doc-table tbody tr:nth-child(even) { background: #f2f2f2 !important; }
  .callout { background: #fff !important; border: 1px solid #999; break-inside: avoid; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  img { max-width: 100% !important; break-inside: avoid; }
  a { color: inherit; text-decoration: underline; }
  /* the reader has paper, not a browser — surface the link target */
  .prose a[href^="/"]::after { content: " (argoshipping.com" attr(href) ")"; font-size: 0.85em; color: #555; }
}
