/* Taxi 06 Gandia — styles (v2)
   Direction: "Dressed as something else" (tasteskill draw, seed 1836333774): the taxi presented like a car-model launch.
   One family, Archivo, expanded for display and normal width for text. Three colours: midnight, pearl, ice.
   The one shape: the diagonal of the 06 door badge (hero seam, brand mark, closing band corner).
   Every colour and size below is a token; change them here, not in the rules. See DESIGN.md. */

/* ---------- font (self-hosted variable, latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* colour: three principal colours and their neutrals */
  --night: #0a0f17;        /* midnight: dark grounds, ink on light */
  --night-2: #121a26;      /* one step up on dark: stub, inputs */
  --night-3: #1c2634;      /* two steps up on dark: quiet buttons, hover */
  --pearl: #efefea;        /* pearl: the light ground */
  --pearl-2: #e2e3dd;      /* one step down on pearl: the booking ground, plain buttons */
  --paper: #f8f9fa;        /* receipts and index cards (cool white) */
  --silver: #c3cad2;       /* secondary field: the credentials band, a card */
  --ice: #7fe4ef;          /* ice: actions and selected states only */
  --ice-2: #b4f0f6;        /* ice, hovered */
  --ice-pale: #d3eff2;     /* a card tint in the FAQ drawer */
  --ice-ink: #04121a;      /* text on ice */
  --night-4: #222d3c;      /* hovered inputs and choices */
  --night-5: #283446;      /* hovered quiet buttons */
  --pearl-3: #d3d5ce;      /* hovered plain buttons */
  --placeholder: #8e98a6;  /* input placeholders on night-3 (5.1:1) */
  --ink: var(--night);
  --muted: #4c5360;        /* secondary text on pearl (6.6:1) */
  --muted-2: #5d6571;      /* unselected tabs on pearl (5.3:1) */
  --on-night: #efefea;     /* text on midnight */
  --dim: #9ea8b5;          /* secondary text on midnight (7.6:1) */
  --error: #ff9e90;        /* error text and outlines on midnight */
  --focus: var(--night);

  /* type: one family, five steps */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 116%;            /* display width (font-stretch) */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);  /* 14–15 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);    /* 17–19 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);      /* 20–26 */
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);             /* 32–64 */
  --step-display: clamp(2.25rem, 0.6rem + 6.9vw, 7.25rem);    /* 36–116 */

  /* space and layout */
  --margin: max(clamp(1rem, 2.2vw, 2rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(4.5rem, 8vw, 8.5rem);
  --header-h: 4.5rem;
  --bar-h: 0px;
  --control: 3.25rem;      /* 52px: buttons and inputs */

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-reveal: 760ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  scroll-padding-bottom: calc(var(--bar-h) + 1rem); /* the fixed call bar never covers a focused field */
  -webkit-tap-highlight-color: rgba(127, 228, 239, 0.25);
}
a, button, input, select, label, summary { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--bar-h);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; overflow-wrap: break-word; }
::selection { background: var(--ice); color: var(--ice-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--margin); top: 0.75rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ice); color: var(--ice-ink); font-weight: 500;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.wrap { padding-inline: var(--margin); }
.star { width: 0.82em; height: 0.82em; fill: currentColor; }

/* grounds: the focus ring and the reading colour follow the field */
.top, .hero, .airport, .ticket, .reviews, .footer, .callbar, .nav__panel { --focus: var(--ice); }

