/* Enjoy Transport — brand: Night / Ivory / Enjoy Yellow, Flemish Brick as a second field.
   Manrope for display, Inter for text, both self-hosted (SIL OFL).
   House rules (taste-skill): no gradients, no glows, no hairline boxes, no eyebrows.
   Brand rules kept on purpose: pill buttons, ivory ground with a brick field. */

@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }

@view-transition { navigation: auto; }

:root {
  --night: #14161d;
  --night-2: #1c1f28;
  --night-3: #262a35;
  --ivory: #f6f2ea;
  --ivory-2: #ece6da;
  --yellow: #ffc530;
  --yellow-hi: #ffd257;
  --brick: #a9441f;
  --slate: #5f6370;
  --on-night-soft: #b9bcc6;

  --display: "Manrope", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.6rem, 1.3rem + 5.2vw, 6.5rem);
  --fs-h2: clamp(2rem, 1.15rem + 3.4vw, 4.5rem);
  --fs-statement: clamp(1.3rem, 1rem + 1.2vw, 2.1rem);
  --fs-text: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;

  --margin: clamp(16px, 3.4vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 200px);
  --max: 1440px;
  --radius: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* No sideways scrolling on phones: Safari lets 3D content leak past overflow: hidden. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0; background: var(--ivory); color: var(--night);
  font-family: var(--text); font-size: var(--fs-text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--night); }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; }

