/* ==========================================================================
   CETAIN — marketing site
   Visual language: the consignment note. Numbered fields, perforations,
   stamps and mono data on warm paper, set against dark "ink" bands.
   Status colours are the same ones the CETAIN app uses for its timeline.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Slate family taken from the CETAIN logo (#2d3740) */
  --logo: #2d3740;
  --ink: #1e252c;
  --ink-2: #262e36;
  --ink-3: #313a43;
  --ink-line: #414b55;
  --ink-text: #e8ebed;
  --ink-muted: #a7b0b8;

  /* Cool neutral "paper", matching the logo's grey backdrop */
  --paper: #eceeef;
  --paper-2: #e1e4e6;
  --card: #f8f9f9;
  --line: #d0d5d9;
  --line-strong: #a9b1b8;

  --text: #1e252c;
  --muted: #4b5560;

  --signal: #f26b1d;          /* hi-vis: fills, large display, rules */
  --signal-ink: #a63f07;      /* signal as text on paper (AA) */
  --signal-soft: #fde3d2;

  /* Same status colours as the CETAIN app timeline */
  --st-draft: #94a3b8;
  --st-booked: #2563eb;
  --st-transit: #d97706;
  --st-delivered: #16a34a;
  --st-exception: #dc2626;

  --f-sans: "Archivo", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(20, 23, 28, .04), 0 12px 32px -18px rgba(20, 23, 28, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.07 0 0 0 0 0.08 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper) var(--grain);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--signal); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--signal); color: var(--ink); padding: .6rem 1rem; font-weight: 700; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .02em; }
.muted { color: var(--muted); }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--f-sans);
  font-stretch: 118%;
  font-weight: 860;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.h2 { font-stretch: 112%; font-weight: 820; font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.02em; }
.h3 { font-stretch: 106%; font-weight: 760; font-size: 1.3rem; letter-spacing: -.005em; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal-ink);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 1.6em; height: 2px; background: var(--signal); }
.on-ink .kicker { color: var(--signal); }
.hl { color: var(--signal-ink); }
.on-ink .hl { color: var(--signal); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-stretch: 105%; font-size: 1rem; line-height: 1; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(20, 23, 28, .55); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .18s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--ink); --btn-bd: var(--signal); }
.btn--signal:hover { --btn-bg: #ff7a2b; --btn-bd: #ff7a2b; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--text); }
.on-ink .btn--ghost { --btn-fg: var(--ink-text); --btn-bd: var(--ink-line); }
.on-ink .btn--ghost:hover { --btn-bd: var(--ink-text); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--signal-ink);
}
.link-arrow .icon { transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }
.on-ink .link-arrow { color: var(--signal); }
.link-quiet { text-decoration: none; font-weight: 600; }
.link-quiet:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 238, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