/* ---------- display type ---------- */
.hero__title, .route__name, .car__tabs [role="tab"], .reviews__title, .trust__track, .call__word, .footer__name {
  font-weight: 620;
  font-stretch: var(--wide);
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.routes__title, .airport__title, .ticket__title, .where__title, .faq__title, .footer__line, .specs__figure {
  font-size: var(--step-head);
  font-weight: 600;
  font-stretch: var(--wide);
  letter-spacing: -0.03em;
  line-height: 0.98;
}

/* ---------- buttons: square, one height, one fill each ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--control);
  padding: 0 1.4rem;
  border: 0; border-radius: 0;
  font-size: var(--step-body); font-weight: 520; font-stretch: 106%; line-height: 1.1; letter-spacing: -0.005em;
  text-align: center; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out);
}
.button:active { transform: translateY(1px) scale(0.985); }
.button--accent { background: var(--ice); color: var(--ice-ink); }
.button--accent:hover { background: var(--ice-2); }
.button--quiet { background: var(--night-3); color: var(--on-night); }
.button--quiet:hover { background: var(--night-5); }
.button--ink { background: var(--night); color: var(--pearl); }
.button--ink:hover { background: var(--night-3); }
.button--plain { background: var(--pearl-2); color: var(--ink); }
.button--plain:hover { background: var(--pearl-3); }
.button--block { width: 100%; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: 0 var(--margin);
  color: var(--on-night);
}
.top::before { /* the solid surface fades in once the page leaves the hero */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--night);
  opacity: 0; transition: opacity 320ms var(--ease-out);
}
.top.is-scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 3.75rem; height: auto; aspect-ratio: 62 / 38; flex: none; } /* the oval badge, like a carmaker's emblem */
.brand__ring { fill: none; stroke: var(--pearl); stroke-width: 2.4; }
.brand__num { fill: var(--pearl); font-family: var(--font); font-size: 18px; font-weight: 700; font-stretch: 125%; letter-spacing: -0.04em; }
.brand__text { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.05; }
.brand__name { font-size: var(--step-body); font-weight: 600; font-stretch: 112%; letter-spacing: -0.015em; white-space: nowrap; }
.brand__tag { font-size: var(--step-small); font-weight: 450; color: var(--dim); white-space: nowrap; }
.nav { display: flex; align-items: center; }
.nav__toggle {
  display: none; min-height: 2.75rem; padding: 0 0.9rem;
  background: var(--night-3); border: 0; color: var(--on-night);
  font-size: var(--step-small); font-weight: 520;
}
.nav__panel { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav__links { display: flex; gap: clamp(0.9rem, 1.8vw, 1.75rem); }
.nav__links a, .lang button {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: var(--step-small); font-weight: 480; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out);
}
.nav__links a:hover { text-decoration: underline; }
.lang { display: flex; gap: 0.15rem; }
.lang button { padding: 0 0.45rem; background: none; border: 0; color: var(--dim); letter-spacing: 0.01em; }
.lang button:hover { color: var(--on-night); }
.lang button[aria-pressed="true"] { color: var(--ice); text-decoration: underline; text-decoration-thickness: 2px; }
.top__book { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--step-small); }

@media (max-width: 1080px) {
  .js .nav__toggle { display: inline-flex; align-items: center; }
  .js .nav__panel {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--margin) 2rem;
    background: var(--night); color: var(--on-night);
    opacity: 0; visibility: hidden; transform: translateY(-0.75rem);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .js .nav__panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav__links { flex-direction: column; gap: 0; }
  .js .nav__links a { min-height: 3.25rem; font-size: var(--step-lead); font-weight: 560; font-stretch: 110%; }
  .lang button { min-height: 3rem; min-width: 3rem; font-size: var(--step-body); }
  .top:has(.nav__panel.is-open)::before { opacity: 1; }
  html:not(.js) .top { position: absolute; height: auto; min-height: var(--header-h); flex-wrap: wrap; row-gap: 0; padding-block: 0.5rem; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; }
  html:not(.js) .nav__panel, html:not(.js) .nav__links { flex-wrap: wrap; gap: 0 1rem; }
}
html:not(.js) .top::before { opacity: 1; } /* no scroll script: the bar is solid from the start */
@media (max-width: 420px) { /* the name stays the link's accessible text */
  .brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- hero: the launch ---------- */
.hero {
  position: relative;
  min-height: max(40rem, 100svh);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gutter);
  padding: calc(var(--header-h) + 1.5rem) var(--margin) 0;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); /* the badge's diagonal */
}
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 38% 70%; }
.hero__media::after { /* scrim under the headline where it crosses onto the photograph */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 23, 0.86) 0%, rgba(10, 15, 23, 0.5) 30%, rgba(10, 15, 23, 0) 58%), /* taste-skill-ignore: neutral scrim over the photograph */
    linear-gradient(0deg, rgba(10, 15, 23, 0.7) 0%, rgba(10, 15, 23, 0) 26%), /* taste-skill-ignore: neutral scrim over the photograph */
    linear-gradient(180deg, rgba(10, 15, 23, 0.72) 0%, rgba(10, 15, 23, 0) 20%); /* taste-skill-ignore: neutral scrim over the photograph */
}
.hero__body {
  grid-column: 1 / 11; grid-row: 1;
  align-self: center;
  position: relative; z-index: 1;
  padding-block: 2rem;
}
.hero__title { font-size: min(var(--step-display), 13.5svh); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { max-width: 36ch; font-size: var(--step-lead); line-height: 1.38; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.specs {
  grid-column: 1 / -1; grid-row: 2;
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4.5vw, 4.5rem);
  padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}
.specs__item { display: flex; flex-direction: column; gap: 0.4rem; }
.specs__figure { display: flex; align-items: baseline; }
.specs__figure a { display: inline-flex; align-items: baseline; gap: 0.12em; text-decoration: none; }
.specs__figure a:hover { color: var(--ice); }
.specs__figure .star { width: 0.5em; height: 0.5em; color: var(--ice); align-self: center; }
.specs dd { font-size: var(--step-small); color: var(--dim); max-width: 16ch; line-height: 1.35; }

@media (max-width: 1080px) {
  .hero__media { width: 56%; }
  .hero__body { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 0 0 0; }
  .hero__media {
    position: relative; width: 100%; height: 56svh; min-height: 22rem;
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  }
  .hero__media img { object-position: 30% 66%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(10, 15, 23, 0.7) 0%, rgba(10, 15, 23, 0) 22%), /* taste-skill-ignore: neutral scrim over the photograph */
      linear-gradient(0deg, rgba(10, 15, 23, 0.35) 0%, rgba(10, 15, 23, 0) 30%); /* taste-skill-ignore: neutral scrim over the photograph */
  }
  .hero__body { padding: 1.25rem var(--margin) 0; margin-top: -1.5rem; }
  .hero__title { font-size: clamp(2rem, 9.1vw, 3rem); font-stretch: 108%; }
  .hero__lede { font-size: var(--step-body); }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__actions .button--accent { grid-column: 1 / -1; }
  .specs { padding: 2rem var(--margin) 2.25rem; gap: 1.25rem 1.75rem; justify-content: space-between; }
}

