/* ==========================================================================
   O&M Transportes — main stylesheet
   Tokens → base → layout → components → sections → legal → utilities
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette */
  --ink: #0a0f1a;
  --ink-2: #111a2b;
  --ink-3: #1b2740;
  --paper: #f2efe8;
  --paper-2: #e7e2d6;
  --white: #fbfaf6;
  --signal: #ff5b1f;
  --signal-hover: #ff7440;
  --signal-text: #c2410c;

  /* Semantic */
  --on-dark: #f2efe8;
  --on-dark-muted: #9aa6bc;
  --on-light: #0a0f1a;
  --on-light-muted: #4f5767;
  --line-dark: rgba(242, 239, 232, 0.12);
  --line-dark-strong: rgba(242, 239, 232, 0.28);
  --line-light: rgba(10, 15, 26, 0.12);
  --error-on-dark: #ff9b7a;
  --success-on-dark: #7ee2a8;

  /* Type */
  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Shape & space */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --container: 1360px;
  --header-h: 72px;
  --section-y: clamp(5rem, 10vw, 9rem);

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@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-stretch: 100%;
  color: var(--on-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

main {
  overflow-x: clip;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon--sm {
  width: 1em;
  height: 1em;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn--signal:hover {
  background: var(--signal-hover);
}

.btn--ghost {
  border-color: var(--line-dark-strong);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: var(--on-dark);
  background: rgba(242, 239, 232, 0.06);
}

.btn--sm {
  min-height: 44px;
  padding: 0.7em 1.1em;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 56px;
  padding: 1em 1.6em;
  font-size: 1.0625rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.2rem;
  border-bottom: 1.5px solid currentColor;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.link-arrow .icon {
  transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover {
  color: var(--signal-text);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-arrow--light {
  color: var(--on-dark);
}

.link-arrow--light:hover {
  color: var(--signal);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__word {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__amp {
  color: var(--signal);
}

.brand__sub {
  padding-left: 0.6rem;
  border-left: 1px solid var(--line-dark-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  line-height: 1.2;
}

.brand--lg .brand__mark {
  width: 44px;
  height: 44px;
}

.brand--lg .brand__word {
  font-size: 1.6rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, transform 0.45s var(--ease-out);
}

.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(10, 15, 26, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-dark);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.site-header .brand {
  margin-right: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--on-dark);
  background: rgba(242, 239, 232, 0.06);
}

.site-nav a.is-active {
  color: var(--on-dark);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--signal);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang ul {
  display: flex;
  margin: 0;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.lang a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.lang a:hover:not([aria-current]) {
  color: var(--on-dark);
}

.lang a[aria-current] {
  background: var(--on-dark);
  color: var(--ink);
}

.lang--lg a {
  min-width: 56px;
  height: 44px;
  font-size: 0.875rem;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-dark-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bars {
  display: grid;
  gap: 6px;
  width: 20px;
}

.menu-toggle__bars span {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  padding-top: var(--header-h);
  overflow-y: auto;
  background: var(--ink);
  color: var(--on-dark);
  animation: menu-in 0.35s var(--ease-out);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 100%;
  padding-block: 1.5rem 2.5rem;
}

.mobile-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu__list .mono {
  color: var(--signal);
}

.mobile-menu__foot {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.mobile-menu__contact {
  color: var(--on-dark-muted);
  text-decoration: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 1080px) {
  .site-nav,
  .site-header__actions > .lang {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header__cta,
  .site-header .brand__sub {
    display: none;
  }
}

/* ---------- Section scaffolding ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--light {
  background: var(--paper);
  color: var(--on-light);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

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

.section-head {
  max-width: 60rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--on-light-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow__num {
  color: var(--signal-text);
}

.eyebrow__rule {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--light {
  color: var(--on-dark-muted);
}

.eyebrow--light .eyebrow__num {
  color: var(--signal);
}

.section--signal .eyebrow {
  color: var(--ink);
}

.section--signal .eyebrow__num {
  color: var(--ink);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4.25rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-intro {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--on-light-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  text-wrap: pretty;
}

.section--dark .section-intro {
  color: var(--on-dark-muted);
}

.accent {
  color: var(--signal);
}

/* ---------- Hero ---------- */
.hero {
  --map-w: min(70vw, 1100px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 15, 26, 0.88) 30%, rgba(10, 15, 26, 0) 58%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 15, 26, 0) 22%);
}

.hero__map {
  position: absolute;
  z-index: 0;
  top: calc(50% - var(--map-w) * 0.893 * 0.53);
  right: -20vw;
  width: var(--map-w);
  aspect-ratio: 1000 / 893;
}

.hero__map::before {
  content: '';
  position: absolute;
  left: var(--hub-x);
  top: var(--hub-y);
  width: 60%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 91, 31, 0.16), transparent);
  pointer-events: none;
}

.hero__dots,
.hero-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-block: clamp(2.5rem, 7vh, 5rem) 2.5rem;
}

.hero__eyebrow {
  margin-bottom: 1.75rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  animation: live 2.2s var(--ease-out) infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.6);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 91, 31, 0);
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 0.9rem + 6vw, 6.75rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__line > span {
  display: inline-block;
}

.hero__line--accent {
  color: var(--signal);
}

.hero__lead {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 34rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__chips li {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.ticker__label {
  color: var(--on-dark-muted);
}

.ticker__route {
  color: var(--on-dark);
  font-weight: 600;
  font-stretch: 108%;
  white-space: nowrap;
}

.ticker__arrow {
  color: var(--signal);
}

.ticker__km {
  color: var(--on-dark);
  white-space: nowrap;
}

.ticker__bar {
  width: 72px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-dark-strong);
}

.ticker__bar span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}

.ticker.is-ticking .ticker__bar span {
  animation: route-bar 4s linear forwards;
}

@keyframes route-bar {
  to {
    transform: scaleX(1);
  }
}

.hero__meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  color: var(--on-dark-muted);
}

.hero__meta::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-dark);
}

.hero__meta p {
  margin: 0;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.motion-toggle:hover {
  color: var(--on-dark);
  border-color: var(--line-dark-strong);
}

.motion-toggle__play,
.motion-toggle[aria-pressed='true'] .motion-toggle__pause {
  display: none;
}

.motion-toggle[aria-pressed='true'] .motion-toggle__play {
  display: block;
}

/* Map layers */
.route {
  fill: none;
  stroke: rgba(242, 239, 232, 0.3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke 0.5s, stroke-width 0.5s;
}

.route.is-active {
  stroke: var(--signal);
  stroke-width: 2.8;
}

.traveller {
  fill: #fff;
}

.city__dot {
  fill: var(--on-dark);
  transition: fill 0.4s;
}

.city__ring {
  fill: none;
  stroke: rgba(242, 239, 232, 0.28);
  stroke-width: 1.2;
  transition: stroke 0.4s;
}

.city text {
  fill: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: fill 0.4s;
}

.city.is-active .city__dot {
  fill: var(--signal);
}

.city.is-active .city__ring {
  stroke: var(--signal);
}

.city.is-active text {
  fill: var(--on-dark);
}

.hub__ring {
  fill: var(--ink);
  stroke: var(--signal);
  stroke-width: 3;
}

.hub__dot {
  fill: var(--signal);
}

.hub__pulse {
  fill: var(--signal);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-pulse 3s var(--ease-out) infinite;
}

.hub__pulse--2 {
  animation-delay: 1.5s;
}

.hub text {
  fill: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes hub-pulse {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(4.5);
  }
}

@media (max-width: 1080px) {
  .hero__coords {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 860px) {
  .hero__chips {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    --map-w: 138vw;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .hero::before {
    background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 15, 26, 0) 18%, rgba(10, 15, 26, 0) 75%, var(--ink) 100%);
    top: auto;
    height: calc(var(--map-w) * 0.893 * 0.62);
    bottom: 3.5rem;
  }

  .hero__inner {
    grid-row: 1;
    padding-bottom: 0;
  }

  .hero__map {
    position: relative;
    grid-row: 2;
    top: auto;
    right: auto;
    margin: calc(var(--map-w) * 0.893 * -0.36) 0 0 -6vw;
  }

  .hero__meta {
    grid-row: 3;
  }

  .city text {
    font-size: 19px;
  }

  .hub text {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .ticker__label,
  .ticker__bar {
    display: none;
  }

  .motion-toggle span {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 3;
  width: calc(100% + 4vw);
  margin: -1.4rem -2vw;
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--signal);
  color: var(--ink);
  transform: rotate(-1.2deg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.marquee__group span {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__sep {
  width: clamp(1.5rem, 2.5vw, 2.25rem);
  height: auto;
  flex: none;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Services (bento) ---------- */
.services {
  padding-top: calc(var(--section-y) + 1.5rem);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 300px;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), translate 0.4s var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 31, 0.11), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(10, 15, 26, 0.3);
  box-shadow: 0 28px 50px -28px rgba(10, 15, 26, 0.3);
  translate: 0 -4px;
}

.card:hover::before {
  opacity: 1;
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: var(--paper);
  transition: background-color 0.3s, border-color 0.3s, rotate 0.4s var(--ease-out);
}

.card__icon .icon {
  width: 24px;
  height: 24px;
}

.card:hover .card__icon {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
  rotate: -6deg;
}

.card__num {
  color: var(--on-light-muted);
}

.card__body {
  margin-top: auto;
}

.card__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.card__text {
  max-width: 36ch;
  margin: 0;
  color: var(--on-light-muted);
}

.card--feature {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 540px;
  border-color: transparent;
  background: var(--ink);
  color: var(--on-dark);
}

.card--feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(20deg, var(--ink) 22%, rgba(10, 15, 26, 0) 60%);
}

.card--feature::before {
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 31, 0.14), transparent 60%);
}

.card--feature:hover {
  border-color: transparent;
}

.card--feature .card__top,
.card--feature .card__body {
  position: relative;
  z-index: 1;
}

.card--feature .card__icon {
  border-color: var(--line-dark);
  background: rgba(242, 239, 232, 0.06);
}

.card--feature .card__num,
.card--feature .card__text {
  color: var(--on-dark-muted);
}

.card--feature .card__title {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
}

.card__map {
  position: absolute;
  z-index: -2;
  top: -12%;
  right: -16%;
  width: 92%;
  aspect-ratio: 1000 / 893;
}

.card__map img,
.card__map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card__route {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.card__route--2 {
  stroke: var(--on-dark);
  stroke-width: 2.5;
  opacity: 0.7;
}

.motion-ok .card__route {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease-in-out) 0.2s;
}

.motion-ok .card--feature.is-in .card__route {
  stroke-dashoffset: 0;
}

.services__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 2.5rem 0 0;
  color: var(--on-light-muted);
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    grid-column: span 1;
  }

  .card--feature {
    grid-column: span 2;
    grid-row: auto;
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .card--feature {
    grid-column: auto;
  }

  .card {
    min-height: 0;
    gap: 2rem;
  }

  .card--feature {
    min-height: 440px;
  }

  .card__map {
    top: -4%;
    right: -40%;
    width: 150%;
  }
}

/* ---------- Network ---------- */
.network {
  overflow: hidden;
}

.network::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 80% 10%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 80% 10%, #000, transparent);
  opacity: 0.6;
}

.network .container {
  position: relative;
}

.network__head {
  max-width: 64rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.network__statement {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.e-shield {
  flex: none;
  width: clamp(72px, 8vw, 116px);
  margin-top: 0.3rem;
  font-family: var(--font-sans);
}

.corridors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.corridor {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  transition: border-color 0.3s;
}

.corridor:hover {
  border-color: var(--line-dark-strong);
}

.corridor__name {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.01em;
}

.corridor__name .mono {
  color: var(--signal);
}

.corridor__stops {
  --progress: 1;
  position: relative;
  display: flex;
  margin: 0;
  padding: 2.1rem 0 0;
  list-style: none;
}

.corridor__stops::before,
.corridor__stops::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 7px;
  right: 7px;
  height: 2px;
}

.corridor__stops::before {
  background: repeating-linear-gradient(90deg, var(--on-dark-muted) 0 6px, transparent 6px 12px);
  opacity: 0.45;
}

.corridor__stops::after {
  background: var(--signal);
  transform: scaleX(var(--progress));
  transform-origin: left;
}

.corridor__stops li {
  position: relative;
  flex: 1;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.corridor__stops li::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -2.1rem;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 2px solid var(--on-dark-muted);
  border-radius: 50%;
  background: var(--ink-2);
}

.corridor__stops li:first-child {
  text-align: left;
}

.corridor__stops li:last-child {
  text-align: right;
  color: var(--on-dark);
}

.corridor__stops li:first-child::before {
  left: 0;
  margin-left: 0;
  border-color: var(--signal);
  background: var(--signal);
}

.corridor__stops li:last-child::before {
  left: auto;
  right: 0;
  margin-left: 0;
  border-color: var(--signal);
}

.corridor__text {
  margin: 0;
  color: var(--on-dark-muted);
}

.network__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 2.5rem 0 0;
  color: var(--on-dark-muted);
}

@media (max-width: 900px) {
  .corridors {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Process (road) ---------- */
.road {
  --road: 1;
  position: relative;
}

.road__track {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink);
}

.road__track::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 18px;
  right: 18px;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(242, 239, 232, 0.65) 0 18px, transparent 18px 34px);
}

.road__fill {
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: scaleX(var(--road));
  transform-origin: left;
}

.road__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 4.75rem;
}

.step__pin {
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.4s;
}

.step__pin::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transition: background-color 0.4s, transform 0.4s var(--ease-out);
}