/* Logo: vector redraw of the supplied CETAIN artwork (assets/img/cetain-logo.svg) */
.brand { position: relative; display: inline-flex; align-items: center; text-decoration: none; color: var(--logo); flex: none; line-height: 0; }
.logo { height: 34px; width: auto; aspect-ratio: 1124 / 397; overflow: visible; }
.logo path { fill: currentColor; }
.logo .logo__facet--light { fill: #fff; fill-opacity: .14; }
.logo .logo__facet--dark { fill: #000; fill-opacity: .16; }
.brand--light { color: var(--ink-text); }
.brand--light .logo .logo__facet--light { fill-opacity: .22; }
.brand--light .logo .logo__facet--dark { fill-opacity: .12; }
.site-footer .logo { height: 40px; }

/* Home page: a short logo reveal inspired by the supplied animation —
   the hexagon C draws itself, the letters slide in, a sheen passes. */
.is-home .site-header .logo__c { stroke: currentColor; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: logo-draw .7s .1s var(--ease) forwards, logo-fill .35s .65s ease forwards; }
.is-home .site-header .logo__facet { opacity: 0; animation: logo-fade .4s .8s ease forwards; }
.is-home .site-header .logo__word path { opacity: 0; transform: translateX(-60px); animation: logo-letter .5s var(--ease) forwards; }
.is-home .site-header .logo__word path:nth-child(1) { animation-delay: .62s; }
.is-home .site-header .logo__word path:nth-child(2) { animation-delay: .70s; }
.is-home .site-header .logo__word path:nth-child(3) { animation-delay: .78s; }
.is-home .site-header .logo__word path:nth-child(4) { animation-delay: .86s; }
.is-home .site-header .logo__word path:nth-child(5) { animation-delay: .94s; }
.is-home .site-header .brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .95) 48%, rgba(255, 186, 140, .9) 52%, transparent 70%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  -webkit-mask: url("../img/cetain-logo-mask.svg") center / contain no-repeat;
  mask: url("../img/cetain-logo-mask.svg") center / contain no-repeat;
  animation: logo-sheen 1s 1.35s ease-in-out forwards;
}
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes logo-fade { to { opacity: 1; } }
@keyframes logo-letter { to { opacity: 1; transform: none; } }
@keyframes logo-sheen { from { background-position: 120% 0; } to { background-position: -20% 0; } }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav__list { display: flex; list-style: none; gap: .25rem; }
.site-nav__list a {
  display: block; padding: .5rem .75rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .96rem;
  transition: background-color .15s var(--ease);
}
.site-nav__list a:hover { background: var(--paper-2); }
.site-nav__list a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.site-nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--line-strong);
  border-radius: 999px; background: transparent; cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translateX(-50%); transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .js .nav-toggle { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .js .site-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: .5rem 0 1.25rem; margin: 0;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; margin-left: 0; padding-bottom: .75rem; }
  .site-nav__list { flex-direction: column; }
  .js .site-nav__list a { padding: .8rem .9rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav__list a[aria-current="page"] { border-radius: var(--radius-sm); }
  .site-nav__actions { justify-content: space-between; }
}
@media (max-width: 1020px) { html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--paper2 { background: var(--paper-2) var(--grain); }
.on-ink {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(233, 228, 217, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 228, 217, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink-text);
}
.on-ink .lede, .on-ink .muted { color: var(--ink-muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head .h2 + .lede { margin-top: 1.1rem; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 4rem; align-items: end; }
.section-head--split .lede { margin: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Perforated rule — the tear line of a consignment note */
.perf {
  position: relative; height: 22px; margin: 0;
  background: linear-gradient(90deg, var(--line-strong) 50%, transparent 0) center / 12px 1.5px repeat-x;
}
.perf::before, .perf::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); transform: translateY(-50%);
}
.perf::before { left: -11px; }
.perf::after { right: -11px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy .display { margin-bottom: 1.5rem; }
.hero__copy .display em { font-style: normal; color: var(--signal-ink); position: relative; white-space: nowrap; }
.hero__copy .display em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--signal);
  transform-origin: left; animation: underline-in .9s .5s var(--ease) both;
}
.hero__copy .lede { margin-bottom: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero__meta li { list-style: none; display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--muted); }
.hero__meta .icon { color: var(--st-delivered); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

@keyframes underline-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s var(--ease) both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .15s; } .rise-3 { animation-delay: .25s; } .rise-4 { animation-delay: .38s; }

/* ---------- Consignment card (hero) ---------- */
.consign-wrap { position: relative; }
.consign-switch {
  display: none; gap: 4px; padding: 4px; margin: 0 0 1rem auto; width: max-content;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card);
}
.js .consign-switch { display: flex; }
.consign-switch button {
  border: 0; background: transparent; padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.consign-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.consign {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 10px 10px 0 -1.5px var(--paper), 10px 10px 0 0 var(--ink);
  font-size: .9rem;
}
.consign[hidden] { display: none; }
.consign__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-bottom: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
}
.consign__doc { font-stretch: 120%; font-weight: 850; font-size: 1.05rem; letter-spacing: .02em; }
.consign__doc small { display: block; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.consign__no { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-muted); text-align: right; }
.consign__grid { display: grid; grid-template-columns: 1fr 1fr; }
.field { padding: .7rem 1.1rem .8rem; border-bottom: 1px solid var(--line); min-width: 0; }
.field:nth-child(odd) { border-right: 1px solid var(--line); }
.field--wide { grid-column: 1 / -1; border-right: 0 !important; }
.field__label { display: flex; gap: .5em; align-items: baseline; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.field__label b { color: var(--signal-ink); font-weight: 500; }
.field__value { font-weight: 650; line-height: 1.35; }
.field__sub { font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.ok { color: #13702f; font-weight: 600; }
.gate { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .22rem .55rem; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .02em; white-space: nowrap; background: var(--paper);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--ok { color: #13702f; border-color: rgba(22, 163, 74, .45); background: #eaf6ee; }
.chip--warn { color: #8a4b05; border-color: rgba(217, 119, 6, .5); background: #fbf0e0; }
.chip--block { color: #a51d1d; border-color: rgba(220, 38, 38, .45); background: #fbe9e9; }
.chip--info { color: #1d46b8; border-color: rgba(37, 99, 235, .4); background: #e9effd; }
.chip--neutral { color: #4b5560; border-color: var(--line-strong); background: var(--paper); }
.gate .chip { white-space: normal; text-align: left; }

.field--wide { position: relative; }
.stamp {
  position: absolute; right: 1rem; top: .7rem; z-index: 2;
  padding: .3rem .6rem; border: 2px solid currentColor; border-radius: 4px;
  font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #13702f; transform: rotate(-8deg); opacity: .9; background: rgba(248, 249, 249, .85);
  animation: stamp-in .5s 1.6s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: .9; transform: rotate(-8deg) scale(1); } }

/* Status timeline inside the card */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); padding: 1rem 1.1rem 1.15rem; gap: 0; }
.timeline li { position: relative; padding-top: 1.35rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .03em; color: var(--muted); text-align: center; line-height: 1.25; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--st-draft); z-index: 1;
  animation: step 9s infinite both;
}
.timeline li::after {
  content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--line);
}
.timeline li:first-child::after { display: none; }
.timeline li:nth-child(1)::before { animation-name: step-1; }
.timeline li:nth-child(2)::before { animation-name: step-2; }
.timeline li:nth-child(3)::before { animation-name: step-3; }
.timeline li:nth-child(4)::before { animation-name: step-4; }
.timeline li:nth-child(5)::before { animation-name: step-5; }
.timeline li:nth-child(6)::before { animation-name: step-6; }
@keyframes step-1 { 0%, 100% { background: var(--st-booked); border-color: var(--st-booked); } }
@keyframes step-2 { 0%, 12% { background: var(--card); border-color: var(--st-draft); } 16%, 92% { background: var(--st-booked); border-color: var(--st-booked); } 96%, 100% { background: var(--card); border-color: var(--st-draft); } }
@keyframes step-3 { 0%, 26% { background: var(--card); border-color: var(--st-draft); } 30%, 92% { background: var(--st-booked); border-color: var(--st-booked); } 96%, 100% { background: var(--card); border-color: var(--st-draft); } }
@keyframes step-4 { 0%, 40% { background: var(--card); border-color: var(--st-draft); } 44%, 92% { background: var(--st-transit); border-color: var(--st-transit); } 96%, 100% { background: var(--card); border-color: var(--st-draft); } }
@keyframes step-5 { 0%, 54% { background: var(--card); border-color: var(--st-draft); } 58%, 92% { background: var(--st-transit); border-color: var(--st-transit); } 96%, 100% { background: var(--card); border-color: var(--st-draft); } }
@keyframes step-6 { 0%, 68% { background: var(--card); border-color: var(--st-draft); box-shadow: none; } 72%, 92% { background: var(--st-delivered); border-color: var(--st-delivered); box-shadow: 0 0 0 5px rgba(22, 163, 74, .18); } 96%, 100% { background: var(--card); border-color: var(--st-draft); box-shadow: none; } }
.consign__foot { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1.1rem; border-top: 1px dashed var(--line-strong); font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.consign-caption { margin-top: 1.4rem; font-size: .82rem; color: var(--muted); text-align: right; }
@media (max-width: 520px) {
  .consign__grid { grid-template-columns: 1fr; }
  .field { border-right: 0 !important; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .timeline li:nth-child(4)::after { display: none; }
  .stamp { top: .5rem; right: .75rem; }
}

/* ---------- Party strip ---------- */
.parties { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--card); }
.party { padding: 1.4rem 1.4rem 1.5rem; border-right: 1px solid var(--line); position: relative; }
.party:last-child { border-right: 0; }
.party .party__no { font-family: var(--f-mono); font-size: .72rem; color: var(--signal-ink); letter-spacing: .08em; }
.party h3 { font-stretch: 110%; font-size: 1.2rem; margin: .5rem 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.party p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.record-bar {
  display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink); border-top: 0;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
}
.record-bar strong { color: var(--signal); font-weight: 500; }
@media (max-width: 860px) {
  .parties { grid-template-columns: 1fr 1fr; }
  .party:nth-child(2) { border-right: 0; }
  .party:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .parties { grid-template-columns: 1fr; }
  .party { border-right: 0; border-bottom: 1px solid var(--line); }
  .party:last-child { border-bottom: 0; }
}

/* ---------- Before / after ledger ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); }
.ledger__col { padding: clamp(1.5rem, 3vw, 2.25rem); }
.ledger__col + .ledger__col { border-left: 1.5px solid var(--ink); background: var(--card); }
.ledger__title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.ledger__title h3 { font-stretch: 112%; font-size: 1.35rem; }
.ledger ol { list-style: none; counter-reset: l; }
.ledger li { counter-increment: l; display: grid; grid-template-columns: 2.2rem 1fr; gap: .25rem; padding: .85rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.ledger li::before { content: counter(l, decimal-leading-zero); font-family: var(--f-mono); font-size: .78rem; color: var(--muted); padding-top: .2rem; }
.ledger__col:first-child li { color: #3c424b; }
.ledger__col:first-child li strong { text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .55); text-decoration-thickness: 2px; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } .ledger__col + .ledger__col { border-left: 0; border-top: 1.5px solid var(--ink); } }

/* ---------- Steps (how it works) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { counter-increment: s; position: relative; padding: 1.5rem 1.25rem 0 0; }
.step::before {
  content: counter(s, decimal-leading-zero); display: block;
  font-stretch: 125%; font-weight: 900; font-size: 2.6rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-muted); margin-bottom: 1rem;
}
.step__bar { height: 4px; margin-bottom: 1.25rem; border-radius: 2px; background: var(--ink-line); position: relative; overflow: hidden; }
.step__bar::after { content: ""; position: absolute; inset: 0; background: var(--c, var(--st-booked)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.is-visible .step__bar::after { transform: scaleX(1); }
.step:nth-child(2) .step__bar::after { transition-delay: .15s; }
.step:nth-child(3) .step__bar::after { transition-delay: .3s; }
.step:nth-child(4) .step__bar::after { transition-delay: .45s; }
.step:nth-child(5) .step__bar::after { transition-delay: .6s; }
.step h3 { font-stretch: 110%; font-size: 1.15rem; margin-bottom: .5rem; color: var(--ink-text); }
.step p { color: var(--ink-muted); font-size: .95rem; line-height: 1.55; margin: 0; }
.step .mono { display: inline-block; margin-top: .75rem; color: var(--signal); font-size: .72rem; }
.step--booked { --c: var(--st-booked); } .step--transit { --c: var(--st-transit); } .step--delivered { --c: var(--st-delivered); }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-stretch: 108%; font-size: 1.15rem; margin: .9rem 0 .5rem; line-height: 1.25; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; line-height: 1.55; }
.card__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--ink); color: var(--signal);
}
.card__icon .icon { width: 22px; height: 22px; }
.card__tag { position: absolute; top: 1.25rem; right: 1.25rem; }
.card--ink { background: var(--ink-2); border-color: var(--ink-line); box-shadow: none; }
.card--ink h3 { color: var(--ink-text); }
.card--ink p { color: var(--ink-muted); }
.card--ink .card__icon { background: var(--ink-3); }

/* Surface (portal) blocks on the platform page */
.surface { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.surface:first-of-type { border-top: 0; }
.surface__id { font-family: var(--f-mono); font-size: .78rem; color: var(--signal-ink); letter-spacing: .08em; text-transform: uppercase; }
.surface h3 { font-stretch: 114%; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .5rem 0 .75rem; }
.surface__who { color: var(--muted); }
.ticks { list-style: none; display: grid; gap: .65rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; line-height: 1.5; }
.ticks .icon { color: var(--st-delivered); margin-top: .15rem; }
.ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (max-width: 860px) { .surface { grid-template-columns: 1fr; } .ticks--2 { grid-template-columns: 1fr; } }
.on-ink .ticks .icon { color: var(--signal); }

/* Module catalogue */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.module { padding: 1.4rem 1.4rem 1.5rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--card); }
.module__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.module__head h3 { font-stretch: 112%; font-size: 1.15rem; display: flex; gap: .55rem; align-items: center; }
.module__head .icon { color: var(--signal-ink); }
.module ul { list-style: none; display: grid; gap: .45rem; }
.module li { font-size: .95rem; line-height: 1.45; padding-left: 1rem; position: relative; color: #353b44; }
.module li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: var(--signal); }
@media (max-width: 1020px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.table caption { text-align: left; padding: 1rem 1.1rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); caption-side: top; }
.table th, .table td { text-align: left; vertical-align: top; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); line-height: 1.45; }
.table thead th { background: var(--ink); color: var(--paper); font-stretch: 110%; font-weight: 750; font-size: .95rem; border-bottom: 0; }
.table tbody th { font-weight: 650; width: 22%; color: var(--text); font-size: .92rem; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(242, 107, 29, .05); }
.table td .chip { margin: .1rem .25rem .1rem 0; }
.table-note { font-size: .85rem; color: var(--muted); margin-top: .9rem; }

/* ---------- Jurisdiction teaser ---------- */
.juris { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.juris__card { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.juris__code {
  position: absolute; right: -.08em; bottom: -.28em; font-stretch: 125%; font-weight: 900; font-size: clamp(7rem, 13vw, 11rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(233, 228, 217, .12); pointer-events: none; user-select: none;
}
.juris__card h3 { font-stretch: 114%; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--ink-text); margin: .25rem 0 1rem; }
.juris__card .ticks { margin-bottom: 1.5rem; position: relative; }
.juris__card .ticks li { color: var(--ink-text); font-size: .97rem; }
@media (max-width: 860px) { .juris { grid-template-columns: 1fr; } }

/* ---------- Callouts ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem 1.4rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--st-transit);
  border-radius: var(--radius-sm); background: var(--card);
}
.callout .icon { color: var(--st-transit); width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
.callout p { margin: 0; color: #3c424b; font-size: .97rem; }
.callout p + p { margin-top: .5rem; }
.callout strong { color: var(--text); }

.status-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }

/* ---------- Paper (white paper) cards ---------- */
.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.paper-card {
  position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 1.4rem;
  padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.paper-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 1px 0 rgba(20, 23, 28, .04), 0 24px 40px -22px rgba(20, 23, 28, .45); }
.paper-cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden;
  background: var(--ink); color: var(--paper); padding: .75rem; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 4px 4px 0 var(--line-strong);
}
.paper-cover::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(242, 107, 29, .1) 10px 11px);
}
.paper-cover__no { position: relative; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; color: var(--signal); }
.paper-cover__title { position: relative; font-stretch: 112%; font-weight: 800; font-size: .78rem; line-height: 1.15; }
.paper-cover__bar { position: relative; height: 4px; width: 40%; background: var(--signal); }
.paper-card .paper-card__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; }
.paper-card h3 { font-stretch: 108%; font-size: 1.2rem; line-height: 1.25; margin: .5rem 0 .55rem; }
.paper-card p { color: var(--muted); font-size: .95rem; margin: 0 0 .8rem; line-height: 1.5; }
.paper-card .link-arrow { font-size: .95rem; }
@media (max-width: 960px) { .papers { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .paper-card { grid-template-columns: 1fr; } .paper-cover { max-width: 140px; } }

/* ---------- CTA band ---------- */
.cta { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem 4rem; align-items: center; }
.cta .h2 { color: var(--ink-text); }
.cta .h2 + .lede { margin-top: 1rem; }
.cta__actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero .display { font-size: clamp(2.3rem, 5.4vw, 4.25rem); margin-bottom: 1.25rem; max-width: 18ch; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem 4rem; align-items: end; }
.page-hero__aside { border-left: 3px solid var(--signal); padding: .25rem 0 .25rem 1.25rem; }
.page-hero__aside dl { margin: 0; display: grid; gap: .9rem; }
.page-hero__aside dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-hero__aside dd { margin: .1rem 0 0; font-weight: 650; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

.breadcrumb { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .5em; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; }
.form__head { background: var(--ink); color: var(--paper); padding: 1rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.form__head .mono { color: var(--ink-muted); }
.form__body { padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form__body .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form__body { grid-template-columns: 1fr; } }
.f-label { display: flex; gap: .5em; align-items: baseline; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.f-label b { color: var(--signal-ink); font-weight: 500; }
.f-label .req { color: var(--st-exception); }
.f-input, .f-select, .f-textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.f-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.f-select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314171c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9rem center; }
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 107, 29, .35); }
.f-input[aria-invalid="true"], .f-select[aria-invalid="true"], .f-textarea[aria-invalid="true"] { border-color: var(--st-exception); }
.f-error { color: #a51d1d; font-size: .85rem; margin-top: .35rem; font-weight: 600; }
.f-hint { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.f-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; border: 0; padding: 0; margin: 0; }
.f-checks legend { padding: 0; }
@media (max-width: 600px) { .f-checks { grid-template-columns: 1fr; } }
.f-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.f-check input { width: 20px; height: 20px; margin: .05rem 0 0; accent-color: var(--ink); flex: none; }
.f-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form__foot p { margin: 0; font-size: .85rem; color: var(--muted); max-width: 32rem; }

.alert { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 1px solid; }
.alert .icon { width: 1.4rem; height: 1.4rem; }
.alert p { margin: 0; }
.alert--ok { background: #eaf6ee; border-color: rgba(22, 163, 74, .45); color: #0f5a26; }
.alert--error { background: #fbe9e9; border-color: rgba(220, 38, 38, .45); color: #8d1a1a; }

.next-steps { list-style: none; counter-reset: n; display: grid; gap: 1.25rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; }
.next-steps li::before {
  content: counter(n); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: .85rem;
}
.next-steps h3 { font-stretch: 108%; font-size: 1.05rem; margin: .3rem 0 .25rem; }
.next-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Prose (white papers, privacy) ---------- */
.reader { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 1020px) { .reader { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 96px; font-size: .92rem; }
.toc__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; counter-reset: t; border-left: 1.5px solid var(--line); }
.toc li { counter-increment: t; }
.toc ol a { display: grid; grid-template-columns: 1.8rem 1fr; padding: .4rem 0 .4rem .9rem; margin-left: -1.5px; border-left: 1.5px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; }
.toc ol a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: .72rem; padding-top: .12rem; }
.toc ol a:hover { color: var(--text); }
.toc ol a.is-active { border-left-color: var(--signal); color: var(--text); font-weight: 650; }
.toc__actions { margin-top: 1.5rem; display: grid; gap: .6rem; }
@media (max-width: 1020px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--card); }
}

.prose { font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.72; color: #1d2128; max-width: 42rem; font-optical-sizing: auto; }
.prose > section { scroll-margin-top: 96px; }
.prose > section + section { margin-top: 3rem; }
.prose h2 {
  font-family: var(--f-sans); font-stretch: 112%; font-weight: 820; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15;
  margin: 0 0 1.1rem; letter-spacing: -.012em; color: var(--text);
}
.prose h2 .sec-no { display: block; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--signal-ink); margin-bottom: .5rem; }
.prose h3 { font-family: var(--f-sans); font-stretch: 106%; font-weight: 760; font-size: 1.2rem; margin: 2rem 0 .7rem; line-height: 1.25; }
.prose p { margin: 0 0 1.15em; hanging-punctuation: first; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--signal-ink); }
.prose a { color: var(--signal-ink); }
.prose strong { font-weight: 650; }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.prose blockquote, .prose .pull {
  margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 4px solid var(--signal);
  font-family: var(--f-sans); font-stretch: 108%; font-weight: 700; font-size: 1.35rem; line-height: 1.35; color: var(--text);
}
.prose .table-wrap { font-family: var(--f-sans); margin: 1.75rem 0; }
.prose .table { font-size: .9rem; min-width: 560px; }
.prose .callout { font-family: var(--f-sans); margin: 1.75rem 0; }
.prose .callout p { font-size: .95rem; }
.prose sup a { text-decoration: none; font-family: var(--f-mono); font-size: .72em; padding: 0 .1em; }

.keypoints { background: var(--ink); color: var(--ink-text); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 0 0 3rem; font-family: var(--f-sans); }
.keypoints__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin-bottom: .9rem; }
.keypoints ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.keypoints li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; font-size: 1rem; line-height: 1.5; margin: 0; padding: 0; }
.keypoints .icon { color: var(--signal); margin-top: .15rem; }