/* ---------- services: one journey per poster line ---------- */
.routes { padding-block: var(--section) calc(var(--section) * 0.8); }
.routes__title { margin-bottom: clamp(2rem, 4.5vw, 4rem); }
.routes__list { border: 0; }
.route {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--gutter);
  padding-block: 0.1rem;
  text-decoration: none; color: var(--ink);
}
.route__name {
  font-size: var(--step-display); white-space: nowrap;
  transition: transform 380ms var(--ease-out);
}
.route__detail {
  flex: 0 0 clamp(14rem, 26vw, 24rem);
  display: flex; flex-direction: column;
  font-size: var(--step-body); line-height: 1.35; font-variant-numeric: tabular-nums;
}
.route__detail > span:last-child { color: var(--muted); }
.route:hover .route__name, .route:focus-visible .route__name { transform: translateX(0.12em); }
.route:hover .route__detail > span:first-child { text-decoration: underline; }
.routes__more {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter);
  align-items: end; margin-top: clamp(3rem, 6vw, 5.5rem);
}
.routes__more p { max-width: 52ch; }
.routes__actions { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: flex-end; }
@media (max-width: 820px) {
  .route { flex-direction: column; gap: 0.3rem; padding-block: 0 2.75rem; }
  .route__name { font-size: var(--step-display); white-space: normal; }
  .route__detail { flex: none; font-size: var(--step-small); }
  .routes__more { grid-template-columns: 1fr; }
  .routes__actions { justify-content: flex-start; }
}

/* ---------- airport: close-up with one solid card ---------- */
.airport {
  position: relative;
  min-height: max(44rem, 100svh);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  padding: var(--section) var(--margin);
  background: var(--night);
  color: var(--on-night);
}
.airport__bg { position: absolute; inset: 0; overflow: hidden; }
.airport__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 86%; }
.airport__card {
  grid-column: 1 / span 4;
  align-self: start;
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 56svh;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--night);
}
.airport__where { font-size: var(--step-lead); line-height: 1.25; color: var(--ice); font-weight: 500; }
.airport__price a { font-weight: 560; color: var(--on-night); }
.airport__price a:hover { color: var(--ice); }
.airport__prices { font-weight: 560; font-variant-numeric: tabular-nums; }
.airport__proof { font-size: var(--step-small); color: var(--dim); }
.airport__card .button { margin-top: auto; }
@media (max-width: 1080px) { .airport__card { grid-column: 1 / span 7; } }
@media (max-width: 760px) {
  .airport { display: block; min-height: 0; padding: 0; }
  .airport__bg { position: relative; height: 66svh; }
  .airport__bg img { object-position: 40% 92%; }
  .airport__card { min-height: 0; margin-top: -2.5rem; padding: 1.75rem var(--margin) 2.5rem; }
}

