/* ==========================================================================
   Valiron Project — hoja de estilos principal
   Tokens → base → componentes → secciones → páginas legales → utilidades
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-var.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta — asfalto, papel y señal */
  --ink: #0b0d10;
  --ink-2: #12161b;
  --ink-3: #1b2027;
  --ink-4: #262c35;
  --paper: #f2efe9;
  --paper-2: #e8e3da;
  --paper-3: #dcd5c9;
  --signal: #ff5b1f;          /* 6.3:1 sobre --ink */
  --signal-hover: #ff7745;
  --signal-ink: #b83a0b;      /* texto naranja sobre papel: 5.0:1 */
  --ok: #7ee2a8;
  --error: #ff8a80;

  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --hdr-h: 72px;
  --sec-pad: clamp(88px, 11vw, 176px);
  --radius: 10px;
  --radius-sm: 6px;
}

/* Temas por sección: cada uno redefine los tokens semánticos */
.theme-ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #9ba1aa;           /* 7.5:1 */
  --line: rgba(242, 239, 233, 0.12);
  --line-strong: rgba(242, 239, 233, 0.28);
  --accent-text: var(--signal);
  --surface: var(--ink-2);
  background-color: var(--bg);
  color: var(--fg);
}
.theme-paper,
.theme-paper-2 {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5a6069;           /* 5.5:1 */
  --line: rgba(11, 13, 16, 0.14);
  --line-strong: rgba(11, 13, 16, 0.32);
  --accent-text: var(--signal-ink);
  --surface: #fbf9f5;
  background-color: var(--bg);
  color: var(--fg);
}
.theme-paper-2 { --bg: var(--paper-2); --surface: var(--paper); }
.theme-signal {
  --bg: var(--signal);
  --fg: var(--ink);
  --muted: rgba(11, 13, 16, 0.8);
  --line: rgba(11, 13, 16, 0.25);
  --line-strong: rgba(11, 13, 16, 0.5);
  --accent-text: var(--ink);
  background-color: var(--bg);
  color: var(--fg);
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--hdr-h);
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.menu-open body { overflow: hidden; }

img,
video,
svg { display: block; max-width: 100%; }
img,
video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
ul[class], ol[class],
.hdr__nav ul, .ftr__col ul, .crumbs ol, .toc ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.theme-signal :focus-visible { outline-color: var(--ink); }
[tabindex='-1']:focus { outline: none; }

/* Lenis */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

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

.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 {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------- typography */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-text);
}
.label__num::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.label--ink { color: var(--muted); }

.h2 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.5rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec-intro {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}

.icon { width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 0 1.75em; font-size: 1rem; }
.btn__icon { width: 1.15em; height: 1.15em; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__icon:not(.btn__icon--lead) { transform: translateX(4px); }

.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-hover); }
.btn--ghost {
  border-color: rgba(242, 239, 233, 0.4);
  color: var(--paper);
  background: rgba(11, 13, 16, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--outline { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-4); }

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--hdr-h);
  color: var(--paper);
  transition: transform 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: rgba(242, 239, 233, 0.08);
}
.hdr.is-hidden { transform: translateY(-100%); }
html.menu-open .hdr { background: transparent; border-bottom-color: transparent; backdrop-filter: none; transform: none; }

.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.hdr__nav ul { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.hdr__nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(242, 239, 233, 0.82);
  transition: color 0.2s;
}
.hdr__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.hdr__nav a:hover { color: var(--paper); }
.hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__actions { display: flex; align-items: center; gap: 12px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}
.logo__mark { width: 30px; height: 30px; }
.logo__word {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.logo__sub {
  padding-left: 10px;
  border-left: 1px solid rgba(242, 239, 233, 0.3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ba1aa;
  line-height: 1.4;
}
.logo--lg .logo__mark { width: 38px; height: 38px; }
.logo--lg .logo__word { font-size: 1.6rem; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(242, 239, 233, 0.22);
  border-radius: 999px;
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #b3b8bf;
  transition: background-color 0.2s, color 0.2s;
}
.lang a:hover { color: var(--paper); }
.lang a[aria-current='true'] { background: var(--paper); color: var(--ink); }
.lang--lg a { min-width: 56px; min-height: 48px; font-size: 0.875rem; }

.burger {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 239, 233, 0.28);
  border-radius: 50%;
  background: rgba(11, 13, 16, 0.25);
  cursor: pointer;
}
.burger__lines { position: relative; display: block; width: 18px; height: 10px; }
.burger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.burger__lines span:first-child { top: 0; }
.burger__lines span:last-child { top: 8.5px; }
.burger[aria-expanded='true'] .burger__lines span:first-child { top: 4.25px; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__lines span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  padding-top: var(--hdr-h);
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-in-out);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: 32px 40px; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.12);
  font-size: clamp(1.9rem, 8vw, 3.5rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}
