/* ==========================================================================
   UXIA Logistic — "Hoja de ruta" design system
   Paper · ink · vermilion stamp. Built around the CMR consignment note:
   numbered boxes, hairline rules, stamps, perforations, split-flap boards.
   ========================================================================== */

:root {
  /* colour */
  --paper: #eeeae2;
  --paper-2: #e5dfd3;
  --paper-3: #d8d0c0;
  --ink: #15140f;
  --ink-2: #45423a;
  --ink-3: #625e53;
  --rule: rgba(21, 20, 15, 0.16);
  --rule-2: rgba(21, 20, 15, 0.32);
  --signal: #e1411e;
  --signal-ink: #b3300e;
  --night: #111412;
  --night-2: #1b1f1c;
  --night-3: #262b27;
  --on-night: #ece8df;
  --on-night-2: #aaa89f;
  --night-rule: rgba(236, 232, 223, 0.14);
  --sodium: #f4b942;
  --focus: #1d5cff;

  /* type */
  --f-display: 'Big Shoulders', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* rhythm */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1480px;
  --header-h: 68px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast: 140ms;
  --t-med: 280ms;
  --t-slow: 600ms;

  /* layers */
  --z-base: 1; --z-float: 10; --z-header: 40; --z-menu: 60; --z-notice: 80; --z-skip: 100;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
table { border-collapse: collapse; }

body {
  min-height: 100dvh;
  background-color: var(--paper);
  /* fine paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}
body.is-locked { overflow: hidden; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
.on-night :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: var(--sodium); }

.sr-only {
  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: fixed; left: var(--s4); top: var(--s4); z-index: var(--z-skip);
  padding: var(--s3) var(--s4); background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 0.8125rem; text-decoration: none;
  transform: translateY(-200%); transition: transform var(--t-med) var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type primitives ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: 87.5%;
}
.label--num { font-variant-numeric: tabular-nums; }
.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 7.2vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.003em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 0.95;
}
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 38ch; font-stretch: 96%; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- section scaffolding (CMR "boxes") ---------- */
.section { position: relative; padding-block: clamp(72px, 11vw, 160px); overflow-x: clip; }
.section-head {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.box-tag {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding-bottom: var(--s3); margin-bottom: var(--s2);
  border-bottom: 1px solid currentColor;
  width: 100%;
}
.box-tag__n {
  display: inline-grid; place-items: center;
  min-width: 2.3em; height: 1.9em; padding-inline: 0.4em;
  border: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
}
.box-tag__side { margin-left: auto; opacity: 0.8; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--s5); align-items: end; }
  .section-head .box-tag { grid-column: 1 / -1; }
  .section-head .h2 { grid-column: 1 / span 8; }
  .section-head__intro { grid-column: 9 / -1; }
}

.on-night { background: var(--night); color: var(--on-night); }
.on-night .muted { color: var(--on-night-2); }

/* perforated tear-off edge between sections */
.perf { height: 14px; background-repeat: repeat-x; background-size: 18px 14px; position: relative; z-index: 2; }
.perf--to-night { background-color: var(--paper); background-image: radial-gradient(circle at 9px 14px, var(--night) 5px, transparent 5.5px); margin-bottom: -1px; }
.perf--from-night { background-color: var(--night); background-image: radial-gradient(circle at 9px 14px, var(--paper) 5px, transparent 5.5px); margin-bottom: -1px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--signal); --btn-fg: var(--ink); --btn-bd: var(--ink);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s5);
  min-height: 56px; padding: 0 var(--s5) 0 var(--s5);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.03em; text-transform: uppercase; font-stretch: 87.5%;
  text-decoration: none; overflow: hidden;
  transition: color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform var(--t-med) var(--ease-out);
}
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { color: var(--paper); }
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; }
.on-night .btn--ghost { --btn-fg: var(--on-night); --btn-bd: var(--on-night); }
.on-night .btn::before { background: var(--on-night); }
@media (hover: hover) { .on-night .btn:hover { color: var(--night); } }
.btn--sm { min-height: 44px; padding-inline: var(--s4); gap: var(--s3); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: progress; }