/* ---------- booking: the ticket ---------- */
.booking { background: var(--pearl-2); padding-block: var(--section); overflow: hidden; } /* the ticket's notches never widen the page */
.ticket {
  --cut: 41.666%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head fields" "stub fields" "send fields";
  grid-template-rows: auto 1fr auto;
  background: var(--night);
  color: var(--on-night);
}
.ticket::before, .ticket::after { /* the two notches either end of the perforation */
  content: ""; position: absolute; left: var(--cut); z-index: 1;
  width: 1.75rem; height: 1.75rem; margin-left: -0.875rem;
  border-radius: 50%; background: var(--pearl-2);
}
.ticket::before { top: -0.875rem; }
.ticket::after { bottom: -0.875rem; }
.ticket__head, .ticket__stub, .ticket__send { background: var(--night-2); border-right: 5px dotted var(--pearl-2); }
.ticket__head { grid-area: head; padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) 0; }
.ticket__title { margin-bottom: 1rem; }
.ticket__lede { color: var(--dim); max-width: 40ch; }
.ticket__fields {
  grid-area: fields;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; align-content: start;
  padding: clamp(1.5rem, 3vw, 3rem);
}
.ticket__stub { grid-area: stub; padding: 2.5rem clamp(1.5rem, 3vw, 3rem) 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ticket__send { grid-area: send; padding: 0 clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem); }

.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, .field > legend { font-size: var(--step-small); font-weight: 500; color: var(--dim); }
.field > legend { margin-bottom: 0.5rem; }
.field input {
  width: 100%; min-height: var(--control);
  padding: 0 1rem;
  background: var(--night-3); border: 0; border-radius: 0;
  color: var(--on-night); font-size: var(--step-body);
  color-scheme: dark;
  transition: background-color var(--t-hover);
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover { background: var(--night-4); }
.field input:focus-visible { outline: 2px solid var(--ice); outline-offset: 0; background: var(--night-4); }
.field input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: -2px; }
.field__error { font-size: var(--step-small); color: var(--error); }
.seg { display: flex; gap: 0.25rem; }
.seg label { flex: 1 1 0; position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 3rem;
  background: var(--night-3); font-weight: 560; font-variant-numeric: tabular-nums;
  transition: transform var(--t-press) var(--ease-out);
}
.seg label:hover span { background: var(--night-4); }
.seg input:checked + span { background: var(--ice); color: var(--ice-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.seg input:active + span { transform: scale(0.96); }
.switch { display: flex; align-items: center; gap: 0.85rem; min-height: 3rem; position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 2.75rem; height: 1.625rem; margin: 0; cursor: pointer; }
.switch__track {
  flex: none; position: relative; width: 2.75rem; height: 1.625rem; background: var(--night-3);
  transition: background-color var(--t-hover);
}
.switch__track::after {
  content: ""; position: absolute; top: 0.25rem; left: 0.25rem; width: 1.125rem; height: 1.125rem;
  background: var(--dim); transition: transform 240ms var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--ice); }
.switch input:checked + .switch__track::after { transform: translateX(1.125rem); background: var(--ice-ink); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ice); outline-offset: 2px; }

.ticket__stub-title { font-size: var(--step-body); font-weight: 560; color: var(--dim); }
.trip { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.trip__leg { display: flex; flex-direction: column; gap: 0.15rem; }
.trip__label { font-size: var(--step-small); color: var(--dim); }
.trip__place {
  font-size: var(--step-lead); font-weight: 600; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.12;
  overflow-wrap: anywhere;
}
.trip__place[data-empty="true"] { color: var(--dim); }
.trip__arrow { width: 1.4rem; height: 1.4rem; color: var(--ice); transform: rotate(90deg); }
.trip__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 0.75rem; }
.trip__facts dt { font-size: var(--step-small); color: var(--dim); }
.trip__facts dd { font-weight: 560; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trip__facts dd.is-changed { animation: tick 520ms var(--ease-out); }
@keyframes tick { from { opacity: 0.2; transform: translateY(0.35em); } }
.trip__message summary {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--ice); font-size: var(--step-small); font-weight: 520; text-decoration: underline; cursor: pointer;
  list-style: none;
}
.trip__message summary::-webkit-details-marker { display: none; }
.ticket__message {
  margin-top: 0.5rem; padding: 1rem 1.1rem; background: var(--night-3);
  font-size: var(--step-small); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere;
}
.ticket__error { margin-bottom: 0.85rem; color: var(--error); font-weight: 520; }
.ticket__submit { min-height: 3.6rem; font-size: var(--step-lead); }
.ticket__note { margin-top: 0.85rem; font-size: var(--step-small); color: var(--dim); }