.frame { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--margin); top: -100px; z-index: 60; background: var(--yellow); color: var(--night); padding: 12px 18px; border-radius: 99px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Logo (vector rebuild of the brand mark) ---------- */
.logo { display: inline-grid; justify-items: start; text-decoration: none; color: currentColor; view-transition-name: logo; line-height: 1; }
.logo__word { font-family: var(--display); font-weight: 800; font-size: 2.05rem; letter-spacing: -0.045em; white-space: nowrap; }
.logo__sub { font-family: var(--display); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.62em; text-transform: uppercase; margin-top: 0.62rem; padding-left: 0.12em; }
.logo__pin { width: 0.6em; height: 0.75em; vertical-align: -0.2em; margin-inline: 0.01em 0.02em; overflow: visible; }
.logo__fall { transform-box: view-box; transform-origin: 24px 58px; animation: pin-drop 0.8s 0.1s both; }
.logo__drop { fill: var(--yellow); transform-box: view-box; transform-origin: 24px 58px; }
.logo__route { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s 0.7s var(--ease-in-out) forwards; }
.logo__dot { fill: var(--yellow); transform-box: fill-box; transform-origin: center; opacity: 0; animation: pop 0.45s 1.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.logo:hover .logo__drop { animation: bounce 0.6s var(--ease-out); }
.logo:hover .logo__dot { animation: pop 0.45s 1.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, nudge 0.6s 0.15s var(--ease-out); }
/* The big footer logo waits until it is on screen to play. */
.close__name.pre :is(.logo__fall, .logo__route, .logo__dot) { animation-play-state: paused; }
@keyframes pin-drop {
  0% { transform: translateY(-34px); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  12% { opacity: 1; }
  48% { transform: none; animation-timing-function: var(--ease-out); }
  62% { transform: scale(1.1, 0.86); animation-timing-function: var(--ease-out); }
  80% { transform: scale(0.97, 1.04); }
  100% { transform: none; opacity: 1; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes nudge { 40% { transform: translateX(3px) scale(1.25); } }
@keyframes bounce { 0%, 100% { transform: none; } 35% { transform: translateY(-7px) scale(0.96, 1.05); } 65% { transform: scale(1.06, 0.92); } }

/* ---------- Buttons: pills, one fill ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-family: var(--text); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: background-color 180ms var(--ease-out), color 180ms, transform 260ms var(--ease-out);
}
.pill--lg { min-height: 58px; padding: 0 28px; font-size: 1.0625rem; }
.pill--yellow { background: var(--yellow); color: var(--night); }
.pill--yellow:hover { background: var(--yellow-hi); }
.pill--night { background: var(--night); color: var(--ivory); }
.pill--ghost { background: var(--night-3); color: var(--ivory); }
.pill--ghost:hover { background: #333846; }
.pill:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); transition-duration: 90ms; }
.pill[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* ---------- Header ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: env(safe-area-inset-top, 0px); color: var(--ivory); transition: background-color 350ms var(--ease-out), color 350ms, transform 450ms var(--ease-out); }
.bar[data-on="light"] { background: var(--ivory); color: var(--night); }
.bar[data-on="brick"] { background: var(--brick); color: var(--ivory); }
.bar[data-on="dark"].is-scrolled { background: var(--night); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__inner { display: flex; align-items: center; gap: var(--gap); min-height: 80px; }
.bar__nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; font-weight: 500; }
.bar__nav a { text-decoration: none; padding: 10px 0; position: relative; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform 350ms var(--ease-out); }
.bar__nav a:hover::after, .bar__nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Route navigation (desktop) ---------- */
.route { position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; transform: translateY(-50%); z-index: 30; display: none; }
.route__stops { position: relative; display: grid; gap: 22px; padding: 18px 10px; background: var(--night); border-radius: 99px; }
.route__stops::before { content: ""; position: absolute; left: 50%; top: 26px; bottom: 26px; width: 2px; margin-left: -1px; background: var(--night-3); }
.route a { position: relative; display: block; width: 14px; height: 14px; outline-offset: 6px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px var(--on-night-soft); }
.route a.is-passed { box-shadow: inset 0 0 0 7px var(--yellow); }
.route a span {
  position: absolute; right: calc(100% + 18px); top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  background: var(--night); color: var(--ivory); font-size: 0.875rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; white-space: nowrap;
  transition: opacity 200ms, transform 300ms var(--ease-out);
}
.route a:hover span, .route a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.route__pin {
  position: absolute; left: 50%; top: 0; width: 22px; height: 28px; margin-left: -11px; pointer-events: none;
  background: var(--yellow); clip-path: path("M11 27C7 22 1 17 1 10.5a10 10 0 0 1 20 0C21 17 15 22 11 27Z");
  transform: translateY(12px); will-change: transform;
}
@media (min-width: 1180px) {
  .route { display: block; }
  /* Leave room for the route navigation on both sides, so the margins stay equal. */
  :root { --margin: clamp(76px, 6vw, 104px); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--ivory); min-height: 100svh; overflow: hidden; contain: paint; padding-top: 120px; padding-bottom: clamp(48px, 6vw, 96px); isolation: isolate; }
.hero__grid { position: relative; z-index: 2; display: grid; gap: 36px; min-height: calc(100svh - 216px); align-content: end; grid-template-columns: 1fr; }
.hero__text { display: grid; gap: 28px; max-width: 640px; }
.hero__lede { font-size: var(--fs-statement); line-height: 1.35; color: var(--ivory); max-width: 30ch; font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-night-soft); font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts .ico { color: var(--yellow); }

.trip { display: grid; gap: 14px; background: var(--night-2); border-radius: var(--radius); padding: 22px; max-width: 560px; }
.trip__title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.trip__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 99px;
  background: var(--night-3); color: var(--ivory); font-weight: 500; font-size: 0.9375rem;
  transition: background-color 200ms, color 200ms, transform 250ms var(--ease-out);
}
.chip:hover { background: #343947; }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--night); }
.chip:active { transform: scale(0.96); }
.trip__eta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 600; min-height: 1.6em; }
.trip__time { color: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The 3D map */
/* Map layers (shared by the 3D hero and the flat maps) */
:root { --map-park: #172219; --map-water: #1d3350; --map-river: #1d3350;
  --map-street: #191c24; --map-tertiary: #1d2029; --map-secondary: #2a2e38; --map-primary: #3a404c; --map-motorway: #5b6577; }
/* Solid colours: overlapping roads merge instead of stacking into smudges. Main axes carry the map. */
.m-park { fill: var(--map-park); stroke: none; }
.m-lake { fill: var(--map-water); stroke: none; }
.m-river { fill: none; stroke: var(--map-river); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-street, .m-tertiary, .m-secondary, .m-primary, .m-motorway { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-street { stroke: var(--map-street); stroke-width: 0.35; }
.m-tertiary { stroke: var(--map-tertiary); stroke-width: 0.5; }
.m-secondary { stroke: var(--map-secondary); stroke-width: 0.75; }
.m-primary { stroke: var(--map-primary); stroke-width: 1.1; }
.m-motorway { stroke: var(--map-motorway); stroke-width: 1.9; }
.m-rail { display: none; }
.m-districts text { fill: var(--ivory); fill-opacity: 0.3; font-family: var(--display); font-weight: 700; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.m-route { fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }
.m-label { fill: var(--ivory); font-family: var(--display); font-weight: 700; }

/* The 3D map: a 2000px plane; the camera moves the focus point to the stage's centre */
.hero__stage { position: absolute; inset: 0; z-index: 1; perspective: 1300px; perspective-origin: 64% 40%; pointer-events: none; overflow: hidden; contain: paint; clip-path: inset(0);
  /* The plane fades out around the framed trip, so its edges never show when the camera pulls back. */
  --fade: radial-gradient(ellipse 62% 78% at var(--fx, 66%) var(--fy, 46%), #000 38%, transparent 100%);
  -webkit-mask-image: var(--fade), linear-gradient(transparent 70px, #000 170px); -webkit-mask-composite: source-in;
  mask-image: var(--fade), linear-gradient(transparent 70px, #000 170px); mask-composite: intersect; }
.map { position: absolute; left: 66%; top: 46%; width: 2000px; height: 2016px; transform-origin: 0 0; transform-style: preserve-3d; will-change: transform; backface-visibility: hidden;
  transform: rotateX(52deg) rotateZ(-12deg) scale(1.2) translate(-882px, -987px); }
.map__plane { position: absolute; inset: 0; transform-style: preserve-3d; }
.map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); }
.map__canvas.is-ready { opacity: 1; }
.map__detail { position: absolute; opacity: 0; transform: translateZ(0.5px); transition: opacity 500ms var(--ease-out); pointer-events: none; }
.map__detail.is-ready { opacity: 1; }
.map__route { position: absolute; width: 0; height: 0; visibility: hidden; }
.map__trip { position: absolute; transform: translateZ(1px); pointer-events: none; }
.map__pins { position: absolute; inset: 0; transform-style: preserve-3d; }
.pin { position: absolute; transform-style: preserve-3d; transform: translateZ(2px); }
/* Other places are quiet landmarks; only the departure and the destination stand out. */
.pin__stand { position: absolute; left: 0; bottom: 0; transform-origin: 50% 100%; display: grid; justify-items: center; gap: 6px;
  transform: translateX(-50%) scale(0.83) rotateZ(12deg) rotateX(-52deg); }
.pin__drop { width: 22px; height: 28px; background: var(--ivory); opacity: 0.32; clip-path: path("M11 27C7 22 1 17 1 10.5a10 10 0 0 1 20 0C21 17 15 22 11 27Z"); transform: scale(0.62); transition: background-color 300ms, opacity 300ms, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: 50% 100%; }
.pin__label { order: -1; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ivory); background: var(--night); padding: 4px 10px; border-radius: 99px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 400ms var(--ease-out); box-shadow: 0 4px 14px rgb(0 0 0 / 0.35); }
.pin.is-origin .pin__drop, .pin.is-dest .pin__drop { background: var(--yellow); opacity: 1; transform: scale(1.3); }
.pin.is-origin .pin__label, .pin.is-dest .pin__label { opacity: 1; transform: none; }
.pin.is-dest .pin__label { background: var(--yellow); color: var(--night); }
.pin.is-dest { z-index: 2; }
/* Ground ring: a soft halo under the departure, a ripple when the car reaches the destination. */
.pin__ground { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.pin__ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
.pin.is-origin .pin__ring { opacity: 0.45; background: rgb(255 197 48 / 0.12); }
.pin.is-arrived .pin__ring { animation: ripple 1.6s var(--ease-out) 2; }
@keyframes ripple { from { opacity: 0.9; transform: scale(0.4); } to { opacity: 0; transform: scale(2.4); } }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: 1fr auto; align-items: end; column-gap: clamp(32px, 5vw, 96px); }
  .hero__text { grid-column: 1; grid-row: 1; align-self: center; }
  /* Fade the map out behind the headline so the text stays readable (a mask, not a painted gradient). */
  .hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--night) 0 24%, transparent 56%); }
  .trip { grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: end; }
  .hero__facts { grid-column: 1; grid-row: 2; }
}
@media (max-width: 959px) {
  .hero__stage { position: relative; height: 80vw; max-height: 520px; min-height: 300px; margin-top: 8px; inset: auto; order: 2; }
  .hero__stage { perspective-origin: 50% 30%; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
  .map { left: 50%; top: 52%; }
  .hero { display: flex; flex-direction: column; }
  .hero__grid { min-height: 0; display: contents; }
  .hero__text { order: 1; padding-inline: var(--margin); }
  .trip { order: 3; margin: 0 var(--margin); position: relative; z-index: 2; margin-top: -48px; }
  .hero__facts { order: 4; padding: 24px var(--margin) 0; }
}

/* ---------- Trips (rows) ---------- */
.trips { padding-block: var(--section); }
.trips__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.trips__head p { max-width: 56ch; }
.trips__clock { display: block; margin-top: 8px; font-weight: 600; }
.trips__clock time { font-variant-numeric: tabular-nums; background: var(--yellow); padding: 1px 8px; border-radius: 99px; }
@media (min-width: 960px) { .trips__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--gap); } }

.trips__rows { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico dest go" "what what what" "time time time";
  gap: 10px 18px; align-items: center; padding: 22px clamp(18px, 2.4vw, 32px);
  background: var(--ivory-2); border-radius: var(--radius);
  transition: background-color 300ms var(--ease-out), color 300ms, transform 400ms var(--ease-out);
}
.row__ico { grid-area: ico; width: 34px; height: 34px; color: var(--night); transition: color 300ms; }
.row__dest { grid-area: dest; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.row__what { grid-area: what; color: var(--slate); max-width: 58ch; transition: color 300ms; }
.row__time { grid-area: time; font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.row__go { grid-area: go; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--night); transition: transform 350ms var(--ease-out); }
.row__go .ico { width: 22px; height: 22px; }
.row:hover { background: var(--night); color: var(--ivory); transform: translateX(6px); }
.row:hover .row__ico { color: var(--yellow); }
.row:hover .row__what { color: var(--on-night-soft); }
.row:hover .row__go { transform: rotate(-12deg) scale(1.08); }
@media (min-width: 960px) {
  .row { grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1.2fr) 150px 52px; grid-template-areas: "ico dest what time go"; padding-block: 26px; }
  .row__time { text-align: right; }
}

/* ---------- Photos with 3D tilt ---------- */
.photo { display: grid; gap: 12px; perspective: 900px; }
.photo__frame { overflow: hidden; border-radius: var(--radius); transition: transform 450ms var(--ease-out); transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(var(--px, 0px), var(--py, 0px)); transition: transform 550ms var(--ease-out); }
.tilt.is-hover .photo__frame, .tilt.is-hover .photo__frame img, .service.tilt.is-hover { transition-duration: 160ms; }
.photo.pre { opacity: 0; transform: translateY(36px) scale(0.985); }
.photo.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
figcaption { font-size: var(--fs-small); color: var(--slate); }

/* ---------- Places ---------- */
.places { padding-bottom: var(--section); }
.places__grid { display: grid; gap: var(--gap); }
.places__text { display: grid; gap: 20px; align-content: start; }
.places__text p { max-width: 54ch; }
@media (min-width: 960px) {
  .places__grid { grid-template-columns: repeat(12, 1fr); row-gap: clamp(40px, 5vw, 72px); }
  .places__text { grid-column: 1 / 6; grid-row: 1; align-self: center; }
  .places__a { grid-column: 7 / 13; grid-row: 1; }
  .places__a img { aspect-ratio: 4 / 3; }
  .places__b { grid-column: 1 / 5; grid-row: 2; }
  .places__b img { aspect-ratio: 4 / 5; }
  .places__c { grid-column: 6 / 13; grid-row: 2; align-self: end; }
  .places__c img { aspect-ratio: 16 / 10; }
}

/* ---------- Booking ---------- */
.book { background: var(--night); color: var(--ivory); padding-block: var(--section); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.book__grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.book__intro { display: grid; gap: 24px; }
.book__intro > p { max-width: 54ch; color: var(--on-night-soft); }
.book__phone a {
  display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 0.55rem + 5.4vw, 5rem); letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
  color: var(--night); background: var(--yellow); padding: 0.16em 0.5em 0.18em 0.36em; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.book__phone .ico { width: 0.8em; height: 0.8em; }
.book__phone a:hover { background: var(--yellow-hi); }
.book__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 14px; align-content: start; }
.field { grid-column: 1 / -1; display: grid; gap: 7px; min-width: 0; }
@media (max-width: 359px) { .field--half { grid-column: 1 / -1; } }
.field--half { grid-column: span 1; }
.field label { font-weight: 600; }
.field__opt { font-weight: 400; color: var(--on-night-soft); }
.field__help { font-size: var(--fs-small); color: var(--on-night-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 54px; padding: 12px 18px; font: inherit; font-size: 1rem; color: var(--ivory);
  background: var(--night-2); border: 2px solid var(--night-3); border-radius: 16px; transition: border-color 200ms, background-color 200ms;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8e9a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: var(--night-3); }
.field input:user-invalid { border-color: var(--brick); }
.book__legal { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--on-night-soft); }

.ticket { background: var(--ivory); color: var(--night); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.ticket__head { display: flex; justify-content: space-between; align-items: center; }
.ticket__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.ticket__pin { width: 30px; height: 38px; fill: var(--yellow); animation: bob 2.4s var(--ease-in-out) infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.ticket__lines { display: grid; gap: 4px; }
.ticket__lines > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; padding: 11px 16px; background: var(--ivory-2); border-radius: 14px; }
.ticket__lines dt { color: var(--slate); font-size: var(--fs-small); }
.ticket__lines dd { font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ticket__status { color: var(--slate); }
.ticket__status.is-ready { color: var(--night); font-weight: 600; }
.ticket__send { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket__send .pill { flex: 1 1 auto; }
.ticket .pill--ghost { background: var(--night); }
@media (min-width: 960px) {
  .book__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .book__intro { grid-column: 1 / 9; }
  .book__form { grid-column: 1 / 7; }
  .ticket { grid-column: 7 / 13; position: sticky; top: 100px; align-self: start; }
}
.flap.is-flipping { animation: flap 420ms var(--ease-out); }
@keyframes flap { from { transform: perspective(400px) rotateX(-85deg); opacity: 0.1; } to { transform: none; opacity: 1; } }

/* ---------- Services ---------- */
.services { background: var(--night); color: var(--ivory); padding-block: 0 var(--section); }
.services__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.services__statement { font-size: var(--fs-statement); line-height: 1.3; max-width: 32ch; color: var(--on-night-soft); }
.service { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--night-2); border-radius: var(--radius); transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform 500ms var(--ease-out), background-color 300ms; }
.service:hover { background: var(--night-3); }
.service__ico { width: 44px; height: 44px; color: var(--yellow); }
.service h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); }
.service p { color: var(--on-night-soft); }
@media (min-width: 960px) {
  .services__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .services__grid h2 { grid-column: 1 / 7; }
  .services__statement { grid-column: 8 / 13; align-self: end; }
  .service { grid-column: span 4; margin-top: 24px; }
  .service:nth-of-type(2) { margin-top: 72px; }
  .service:nth-of-type(3) { margin-top: 120px; }
}

/* ---------- Why ---------- */
.why { padding-block: var(--section); }
.why__grid { display: grid; gap: clamp(32px, 4vw, 72px); }
.why__media img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.why__text { display: grid; gap: 24px; align-content: center; }
.why__text > p { max-width: 50ch; }
.why__facts { display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; margin-top: 12px; align-items: baseline; }
.why__facts li { display: contents; }
.why__facts strong { font-family: var(--display); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .why__grid { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Reviews: brick field ---------- */
.voices { background: var(--brick); color: var(--ivory); padding-block: var(--section); }
.voices__grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.voice { display: grid; gap: 18px; }
.voice blockquote p { font-family: var(--display); font-size: var(--fs-statement); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; max-width: 34ch; }
.voice figcaption { color: var(--ivory); font-weight: 600; }
.voices__note { grid-column: 1 / -1; font-size: var(--fs-small); opacity: 0.85; max-width: 70ch; }
.voices__note a { color: inherit; }
@media (min-width: 960px) {
  .voices__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .voices__grid h2 { grid-column: 1 / 8; }
  .voice--lead { grid-column: 1 / 8; }
  .voice:not(.voice--lead) { grid-column: 9 / 13; align-self: end; }
}

/* ---------- Area ---------- */
.area { padding-block: var(--section); }
.area__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.area__text { display: grid; gap: 22px; }
.area__text > p { max-width: 50ch; }
.area__list { display: flex; flex-wrap: wrap; gap: 8px; }
.area__list li { background: var(--ivory-2); border-radius: 99px; padding: 6px 14px; font-weight: 500; font-size: 0.9375rem; transition: background-color 250ms, color 250ms; }
.area__list li.is-lit { background: var(--night); color: var(--ivory); }
.area__map { background: var(--night); border-radius: var(--radius); padding: clamp(12px, 2vw, 28px); }
.area__svg { width: 100%; height: auto; display: block; }
.area__svg .a-pin { fill: var(--yellow); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 300ms var(--ease-out); }
.area__svg .a-pin.is-lit { transform: scale(1.5); }

@media (min-width: 960px) { .area__grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--ivory-2); padding-block: var(--section); }
.faq__grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.faq__head { display: grid; gap: 20px; align-content: start; }
.faq__head p { max-width: 30ch; font-size: var(--fs-statement); line-height: 1.3; }
.faq__head a { font-weight: 600; }
.faq__list { display: grid; gap: 8px; }
.faq details { background: var(--ivory); border-radius: 22px; transition: background-color 300ms; }
.faq details[open] { background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 64px 22px 24px; position: relative; font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--yellow);
  mask: linear-gradient(#000 0 0) center / 12px 2px no-repeat, linear-gradient(#000 0 0) center / 2px 12px no-repeat; transition: transform 350ms var(--ease-out); }
.faq summary::before { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--yellow); }
.faq summary::after { background: var(--night); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease-out); }
.faq details[open] .faq__a { grid-template-rows: 1fr; }
.faq__a p { overflow: hidden; padding: 0 24px; max-width: 64ch; }
.faq details[open] .faq__a p { padding-bottom: 24px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1fr 1.6fr; } }

/* ---------- Footer ---------- */
.close { position: relative; background: var(--night); color: var(--ivory); padding-block: var(--section) 32px; overflow: hidden; isolation: isolate; }
.close__pattern { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; }
.close__pattern .m-base { opacity: 0.45; }
.close__pattern .a-pin { fill: var(--yellow); }
.close__inner { position: relative; }
.close__title { font-size: var(--fs-h2); }
.close__grid { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.close__phone a { font-family: var(--display); font-size: clamp(2.2rem, 1.4rem + 3.8vw, 4.8rem); font-weight: 800; letter-spacing: -0.04em; color: var(--yellow); text-decoration: none; display: inline-block; font-variant-numeric: tabular-nums; }
.close__info { display: grid; gap: 8px; color: var(--on-night-soft); }
.close__info a { color: var(--ivory); }
.close__name { margin-top: clamp(56px, 8vw, 120px); font-family: var(--display); font-weight: 800; font-size: min(26vw, 22rem); letter-spacing: -0.06em; line-height: 0.8; white-space: nowrap; padding-bottom: 0.22em; }
.close__name .logo__route { stroke-width: 2.4; }
.close__credits { margin-top: 40px; font-size: 0.8125rem; color: #9da1ad; max-width: 120ch; }
@media (min-width: 960px) { .close__grid { grid-template-columns: 1.6fr 1fr 1fr; align-items: end; } }

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  .bar__nav { display: none; }
  .lang, .bar__nav + .lang, .langs, .bar__nav + .langs { margin-left: auto; }
  .bar__cta { padding: 0 16px; }
  .bar__cta span { font-size: 0.9375rem; }
  .dock { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom)); background: var(--night);
    transform: translateY(110%); transition: transform 450ms var(--ease-out); }
  .dock.is-on { transform: none; }
  .dock .pill { min-height: 52px; }
  .hero__actions .pill { flex: 1 1 100%; }
  body { padding-bottom: 80px; }
}

/* ---------- Additions: language switch, pictures, copy, service pages ---------- */
[hidden] { display: none !important; }
.route a::before { content: ""; position: absolute; inset: -15px; border-radius: 50%; }
.lang__short { display: none; }
@media (max-width: 759px) { .lang__long { display: none; } .lang__short { display: inline; } }
.lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: 0.875rem; text-decoration: none; background: color-mix(in srgb, currentColor 12%, transparent); }
.lang:hover { background: color-mix(in srgb, currentColor 22%, transparent); }
@media (min-width: 760px) { .bar__nav + .lang, .bar__nav + .langs { margin-left: 4px; } }
picture { display: block; width: 100%; height: 100%; }
.ticket__text { width: 100%; min-height: 160px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ivory-2); font: inherit; font-size: 0.9375rem; background: #fff; color: var(--night); }
.service__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--yellow); text-decoration: none; margin-top: 4px; }
.service__more:hover { text-decoration: underline; }
.row__dest a { text-decoration: none; }
.row__dest a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }

.page-hero { background: var(--night); color: var(--ivory); padding-top: 150px; padding-bottom: clamp(56px, 7vw, 112px); }
.page-hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-hero__text { display: grid; gap: 24px; }
.page-hero__text > p { font-size: var(--fs-statement); line-height: 1.35; max-width: 32ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--on-night-soft); }
.crumbs a { color: var(--ivory); }
.page-hero__grid > *, .book__grid > *, .content__grid > * { min-width: 0; }
.page-map { overflow: hidden; background: var(--night-2); border-radius: var(--radius); padding: clamp(10px, 1.6vw, 20px); }
.page-map svg { display: block; width: 100%; height: auto; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1fr 1fr; } }

.content { padding-block: var(--section); }
.content__grid { display: grid; gap: clamp(32px, 4vw, 64px); }
.content__main { display: grid; gap: 22px; align-content: start; }
.content__main h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); margin-top: 16px; }
.content__main p, .content__main li { max-width: 62ch; }
.content__main ul.ticks { display: grid; gap: 10px; }
.content__main ul.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.content__main ul.ticks .ico { color: var(--brick); width: 22px; height: 22px; margin-top: 2px; }
.times { display: grid; gap: 6px; }
.times li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--ivory-2); border-radius: 16px; font-weight: 500; }
.times li strong { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.callout { background: var(--night); color: var(--ivory); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.callout h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.callout p { color: var(--on-night-soft); }
@media (min-width: 960px) {
  .content__grid { grid-template-columns: 1.4fr 1fr; }
  .callout { position: sticky; top: 110px; align-self: start; }
}

.faq--inline { background: none; padding: 0; }
.callout .pill { white-space: normal; text-align: center; line-height: 1.3; padding-block: 12px; }
.callout .book__phone a { font-size: clamp(1.45rem, 0.8rem + 2.4vw, 2.6rem); }
.content__main .faq__list { margin-top: 4px; }
.content__main .faq details { background: var(--ivory-2); }
.content__main a { font-weight: 500; }
.tariffs ul { display: grid; gap: 8px; padding: clamp(6px, 1vw, 12px); }
.tariffs li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 14px 16px; background: var(--night-3); border-radius: 18px; color: var(--ivory); }
.tariffs strong { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--night); font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.bar__nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 399px) {
  .bar__cta { width: 48px; padding: 0; }
  .bar__cta span { display: none; }
  .bar__cta .ico { width: 22px; height: 22px; }
}