.link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color var(--t-fast);
}
.link:hover { text-decoration-color: var(--signal); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__row { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; min-height: 44px; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__word { font-family: var(--f-display); font-weight: 900; font-size: 1.75rem; line-height: 1; letter-spacing: 0.01em; }
.logo__sub { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.12em; line-height: 1.1; text-transform: uppercase; border-left: 1px solid var(--rule-2); padding-left: 10px; font-stretch: 87.5%; }

.nav { margin-left: auto; display: none; }
.nav__list { display: flex; gap: clamp(12px, 2vw, 32px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; font-stretch: 87.5%;
  text-decoration: none; color: var(--ink-2);
  transition: color var(--t-fast);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1.5px; background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-med) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current='true'] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current='true']::after { transform: scaleX(1); }

.langs { display: flex; align-items: center; gap: 2px; }
.langs__link {
  display: inline-grid; place-items: center; min-width: 36px; min-height: 36px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-3);
  border: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
}
.langs__link:hover { color: var(--ink); border-color: var(--rule-2); }
.langs__link[aria-current='page'] { color: var(--ink); border-color: var(--ink); }
.site-header .langs { display: none; }
.site-header .btn { display: none; }

.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 12px;
  border: 1px solid var(--ink); font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.menu-toggle__bars { width: 18px; height: 10px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav { display: block; }
  .site-header .langs { display: flex; }
  .site-header .btn { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* mobile menu */
.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; padding: var(--s6) var(--gutter) var(--s6);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 420ms var(--ease-out), visibility 0s linear 420ms;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 420ms var(--ease-out), visibility 0s; }
.menu__list { display: grid; gap: 0; border-top: 1px solid var(--night-rule); }
.menu__link {
  display: flex; align-items: baseline; gap: var(--s4); padding-block: var(--s4);
  border-bottom: 1px solid var(--night-rule);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 0.9;
  text-decoration: none;
}
.menu__link .label { color: var(--on-night-2); }
.menu__foot { margin-top: auto; padding-top: var(--s6); display: grid; gap: var(--s5); }
.menu .langs__link { color: var(--on-night-2); min-width: 48px; min-height: 48px; font-size: 0.8125rem; }
.menu .langs__link[aria-current='page'] { color: var(--on-night); border-color: var(--on-night); }
@media (min-width: 1080px) { .menu { display: none; } }

/* ---------- meta strip ---------- */
.meta-strip {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); justify-content: space-between;
  padding-block: var(--s3); border-bottom: 1px solid var(--rule); color: var(--ink-2);
}
.meta-strip span { white-space: nowrap; }
.meta-strip__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); overflow: clip; }
.hero__grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
.hero__title {
  font-size: clamp(3.4rem, 13.4vw, 14.5rem);
  line-height: 0.92;
  position: relative; z-index: 2;
  hyphens: manual;
}
.hero__title .line { display: block; }
.hero__title .line--b { color: var(--ink); padding-left: 0; }
.hero__title .accent { color: var(--signal); }
.hero__title .comma { display: inline-block; transform: translateY(-0.14em); }
.hero__body { display: grid; gap: var(--s6); align-content: start; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero__media {
  position: relative; border: 1.5px solid var(--ink); background: var(--night);
  aspect-ratio: 4 / 5; overflow: hidden; max-height: 70vh;
}
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { /* scanline sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,20,18,0) 55%, rgba(17,20,18,0.55));
}
.hero__media-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s3) var(--s3) var(--s4); color: var(--on-night);
}
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.media-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  color: var(--on-night); border: 1px solid rgba(236,232,223,.5); background: rgba(17,20,18,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.media-btn:hover { background: rgba(17,20,18,.7); border-color: var(--on-night); }
.media-btn svg { width: 16px; height: 16px; }
.media-btn .i-play { display: none; }
.media-btn[data-paused] .i-pause { display: none; }
.media-btn[data-paused] .i-play { display: block; }

/* stamp */
.stamp {
  position: absolute; z-index: 3; width: clamp(120px, 14vw, 200px); aspect-ratio: 1;
  color: var(--signal); pointer-events: none; mix-blend-mode: multiply;
  transform: rotate(-12deg);
}
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp__ring { animation: spin 40s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .stamp { right: 2%; top: -8px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--s5); row-gap: var(--s7); }
  .hero__title { grid-column: 1 / -1; }
  .hero__body { grid-column: 1 / span 6; align-self: end; }
  .hero__media { grid-column: 8 / -1; grid-row: 2; aspect-ratio: 16 / 11; max-height: none; }
  .hero .stamp { right: auto; left: 52%; top: auto; bottom: 38%; }
}
@media (min-width: 1200px) {
  .hero__body { grid-column: 1 / span 5; }
  .hero__media { grid-column: 7 / -1; }
  .hero .stamp { left: 44%; bottom: 36%; }
}

/* ---------- split-flap board ---------- */
.board {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--night); color: var(--on-night); border: 1.5px solid var(--ink);
  padding: var(--s4) clamp(12px, 2vw, 24px) var(--s4);
}
.board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--night-rule); color: var(--on-night-2); }
.board__head .media-btn { width: 36px; height: 36px; }
.board__title { color: var(--sodium); }
.board__table {
  margin-top: var(--s3);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: clamp(8px, 1.8vw, 28px);
  font-size: clamp(0.72rem, 1.35vw, 1.25rem);
}
@media (min-width: 700px) { .board__table { grid-template-columns: auto auto auto auto minmax(0, 1fr); } }
.board__cols, .board__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.board__cols { color: var(--on-night-2); padding-bottom: var(--s2); font-size: 0.6875rem; }
.board .hide-sm { display: none; }
@media (min-width: 700px) { .board .hide-sm { display: block; } }
.board__row { padding-block: 5px; border-top: 1px dashed var(--night-rule); }
.board__bar { position: relative; height: 2px; background: var(--night-rule); }
.board__bar i { position: absolute; left: 0; top: -1px; height: 4px; width: var(--p); background: var(--sodium); transition: width 900ms var(--ease-out); }
.board__bar i::after { content: ''; position: absolute; right: -4px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 0 4px rgba(244,185,66,.18); }
.flaps { display: flex; gap: 2px; overflow: hidden; }
.flap {
  position: relative; display: inline-grid; place-items: center;
  width: 1.05em; height: 1.55em; flex: none;
  background: linear-gradient(180deg, #232824 0 49.5%, #1a1e1b 50.5% 100%);
  border-radius: 2px; color: var(--on-night);
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(0.8125rem, 1.4vw, 1.25rem); line-height: 1; font-stretch: 100%;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.65); }
.flap.is-flipping { animation: flap 90ms linear; }
@keyframes flap { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.12); filter: brightness(1.6); } 100% { transform: scaleY(1); } }
.flaps--sodium .flap { color: var(--sodium); }
.board__note { margin-top: var(--s3); color: var(--on-night-2); }