@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; grid-template-areas: "head" "fields" "stub" "send"; grid-template-rows: none; }
  .ticket::before, .ticket::after { display: none; }
  .ticket__head, .ticket__stub, .ticket__send { border-right: 0; }
  .ticket__head { padding-bottom: 0.5rem; background: var(--night); }
  .ticket__stub { position: relative; border-top: 5px dotted var(--pearl-2); }
  .ticket__stub::before, .ticket__stub::after {
    content: ""; position: absolute; top: -1.05rem;
    width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--pearl-2);
  }
  .ticket__stub::before { left: -0.875rem; }
  .ticket__stub::after { right: -0.875rem; }
  .ticket__send { padding-top: 0; }
}
@media (max-width: 760px) {
  .booking .wrap { padding-inline: 0.75rem; }
  .ticket__fields { grid-template-columns: 1fr 1fr; padding-inline: 1.25rem; }
  .ticket__head, .ticket__stub, .ticket__send { padding-inline: 1.25rem; }
  .field:not(.field--wide):nth-child(-n+2), .switch { grid-column: 1 / -1; }
  .trip__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the car: the tabs are the type, the photograph of the open tab stands beside them ---------- */
.car { padding-block: var(--section); overflow: hidden; }
.car__stage { position: relative; padding-inline: var(--margin); min-height: 38vw; }
.car__tabs { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 58%; }
.car__tabs [role="tab"] {
  --tab-size: min(var(--step-display), 6.4vw);
  font-size: var(--tab-size);
  padding: 0; background: none; border: 0;
  color: var(--muted-2); text-align: left;
  transition: color var(--t-hover), transform 380ms var(--ease-out);
}
.car__tabs [role="tab"]:hover { color: var(--ink); transform: translateX(0.08em); }
.car__tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.car__tabs [role="tab"][aria-selected="true"]::before { /* the brand square marks the open tab */
  content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-right: 0.22em;
  background: var(--ink); vertical-align: 0.18em;
}
.car__panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: start;
}
.car__panel[hidden] { display: none; }
.car__photo { position: absolute; top: 0; right: var(--margin); width: 38%; z-index: 2; }
.car__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.car__text { grid-column: 1 / 8; grid-row: 1; padding-top: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; }
.car__name { font-size: var(--step-lead); font-weight: 600; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.15; }
.car__text p { max-width: 46ch; }
.car__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; margin-top: 0.75rem; max-width: 34rem; }
.car__specs li { display: flex; gap: 0.6rem; align-items: baseline; }
.car__specs li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; background: var(--ink); transform: rotate(45deg) translateY(-0.1em); }
.car__actions { display: flex; gap: 0.625rem; padding: clamp(2rem, 3vw, 2.5rem) var(--margin) 0; }
.car__panel.is-entering .car__photo { animation: plate-in 640ms var(--ease-out) both; }
.car__panel.is-entering .car__text { animation: rise-in 640ms var(--ease-out) 80ms both; }
@keyframes plate-in { from { opacity: 0; transform: translateY(1.25rem) scale(0.98); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(1rem); } }
@media (max-width: 760px) {
  .car__stage { min-height: 0; }
  .car__tabs { max-width: none; }
  .car__tabs [role="tab"] { --tab-size: var(--step-display); line-height: 1; padding-block: 0.12em; }
  .car__panel { display: block; }
  .car__photo { position: relative; right: auto; width: 80vw; margin: 1.25rem calc(-1 * var(--margin)) 0 auto; }
  .car__text { padding-top: 1.75rem; }
  .car__specs { grid-template-columns: 1fr; }
}

/* ---------- photo run ---------- */
.run { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0 var(--margin) var(--section); }
.run__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.run__item figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 560px) { .run { grid-template-columns: 1fr; } }