.step.is-active .step__pin {
  border-color: var(--signal);
}

.step.is-active .step__pin::after {
  background: var(--signal);
  transform: scale(1.25);
}

.step__num {
  margin: 0 0 0.75rem;
  color: var(--signal-text);
}

.step__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.step__text {
  max-width: 28ch;
  margin: 0;
  color: var(--on-light-muted);
}

@media (max-width: 820px) {
  .road__track {
    top: 0;
    bottom: 0;
    right: auto;
    width: 28px;
    height: auto;
  }

  .road__track::after {
    top: 18px;
    bottom: 18px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    margin: 0 0 0 -1px;
    background: repeating-linear-gradient(180deg, rgba(242, 239, 232, 0.65) 0 18px, transparent 18px 34px);
  }

  .road__fill {
    transform: scaleY(var(--road));
    transform-origin: top;
  }

  .road__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .step {
    padding: 0 0 2.75rem 4.5rem;
  }

  .step:last-child {
    padding-bottom: 0.5rem;
  }

  .step__pin {
    top: -6px;
    left: -8px;
  }
}

/* ---------- Values ---------- */
.values__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.value {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1.5px solid var(--ink);
}

.value__num {
  align-self: start;
  padding-top: 0.9em;
}

.value__word {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 8.4vw, 5.75rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.motion-ok .value__word {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

.value__text {
  grid-column: 2;
  max-width: 34ch;
  margin: 0;
  font-size: 1.0625rem;
}

@media (min-width: 1360px) {
  .value {
    grid-template-columns: 3rem minmax(0, 1fr) 22rem;
  }

  .value__text {
    grid-column: 3;
  }
}

/* ---------- About (waybill) ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.about .section-head {
  margin-bottom: 2rem;
}

.about__p {
  max-width: 38rem;
  margin: 0 0 1.25rem;
  color: var(--on-light-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.about__p:first-of-type {
  color: var(--ink);
}

.waybill {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(10, 15, 26, 0.35);
  rotate: 1.5deg;
}

.waybill::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 14px;
  right: 14px;
  height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--paper) 5px, transparent 5.5px) 0 0 / 20px 14px repeat-x;
}

.waybill__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.waybill__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.waybill__no {
  white-space: nowrap;
}

.waybill__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.waybill__field {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(10, 15, 26, 0.25);
}

.waybill__field:not(.waybill__field--wide) + .waybill__field:not(.waybill__field--wide) {
  padding-left: 1rem;
  border-left: 1px dashed rgba(10, 15, 26, 0.25);
}

.waybill__field--wide {
  grid-column: 1 / -1;
}

.waybill dt {
  margin-bottom: 0.35rem;
  color: var(--on-light-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waybill dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.waybill__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1.25rem;
}

.barcode {
  width: min(60%, 240px);
  height: 56px;
  fill: var(--ink);
}

.stamp {
  flex: none;
  width: 116px;
  height: 116px;
  margin: -2rem -0.5rem -0.5rem 0;
  color: var(--signal-text);
  font-family: var(--font-mono);
  opacity: 0.9;
  rotate: -14deg;
}

@media (max-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .waybill {
    max-width: 560px;
    rotate: 0deg;
  }
}

/* ---------- FAQ ---------- */
.faq {
  padding-top: 0;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.faq__grid::before {
  content: '';
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: calc(var(--section-y) - clamp(2rem, 5vw, 5rem));
  background: var(--line-light);
}

.faq .section-head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.faq__list {
  border-top: 1.5px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--line-light);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: rotate 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s;
}

.faq__icon .icon {
  width: 20px;
  height: 20px;
}

.faq__item summary:hover .faq__icon {
  border-color: var(--ink);
}

.faq__item[open] .faq__icon {
  border-color: var(--signal);
  background: var(--signal);
  rotate: 45deg;
}

.faq__answer {
  max-width: 60ch;
  padding: 0 4rem 1.75rem 0;
  color: var(--on-light-muted);
}

.faq__answer p {
  margin: 0;
}

@supports (interpolate-size: allow-keywords) {
  .faq__item {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }

  .faq__item[open]::details-content {
    height: auto;
  }
}

@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq .section-head {
    position: static;
    margin-bottom: 0;
  }

  .faq__answer {
    padding-right: 0;
  }
}

/* ---------- Contact & form ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact .section-head {
  margin-bottom: 0;
}

.contact__list {
  display: grid;
  gap: 1.5rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--signal);
}

.contact__list .mono {
  margin: 0 0 0.3rem;
  color: var(--on-dark-muted);
}

.contact__list a:not(.link-arrow) {
  border-bottom: 1px solid var(--line-dark-strong);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  word-break: break-word;
}

.contact__list a:not(.link-arrow):hover {
  border-color: var(--signal);
  color: var(--signal);
}

.contact__list address {
  margin-bottom: 0.6rem;
  font-style: normal;
}

.quote {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.quote__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.quote__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.015em;
}

.quote__legend {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.quote__legend span {
  color: var(--signal);
}

.quote__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field__num {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.field__req {
  color: var(--signal);
}

.field__opt {
  margin-left: auto;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(242, 239, 232, 0.16);
  border-radius: 12px;
  background: rgba(10, 15, 26, 0.55);
  color: var(--on-dark);
  font-size: 1rem;
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 124px;
  line-height: 1.5;
  resize: vertical;
}

.field ::placeholder {
  color: rgba(154, 166, 188, 0.75);
}

.field :is(input, select, textarea):hover {
  border-color: rgba(242, 239, 232, 0.32);
}

.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--signal);
  background: rgba(10, 15, 26, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.28);
}

.field [aria-invalid='true'] {
  border-color: var(--error-on-dark);
}

.field__hint {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.field__error {
  margin: 0;
  color: var(--error-on-dark);
  font-size: 0.8125rem;
}

.field__error:empty {
  display: none;
}

.select {
  position: relative;
}

.select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--on-dark-muted);
  border-bottom: 2px solid var(--on-dark-muted);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.select select {
  padding-right: 2.75rem;
  appearance: none;
  cursor: pointer;
}

.select option {
  background: var(--ink-2);
  color: var(--on-dark);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem 0.85rem;
  margin-top: 1.5rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.consent input {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(242, 239, 232, 0.4);
  border-radius: 6px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.consent input:checked {
  border-color: var(--signal);
  background: var(--signal);
}

.consent input:checked::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

.consent input[aria-invalid='true'] {
  border-color: var(--error-on-dark);
}

.consent label {
  cursor: pointer;
}

.consent label a {
  color: var(--on-dark);
  text-underline-offset: 3px;
}

.consent .field__error {
  grid-column: 2;
}

.quote__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.quote__status {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.quote__status.is-success {
  color: var(--success-on-dark);
}

.quote__status.is-error {
  color: var(--error-on-dark);
}

@media (max-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .quote__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--on-dark);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr;
  gap: 2.5rem;
}

.footer__brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.25rem;
}

.footer__tagline {
  max-width: 26ch;
  margin: 0;
  color: var(--on-dark-muted);
}

.footer__title {
  margin: 0 0 1rem;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--on-dark);
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.footer__col li a:hover {
  color: var(--signal);
  opacity: 1;
}

.footer__contacts address {
  padding-top: 0.4rem;
  color: var(--on-dark-muted);
  font-style: normal;
}

.complaints {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: 12px;
  color: var(--on-dark);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.complaints > .icon:first-child {
  width: 24px;
  height: 24px;
  color: var(--signal);
}

.complaints span {
  display: grid;
  line-height: 1.25;
}

.complaints strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.complaints small {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.complaints:hover {
  border-color: var(--signal);
  background: rgba(255, 91, 31, 0.06);
}

.footer__giant {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  color: transparent;
  font-size: clamp(6rem, 27vw, 25rem);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 0.78;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(242, 239, 232, 0.14);
  user-select: none;
}

.footer__giant span {
  -webkit-text-stroke-color: rgba(255, 91, 31, 0.55);
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
}

.footer__top-link:hover {
  color: var(--signal);
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Language suggestion ---------- */
.lang-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--on-dark);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  font-size: 0.9375rem;
  translate: -50% 0;
  animation: toast-in 0.5s var(--ease-out);
}