.menu__num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--signal); letter-spacing: 0.1em; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.menu__mail { color: #b3b8bf; font-family: var(--font-mono); font-size: 0.875rem; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--hdr-h) + 48px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink-3) url('../img/poster-hero-highway.webp') center / cover no-repeat; }
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: 50% 40%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.6) 0%, rgba(11, 13, 16, 0.1) 26%, rgba(11, 13, 16, 0.25) 52%, rgba(11, 13, 16, 0.92) 88%, var(--ink) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.65) 0%, rgba(11, 13, 16, 0) 65%);
}
.hero__shade::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { padding-bottom: clamp(32px, 6vh, 64px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(242, 239, 233, 0.25);
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.6);
  animation: beacon 2.2s var(--ease-out) infinite;
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(255, 91, 31, 0); }
}

.hero__title {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(2.35rem, 0.37rem + 6.95vw, 8.5rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: initial;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--signal); }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-top: clamp(24px, 4vw, 48px);
}
.hero__sub { margin: 0; max-width: 48ch; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); color: rgba(242, 239, 233, 0.88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(242, 239, 233, 0.16);
}
.telemetry { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 4vw, 64px); margin: 0; }
.telemetry dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ba1aa;
}
.telemetry dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.video-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(242, 239, 233, 0.3);
  border-radius: 50%;
  background: rgba(11, 13, 16, 0.3);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.video-toggle:hover { background: var(--paper); color: var(--ink); }
.video-toggle .icon { width: 18px; height: 18px; }
.video-toggle__play { display: none; }
.video-toggle.is-paused .video-toggle__play { display: block; }
.video-toggle.is-paused .video-toggle__pause { display: none; }

/* --------------------------------------------------------------- marquee */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  background: var(--signal);
  color: var(--ink);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  padding: 0 0.55em;
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.4rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}
.marquee__sep {
  width: clamp(16px, 1.6vw, 26px);
  height: clamp(16px, 1.6vw, 26px);
  background: var(--ink);
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--sec-pad); position: relative; }

/* About */
.about h2.label { font-weight: 500; }
.statement {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(1.55rem, 0.95rem + 2.5vw, 3.35rem);
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.16;
  letter-spacing: -0.022em;
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(56px, 8vw, 128px);
}
.about__main {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3.1;
}
.about__main img { width: 100%; height: 100%; object-fit: cover; }
.about__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 40px; }
.about__body { margin: 0; color: var(--muted); }
.about__small {
  grid-column: 9 / span 3;
  align-self: end;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
}
.about__small img { width: 100%; height: 100%; object-fit: cover; }

.facts__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.facts dl { margin: 0; }
.facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts dl > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; text-align: right; font-weight: 500; font-size: 0.9375rem; }

/* Stats */
.stats { padding-block: clamp(64px, 9vw, 128px); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding-inline: clamp(16px, 3vw, 48px); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  margin: 0;
  font-size: clamp(3.25rem, 1.5rem + 5.5vw, 7.75rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat__affix { font-size: 0.4em; letter-spacing: 0; color: var(--signal); }
.stat__label { margin: 20px 0 0; max-width: 30ch; color: var(--muted); }

/* Services */
.svc { border-top: 1px solid var(--line); }
.svc__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.25fr) 76px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease-out);
}
.svc__num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.svc__title {
  font-size: clamp(1.5rem, 0.9rem + 2.1vw, 2.85rem);
  font-weight: 750;
  font-stretch: 114%;
  letter-spacing: -0.025em;
  line-height: 1.04;
  transition: transform 0.6s var(--ease-out), color 0.3s;
}
.svc__tag {
  justify-self: start;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.svc__text { margin: 0; max-width: 44ch; color: var(--muted); }
.svc__thumb { display: none; }
.svc__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-out), border-color 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc__item:not(:hover) { opacity: 0.4; }
  .svc__item:hover .svc__title { transform: translateX(14px); color: var(--signal); }
  .svc__item:hover .svc__arrow { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: rotate(45deg); }
}