/* ---------- reviews: taximeter receipts ---------- */
.reviews { background: var(--night); color: var(--on-night); padding-block: var(--section); overflow: hidden; }
.reviews__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem;
  align-items: end;
}
.reviews__title { grid-column: 1 / 8; font-size: var(--step-display); }
.reviews__summary { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.reviews__summary p { color: var(--on-night); }
.slips {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 0.92fr); gap: 3.5rem 0;
  max-width: 76rem; margin: clamp(3.5rem, 7vw, 6rem) auto 0; padding-inline: var(--margin);
}
.slip {
  position: relative;
  display: flex; flex-direction: column; gap: 0.85rem;
  margin-inline: -0.75rem;
  padding: 2.25rem 2rem 2.5rem;
  background: var(--paper); color: var(--ink);
  clip-path: polygon(0% 7px, 4.167% 0px, 8.333% 7px, 12.5% 0px, 16.667% 7px, 20.833% 0px, 25% 7px, 29.167% 0px, 33.333% 7px, 37.5% 0px, 41.667% 7px, 45.833% 0px, 50% 7px, 54.167% 0px, 58.333% 7px, 62.5% 0px, 66.667% 7px, 70.833% 0px, 75% 7px, 79.167% 0px, 83.333% 7px, 87.5% 0px, 91.667% 7px, 95.833% 0px, 100% 7px, 100% calc(100% - 7px), 95.833% 100%, 91.667% calc(100% - 7px), 87.5% 100%, 83.333% calc(100% - 7px), 79.167% 100%, 75% calc(100% - 7px), 70.833% 100%, 66.667% calc(100% - 7px), 62.5% 100%, 58.333% calc(100% - 7px), 54.167% 100%, 50% calc(100% - 7px), 45.833% 100%, 41.667% calc(100% - 7px), 37.5% 100%, 33.333% calc(100% - 7px), 29.167% 100%, 25% calc(100% - 7px), 20.833% 100%, 16.667% calc(100% - 7px), 12.5% 100%, 8.333% calc(100% - 7px), 4.167% 100%, 0% calc(100% - 7px));
  transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0));
  transition: transform 420ms var(--ease-out);
}
.slip:nth-child(3n+1) { --tilt: -2.5deg; }
.slip:nth-child(3n+2) { --tilt: 1.5deg; --drop: 2.5rem; z-index: 1; }
.slip:nth-child(3n) { --tilt: 3deg; --drop: 0.75rem; }
.slip:hover { transform: rotate(0deg) translateY(calc(var(--drop, 0px) - 0.4rem)); z-index: 2; }
.slip__who { font-weight: 600; line-height: 1.3; }
.slip__context { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.stars__row { width: 5.8rem; height: 1rem; fill: currentColor; }
.slip blockquote p, .slip__para { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.slip__para { font-size: var(--step-body); line-height: 1.45; }
@media (max-width: 900px) {
  .reviews__title, .reviews__summary { grid-column: 1 / -1; }
  .slips { grid-template-columns: 1fr; gap: 0; max-width: none; }
  .slip { width: 84%; margin: 0 0 -1.25rem; --drop: 0; }
  .slip:nth-child(odd) { --tilt: -1.8deg; justify-self: start; }
  .slip:nth-child(even) { --tilt: 2deg; justify-self: end; }
}

/* ---------- credentials: one line running off both edges ---------- */
.trust__band { background: var(--silver); color: var(--ink); overflow: hidden; padding-block: clamp(2rem, 4vw, 3.5rem); }
.trust__track {
  display: flex; width: max-content;
  font-size: var(--step-display); white-space: nowrap;
  animation: marquee 48s linear infinite;
}
.trust__track span { display: inline-flex; align-items: center; }
.trust__track span::after {
  content: ""; width: 0.24em; height: 0.24em; margin: 0 0.42em; background: currentColor; transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }
.trust__body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5.5rem) var(--section); align-items: start;
}
.trust__copy { grid-column: 1 / 6; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.trust__text { font-size: var(--step-lead); line-height: 1.35; }
.motion-toggle {
  min-height: 2.75rem; padding: 0 1rem; background: var(--pearl-2); border: 0; color: var(--ink);
  font-size: var(--step-small); font-weight: 520;
}
.motion-toggle:hover { background: var(--pearl-3); }
.trust__photo { grid-column: 6 / -1; }
.trust__photo img { width: 100%; }
.trust__photo figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.is-still .trust__track { animation-play-state: paused; }
@media (max-width: 900px) {
  .trust__copy, .trust__photo { grid-column: 1 / -1; }
}

/* ---------- where: the rank at the station ---------- */
.where { background: var(--pearl-2); padding-block: var(--section); }
.where__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter);
}
.where__copy { grid-column: 1 / 6; grid-row: 1; display: flex; flex-direction: column; gap: 1.25rem; align-self: start; }
.where__copy > p:not([class]) { max-width: 44ch; }
.where__links { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.5rem; }
.where__map { grid-column: 6 / -1; grid-row: 1; height: clamp(20rem, 34vw, 30rem); background: var(--silver); }
.where__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
@media (max-width: 900px) {
  .where__copy, .where__map { grid-column: 1 / -1; grid-row: auto; }
  .where__copy { margin-bottom: 1.5rem; }
}