/* Language menu: a native <details> disclosure styled as the header pill */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; gap: 6px; grid-auto-flow: column; }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.langs[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.langs__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px; padding: 6px; display: grid; gap: 2px;
  background: var(--night-3); color: var(--ivory); border-radius: 18px; }
.langs[open] .langs__menu { animation: menu-in 180ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.langs__menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.langs__menu a:hover, .langs__menu a:focus-visible { background: var(--night-2); }
.langs__menu a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* Language hint for visitors browsing in another language */
.lang-hint { position: fixed; z-index: 55; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 10px 10px 20px;
  background: var(--night-3); color: var(--ivory); border-radius: 999px; font-weight: 500;
  transform: translateY(160%); opacity: 0; transition: transform 500ms var(--ease-out), opacity 300ms; }
.lang-hint.is-on { transform: none; opacity: 1; }
.lang-hint p { flex: 1; font-size: 0.9375rem; }
.lang-hint .pill { min-height: 44px; }
.lang-hint__close { border: 0; background: none; color: var(--ivory); width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lang-hint__close:hover { background: var(--night-2); }
@media (max-width: 759px) {
  .lang-hint { left: 12px; right: 12px; max-width: none; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); border-radius: 24px; flex-wrap: wrap; padding: 12px 12px 12px 18px; }
  .lang-hint p { flex-basis: calc(100% - 56px); }
  .lang-hint .pill { flex: 1; }
}

/* ---------- Motion: entrances ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; }
/* Content is visible by default. The script marks only what starts below the fold as .pre,
   then .is-in plays the entrance; if the script never runs, nothing stays hidden. */
.split.pre .w > span { transform: translateY(105%); }
.split.is-in .w > span { transform: none; transition: transform 750ms var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i) * 45ms); }
.reveal.pre { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }

/* Page transitions between documents (index <-> mentions légales) */
::view-transition-old(root) { animation: 380ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 520ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px) scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

/* The services tilt must win over the entrance rule once the card has appeared. */
.service.tilt:not(.pre) { transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal.pre, .split.pre .w > span { opacity: 1; transform: none; }
  .photo.pre { opacity: 1; transform: none; }
  .logo__route { stroke-dashoffset: 0; }
  .logo__dot { opacity: 1; }
  .logo__fall { opacity: 1; }
  .map__canvas { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Related pages under each service page: descriptive internal links. */
.related { margin-top: 8px; line-height: 1.9; }
.related a { white-space: nowrap; }