/* ---------- services manifest ---------- */
.manifest { border-top: 1.5px solid var(--ink); }
.manifest__item { border-bottom: 1px solid var(--rule-2); position: relative; }
.manifest__row {
  position: relative; display: grid; gap: var(--s3) var(--s5);
  grid-template-columns: auto 1fr auto;
  align-items: center; padding-block: clamp(20px, 2.6vw, 34px);
  text-decoration: none; color: inherit;
  transition: color var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out);
}
.manifest__row::before {
  content: ''; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform var(--t-med) var(--ease-out);
}
.manifest__n { align-self: start; padding-top: 0.6em; color: var(--ink-3); }
.manifest__name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 0.9; }
.manifest__desc { grid-column: 2 / -1; max-width: 46ch; color: var(--ink-2); }
.manifest__tags { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border: 1px solid var(--rule-2); font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); font-stretch: 87.5%; }
.manifest__arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 50%; align-self: start; transition: transform var(--t-med) var(--ease-out), background var(--t-med), border-color var(--t-med); }
.manifest__arrow svg { width: 18px; height: 18px; }
.manifest__thumb { grid-column: 1 / -1; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--ink); }
.manifest__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .manifest__row { grid-template-columns: 6.5em minmax(0, 1.35fr) minmax(0, 1fr) 56px; align-items: center; column-gap: var(--s6); }
  .manifest__n { padding-top: 0; align-self: center; }
  .manifest__desc { grid-column: 3; grid-row: 1; }
  .manifest__tags { grid-column: 3; grid-row: 2; }
  .manifest__arrow { grid-column: 4; grid-row: 1 / span 2; align-self: center; }
  .manifest__n { grid-column: 1; grid-row: 1 / span 2; }
  .manifest__name { grid-column: 2; grid-row: 1 / span 2; }
  .manifest__thumb { display: none; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .manifest__row:hover, .manifest__row:focus-visible { color: var(--paper); }
  .manifest__row:hover::before, .manifest__row:focus-visible::before { transform: scaleY(1); }
  .manifest__row:hover .manifest__desc, .manifest__row:hover .manifest__n, .manifest__row:focus-visible .manifest__desc { color: var(--paper-3); }
  .manifest__row:hover .tag { color: var(--paper-3); border-color: rgba(238,234,226,.35); }
  .manifest__row:hover .manifest__arrow { transform: rotate(-45deg); background: var(--signal); border-color: var(--signal); color: var(--ink); }
}
.manifest__row:focus-visible { outline-offset: -3px; }

