/* ==========================================================================
   Alfonseca Logistics — "waybill" design system
   Paper + ink + hi-vis signal. Road-sign display type, manifest mono labels.
   ========================================================================== */

:root {
  /* palette */
  --paper: #ECE8DF;
  --paper-2: #E2DDD1;
  --paper-3: #F6F3EC;
  --ink: #121314;
  --ink-2: #1B1C1E;
  --ink-3: #2A2B2E;
  --muted: #5B574F;          /* 6.1:1 on paper */
  --muted-d: #A9A499;        /* 7.4:1 on ink */
  --signal: #FF5A1F;         /* hi-vis orange, used as fill / large type */
  --signal-ink: #B23A0D;     /* orange for small text on paper (4.9:1) */
  --cobalt: #3553E0;
  --ochre: #D9A11A;
  --line: rgba(18, 19, 20, .16);
  --line-2: rgba(18, 19, 20, .32);
  --line-d: rgba(236, 232, 223, .14);
  --line-d2: rgba(236, 232, 223, .3);
  --error: #B4231A;
  --error-d: #FF8A7A;

  /* type */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-sign: "Mrs Saint Delafield", "Brush Script MT", cursive;

  /* layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --hdr-h: 72px;
  --sec-y: clamp(88px, 12vw, 176px);

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t-med: 420ms;

  /* z */
  --z-peek: 20;
  --z-hdr: 50;
  --z-mnav: 60;
  --z-notice: 55;
  --z-skip: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
::selection { background: var(--signal); color: var(--ink); }

/* paper grain: a fixed, very faint noise layer */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.sec--ink :focus-visible, .ftr :focus-visible, .mnav :focus-visible { outline-color: var(--signal); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-family: var(--f-mono); font-size: .8125rem; text-decoration: none;
  transition: top var(--t-fast) var(--ease-out);
}
.skip:focus { top: 12px; }

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--muted); }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink .muted { color: var(--muted-d); }

.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 6.25rem);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}

/* section tag: "§ 02 ———— SERVICIOS" like a waybill field */
.tag { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }
.tag i { flex: 0 1 72px; height: 1px; background: currentColor; opacity: .6; }
.tag span:first-child { color: var(--signal-ink); font-weight: 500; }
.sec--ink .tag { color: var(--muted-d); }
.sec--ink .tag span:first-child { color: var(--signal); }

.sec-head { margin-bottom: clamp(48px, 7vw, 96px); }
.sec-lead { max-width: 46ch; margin-top: 24px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--muted); }
.sec--ink .sec-lead { color: var(--muted-d); }
.sec-head--split { display: grid; gap: 24px; align-items: end; }
@media (min-width: 960px) {
  .sec-head--split { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .sec-head--split .sec-lead { margin-top: 0; justify-self: end; }
}
.sec-head--row .tag { margin-bottom: 18px; flex: none; white-space: nowrap; }

.ulink { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size var(--t-med) var(--ease-out); }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- buttons ---------- */
.btn {
  --bfg: var(--ink); --bbg: transparent; --bfill: var(--ink); --bfg-h: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bfg); background: var(--bbg);
  border: 1.5px solid var(--ink); border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: color var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bfill);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover { color: var(--bfg-h); }
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--signal { --bbg: var(--signal); --bfg: var(--ink); --bfill: var(--ink); --bfg-h: var(--signal); border-color: var(--signal); }
.btn--ink { --bbg: var(--ink); --bfg: var(--paper); --bfill: var(--signal); --bfg-h: var(--ink); border-color: var(--ink); }
.btn--line { --bfg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .75rem; }
.btn--lg { min-height: 60px; padding: 0 32px; }
.sec--ink .btn--signal:hover { --bfill: var(--paper); --bfg-h: var(--ink); border-color: var(--paper); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: var(--z-hdr);
  height: var(--hdr-h);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(236, 232, 223, .86); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--f-display); font-weight: 900; font-size: 1.625rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.brand__sub { font-size: .625rem; padding: 3px 6px; border: 1px solid currentColor; line-height: 1; }