.svc-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: clamp(260px, 22vw, 360px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: var(--ink-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.svc-cursor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.4s, transform 0.8s var(--ease-out);
}
.svc-cursor img.is-active { opacity: 1; transform: scale(1); }

/* Reel */
.reel { padding-top: var(--sec-pad); padding-bottom: clamp(48px, 6vw, 88px); overflow: hidden; }
.services { padding-bottom: clamp(48px, 6vw, 96px); }
.services + .reel:not(.is-pinned) { padding-top: clamp(48px, 6vw, 96px); }
.reel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.reel__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.reel__hint-line { position: relative; width: 56px; height: 1px; background: var(--line-strong); overflow: hidden; }
.reel__hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--signal);
  animation: hint 2.4s var(--ease-in-out) infinite;
}
@keyframes hint {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.reel__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.reel__viewport::-webkit-scrollbar { display: none; }
.reel__track { display: flex; gap: clamp(16px, 2vw, 32px); width: max-content; }
.reel__card { width: clamp(280px, 78vw, 1000px); scroll-snap-align: start; }
@media (min-width: 900px) { .reel__card { width: clamp(420px, 58vw, 1000px); } }
.reel__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.reel__media video { width: 100%; height: 100%; object-fit: cover; }
.reel__caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 20px;
  padding-top: 18px;
}
.reel__idx { grid-row: span 2; padding-top: 6px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--signal); }
.reel__title { font-size: clamp(1.2rem, 0.9rem + 1vw, 1.75rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
.reel__caption p { margin: 0; color: var(--muted); }
.reel__bar { position: relative; height: 2px; margin-top: clamp(28px, 3vw, 44px); }
.reel__bar::before { content: ''; position: absolute; inset: 0 var(--gutter); background: var(--line); }
.reel__bar span {
  position: absolute;
  inset: 0 var(--gutter);
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}

.reel.is-pinned { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hdr-h) + 8px) 32px; }
.reel.is-pinned .reel__viewport { overflow: visible; scroll-snap-type: none; }
.reel.is-pinned .reel__card { width: min(56vw, calc((100vh - 360px) * 1.6)); }

/* Network */
.network {
  background:
    radial-gradient(60% 50% at 70% 55%, rgba(255, 91, 31, 0.09), transparent 70%),
    var(--ink);
}
.network__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
.network__lead { margin: 24px 0 44px; max-width: 46ch; color: var(--muted); }
.network__list-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.cities li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.cities__km { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cities li.is-active { color: var(--signal); }
.cities li.is-active .cities__km { color: var(--signal); }
.network__note { margin: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }

.map { position: relative; aspect-ratio: 1000 / 871; }
.map__dots,
.map__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__ring { fill: rgba(255, 91, 31, 0.07); stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 5 7; }
.route { fill: none; stroke: rgba(255, 91, 31, 0.55); stroke-width: 2; stroke-linecap: round; transition: stroke 0.25s, stroke-width 0.25s; }
.route.is-active { stroke: var(--signal); stroke-width: 4; }
.traffic { fill: var(--paper); }
.city circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; transition: fill 0.2s, stroke 0.2s; }
.city text { fill: var(--paper); font-family: var(--font-mono); font-size: 17px; font-weight: 500; paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
.city.is-active circle { fill: var(--signal); stroke: var(--signal); }
.city.is-active text { fill: var(--signal); }
.hub-core { fill: var(--signal); stroke: var(--ink); stroke-width: 3; }
.hub-pulse { fill: var(--signal); opacity: 0.4; transform-box: fill-box; transform-origin: center; animation: hub 2.4s var(--ease-out) infinite; }
@keyframes hub {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}
.map__hub text { fill: var(--paper); font-family: var(--font-sans); font-size: 24px; font-weight: 800; font-stretch: 118%; paint-order: stroke; stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round; }
.map__ring-text { fill: var(--signal); font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; paint-order: stroke; stroke: var(--ink); stroke-width: 5px; }

/* Process */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps__road {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 16px, transparent 16px 28px);
}
.steps__road span {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--signal) 0 16px, transparent 16px 28px);
  transform: scaleX(0);
  transform-origin: left;
}
.step { position: relative; }
.step__marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.step__num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-text); }
.step__title { margin: 10px 0 12px; font-size: clamp(1.45rem, 1rem + 1.2vw, 2rem); font-weight: 750; font-stretch: 114%; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); }