/* cursor-following preview */
.preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-float); pointer-events: none;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 4/5; overflow: hidden;
  border: 1.5px solid var(--paper);
  opacity: 0; transform: translate3d(-50%, -50%, 0);
  transition: opacity var(--t-med) var(--ease-out);
  display: none; will-change: transform;
}
.preview.is-on { opacity: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-med); }
.preview img.is-active { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .preview { display: block; } }

/* ---------- routes / map ---------- */
.routes__grid { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .routes__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; } }
.routes__text { display: grid; gap: var(--s6); align-content: start; }
@media (min-width: 1000px) { .routes__grid .map { position: sticky; top: calc(var(--header-h) + 32px); } }
.countries { border-top: 1px solid var(--night-rule); }
.country { display: grid; grid-template-columns: 3.2em 1fr; gap: var(--s4); padding-block: var(--s4); border-bottom: 1px solid var(--night-rule); }
.country__code { display: inline-grid; place-items: center; height: 2em; border: 1px solid var(--on-night-2); color: var(--on-night); }
.country__name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.country__cities { color: var(--on-night-2); font-size: 0.9375rem; margin-top: 4px; }
.routes__speak { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); color: var(--on-night-2); }
.routes__speak b { color: var(--sodium); font-weight: 400; }

.map { position: relative; border: 1px solid var(--night-rule); background:
  linear-gradient(var(--night-rule) 1px, transparent 1px) 0 0 / 50px 50px,
  linear-gradient(90deg, var(--night-rule) 1px, transparent 1px) 0 0 / 50px 50px,
  var(--night-2);
}
.map svg { width: 100%; height: auto; }
.map__land { fill: #2a302b; stroke: #3b423d; stroke-width: 0.8; }
.map__land--on { fill: #39413b; stroke: #56605a; }
.map__route { fill: none; stroke: var(--sodium); stroke-width: 1.6; stroke-linecap: round; }
.map__route--ghost { stroke: rgba(244,185,66,.18); stroke-dasharray: 2 5; }
.map__city circle { fill: var(--on-night); }
.map__city text { fill: var(--on-night); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: var(--night-2); stroke-width: 4px; stroke-linejoin: round; }
.map__hub circle.core { fill: var(--signal); }
.map__hub circle.pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s var(--ease-out) infinite; }
.map__hub text { fill: var(--signal); font-size: 13px; font-weight: 500; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map__legend { position: absolute; left: var(--s3); bottom: var(--s3); display: grid; gap: 6px; color: var(--on-night-2); background: rgba(17,20,18,.8); padding: var(--s2) var(--s3); }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__legend i { display: inline-block; width: 18px; height: 2px; background: var(--sodium); }
.map__legend i.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.map__coords { position: absolute; right: var(--s3); top: var(--s3); color: var(--on-night-2); }

/* ---------- video band ---------- */
.band { position: relative; min-height: clamp(520px, 92vh, 980px); display: grid; align-items: end; color: var(--on-night); background: var(--night); overflow: clip; }
.band__media { position: absolute; inset: 0; }
.band__media video, .band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,20,18,.2) 0%, rgba(17,20,18,.15) 40%, rgba(17,20,18,.85) 100%); }
.band__inner { position: relative; z-index: 2; padding-block: var(--s8); display: grid; gap: var(--s5); }
.band__title { font-size: clamp(3.5rem, 12vw, 12rem); max-width: 12ch; }
.band__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); }
.band__row p { max-width: 44ch; color: var(--on-night); }
.band__ctrl { display: flex; align-items: center; gap: var(--s3); }