.brand--lt { color: var(--paper); }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  position: relative; padding: 10px 12px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-med) var(--ease-out); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.hdr__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .hdr__end { margin-left: 16px; }

.lang { display: flex; gap: 2px; }
.lang a {
  display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 6px;
  text-decoration: none; color: var(--muted); border: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.lang a:hover { color: var(--ink); border-color: var(--line-2); }
.lang a[aria-current] { color: var(--ink); border-color: var(--ink); }
.hdr .lang { display: none; }
.hdr__cta { display: none; }

.burger { width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; background: none; border: 1.5px solid var(--ink); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (min-width: 720px) { .hdr .lang { display: flex; } .hdr__cta { display: inline-flex; } }
@media (min-width: 1120px) { .nav { display: flex; } .burger { display: none; } }

/* mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: var(--z-mnav);
  background: var(--ink); color: var(--paper);
  padding: calc(var(--hdr-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 520ms var(--ease-in-out);
}
.mnav[hidden] { display: none; }
.mnav.is-open { clip-path: inset(0 0 0 0); }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--line-d);
}
.mnav__links a .mono { color: var(--signal); font-weight: 400; }
.mnav__foot { display: flex; flex-direction: column; gap: 20px; }
.mnav .lang a { color: var(--muted-d); }
.mnav .lang a[aria-current] { color: var(--paper); border-color: var(--paper); }
.mnav__foot > a { color: var(--muted-d); text-decoration: none; font-size: .8125rem; text-transform: none; }
body.menu-open .hdr { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .hdr .brand, body.menu-open .burger { color: var(--paper); border-color: var(--paper); }
body.menu-open .hdr__cta, body.menu-open .hdr .lang { visibility: hidden; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO — the headline carries a video "capsule" that opens on scroll
   ========================================================================== */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--hdr-h) + clamp(24px, 5vh, 64px)); padding-bottom: clamp(28px, 4vh, 48px); display: flex; overflow: hidden; }
.hero__in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 5vh, 56px); }
.hero__kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 90, 31, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--fit, clamp(3.5rem, 13vw, 15rem));
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero__line { display: flex; align-items: center; gap: .12em; white-space: nowrap; overflow: hidden; padding-block: .02em; }
.hero__line--2 { justify-content: flex-end; }
.hero__word { display: inline-block; }
.hero__cap {
  display: inline-block; flex: none;
  width: 1.9em; height: .7em; margin-top: -.02em;
  border-radius: 999px;
  background: var(--ink) url("../img/hero-poster.webp") center / cover;
}
.js .hero__cap { background: transparent; }
@media (max-width: 600px) { .hero__cap { width: 1.25em; } }

.hero__foot { display: grid; gap: 32px; align-items: end; }
.hero__lead { max-width: 44ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.manifest { border-top: 1.5px solid var(--ink); }
.manifest > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.manifest dt { color: var(--muted); }
.manifest dd { text-align: right; text-transform: none; letter-spacing: .01em; font-size: .8125rem; }
.manifest time { font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hero__foot { grid-template-columns: 1.2fr minmax(320px, .8fr); gap: 64px; }
}

/* stage: fullscreen video clipped to the capsule's rect via --t/--r/--b/--l */
.hero__stage {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  clip-path: inset(var(--t, 50%) var(--r, 50%) var(--b, 50%) var(--l, 50%) round var(--rad, 999px));
  opacity: 0;
  background: var(--ink);
}
.hero__stage.is-ready { opacity: 1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,20,.1), rgba(18,19,20,.55)); opacity: var(--shade, 0); }
.hero__stage-text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  z-index: 2; color: var(--paper); opacity: var(--shade, 0);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px;
}
.hero__codes { display: flex; gap: .3em; font-family: var(--f-display); font-weight: 900; font-size: clamp(3rem, 10vw, 9rem); line-height: .8; }
.hero__codes span:nth-child(odd) { color: var(--signal); }