/* Values */
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.value:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11, 13, 16, 0.08); }
.value__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal);
}
.value__icon .icon { width: 24px; height: 24px; }
.value__title { margin-top: auto; font-size: 1.4rem; font-weight: 750; font-stretch: 112%; letter-spacing: -0.01em; }
.value p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { padding-block: clamp(88px, 10vw, 160px); overflow: hidden; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  align-items: start;
}
.gallery__item { overflow: hidden; border-radius: var(--radius-sm); background: var(--ink-3); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--1 { grid-column: 1 / span 5; aspect-ratio: 4 / 3; }
.gallery__item--2 { grid-column: 7 / span 3; aspect-ratio: 3 / 4; margin-top: 12vw; }
.gallery__item--3 { grid-column: 10 / span 3; aspect-ratio: 4 / 5; }
.gallery__item--4 { grid-column: 2 / span 3; aspect-ratio: 1; margin-top: -4vw; }
.gallery__item--5 { grid-column: 5 / span 5; aspect-ratio: 16 / 10; margin-top: 4vw; }
.gallery__item--6 { grid-column: 10 / span 3; aspect-ratio: 4 / 3; margin-top: -2vw; }

/* Careers */
.careers { position: relative; padding-block: clamp(80px, 10vw, 150px); overflow: hidden; }
.careers::before {
  content: '';
  position: absolute;
  left: var(--gutter);
  bottom: clamp(80px, 10vw, 150px);
  width: min(38vw, 560px);
  height: 96px;
  opacity: 0.14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 96'%3E%3Cpath d='M0 0h28l34 48-34 48H0l34-48z' fill='%230B0D10'/%3E%3C/svg%3E") 0 0 / 72px 96px repeat-x;
  animation: chevrons 3s linear infinite;
  pointer-events: none;
}
@keyframes chevrons { to { background-position: 72px 0; } }
@media (max-width: 767px) { .careers::before { display: none; } }
.careers__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
.careers__inner .label { grid-column: 1 / -1; margin-bottom: 0; }
.careers__title { grid-column: 1 / -1; max-width: 16ch; font-size: clamp(2.1rem, 0.9rem + 4.6vw, 6rem); font-weight: 800; font-stretch: 120%; letter-spacing: -0.035em; line-height: 0.98; overflow-wrap: break-word; hyphens: auto; }
.careers__side { grid-column: 2; }
.careers__side > p:first-child { margin: 0 0 28px; max-width: 44ch; font-size: 1.125rem; }
.careers__legal { margin: 18px 0 0; max-width: 52ch; font-size: 0.8125rem; color: var(--muted); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 104px); align-items: start; }
.contact__title { margin-bottom: 24px; font-size: clamp(2.3rem, 1.3rem + 3.8vw, 5.25rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.035em; line-height: 0.98; }
.contact__lead { margin: 0 0 40px; max-width: 44ch; color: var(--muted); }
.cards { display: grid; gap: 12px; }
.card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 233, 0.02);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 91, 31, 0.12);
  color: var(--signal);
}
.card__title { margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card__mail { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid var(--line-strong); }
.card__mail:hover { color: var(--signal); border-color: var(--signal); }

.form {
  position: relative;
  padding: clamp(22px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
}
.form__req { margin: 0 0 20px; font-size: 0.8125rem; color: var(--muted); }
.req { color: var(--signal); }
.opt { font-weight: 400; color: var(--muted); }
.form__summary {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 138, 128, 0.45);
  border-radius: 8px;
  background: rgba(255, 138, 128, 0.08);
  color: #ffc2bb;
  font-size: 0.9375rem;
}
.form__summary ul { margin: 8px 0 0; padding-left: 18px; }
.form__summary a { color: inherit; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 239, 233, 0.22);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(242, 239, 233, 0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.28); }
.field ::placeholder { color: #7d838c; opacity: 1; }
.field [aria-invalid='true'] { border-color: var(--error); }
.field__error { margin: 8px 0 0; font-size: 0.8125rem; color: var(--error); }
.select { position: relative; }
.select::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select option { background: var(--ink-2); color: var(--paper); }
.field--check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--signal); cursor: pointer; }
.field--check label { margin: 0; font-weight: 400; color: rgba(242, 239, 233, 0.9); }
.field--check label a { color: var(--paper); text-underline-offset: 3px; }
.field--check .field__error { grid-column: 2; margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.layer {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.layer__title { margin: 0 0 10px; font-weight: 600; color: var(--paper); }
.layer dl { margin: 0; }
.layer dl > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 3px 0; }
.layer dt { font-weight: 600; color: #c9cdd2; }
.layer dd { margin: 0; }
.layer__more { margin: 10px 0 0; }
.layer a { color: var(--paper); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.form__status { margin: 0; font-size: 0.9375rem; }
.form__status.is-success { color: var(--ok); }
.form__status.is-error { color: var(--error); }
.form__status a { color: inherit; }
.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }

/* ---------------------------------------------------------------- footer */
.ftr { padding-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.ftr__brand p { margin: 20px 0 0; max-width: 34ch; color: var(--muted); }
.ftr__h {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ftr__col ul { display: grid; gap: 2px; }
.ftr__col a,
.ftr__col .link-btn {
  display: inline-block;
  padding: 6px 0;
  color: rgba(242, 239, 233, 0.88);
  text-decoration: none;
  transition: color 0.2s;
}
.ftr__col a:hover,
.ftr__col .link-btn:hover { color: var(--signal); }
.ftr address p { margin: 0 0 12px; color: var(--muted); }
.ftr address a { padding: 0; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ftr__word {
  margin: clamp(56px, 8vw, 112px) 0 0;
  font-size: clamp(3.4rem, 0.5rem + 14.2vw, 13rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 233, 0.22);
  background: linear-gradient(180deg, rgba(255, 91, 31, 0.9), rgba(255, 91, 31, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.ftr__bottom p { margin: 0; }
.totop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}
.totop .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.totop:hover .icon { transform: translateY(-3px); }

/* Progress (carretera) */
.progress {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 40;
  width: 3px;
  height: 28vh;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(128, 128, 128, 0.28);
  transform: translateY(-50%);
  pointer-events: none;
}
.progress span { display: block; width: 100%; height: 100%; background: var(--signal); transform: scaleY(0); transform-origin: top; }

/* --------------------------------------------------------- cookie consent */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(440px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid rgba(242, 239, 233, 0.14);
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --fg: var(--paper);
  --bg: var(--ink-2);
  --line-strong: rgba(242, 239, 233, 0.32);
  animation: rise 0.6s var(--ease-out) both;
}
.cookie[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.cookie__title { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 700; font-stretch: 112%; }
.cookie__text { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.55; color: #b3b8bf; }
.cookie__text a { color: var(--paper); }
.cookie__actions,
.cmodal__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cookie__actions .btn,
.cmodal__actions .btn { padding: 0 0.6em; font-size: 0.8125rem; white-space: normal; }

.cmodal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  --fg: var(--paper);
  --bg: var(--ink-2);
  --line: rgba(242, 239, 233, 0.12);
  --line-strong: rgba(242, 239, 233, 0.32);
}
.cmodal::backdrop { background: rgba(11, 13, 16, 0.72); backdrop-filter: blur(4px); }
.cmodal[open] { animation: rise 0.4s var(--ease-out) both; }
.cmodal__inner {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(242, 239, 233, 0.14);
  border-radius: 16px;
  background: var(--ink-2);
}
.cmodal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.cmodal__close:hover { background: rgba(242, 239, 233, 0.08); }
.cmodal__title { margin: 0 48px 8px 0; font-size: 1.375rem; font-weight: 750; font-stretch: 112%; }
.cmodal__text { margin: 0 0 12px; font-size: 0.9375rem; color: #b3b8bf; }
.cmodal__text a { color: var(--paper); }
.cmodal__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cmodal__row h3 { margin-bottom: 4px; font-size: 1rem; font-weight: 650; }
.cmodal__row p { margin: 0; font-size: 0.875rem; color: #b3b8bf; }
.cmodal__always { font-family: var(--font-mono); font-size: 0.75rem; color: var(--signal); white-space: nowrap; }
.cmodal__actions { margin-top: 16px; }
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: rgba(242, 239, 233, 0.2);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.3s var(--ease-out);
}
.switch:checked { background: var(--signal); }
.switch:checked::before { transform: translateX(22px); }

/* ------------------------------------------------------------ legal pages */
.legal-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--hdr-h) + clamp(56px, 9vw, 136px)) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 25%, rgba(11, 13, 16, 0.55)),
    linear-gradient(0deg, var(--ink), rgba(11, 13, 16, 0) 60%),
    url('../img/freeway-bw-1600.webp') center / cover no-repeat;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; }
.crumbs a { color: var(--paper); text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.legal-hero__title { font-size: clamp(2.6rem, 1rem + 6vw, 7rem); font-weight: 800; font-stretch: 120%; letter-spacing: -0.04em; line-height: 0.95; }
.legal-hero__meta { margin: 24px 0 0; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }

.legal { padding-block: clamp(48px, 7vw, 112px); }
.legal__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.legal__aside { position: sticky; top: calc(var(--hdr-h) + 24px); }
.toc__title { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin-bottom: 28px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); padding-top: 2px; font-family: var(--font-mono); font-size: 0.75rem; }
.toc a:hover,
.toc a.is-active { color: var(--ink); border-left-color: var(--signal); }
.legal__docs { display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal__docs a { display: inline-block; padding: 6px 0; font-weight: 500; text-decoration: none; }
.legal__docs a:hover { color: var(--signal-ink); }
.legal__docs a[aria-current='page'] { color: var(--signal-ink); }
.legal__docs a[aria-current='page']::before { content: '→ '; }

.legal__body { max-width: 76ch; font-size: 1.0625rem; line-height: 1.7; color: #2a2f36; }
.legal__note { margin: 0 0 32px; padding: 14px 18px; border-left: 3px solid var(--signal); background: var(--paper-2); font-size: 0.9375rem; }
.legal__intro { margin: 0 0 16px; font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.legal__section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.legal__section h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 750; font-stretch: 110%; letter-spacing: -0.015em; color: var(--ink); }
.legal__body p,
.legal__body ul { margin: 0 0 16px; }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin-bottom: 8px; }
.legal__body li::marker { color: var(--signal-ink); }
.legal__body a { color: var(--signal-ink); text-underline-offset: 3px; }
.legal__body strong { color: var(--ink); font-weight: 650; }
.legal__body .link-btn { color: var(--signal-ink); font-weight: 600; }
.legal-dl { display: grid; grid-template-columns: minmax(140px, 230px) minmax(0, 1fr); margin: 0 0 16px; border-top: 1px solid var(--line); }
.legal-dl dt,
.legal-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { padding: 15px 16px 12px 0; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.legal-dl dd { color: var(--ink); overflow-wrap: anywhere; }
.table-wrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.legal__body table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.legal__body th { padding: 12px 14px; background: var(--paper-2); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; color: var(--muted); }
.legal__body td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.legal__body code { padding: 2px 6px; border-radius: 4px; background: var(--paper-2); font-family: var(--font-mono); font-size: 0.85em; }
.legal__back { margin-top: 56px !important; }

/* 404 */
.nf {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--hdr-h) + 40px) 80px;
  overflow: hidden;
}
.nf__media { position: absolute; inset: 0; z-index: -1; }
.nf__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.nf__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 20%, rgba(11, 13, 16, 0.4)), linear-gradient(0deg, var(--ink), transparent 50%); }
.nf__code { margin: 0; font-size: clamp(6rem, 2rem + 20vw, 20rem); font-weight: 900; font-stretch: 125%; line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--signal); }
.nf__title { margin: 28px 0 12px; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.nf__text { margin: 0; max-width: 44ch; font-size: 1.125rem; color: var(--muted); }
.nf__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ----------------------------------------------------- JS initial states */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js [data-hero-fade] { opacity: 0; transform: translateY(20px); }
.js [data-hero-title] { visibility: hidden; }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.split-line { padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .burger { display: grid; }
}

@media (max-width: 1023px) {
  .progress { display: none; }
  .network__grid { grid-template-columns: minmax(0, 1fr); }
  .network__map { order: -1; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps__road { display: none; }
  .legal__layout { grid-template-columns: minmax(0, 1fr); }
  .legal__aside { position: static; }
  .about__main { grid-column: 1 / -1; grid-row: auto; }
  .about__side { grid-column: 1 / span 7; }
  .about__small { grid-column: 9 / span 4; grid-row: 2; align-self: start; }
}

@media (max-width: 899px), (hover: none) {
  .svc__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'num tag arrow'
      'title title title'
      'text text text'
      'thumb thumb thumb';
    gap: 14px 16px;
  }
  .svc__num { grid-area: num; }
  .svc__tag { grid-area: tag; }
  .svc__title { grid-area: title; }
  .svc__text { grid-area: text; }
  .svc__arrow { grid-area: arrow; width: 40px; height: 40px; }
  .svc__arrow .icon { width: 16px; height: 16px; }
  .svc__thumb { grid-area: thumb; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; margin-top: 6px; }
  .svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-cursor { display: none; }
}
@media (min-width: 640px) and (max-width: 899px), (min-width: 640px) and (hover: none) {
  .svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

@media (max-width: 767px) {
  :root { --hdr-h: 64px; }
  .hdr__cta { display: none; }
  .hdr__actions > .lang { display: none; }
  .logo__sub { display: none; }
  .hero__bottom { grid-template-columns: minmax(0, 1fr); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .telemetry > div:first-child { display: none; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .reel__head { flex-direction: column; align-items: flex-start; }
  .stats__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .stat { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { padding-top: 0; border-top: 0; }
  .about__side { grid-column: 1 / -1; }
  .about__small { display: none; }
  .careers__inner { grid-template-columns: minmax(0, 1fr); }
  .careers__side { grid-column: 1; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .gallery__grid > .gallery__item { grid-column: auto; margin-top: 0; aspect-ratio: 4 / 5; }
  .gallery__item--1,
  .gallery__item--5 { grid-column: 1 / -1 !important; aspect-ratio: 16 / 10 !important; }
  .city text { display: none; }
  .map__hub text { font-size: 34px; stroke-width: 8px; }
  .map__ring-text { font-size: 26px; }
  .legal-dl { grid-template-columns: minmax(0, 1fr); }
  .legal-dl dt { padding-bottom: 0; border-bottom: 0; }
}

@media (max-width: 560px) {
  .cities { grid-template-columns: minmax(0, 1fr); }
  .values__grid { grid-template-columns: minmax(0, 1fr); }
  .value { min-height: 0; }
  .value__title { margin-top: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
  .layer dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; }
  .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 18px; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-hero-fade] { opacity: 1; transform: none; }
  .js [data-hero-title] { visibility: visible; }
  .js [data-clip] { clip-path: none; }
  .marquee__track { animation: none; }
  .hero__video { transform: none; }
}

@media print {
  .hdr, .menu, .progress, .cookie, .cmodal, .hero__media, .marquee, .reel, .gallery, .svc-cursor, .legal__aside { display: none !important; }
  body, .theme-ink, .theme-paper { background: #fff !important; color: #000 !important; }
  .legal__layout { display: block; }
}