/* ---------- method ---------- */
.steps { display: grid; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule-2); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: var(--s5) var(--s5) var(--s7); border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); display: grid; gap: var(--s4); align-content: start; min-height: 320px; }
.step__top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.step__n { font-family: var(--f-display); font-weight: 900; font-size: clamp(6rem, 11vw, 9.5rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-block: var(--s4) var(--s2); }
.step:hover .step__n { color: var(--signal); -webkit-text-stroke-color: var(--signal); }
.step__n { transition: color var(--t-med) var(--ease-out), -webkit-text-stroke-color var(--t-med); }
.step__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.875rem; line-height: 0.95; }
.step > p:not(.step__n) { color: var(--ink-2); max-width: 34ch; }
.step__check { position: absolute; right: var(--s5); bottom: var(--s5); width: 22px; height: 22px; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.step__check svg { width: 14px; height: 14px; color: var(--signal); }
.steps__track { height: 3px; background: var(--rule); margin-top: -1.5px; position: relative; }
.steps__bar { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- company ---------- */
.company__grid { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .company__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; } }
.company__photo { position: relative; border: 1.5px solid var(--ink); aspect-ratio: 4/5; overflow: hidden; }
.company__photo img { width: 100%; height: 115%; object-fit: cover; }
.company__photo .stamp { right: -24px; bottom: -24px; top: auto; left: auto; width: clamp(130px, 13vw, 180px); }
.company__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 6px 10px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.company__text { display: grid; gap: var(--s6); }
.ledger { border-top: 1.5px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 1fr; gap: 2px var(--s5); padding-block: var(--s3); border-bottom: 1px solid var(--rule-2); }
@media (min-width: 600px) { .ledger__row { grid-template-columns: minmax(10em, 0.8fr) 2fr; align-items: baseline; } }
.ledger dt { color: var(--ink-3); }
.ledger dd { font-weight: 500; overflow-wrap: anywhere; }
.pledges { display: grid; gap: 0; counter-reset: p; border-top: 1px solid var(--rule-2); }
@media (min-width: 700px) { .pledges { grid-template-columns: 1fr 1fr; } }
.pledges li { counter-increment: p; display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 1px solid var(--rule-2); }
.pledges li::before { content: counter(p, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.75rem; color: var(--signal-ink); padding-top: 4px; }

/* ---------- contact / form ---------- */
.contact__grid { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); } }
.contact__aside .h2 { font-size: clamp(2.75rem, 5.2vw, 5.5rem); overflow-wrap: anywhere; }
.contact__aside { display: grid; gap: var(--s5); align-content: start; }
.contact__card { border-top: 1.5px solid var(--ink); padding-top: var(--s3); display: grid; gap: 4px; }
.contact__card a { overflow-wrap: anywhere; }

