/* Nordic Rides. One page, one drive south from Tromsø.
   Palette and sky are settled (see CLAUDE.md, "Do not change"). */

:root {
  --midnight: #232A2C;
  --ocean: #205771;
  --ocean-deep: #18465C;
  --slate: #546D74;
  --ivory: #F5F4F2;
  --body: #37474C;
  --light: #DDE3E4;
  --light-accent: #B9D6E2;
  --error: #A8321E;
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top: 64px;      /* sticky menu height */
  --gutter: 8%;     /* left edge of the text on wide screens */
  --window: 300px;  /* phone: open stretch of photo and road above each block */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);  /* arrivals: quick off the mark, long settle */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--midnight);
  font: 400 1.125rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ocean);
  caret-color: var(--ocean);
}
img, svg { display: block; }
picture { display: contents; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ocean); color: #fff; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
.leg--dark :focus-visible, .arrive__head :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--light-accent); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; border-radius: 999px; background: var(--midnight); color: #fff; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- Menu ---------- */

.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 244, 242, 0.94); border-bottom: 1px solid rgba(35, 42, 44, 0.10); }
@supports (backdrop-filter: blur(8px)) {
  .top { background: rgba(245, 244, 242, 0.9); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
}
.top__in { position: relative; max-width: 1440px; min-height: var(--top); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 4px 20px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.875rem; color: var(--slate); text-decoration: none; white-space: nowrap; transition: color .25s ease; }
.nav a i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background .25s ease; }
.nav a:hover { color: var(--ocean); }
.nav a.is-past { color: var(--midnight); }
.nav a.is-past i { background: var(--midnight); }
.nav a[aria-current="true"] { color: var(--ocean); font-weight: 700; }
.nav a[aria-current="true"] i { background: var(--ocean); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; color: var(--ocean); font: 700 0.875rem var(--font); cursor: pointer; }
.menu-btn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ocean); }
.menu-btn svg { transition: transform .25s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- The journey: sky, map, road ---------- */

.journey {
  position: relative; z-index: 0; overflow-x: clip;
  /* Fallback sky; js/site.js re-pins every colour to its section. */
  background: linear-gradient(to bottom, #F7E1D0 0%, #F8ECE2 6.8%, #F3F1EC 12.3%, #E9F0F2 19%, #E2ECF0 29.8%, #ECEEE8 38.1%, #F3EBDC 43.5%, #F6E3CB 53.5%, #F4D6C0 57.7%, #E6C3BC 61.9%, #D3BAC4 65.2%, #B9AFC4 67.7%, #7F8CA6 69.5%, #4B6A80 70.8%, #2C5873 74.7%, #1D4459 78.7%, #222E35 81.6%, #1B2123 100%);
}
.map, .road { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.map { overflow: hidden; }
.map__zones { position: absolute; inset: 0; }
.map__svg, .road__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.map__svg { opacity: 0.42; }
.map__label { position: absolute; left: 0; top: 0; font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; color: var(--body); opacity: 0.7; }
.map__label--night { color: var(--light); text-align: right; }
.map__label small { display: block; margin-top: 7px; font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.08em; text-transform: none; }
.road__line { stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .map, html:not(.js) .road, html:not(.js) .cue { display: none; }

.stop { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2px solid var(--slate); transition: background .3s ease, border-color .3s ease, width .3s ease, height .3s ease, margin .3s ease; }
.stop.on { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: var(--ocean); border: 4px solid #fff; }
.stop--night { background: var(--midnight); border-color: #B7C4C8; }
.stop--night.on { background: var(--light-accent); border-color: var(--midnight); }
.stop::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ocean); opacity: 0; }
.stop--night::after { border-color: var(--light-accent); }
.stop.ping::after { animation: nr-ripple 1s ease-out 1 both; }

.tag, .arrived { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(245, 244, 242, 0.92); color: var(--midnight); font-size: 0.75rem; font-weight: 600; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; --dy: 10px; transform: translate(22px, calc(-50% + var(--dy))); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.tag[data-side="left"] { transform: translate(calc(-100% - 22px), calc(-50% + var(--dy))); }
.tag[data-side="above"] { transform: translate(0, calc(-50% + var(--dy))); }
.tag.on { opacity: 1; --dy: 0px; }
.pin--road { position: absolute; left: 0; top: 0; margin: -62px 0 0 -20px; display: none; }
@media (min-width: 900px) {
  .pin--road { display: block; }
  .pin--head { display: none; }
}
.arrived { display: none; }

.vehicle { position: absolute; left: 0; top: 0; width: 34px; height: 18px; margin: -9px 0 0 -17px; will-change: transform; }
.vehicle i { position: absolute; inset: 0; border-radius: 6px; background: var(--midnight); border: 2px solid #fff; box-shadow: 0 4px 14px rgba(35, 42, 44, 0.35); }
/* After dusk the vehicle drives with its headlights on */
.vehicle::before { content: ''; position: absolute; left: 100%; top: 50%; width: 48px; height: 36px; margin: -18px 0 0 -3px; background: linear-gradient(to right, rgba(255, 243, 214, 0.6), rgba(255, 243, 214, 0)); clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%); opacity: 0; transition: opacity 1.2s ease; }
.vehicle.is-night::before { opacity: 1; }
.vehicle i::after { content: ''; position: absolute; right: 4px; top: 2px; bottom: 2px; width: 6px; border-radius: 2px; background: var(--light-accent); }

.stop-anchor { position: absolute; left: 50%; top: var(--stop, 50%); width: 0; height: 0; pointer-events: none; }
.stop-anchor--flow { position: static; display: block; }

/* ---------- Shared type and buttons ---------- */

.label { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocean); }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 2.4vw + 1rem, 3.375rem); line-height: 1.1; font-weight: 300; letter-spacing: -0.025em; }
.lede { color: var(--body); text-wrap: pretty; }
.price { font-size: 0.9375rem; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 0.9375rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1.125rem; }
.btn--solid { background: var(--ocean); color: #fff; font-weight: 700; box-shadow: 0 18px 40px rgba(35, 42, 44, 0.22); }
.btn--solid:hover { background: var(--ocean-deep); }
.btn--line { border-color: var(--ocean); color: var(--ocean); }
.btn--line:hover { background: var(--ocean); color: #fff; }
.btn--line.btn--lg, .btn--ink { border-color: var(--midnight); color: var(--midnight); background: transparent; }
.btn--line.btn--lg:hover, .btn--ink:hover { background: var(--midnight); color: #fff; }
.btn--dark { background: var(--midnight); color: #fff; }
.btn--dark:hover { background: #000; }
.leg--dark .btn--line { border-color: var(--light-accent); color: var(--light-accent); }
.leg--dark .btn--line:hover { background: var(--light-accent); color: var(--midnight); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 600; color: var(--ocean); text-underline-offset: 4px; }
.textlink:hover { color: var(--midnight); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Masthead ---------- */

.hero { position: relative; min-height: clamp(600px, calc(100svh - var(--top)), 860px); padding: clamp(48px, 9vh, 84px) 32px 170px; scroll-margin-top: var(--top); }
.hero__photo { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent); mask-image: linear-gradient(to bottom, #000 68%, transparent); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.hero__wash { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(245, 244, 242, 0.70), rgba(245, 244, 242, 0.34) 55%, rgba(243, 241, 236, 0)); }
.hero__in { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
h1 { font-size: clamp(2.5rem, 5.2vw + 1.25rem, 5.5rem); line-height: 1.02; font-weight: 300; letter-spacing: -0.03em; max-width: 920px; }
.hero .label { letter-spacing: 0.2em; }
.hero__lede { font-size: 1.25rem; line-height: 1.6; color: var(--body); max-width: 600px; text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .stop-anchor { top: auto; bottom: 64px; }
.cue { position: absolute; z-index: 2; left: 0; right: 0; bottom: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--body); pointer-events: none; }
.cue svg { animation: nr-bob 1.6s ease-in-out infinite; }
.rise { animation: nr-rise .9s ease both; }
.rise--1 { animation-delay: .1s; }
.rise--2 { animation-delay: .2s; }
.rise--3 { animation-delay: .32s; }

/* ---------- Legs of the journey: full-width photo, text over it ---------- */

.leg { position: relative; display: flex; align-items: center; min-height: 700px; padding: 70px 0; scroll-margin-top: var(--top); }
.leg--dark { color: #fff; }
.leg__photo { position: absolute; left: 0; right: 0; top: -150px; bottom: -150px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 200px, #000 calc(100% - 240px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 200px, #000 calc(100% - 240px), transparent 100%); }
.leg__photo img { width: 100%; height: 100%; object-fit: cover; }
.leg__wash { position: absolute; inset: 0; background: linear-gradient(to right, rgba(245, 244, 242, 0.95), rgba(245, 244, 242, 0.82) 36%, rgba(245, 244, 242, 0) 68%); }
.leg--dark .leg__wash { background: linear-gradient(to right, rgba(35, 42, 44, 0.78), rgba(35, 42, 44, 0.35) 45%, rgba(35, 42, 44, 0) 70%); }
.leg--night .leg__wash { background: linear-gradient(to right, rgba(35, 42, 44, 0.86), rgba(35, 42, 44, 0.6) 45%, rgba(35, 42, 44, 0.15) 78%); }
.leg__in { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.copy { display: flex; flex-direction: column; align-items: flex-start; width: min(100%, 35rem); max-width: 46%; }
/* Rhythm inside a block: the label hugs its heading, the offer and its button sit apart from the description */
.copy > * + * { margin-top: 16px; }
.copy > .arrived + * { margin-top: 0; }
.copy > .scene + .label { margin-top: 22px; }
.copy > .label + h2 { margin-top: 10px; }
.copy > .ticks { margin-top: 22px; }
.copy > .price, .copy > .lede + .btn { margin-top: 28px; }
.copy > .price + .btn { margin-top: 14px; }
.leg--dark .lede { line-height: 1.7; }
.leg--inset .copy { margin-left: clamp(0px, 8%, 115px); }
.leg--dark .label { color: var(--light-accent); }
.leg--dark .lede { color: var(--light); }
.leg--dark .lede a { text-underline-offset: 4px; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ticks svg { flex: none; color: var(--ocean); }

#transfers { --stop: 65%; }
#transfers .leg__photo img { object-position: center 40%; }
#hire { --stop: 56%; min-height: 660px; }
#hire .leg__photo { bottom: -180px; }
#hire .leg__photo img { object-position: center 70%; }
#charters { --stop: 11%; min-height: 760px; }
#charters .leg__photo { bottom: -180px; }
#operators { --stop: 47%; }
#operators .leg__photo img { object-position: 100% 55%; }

/* Little moving scenes above each label */
.scene { display: flex; align-items: flex-end; gap: 14px; }
.plane { transform-origin: 24px 10px; animation: nr-land 7s linear infinite; }
.welcome { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; animation: nr-sign 7s linear infinite; }
.welcome b { padding: 6px 10px; border-radius: 4px; background: var(--midnight); color: #fff; font-size: 0.625rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.12em; white-space: nowrap; }
.welcome i { width: 2px; height: 14px; background: var(--midnight); }
.hand { transform-origin: 32px 32px; }
.hand--fast { animation: nr-spin 6s linear infinite; }
.hand--slow { animation: nr-spin 72s linear infinite; }
.bus { animation: nr-drive 7s linear infinite; }
.link { animation: nr-dash 1.2s linear infinite; }
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* Far ridges between the city and the fjords */
.ridge { position: relative; height: 380px; overflow: hidden; }
.ridge svg { position: absolute; left: 0; bottom: -40px; width: 100%; height: 70%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent); }

/* ---------- Fleet ---------- */

.fleet { position: relative; --stop: 48%; min-height: 960px; padding: 90px 4% 90px; display: flex; align-items: center; scroll-margin-top: var(--top); }
.fleet__in { position: relative; z-index: 2; width: 100%; max-width: 1325px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 44px; }
.fleet__in > .rental { margin-top: 12px; }
.fleet__head { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fleet__head .lede { max-width: 600px; }
.carousel { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.carousel__track { width: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 8px; }
.carousel__track::-webkit-scrollbar { display: none; }
.car { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.4; transform: scale(0.82); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.car.is-active { opacity: 1; transform: none; }
/* One scale for the whole fleet: a Sprinter fills the stage height, the V-Class stands at its true height beside it */
.carousel { --car-h: clamp(170px, 30vw, 340px); }
.car { --ar: 2.44; --size: 1; }
.car:nth-child(2) { --ar: 1.94; }
.car:nth-child(3) { --ar: 1.65; }
.car:nth-child(4) { --ar: 1.845; --size: 0.7; }
.car img { width: 100%; height: var(--car-h); padding-top: calc(var(--car-h) * (1 - var(--size))); object-fit: contain; object-position: center bottom; }
.car__floor { width: min(94%, calc(var(--car-h) * var(--size) * var(--ar) * 1.06)); height: 30px; margin-top: -24px; background: radial-gradient(ellipse at center, rgba(35, 42, 44, 0.38), rgba(35, 42, 44, 0) 70%); }
.car__count { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); }
.car h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 1.875rem); line-height: 1.15; font-weight: 300; letter-spacing: -0.02em; }
.car__seats { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.round { width: 48px; height: 48px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.round--line { border: 1.5px solid var(--midnight); background: transparent; color: var(--midnight); }
.round--line:hover { background: var(--midnight); color: #fff; }
.round--solid { border: 0; background: var(--midnight); color: #fff; }
.round--solid:hover { background: #000; }
.round:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.bars { display: flex; align-items: center; gap: 4px; }
.bars button { width: 28px; height: 44px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bars span { display: block; width: 12px; height: 4px; border-radius: 2px; background: var(--midnight); opacity: 0.35; transition: width .3s ease, opacity .3s ease; }
.bars button[aria-current="true"] span { width: 24px; opacity: 1; }
.carousel__count { min-width: 62px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.rental { width: 100%; max-width: 760px; padding-top: 20px; border-top: 1px solid rgba(35, 42, 44, 0.25); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rental h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.rental p { font-size: 0.9375rem; line-height: 1.6; color: var(--body); text-wrap: pretty; }

/* ---------- Night: the request ---------- */

.arrive { position: relative; color: #fff; padding: 170px 20px 90px; scroll-margin-top: var(--top); }
.arrive__photo { position: absolute; left: 0; right: 0; top: -160px; bottom: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 300px, #000 calc(100% - 120px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 300px, #000 calc(100% - 120px), transparent 100%); }
.arrive__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.arrive__wash { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(35, 42, 44, 0.3), rgba(35, 42, 44, 0.6) 45%, rgba(35, 42, 44, 0.9)); }
.arrive__in { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.arrive__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.arrive__head .label { color: var(--light-accent); margin-top: 4px; }
.arrive__head h2 { font-size: clamp(2.5rem, 3vw + 1.5rem, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
.arrive__head .lede { font-size: 1.125rem; line-height: 1.6; color: var(--light); max-width: 560px; }
.pin.dropped { animation: nr-drop .8s cubic-bezier(.3, 1.4, .5, 1) 1 both; }

.card { width: 100%; max-width: 900px; background: #fff; color: var(--midnight); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); text-align: left; }
.form { display: flex; flex-direction: column; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--slate); background: #fff; color: var(--midnight); font-size: 0.875rem; font-weight: 600; line-height: 1.2; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chips label:hover span { border-color: var(--midnight); }
.chips input:checked + span { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--ocean); outline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row--end { align-items: flex-end; }
.field { position: relative; flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field--place { flex-basis: 280px; }
.field--wide { flex-basis: 240px; }
.field--narrow { flex-basis: 110px; }
.field--full { flex-basis: 100%; }
.field label { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--body); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--slate); background: #fff; color: var(--midnight); font: 400 1rem/1.4 var(--font); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { height: auto; min-height: 76px; padding: 12px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #617479; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(32, 87, 113, 0.22); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 3px rgba(168, 50, 30, 0.18); }
.field__error { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--error); }
.form__nojs { font-size: 1rem; line-height: 1.6; color: var(--body); }
html:not(.js) .form { display: none; }
.place { position: relative; }
.place > svg { position: absolute; left: 14px; top: 17px; color: var(--body); pointer-events: none; }
.place input { padding-left: 42px; }
.place__list { position: absolute; z-index: 6; left: 0; right: 0; top: 100%; margin-top: 6px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 18px 44px rgba(35, 42, 44, 0.22); display: flex; flex-direction: column; }
.place__list button { min-height: 48px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; font-family: var(--font); color: var(--midnight); }
.place__list button:hover, .place__list button[aria-selected="true"] { background: var(--ivory); }
.place__list svg { flex: none; color: var(--body); }
.place__list b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.place__list small { display: block; font-size: 0.75rem; line-height: 1.3; color: var(--body); }
.place__list p { padding: 6px 10px 4px; font-size: 0.6875rem; color: var(--body); text-align: right; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { flex: 1 1 180px; height: 52px; border: 0; border-radius: 12px; background: var(--ocean); color: #fff; font: 700 1rem var(--font); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.send:hover { background: var(--ocean-deep); }
.send:active { transform: translateY(1px); }
.send:disabled { opacity: 0.6; cursor: progress; }
.form__error { font-size: 0.875rem; font-weight: 600; line-height: 1.5; color: var(--error); }
.form__note { font-size: 0.8125rem; line-height: 1.5; color: var(--body); }
.done { display: flex; flex-direction: column; gap: 18px; }
.done:focus { outline: none; }
.done__head { display: flex; align-items: center; gap: 12px; }
.field.is-new { animation: nr-fade .35s var(--ease-out) both; }
.done:not([hidden]) { animation: nr-fade .4s var(--ease-out) both; }
/* The confirmation arrives the way every stop on the road does */
.done__tick::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ocean); opacity: 0; }
.done:not([hidden]) .done__tick::after { animation: nr-arrive 1s ease-out .2s 1 both; }
.done__tick { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ocean); color: #fff; }
.done h3 { font-size: 1.625rem; font-weight: 600; line-height: 1.2; }
.done p { font-size: 1rem; line-height: 1.6; color: var(--body); }
.done dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 8px 16px; font-size: 0.9375rem; line-height: 1.5; }
.done dt { color: var(--body); }
.done dd { font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done .done__status { min-height: 1.5em; margin-top: -8px; font-size: 0.875rem; font-weight: 600; color: var(--ocean); }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 32px; font-size: 1rem; color: var(--light); }
.contact a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }

/* ---------- The request card at night: part of the sky, not a sheet laid over it ---------- */

.card { --error: #FFB1A0; background: rgba(27, 33, 35, 0.92); color: #fff; border: 1px solid rgba(221, 227, 228, 0.16); box-shadow: none; color-scheme: dark; scroll-margin-top: calc(var(--top) + 12px); }
@supports (backdrop-filter: blur(8px)) {
  .card { background: rgba(27, 33, 35, 0.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
}
.card :focus-visible, .card .chips input:focus-visible + span { outline-color: var(--light-accent); }
.card .chips span { background: transparent; border-color: rgba(221, 227, 228, 0.45); color: var(--light); }
.card .chips label:hover span { border-color: #fff; }
.card .chips input:checked + span { background: var(--light-accent); border-color: var(--light-accent); color: var(--midnight); }
.card .field label, .card .form__note, .card .form__nojs, .card .form__step { color: var(--light); }
.card .field input, .card .field select, .card .field textarea { background: rgba(255, 255, 255, 0.06); border-color: rgba(221, 227, 228, 0.45); color: #fff; }
.card .field input::placeholder, .card .field textarea::placeholder { color: #9DB0B6; }
.card .field input:focus, .card .field select:focus, .card .field textarea:focus { border-color: var(--light-accent); box-shadow: 0 0 0 3px rgba(185, 214, 226, 0.28); }
.card .field [aria-invalid="true"], .card .field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255, 177, 160, 0.22); }
.card .field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #2A3336 inset; caret-color: #fff; }
.card .place > svg { color: var(--light); }
.card .send { background: var(--light-accent); color: var(--midnight); }
.card .send:hover { background: #fff; }
.card .form__error a { color: inherit; }
.card .done p, .card .done dt { color: var(--light); }
.card .done__tick { background: var(--light-accent); color: var(--midnight); }
.card .done__tick::after { border-color: var(--light-accent); }
.card .done .done__status { color: var(--light-accent); }
.card .btn--dark { background: var(--light-accent); color: var(--midnight); }
.card .btn--dark:hover { background: #fff; }
.card .btn--ink { border-color: var(--light); color: var(--light); }
.card .btn--ink:hover { background: var(--light); color: var(--midnight); }

/* Phone: the form comes in two short steps. Wider screens show it whole. */
.form__step, .row--step, .textbtn { display: none; }
.form__step { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; }
.textbtn { align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--light); font: 600 0.9375rem var(--font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Footer ---------- */

.foot { background: #1B2123; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.foot__in { max-width: 1200px; margin: 0 auto; padding: 28px 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.875rem; line-height: 1.5; color: var(--light); }
.foot__name { font-weight: 600; color: #fff; }
.foot a { text-underline-offset: 4px; }
.credits { flex: 1 1 100%; }
.credits summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.credits ul { max-width: 46rem; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; line-height: 1.6; color: #B7C4C8; }

/* ---------- Narrow screens: the road runs through the page, text sits between open stretches ---------- */

@media (max-width: 899.98px) {
  :root { --top: 58px; }
  body { font-size: 1.125rem; }
  .top__in { padding: 0 20px; }
  .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px; border-radius: 18px; background: rgba(245, 244, 242, 0.98); box-shadow: 0 24px 60px rgba(35, 42, 44, 0.28); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .nav a { min-height: 48px; font-size: 1rem; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .top__in { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .nav { flex-wrap: wrap; }

  .hero { padding: 44px 24px 190px; min-height: clamp(560px, calc(100svh - var(--top)), 780px); }
  .hero__in { gap: 20px; }
  .hero .label { font-size: 0.75rem; letter-spacing: 0.16em; }
  .hero__lede { font-size: 1.125rem; }
  .btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }

  .tag, .map__label--night { display: none; }
  .arrived { display: inline-flex; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
  .arrived.on, html:not(.js) .arrived { opacity: 1; transform: none; }
  .copy > .arrived + * { margin-top: 22px; }
  .map__svg { opacity: 0.34; }

  .leg, #hire, #charters { display: block; min-height: 0; padding: var(--window) 0 84px; }
  #transfers, #hire, #charters, #operators { --stop: 150px; }
  .leg__in { padding: 0 24px; }
  .copy, .leg--inset .copy { width: 100%; max-width: 520px; margin-left: 0; }
  .leg__photo, #hire .leg__photo, #charters .leg__photo { top: -120px; bottom: -120px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 150px, #000 calc(100% - 180px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 150px, #000 calc(100% - 180px), transparent 100%); }
  .leg__wash { background: linear-gradient(to bottom, rgba(245, 244, 242, 0) 220px, rgba(245, 244, 242, 0.9) 420px); }
  .leg--dark .leg__wash { background: linear-gradient(to bottom, rgba(35, 42, 44, 0.12) 200px, rgba(35, 42, 44, 0.8) 420px); }
  .leg--night .leg__wash { background: linear-gradient(to bottom, rgba(35, 42, 44, 0.2) 200px, rgba(35, 42, 44, 0.84) 420px); }
  #transfers .leg__photo img { object-position: 62% 40%; }
  #operators .leg__photo img { object-position: 78% 55%; }

  .ridge { height: 220px; }
  .fleet { display: block; min-height: 0; padding: 250px 20px 84px; --stop: 130px; }
  .carousel { --car-h: clamp(150px, 46vw, 300px); }
  .carousel__nav { gap: 8px; }
  .carousel__count { min-width: 56px; }

  .arrive { padding: 150px 16px 72px; }
  .card { padding: 18px; border-radius: 18px; }
  .form__step { display: block; }
  .row--step { display: flex; }
  .textbtn { display: inline-flex; }
  .form[data-at="1"] [data-step="2"], .form[data-at="2"] [data-step="1"] { display: none; }
  .hero__photo img { object-position: 88% 72%; }
  .chips span { padding: 0 14px; }
  .done dl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .foot__in { flex-direction: column; padding: 28px 24px 40px; }
}

@media (min-width: 900px) and (max-width: 1099.98px) {
  .top__in { padding: 0 24px; }
  .nav { gap: 4px 14px; }
  .nav a { font-size: 0.8125rem; gap: 6px; }
  :root { --gutter: 6%; }
}

/* ---------- Motion ---------- */

@keyframes nr-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes nr-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes nr-ripple { from { transform: scale(.4); opacity: .75; } to { transform: scale(3.4); opacity: 0; } }
@keyframes nr-land { 0% { transform: translate(-6px, -4px) rotate(7deg); opacity: 0; animation-timing-function: linear; } 6% { opacity: 1; } 40% { transform: translate(84px, 44px) rotate(2deg); animation-timing-function: ease-out; } 48% { transform: translate(100px, 51.5px) rotate(-4deg); animation-timing-function: ease-out; } 56% { transform: translate(116px, 51.5px) rotate(0deg); animation-timing-function: ease-out; } 88% { transform: translate(166px, 51.5px) rotate(0deg); opacity: 1; } 100% { transform: translate(172px, 51.5px) rotate(0deg); opacity: 0; } }
@keyframes nr-sign { 0%, 52% { opacity: 0; transform: translateY(8px) scale(.8); } 62%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes nr-spin { to { transform: rotate(360deg); } }
@keyframes nr-drive { 0% { transform: translate(-30px, 0); } 50% { transform: translate(46px, -3px); } 100% { transform: translate(132px, 0); } }
@keyframes nr-dash { to { stroke-dashoffset: -16; } }
@keyframes nr-drop { 0% { transform: translateY(-44px); opacity: 0; } 60% { transform: translateY(5px); opacity: 1; } 100% { transform: none; opacity: 1; } }

@keyframes nr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nr-arrive { from { transform: scale(1); opacity: .7; } to { transform: scale(2); opacity: 0; } }

/* Reduced motion: nothing travels, loops or bounces. Fades and colour changes stay, because they carry state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plane, .welcome, .hand, .bus, .link, .cue svg, .stop.ping::after, .done:not([hidden]) .done__tick::after { animation: none !important; }
  .plane { transform: translate(116px, 51.5px); }
  .rise, .pin.dropped { animation: nr-fade .4s ease both; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .tag, .arrived { --dy: 0px; transform: none; transition: opacity .4s ease; }
  .tag { transform: translate(22px, -50%); }
  .tag[data-side="left"] { transform: translate(calc(-100% - 22px), -50%); }
  .tag[data-side="above"] { transform: translate(0, -50%); }
  .car, .car.is-active { transform: none; transition: opacity .3s ease; }
  .btn, .send, .menu-btn svg, .nav { transition-property: background, color, border-color, opacity, visibility; }
  .btn:active, .send:active { transform: none; }
}