.lang-toast p {
  margin: 0;
}

.lang-toast__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.lang-toast__close:hover {
  background: var(--paper-2);
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: -50% 20px;
  }
}

@media (max-width: 560px) {
  .lang-toast {
    flex-wrap: wrap;
    width: calc(100% - 2rem);
    padding: 1rem;
    border-radius: 18px;
  }

  .lang-toast p {
    flex: 1 1 100%;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  background: var(--paper);
  color: var(--on-light);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--on-dark);
}

.legal-hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -12%;
  width: min(70vw, 900px);
  aspect-ratio: 1000 / 893;
  background: url('../img/europe-dots.svg') center / contain no-repeat;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%);
  mask-image: linear-gradient(90deg, transparent, #000 50%);
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--on-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.legal-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.legal-hero__meta {
  margin: 1.5rem 0 0;
  color: var(--on-dark-muted);
}

.legal-hero__note {
  max-width: 40rem;
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--signal);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.legal__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5rem) var(--section-y);
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow: auto;
}

.legal__toc > nav > .mono {
  margin: 0 0 1rem;
  color: var(--on-light-muted);
}

.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-light);
}

.legal__toc ol a {
  display: flex;
  gap: 0.6rem;
  margin-left: -1px;
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid transparent;
  color: var(--on-light-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.legal__toc ol a .mono {
  padding-top: 0.15em;
  font-size: 0.6875rem;
}

.legal__toc ol a:hover,
.legal__toc ol a.is-active {
  color: var(--ink);
}

.legal__toc ol a.is-active {
  border-left-color: var(--signal);
}

.legal__other {
  display: grid;
  gap: 0.25rem;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.legal__other a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  font-weight: 600;
  text-decoration: none;
}

.legal__other a:hover {
  color: var(--signal-text);
}

.prose {
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose .lede {
  margin: 0 0 3rem;
  color: var(--ink);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.55;
}

.prose section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-light);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.prose h2 .mono {
  color: var(--signal-text);
  font-size: 0.8125rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: #283041;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--signal-text);
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--signal-text);
}

.prose .data-list,
.prose .address-block {
  background: var(--white);
  border: 1px solid var(--line-light);
}

.prose .data-list {
  padding: 0.5rem 1.5rem;
  list-style: none;
  border-radius: var(--radius);
}

.prose .data-list li {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line-light);
}