.refs { font-family: var(--f-sans); font-size: .9rem; line-height: 1.5; counter-reset: r; list-style: none; padding: 0 !important; }
.refs li { counter-increment: r; display: grid; grid-template-columns: 2.4rem 1fr; gap: .25rem; padding: .6rem 0; border-top: 1px solid var(--line); margin: 0 !important; scroll-margin-top: 96px; }
.refs li::before { content: "[" counter(r) "]"; font-family: var(--f-mono); font-size: .8rem; color: var(--signal-ink); }
.refs a { word-break: break-word; }
.refs .refs__pub { color: var(--muted); }

.paper-hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.paper-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 2rem 3.5rem; align-items: end; }
.paper-hero .display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: .25rem 0 1rem; max-width: 22ch; }
.paper-hero .paper-cover { width: 210px; padding: 1.1rem; }
.paper-hero .paper-cover__title { font-size: 1.05rem; }
.paper-hero .paper-cover__no { font-size: .72rem; }
.paper-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin-top: 1.5rem; }
.paper-meta span { display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 760px) { .paper-hero__grid { grid-template-columns: 1fr; } .paper-hero .paper-cover { display: none; } }

.disclaimer { font-family: var(--f-sans); font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-text); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: var(--ink-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--ink-line); }
.site-footer__brand p { color: var(--ink-muted); margin: 1rem 0 0; max-width: 28rem; font-size: .95rem; }
.track-mini { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 1.25rem; }
.track-mini__title { display: flex; gap: .5rem; align-items: center; font-weight: 750; font-stretch: 108%; margin: 0 0 .25rem; }
.track-mini__title .icon { color: var(--signal); }
.track-mini__hint { color: var(--ink-muted); font-size: .88rem; margin-bottom: .9rem; }
.track-mini__fields { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: .5rem; }
.track-mini input {
  min-height: 44px; padding: .55rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--ink-line); background: var(--ink); color: var(--ink-text);
  font-family: var(--f-mono); font-size: .88rem; min-width: 0;
}
.track-mini input::placeholder { color: #8a929d; }
.track-mini input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(242, 107, 29, .3); }
@media (max-width: 520px) { .track-mini__fields { grid-template-columns: 1fr; } }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.5rem 0; }
.site-footer__h { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .9rem; }
.site-footer__cols ul { list-style: none; display: grid; gap: .55rem; font-size: .95rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); color: var(--ink-muted); font-size: .85rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound__code { font-stretch: 125%; font-weight: 900; font-size: clamp(6rem, 18vw, 13rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 1.5rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .timeline li:nth-child(-n+5)::before { animation: none; background: var(--st-booked); border-color: var(--st-booked); }
  .timeline li:nth-child(4)::before, .timeline li:nth-child(5)::before { background: var(--st-transit); border-color: var(--st-transit); }
  .timeline li:nth-child(6)::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .is-home .site-header .logo__c,
  .is-home .site-header .logo__facet,
  .is-home .site-header .logo__word path { animation: none !important; opacity: 1; transform: none; fill-opacity: 1; stroke-width: 0; }
  .is-home .site-header .logo__facet--light { fill-opacity: .14; }
  .is-home .site-header .logo__facet--dark { fill-opacity: .16; }
  .is-home .site-header .brand::after { display: none; }
}

/* ---------- Print (white papers save cleanly as PDF) ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .site-footer, .toc, .cta, .no-print, .skip-link { display: none !important; }
  .reader { display: block; }
  .prose { max-width: none; font-size: 10.5pt; }
  .prose a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; color: #444; }
  .refs a::after { content: none !important; }
  .keypoints { background: #fff; color: #000; border: 1.5pt solid #000; }
  .keypoints__title, .keypoints .icon { color: #000; }
  .paper-hero { padding-top: 0; }
  .paper-hero .paper-cover { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table thead th { background: #eee; color: #000; }
  .table-wrap, .callout, .keypoints, .refs li { break-inside: avoid-page; }
  .prose h2, .prose h3 { break-after: avoid-page; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Status tables (platform page) */
.table--status tbody th { width: 46%; font-weight: 600; }
.table--status td:last-child { color: var(--muted); font-size: .9rem; }
.table--status td:nth-child(2) { width: 1%; white-space: nowrap; }

.rule { border: 0; border-top: 1.5px dashed var(--line-strong); margin: 1.75rem 0 1.25rem; }
.site-nav__actions .btn[aria-current="page"] { box-shadow: 0 0 0 3px rgba(242, 107, 29, .3); }
.table thead a { color: var(--signal); }
.table-wrap:focus-visible { outline-offset: 2px; }
.consign[data-variant-card="eu"] .stamp { animation-delay: .35s; }