/* ---------- questions: index cards in a drawer ---------- */
.faq { padding-block: var(--section); background: var(--night); color: var(--on-night); --focus: var(--ice); }
.faq__wrap { max-width: 64rem; margin-inline: auto; }
.faq__title { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cards { display: flex; flex-direction: column; }
.card {
  --tab-w: 12.5rem; --tab-h: 2.5rem; --tab-x: 0rem;
  position: relative;
  margin-top: calc(-1 * var(--tab-h));
  padding-top: var(--tab-h);
  background: var(--paper); color: var(--ink);
  --focus: var(--night);
  clip-path: polygon(var(--tab-x) 0, calc(var(--tab-x) + var(--tab-w)) 0, calc(var(--tab-x) + var(--tab-w)) var(--tab-h), 100% var(--tab-h), 100% 100%, 0 100%, 0 var(--tab-h), var(--tab-x) var(--tab-h));
}
.card:first-child { margin-top: 0; }
.card:nth-child(2) { --tab-x: 9.5rem; background: var(--silver); }
.card:nth-child(3) { --tab-x: 19rem; background: var(--ice-pale); }
.card:nth-child(4) { --tab-x: 28.5rem; background: var(--paper); }
.card:nth-child(5) { --tab-x: 38rem; background: var(--silver); }
.card__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; width: 100%;
  margin-top: calc(-1 * var(--tab-h));
  padding: 0 1.5rem 2.1rem;
  background: none; border: 0; text-align: left; color: var(--ink);
}
.card__topic {
  display: flex; align-items: center; height: var(--tab-h); margin-left: calc(var(--tab-x) - 1.5rem + 1.25rem);
  font-size: var(--step-small); font-weight: 520; color: var(--muted);
}
.card__question { font-size: var(--step-lead); font-weight: 560; font-stretch: 106%; letter-spacing: -0.012em; line-height: 1.2; }
.card__tab:hover .card__question { text-decoration: underline; }
.card__tab:focus-visible { outline-offset: -4px; }
.card__a { padding: 0 1.5rem 3.5rem; }
.card__a p { max-width: 52ch; }
.card__a:not([hidden]) { animation: rise-in 420ms var(--ease-out); }
@media (max-width: 760px) {
  .card { --tab-w: 7.5rem; }
  .card:nth-child(2) { --tab-x: 3rem; }
  .card:nth-child(3) { --tab-x: 6rem; }
  .card:nth-child(4) { --tab-x: 9rem; }
  .card:nth-child(5) { --tab-x: 12rem; }
  .card__tab { padding-inline: 1.25rem; }
  .card__topic { margin-left: calc(var(--tab-x) - 1.25rem + 1rem); }
  .card__a { padding-inline: 1.25rem; }
}