.prose .data-list li:last-child {
  border-bottom: 0;
}

.prose .address-block {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--paper);
  color: var(--on-light-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose code {
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

@media (max-width: 900px) {
  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal__toc {
    position: static;
    max-height: none;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background: var(--white);
  }
}

/* ---------- 404 ---------- */
.page-404 {
  background: var(--ink);
  color: var(--on-dark);
}

.nf {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
}

.nf__map {
  position: absolute;
  top: 50%;
  right: -12%;
  width: min(90vw, 1000px);
  opacity: 0.45;
  translate: 0 -50%;
}

.nf__inner {
  position: relative;
  padding-block: 3rem;
}

.nf__code {
  margin: 2rem 0;
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.nf__code span {
  color: var(--signal);
}

.nf__langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 960px;
}

.nf__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-stretch: 110%;
}

.nf__langs p {
  margin: 0 0 1rem;
  color: var(--on-dark-muted);
}

@media (max-width: 760px) {
  .nf__langs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Motion: initial states (only when JS + motion allowed) ---------- */
.motion-ok [data-reveal],
.motion-ok .card,
.motion-ok .step {
  opacity: 0;
  transform: translateY(28px);
}

/* Hero copy animates in pure CSS so it never waits for JS */
.motion-ok .hero__line > span {
  animation: line-rise 1.25s var(--ease-out) 0.15s both;
}

.motion-ok .hero__line:nth-child(2) > span {
  animation-delay: 0.25s;
}

.motion-ok .hero__line:nth-child(3) > span {
  animation-delay: 0.35s;
}

.motion-ok :is(.hero__eyebrow, .hero__lead, .hero__actions, .hero__chips) {
  animation: fade-rise 1s var(--ease-out) both;
}

.motion-ok .hero__lead {
  animation-delay: 0.55s;
}

.motion-ok .hero__actions {
  animation-delay: 0.65s;
}

.motion-ok .hero__chips {
  animation-delay: 0.75s;
}

.motion-ok :is(.hero__meta, .city) {
  opacity: 0;
}

@keyframes line-rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.motion-ok .route {
  stroke-dashoffset: 1;
}

.loops-paused :is(.marquee__track, .hub__pulse, .live-dot) {
  animation-play-state: paused;
}

.loops-paused .traveller {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee__track {
    animation: none;
  }

  .hub__pulse,
  .traveller,
  .motion-toggle {
    display: none;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .site-footer,
  .legal-hero::after,
  .legal__toc,
  .lang-toast {
    display: none !important;
  }

  .legal-hero {
    padding: 0 0 1rem;
    background: none;
    color: #000;
  }
}