.sheet { border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--paper) 55%, #fff); position: relative; }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1.5px solid var(--ink); background: var(--paper-2); }
.sheet__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sheet__grid { grid-template-columns: repeat(2, 1fr); } }
.field { position: relative; display: grid; gap: 6px; padding: var(--s4); border-bottom: 1px solid var(--rule-2); }
@media (min-width: 700px) {
  .field:nth-child(odd):not(.field--full) { border-right: 1px solid var(--rule-2); }
  .field--full { grid-column: 1 / -1; }
}
.field__label { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.field__n { color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.field__req { color: var(--signal-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1.5px solid var(--ink);
  background: transparent; border-radius: 0; font-size: 1.0625rem; color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315140f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 18px; padding-right: 28px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--focus); background: rgba(29,92,255,.04); box-shadow: 0 2px 0 0 var(--focus); }
.field input::placeholder, .field textarea::placeholder { color: #7a766b; }
.field__hint { font-size: 0.875rem; color: var(--ink-3); }
.field__error { font-size: 0.875rem; color: #a3230a; font-weight: 500; display: none; align-items: center; gap: 6px; }
.field__error svg { width: 14px; height: 14px; flex: none; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #a3230a; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s4); border-bottom: 1px solid var(--rule-2); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent .field__error { grid-column: 2; }
.consent.is-invalid .field__error { display: flex; }
.layer { padding: var(--s4); border-bottom: 1px solid var(--rule-2); font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2); }
.layer summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.layer summary::-webkit-details-marker { display: none; }
.layer summary::after { content: '+'; font-size: 1.125rem; line-height: 1; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--rule-2); flex: none; transition: transform var(--t-med) var(--ease-out); }
.layer[open] summary::after { transform: rotate(45deg); }
.layer dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin-top: var(--s3); }
.layer dt { font-weight: 600; color: var(--ink); }
.sheet__foot { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; padding: var(--s4); }
.sheet__status { font-size: 0.9375rem; }
.sheet__status.is-ok { color: #1d6b3a; font-weight: 500; }
.sheet__status.is-err { color: #a3230a; font-weight: 500; }
.err-summary { margin: var(--s4); padding: var(--s4); border: 1.5px solid #a3230a; background: #fbeee9; }
.err-summary h3 { font-size: 1rem; margin-bottom: 6px; }
.err-summary ul { margin: 0; padding-left: 1.1em; }
.err-summary a { color: #a3230a; }
.sheet .stamp { right: 16px; top: -44px; width: 120px; opacity: 0; transform: rotate(-14deg) scale(1.6); transition: opacity 200ms, transform 300ms var(--ease-out); }
.sheet.is-sent .stamp { opacity: 1; transform: rotate(-14deg) scale(1); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: var(--s9); overflow: clip; }
.footer__grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__col h2 { color: var(--on-night-2); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--night-rule); }
.footer__col ul { display: grid; gap: 2px; }
.footer__col a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--on-night); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--sodium); }
.footer__col address { font-style: normal; color: var(--on-night-2); line-height: 1.7; }
.footer__tag { font-size: 1.25rem; line-height: 1.4; max-width: 26ch; }
.footer__giant {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(8rem, 34vw, 34rem); line-height: 0.72; letter-spacing: -0.01em;
  color: var(--night-3); margin-top: var(--s5); margin-bottom: -0.02em; user-select: none; white-space: nowrap;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.footer__giant span:last-child { color: var(--signal); }
.footer__bottom { margin-top: var(--s8); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: space-between; padding-block: var(--s5); border-top: 1px solid var(--night-rule); color: var(--on-night-2); }
.footer__bottom a { color: var(--on-night-2); }
.site-footer .langs__link { color: var(--on-night-2); min-width: 44px; min-height: 44px; }
.site-footer .langs__link:hover { color: var(--on-night); border-color: var(--night-rule); }
.site-footer .langs__link[aria-current='page'] { color: var(--on-night); border-color: var(--on-night); }

/* ---------- storage notice ---------- */
.notice {
  position: fixed; z-index: var(--z-notice); left: var(--gutter); right: var(--gutter); bottom: var(--s4);
  max-width: 560px; margin-left: auto;
  display: grid; gap: var(--s3); grid-template-columns: 1fr auto; align-items: center;
  padding: var(--s4); background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font-size: 0.875rem; line-height: 1.5;
  transform: translateY(calc(100% + 32px)); transition: transform 420ms var(--ease-out);
}
.notice.is-visible { transform: none; }
.notice[hidden] { display: none; }
.notice a { color: var(--paper); }
.notice .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }

/* ---------- legal pages ---------- */
.doc-hero { padding-block: clamp(32px, 6vw, 88px) clamp(32px, 5vw, 64px); border-bottom: 1.5px solid var(--ink); }
.doc-hero__title { font-size: clamp(3rem, 10vw, 9.5rem); margin-block: var(--s5) var(--s5); text-wrap: balance; }
.doc-hero__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); color: var(--ink-2); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-block: var(--s8) var(--s9); }
.doc > * { min-width: 0; }
@media (min-width: 1000px) { .doc { grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr); gap: var(--s8); } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; } }
.toc h2 { padding-bottom: var(--s3); border-bottom: 1.5px solid var(--ink); margin-bottom: var(--s2); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 2.2em 1fr; gap: 4px; padding-block: 8px; text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.35; border-bottom: 1px solid var(--rule); transition: color var(--t-fast); }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.6875rem; padding-top: 3px; color: var(--ink-3); }
.toc a:hover, .toc a[aria-current='true'] { color: var(--ink); }
.toc a[aria-current='true']::before { color: var(--signal-ink); }
.prose { max-width: 72ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1; margin-top: 2.2em; padding-top: 0.6em; border-top: 1px solid var(--rule-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--signal-ink); text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.prose strong { font-weight: 650; }
.prose .note { padding: var(--s4); border-left: 3px solid var(--signal); background: var(--paper-2); font-size: 0.9375rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-2); }
.prose table { width: 100%; font-size: 0.9375rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .03em; text-transform: uppercase; font-weight: 400; background: var(--paper-2); color: var(--ink-2); }
.prose dl.facts { display: grid; grid-template-columns: 1fr; border-top: 1.5px solid var(--ink); }
.prose dl.facts > div { display: grid; gap: 2px 16px; padding-block: 10px; border-bottom: 1px solid var(--rule-2); }
@media (min-width: 600px) { .prose dl.facts > div { grid-template-columns: 14em 1fr; } }
.prose dl.facts dt { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); padding-top: 3px; }
.prose dl.facts dd { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100dvh - var(--header-h)); display: grid; align-content: center; gap: var(--s6); padding-block: var(--s9); }
.lost__code { font-size: clamp(8rem, 34vw, 30rem); color: transparent; -webkit-text-stroke: 2px var(--ink); line-height: 0.75; }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .stamp__ring, .map__hub circle.pulse, .meta-strip__dot { animation: none !important; }
}