/* ticker */
.ticker { position: relative; z-index: 2; border-block: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker__track span { padding: 16px 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.ticker__track span::after { content: ""; width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro__text {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 1.02; text-transform: uppercase; letter-spacing: .005em;
  max-width: 24ch;
  text-wrap: pretty;
}
.intro__text .w { opacity: var(--o, 1); transition: opacity 120ms linear; }
.facts { display: grid; grid-template-columns: 1fr; margin-top: clamp(56px, 8vw, 112px); border-top: 1.5px solid var(--ink); }
.fact { padding: 20px 0 22px; border-bottom: 1px solid var(--line-2); display: grid; gap: 8px; }
.fact dt { color: var(--signal-ink); }
.fact dd { font-size: 1.125rem; font-weight: 500; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact { padding-right: 24px; } }
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-2); }
  .fact { border-bottom: 0; padding: 22px 24px 26px; border-left: 1px solid var(--line-2); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   SERVICES — manifest rows with cursor-following photo
   ========================================================================== */
.svc__list { border-top: 1.5px solid var(--ink); counter-reset: svc; }
.svc__row {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 10px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line-2);
}
.svc__row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform var(--t-med) var(--ease-out); z-index: -1; }
.svc__n { color: var(--signal-ink); padding-top: .5em; }
.svc__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: .95; text-transform: uppercase; transition: color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.svc__d { grid-column: 2; max-width: 52ch; color: var(--muted); transition: color var(--t-med); }
.svc__tags { grid-column: 2; color: var(--muted); transition: color var(--t-med); }
.svc__list { position: relative; z-index: 0; }
@media (min-width: 960px) {
  .svc__row { grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 1fr) 180px; align-items: baseline; column-gap: 32px; padding: 34px 0 36px; }
  .svc__d, .svc__tags { grid-column: auto; }
  .svc__tags { text-align: right; }
}
@media (hover: hover) and (pointer: fine) {
  .svc__row:hover::before { transform: scaleY(1); }
  .svc__row:hover .svc__t { color: var(--paper); transform: translateX(12px); }
  .svc__row:hover .svc__d, .svc__row:hover .svc__tags { color: var(--muted-d); }
  .svc__row:hover .svc__n { color: var(--signal); }
}
.svc__peek {
  position: fixed; left: 0; top: 0; z-index: var(--z-peek);
  width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 3;
  pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity 260ms var(--ease-out);
  border: 1.5px solid var(--signal);
}
.svc__peek img { width: 100%; height: 100%; object-fit: cover; }
.svc__peek.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .svc__peek { display: none; } }

/* ==========================================================================
   NETWORK — transit-map diagram
   ========================================================================== */