/* ---------- closing: the band is the button ---------- */
.call__band {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 62svh;
  padding: clamp(1.25rem, 2.5vw, 2rem) var(--margin) 1.25rem;
  background: var(--ice); color: var(--ice-ink);
  text-decoration: none; overflow: hidden;
  clip-path: polygon(clamp(3rem, 7vw, 7rem) 0, 100% 0, 100% 100%, 0 100%, 0 clamp(3rem, 7vw, 7rem)); /* the badge diagonal, once more */
  --focus: var(--night);
}
.call__band:hover, .call__band:focus-visible { background: var(--night); color: var(--ice); }
.call__band:focus-visible { outline: 4px solid var(--ice); outline-offset: -10px; }
.call__lede { max-width: 32ch; padding-left: clamp(3rem, 7vw, 7rem); font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.call__number { white-space: nowrap; font-weight: 640; font-stretch: 110%; }
.call__arrow { position: absolute; top: clamp(1.25rem, 2.5vw, 2rem); right: var(--margin); width: 3rem; height: 3rem; transition: transform 360ms var(--ease-out); }
.call__band:hover .call__arrow { transform: translate(0.35rem, -0.35rem); }
.call__word { display: block; font-size: 22vw; font-weight: 700; line-height: 0.8; margin-left: -0.04em; white-space: nowrap; }
html[lang^="ca"] .call__word { font-size: 17vw; }
html[lang="en"] .call__word { font-size: 31vw; }
@media (max-width: 760px) {
  .call__band { min-height: max(46svh, 19rem); }
  .call__lede { font-size: var(--step-body); padding-right: 3.5rem; }
  .call__arrow { width: 2rem; height: 2rem; }
}

/* ---------- call bar (phones and tablets): on whenever the hero buttons are off screen ---------- */
.callbar { display: none; }
@media (max-width: 1080px) {
  :root { --bar-h: calc(4.25rem + env(safe-area-inset-bottom)); }
  .callbar {
    position: fixed; inset: auto 0 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    padding: 0.5rem var(--margin) calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--night);
    transition: transform 300ms var(--ease-out);
  }
  .js .callbar { transform: translateY(105%); }
  .js .callbar.is-on { transform: none; }
}

/* ---------- footer: an invitation over the cropped name ---------- */
.footer {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 86svh;
  padding: var(--section) var(--margin) 0;
  background: var(--night); color: var(--on-night);
}
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.footer__invite { grid-column: 1 / 10; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.footer__line span { display: block; }
.footer__contact { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 0.25rem; }
.footer__contact a, .footer__links a, .footer__legal a {
  display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none;
}
.footer__contact a:hover, .footer__links a:hover, .footer__legal a:hover { color: var(--ice); text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: auto; padding-top: 4rem; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  font-size: var(--step-small); color: var(--dim);
}
.footer__legal p { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; }
.footer__name {
  margin: 0.5rem 0 0 -0.04em;
  font-size: 28vw; font-weight: 720; line-height: 0.8; white-space: nowrap;
  color: var(--on-night);
  transform: translateY(24%);
  margin-bottom: -6vw;
}
@media (max-width: 1080px) { .footer { min-height: 0; } }
@media (max-width: 1080px) { .footer__invite, .footer__contact { grid-column: 1 / -1; } }
.footer__line { font-size: min(var(--step-head), 8.4vw); }
@media (max-width: 760px) {
  :root { --wide: 106%; --step-display: 10.4vw; }
  .footer__name { font-size: 34vw; }
}

/* ---------- reveals (content stays visible without script) ---------- */
/* `translate` (not transform) so tilted receipts and hover moves keep their own transform */
.js [data-reveal] { opacity: 0; translate: 0 1.5rem; }
.js [data-reveal].is-in {
  opacity: 1; translate: none;
  transition: opacity var(--t-reveal) var(--ease-out), translate var(--t-reveal) var(--ease-out), transform 420ms var(--ease-out), color var(--t-hover);
  transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0ms, 0ms;
}
/* the masked headline: each line rises from behind its own baseline */
.js .hero__title .line > span { transform: translateY(105%); }
.js .is-ready .hero__title .line > span { transform: none; transition: transform 900ms var(--ease-out); }
.js .is-ready .hero__title .line:nth-child(2) > span { transition-delay: 110ms; }
.js .hero__lede, .js .hero__actions, .js .specs { opacity: 0; transform: translateY(0.75rem); }
.js .is-ready .hero__lede, .js .is-ready .hero__actions, .js .is-ready .specs {
  opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) 200ms, transform 600ms var(--ease-out) 200ms;
}
/* the airport photograph drifts a little as it passes (scroll-linked, where supported) */
@supports (animation-timeline: view()) {
  .airport__bg img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes drift { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
}
/* the moving picture: the hero photograph settles from a slight zoom */
.js .hero__media img { transform: scale(1.08); }
.js .is-ready .hero__media img { transform: none; transition: transform 2400ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .hero__title .line > span, .js .hero__lede, .js .hero__actions, .js .specs, .js .hero__media img { opacity: 1; transform: none; translate: none; }
  .airport__bg img { animation: none !important; }
  .trust__track { animation: none; }
  .motion-toggle { display: none; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 46rem; padding-block: 4rem 6rem; }
.legal h1 { font-size: var(--step-head); font-weight: 600; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1; margin: 2rem 0 1.5rem; }
.legal p + p { margin-top: 1rem; }
.legal__back { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 520; }