@media print {
  .site-header, .menu, .notice, .site-footer, .toc, .skip-link { display: none !important; }
  body { background: #fff; }
  .doc { display: block; padding: 0; }
}

/* SplitText line masks: leave room for accents (Á, É, Ñ…) above the tight line-height */
.sl-mask { padding-block: 0.14em 0.04em; margin-block: -0.14em -0.04em; }

/* ---------- small-screen refinements ---------- */
.hero__grid { position: relative; }
@media (max-width: 899px) {
  .hero__media { max-height: none; }
  /* stamp sits on the top-right corner of the video */
  .hero .stamp { top: auto; right: -6px; width: 104px; bottom: calc(1.25 * (100vw - 2 * var(--gutter)) - 64px); }
  .manifest__arrow { grid-column: 3; grid-row: 1; }
  .manifest__name { grid-column: 2; grid-row: 1; }
  .manifest__n { grid-column: 1; grid-row: 1; }
}
@media (max-width: 699px) {
  .map__city text { font-size: 24px; stroke-width: 7px; }
  .map__hub text { font-size: 26px; }
  .map__city circle { r: 6px; }
  .map__cities [data-city='OPO'] text, .map__cities [data-city='SVQ'] text, .map__cities [data-city='VLC'] text,
  .map__cities [data-city='BIO'] text, .map__cities [data-city='BOD'] text, .map__cities [data-city='TRN'] text,
  .map__cities [data-city='BLQ'] text, .map__cities [data-city='MRS'] text, .map__cities [data-city='LYS'] text { display: none; }
  .map__route { stroke-width: 3; }
  .map__coords { display: none; }
  .map__legend { position: static; background: transparent; padding: var(--s3); }
}