.net__map { position: relative; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.net__map svg { min-width: 760px; width: 100%; height: auto; overflow: visible; }
.net__grid path { stroke: var(--line-d); stroke-width: 1; fill: none; stroke-dasharray: 2 6; }
.ln--fr { stroke: var(--signal); }
.ln--it { stroke: var(--cobalt); }
.ln--pen { stroke: var(--paper); }
.ln--med { stroke: var(--ochre); }
.net__st .s, .net__st .ic { fill: var(--ink); stroke: var(--paper); stroke-width: 3.5; }
.net__lbl text { fill: var(--paper); font-family: var(--f-mono); font-size: 15px; letter-spacing: .02em; }
.net__lbl text.big { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; }
.net__hub .hub { fill: var(--signal); stroke: var(--ink); stroke-width: 5; }
.net__hub .hub-pulse { fill: none; stroke: var(--signal); stroke-width: 2; transform-origin: 560px 444px; animation: hub 2.6s var(--ease-out) infinite; }
@keyframes hub { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.net__hub .hub-t { fill: var(--ink); font-family: var(--f-display); font-weight: 900; font-size: 18px; }
.net__hub .hub-l { fill: var(--paper); font-family: var(--f-display); font-weight: 900; font-size: 40px; text-transform: uppercase; }
.net__hub .hub-s { fill: var(--muted-d); font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.net__legend { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-d2); }
.net__legend li { display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--line-d); align-items: center; }
.net__legend strong { font-weight: 500; color: var(--paper); }
.net__legend span { grid-column: 2; color: var(--muted-d); text-transform: none; letter-spacing: .01em; }
.k { width: 28px; height: 8px; border-radius: 4px; }
.k--fr { background: var(--signal); } .k--it { background: var(--cobalt); } .k--pen { background: var(--paper); } .k--med { background: var(--ochre); }
@media (min-width: 960px) {
  .net__legend { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}

/* ==========================================================================
   BAND — full-bleed terminal video
   ========================================================================== */
.band { position: relative; min-height: clamp(520px, 92vh, 960px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--paper); }
.band__video { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,19,20,.2) 0%, rgba(18,19,20,.15) 40%, rgba(18,19,20,.82) 100%); }
.band__in { position: relative; z-index: 2; padding-block: clamp(48px, 8vw, 104px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.band__t { display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .86; }
.band__s { font-size: .8125rem; color: var(--signal); margin-bottom: 14px; }
.band__l { font-size: clamp(3rem, 10.5vw, 11rem); }
.band__s2 { font-size: clamp(1.6rem, 4vw, 3.8rem); font-weight: 700; color: var(--paper); opacity: .85; margin-top: 6px; }
.band__coords { color: var(--muted-d); writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 720px) { .band__coords { writing-mode: horizontal-tb; transform: none; } }

/* ==========================================================================
   METHOD — steps along a road lane that fills on scroll
   ========================================================================== */
.method__grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .method__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .method__head { position: sticky; top: calc(var(--hdr-h) + 40px); margin-bottom: 0; }
}
.steps { position: relative; padding-left: 56px; }
.lane { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 6px; background: repeating-linear-gradient(180deg, var(--ink) 0 18px, transparent 18px 32px); opacity: .22; }
.lane__fill { position: absolute; inset: 0; background: var(--signal); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.lane { opacity: 1; background: none; }
.lane::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, var(--line-2) 0 18px, transparent 18px 32px); }
.step { position: relative; display: grid; gap: 14px; padding: 8px 0 clamp(56px, 8vw, 104px); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -46px; top: 18px; width: 18px; height: 18px; background: var(--paper); border: 3px solid var(--ink); transform: rotate(45deg); transition: background-color var(--t-med); }
.step.is-on::before { background: var(--signal); }
.step__n { font-family: var(--f-display); font-weight: 900; font-size: clamp(4.5rem, 9vw, 8.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color var(--t-med) var(--ease-out); }
.step.is-on .step__n { color: var(--ink); }
.step p { color: var(--muted); max-width: 44ch; margin-top: 10px; font-size: 1.0625rem; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gal .sec-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.gal__grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.ph { position: relative; overflow: hidden; background: var(--paper-2); grid-column: 1 / -1; }
.ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.ph figcaption { position: absolute; left: 12px; bottom: 10px; color: var(--paper); background: rgba(18,19,20,.7); padding: 4px 8px; font-size: .6875rem; }
.g1 { aspect-ratio: 3 / 4; } .g2, .g3, .g4, .g5, .g6 { aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .gal__grid { gap: 16px; }
  .g1 { grid-column: 1 / span 5; grid-row: span 2; aspect-ratio: auto; }
  .g2 { grid-column: 6 / -1; }
  .g3 { grid-column: 6 / span 4; }
  .g4 { grid-column: 10 / -1; aspect-ratio: 3 / 4; }
  .g5 { grid-column: 1 / span 7; }
  .g6 { grid-column: 8 / -1; aspect-ratio: 4 / 3.3; }
}

/* ==========================================================================
   LETTER
   ========================================================================== */
.letter { background: var(--paper-2); }
.letter__grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .letter__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; } }
.sheet {
  position: relative;
  background: var(--paper-3);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(18,19,20,.35);
  /* perforated top edge */
  -webkit-mask: radial-gradient(circle 6px at 12px 0, transparent 5.5px, #000 6px) 0 0 / 24px 100% repeat-x;
          mask: radial-gradient(circle 6px at 12px 0, transparent 5.5px, #000 6px) 0 0 / 24px 100% repeat-x;
}
.sheet__top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px dashed var(--line-2); }
.sheet p:not([class]) { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: 58ch; }
.sheet p:not([class]) + p:not([class]) { margin-top: 1.1em; }
.sign { margin-top: 40px; }
.sign__name { font-family: var(--f-sign); font-size: clamp(3.6rem, 7vw, 5.6rem); line-height: 1; color: var(--ink); transform: rotate(-4deg); transform-origin: 0 50%; display: inline-block; padding: .1em .3em .15em 0; }
.js .sign__name { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease-in-out); }
.js .sign__name.is-on { clip-path: inset(-20% -10% -20% 0); }
.sign__role { color: var(--muted); margin-top: 6px; }
.stamp { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); width: clamp(92px, 12vw, 128px); color: var(--signal-ink); opacity: .82; transform: rotate(-14deg); }
.stamp text { fill: currentColor; font-family: var(--f-mono); font-size: 8.6px; letter-spacing: .12em; }
.stamp .stamp__c { font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .04em; }
@media (max-width: 560px) { .stamp { position: static; margin: 32px 0 0 auto; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; } .contact__head { margin-bottom: 0; } }
.cinfo { margin-top: 48px; border-top: 1px solid var(--line-d2); }
.cinfo > div { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.cinfo dt { color: var(--muted-d); }
.cinfo dd { font-size: 1.0625rem; }
.cinfo address { margin-bottom: 8px; }
.cinfo .ulink { color: var(--signal); }
.cinfo__mail { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.2rem); text-transform: lowercase; text-decoration: none; overflow-wrap: anywhere; }
.cinfo__mail:hover { color: var(--signal); }

.form { display: grid; gap: 32px; }
.form fieldset { border: 0; padding: 0; display: grid; gap: 20px 24px; min-width: 0; }
.form legend { color: var(--signal); margin-bottom: 20px; padding: 0; }
@media (min-width: 640px) { .form fieldset { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .9375rem; color: var(--paper); }
.field label abbr { color: var(--signal); }
.opt { color: var(--muted-d); font-size: .8125rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line-d2); border-radius: 0;
  font-size: 1rem;
  transition: border-color var(--t-fast), background-color var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-d); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: var(--ink-3); box-shadow: 0 0 0 1px var(--signal); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.hint { font-size: .875rem; color: var(--muted-d); }
.err { font-size: .875rem; color: var(--error-d); min-height: 0; }
.err:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error-d); }

.field--check { grid-template-columns: 24px 1fr; align-items: start; gap: 6px 14px; }
.field--check input {
  width: 24px; height: 24px; min-height: 0; padding: 0; margin-top: 1px;
  border: 1.5px solid var(--paper); background: transparent; cursor: pointer; position: relative;
}
.field--check input:checked { background: var(--signal); border-color: var(--signal); }
.field--check input:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.field--check input:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.field--check label { font-size: .9375rem; cursor: pointer; }
.field--check label a { color: var(--signal); }
.field--check .err { grid-column: 2; }
.form__legal { font-size: .8125rem; line-height: 1.55; color: var(--muted-d); border-left: 2px solid var(--line-d2); padding-left: 14px; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form__ok { font-size: .9375rem; color: var(--paper); border-left: 3px solid var(--signal); padding-left: 14px; max-width: 48ch; }
.form__ok a { color: var(--signal); }
.form__summary { border: 1.5px solid var(--error-d); padding: 16px 18px; color: var(--paper); }
.form__summary p { font-weight: 600; margin-bottom: 6px; }
.form__summary ul { padding-left: 18px; }
.form__summary a { color: var(--error-d); }
.form__summary:focus { outline: 3px solid var(--error-d); outline-offset: 3px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ftr { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 8vw, 112px); padding-bottom: 28px; border-top: 1px solid var(--line-d); position: relative; z-index: 2; }
.ftr__grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.ftr__about { grid-column: 1 / -1; display: grid; gap: 18px; max-width: 36ch; }
.ftr__about p { color: var(--muted-d); }
.ftr__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ftr__col h2 { color: var(--signal); margin-bottom: 6px; font-weight: 400; }
.ftr__col > a { color: var(--paper); text-decoration: none; padding: 3px 0; transition: color var(--t-fast); overflow-wrap: anywhere; }
.ftr__col > a:hover { color: var(--signal); }
.ftr__col address { color: var(--muted-d); }
.ftr .lang { margin-top: 8px; margin-left: -6px; }
.ftr .lang a { color: var(--muted-d); }
.ftr .lang a:hover { color: var(--paper); border-color: var(--line-d2); }
.ftr .lang a[aria-current] { color: var(--paper); border-color: var(--paper); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } .ftr__about { grid-column: auto; } }

.ftr__word {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--fitw, 22vw); line-height: .78; letter-spacing: -.01em;
  margin: clamp(56px, 8vw, 104px) 0 20px;
  color: transparent; -webkit-text-stroke: 1px var(--line-d2);
  white-space: nowrap; user-select: none;
  width: max-content;
}
.ftr__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 20px; border-top: 1px solid var(--line-d); color: var(--muted-d); }
.ftr__top { color: var(--paper); text-decoration: none; }
.ftr__top:hover { color: var(--signal); }
.barcode { display: inline-flex; height: 28px; align-items: stretch; gap: 0; }
.barcode i { display: block; background: var(--paper); opacity: .75; }

/* cookie notice */
.notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-notice);
  max-width: 420px;
  background: var(--paper-3); color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 18px 18px 16px;
  box-shadow: 8px 8px 0 var(--ink);
  font-size: .9375rem; line-height: 1.5;
  transform: translateY(0); transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.notice[hidden] { display: none; }
.notice.is-leaving { transform: translateY(24px); opacity: 0; }
.notice__act { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.notice__act a { color: var(--ink); }
@media (min-width: 560px) { .notice { left: 24px; bottom: 24px; } }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { padding-top: calc(var(--hdr-h) + clamp(40px, 6vw, 80px)); padding-bottom: var(--sec-y); }
.legal__head { display: grid; gap: 18px; padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1.5px solid var(--ink); }
.legal__head .ulink { justify-self: start; font-size: .75rem; }
.legal__head .tag { margin: 12px 0 0; }
.legal__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .86; text-transform: uppercase; text-wrap: balance; }
.legal__meta { color: var(--muted); }
.legal__note { font-size: .9375rem; color: var(--muted); border-left: 3px solid var(--signal); padding-left: 14px; max-width: 64ch; }
.legal__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .legal__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 80px; } .legal__aside { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; } }
.toc p { color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; border-top: 1px solid var(--line-2); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 9px 0; text-decoration: none; font-size: .9375rem; line-height: 1.35; color: var(--muted); transition: color var(--t-fast), padding var(--t-fast); }
.toc a:hover, .toc a.is-active { color: var(--ink); padding-left: 8px; }
.toc a.is-active { box-shadow: inset 3px 0 0 var(--signal); }
.legal__docs { display: flex; flex-direction: column; margin-top: 36px; gap: 2px; }
.legal__docs a { padding: 8px 0; text-decoration: none; color: var(--muted); }
.legal__docs a:hover { color: var(--ink); }
.legal__docs a[aria-current] { color: var(--ink); }
.legal__docs a[aria-current]::before { content: "→ "; color: var(--signal-ink); }
@media (max-width: 1023px) { .toc { display: none; } .legal__docs { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 0; } .legal__docs a { border: 1px solid var(--line-2); padding: 8px 12px; } .legal__docs a[aria-current] { border-color: var(--ink); } .legal__docs a[aria-current]::before { content: none; } }

.prose { max-width: 72ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1em; }
.prose .lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; }
.prose h2 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1; text-transform: uppercase;
  margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--line-2);
}
.prose h2 + * { margin-top: .8em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--signal-ink); }
.prose a { color: var(--signal-ink); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose code { font-family: var(--f-mono); font-size: .875em; background: var(--paper-2); padding: 1px 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-2); min-width: 140px; }
.prose th { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.kv { border-top: 1.5px solid var(--ink); }
.kv > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.kv dt { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (min-width: 640px) { .kv > div { grid-template-columns: 220px 1fr; gap: 24px; } }

/* ==========================================================================
   Reveal helpers (JS adds .rv to elements, then toggles .is-in)
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.is-in { 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; }
  .ticker__track { animation: none; }
  .js .rv { opacity: 1; transform: none; }
  .js .sign__name { clip-path: none; }
  .ph img { transform: none; }
}
