/* Davos Chauffeur Service
   Palette taken from the logo (dark bronze lettering) and from Davos in January.
   Layout: a photographic cover that stays put while the page slides over it,
   then chapters on alternating grounds (snow, white, slate), closing on a
   full-width wordmark. Motion runs on the scroll-craft engine (assets/vendor). */
/* Fonts are served from this site (assets/fonts, SIL Open Font License),
   so no visitor data is sent to Google. Jost is one variable file for 300-500. */
@font-face {
  font-family: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/gilda-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/gilda-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --snow: #ecefee;      /* page ground: cool, like snow in shade */
  --white: #ffffff;     /* fleet and quotation ground: matches the studio photography */
  --slate: #23272b;     /* ink and dark sections */
  --bronze: #4b3b2f;    /* the logo's lettering; used sparingly */
  --glacier: #5b666d;   /* secondary text: at least 4.5:1 on snow, ice and white */
  --faint: #6b757c;     /* the quietest text (placeholders, "optional"): still 4.5:1 on white */
  --rule: #c9cfd0;      /* hairlines on snow */
  --shade: 38, 58, 72;  /* cool slate-blue, for the soft shadows between chapters */
  --frost: #f3f6f7;     /* the opening's morning light, and the mist that closes over it */
  --ice: #e1e9ed;       /* pale glacier blue: the chauffeurs chapter */
  --ice-deep: #c5d4dc;  /* hairlines and quiet fills on ice */

  --serif: "Gilda Display", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 56px);
  --section: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(.2, .6, .2, 1);

  /* scroll-craft engine tokens, mapped onto this palette */
  --sc-canvas: var(--snow);
  --sc-surface: var(--white);
  --sc-ink: var(--slate);
  --sc-ink-soft: var(--glacier);
  --sc-accent: var(--bronze);
  --sc-accent-ink: var(--white);
  --sc-font-display: var(--serif);
  --sc-font-text: var(--sans);

  /* transitions.dev motion tokens (the subset this site uses) */
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --revert-hold: 3000ms;
  --revert-dur: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps a focused field or a jumped-to heading clear of the floating bar */
html { scroll-behavior: smooth; scroll-padding-bottom: 104px; }
/* isolate: the footer (z-index -1) waits underneath the page but inside body's own
   stacking context, so its links can still be clicked once it is uncovered */
body {
  isolation: isolate;
  margin: 0;
  background: var(--snow);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 0; }
/* on the dark footer and inside the dark floating bar a bronze ring would vanish
   (the Questions button keeps the bronze ring: it is drawn on the light page around it) */
.footer :focus-visible, .folio :focus-visible { outline-color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.7em;
  max-width: 16ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.35em;
}

/* ================= Cover =================
   A clear January morning in the Davos valley: pale sky, snow-capped peaks either
   side, the name set large above the car, and light snow falling (script.js; none
   with reduced motion). Along the foot: a fact, a scroll cue and three lines.
   Sticky, so the sheet below slides over it. Before that, a run of scroll
   (.cover-run) plays the opening: --push goes 0 to 1 (set in script.js) and moves
   the planes at different rates. The car comes closer, the name falls back out of
   focus, mist closes over the valley and the statement lights up word by word. */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--frost);
  color: var(--slate);
  isolation: isolate;
  --push: 0;
  --horizon: 64%;
}
/* The cover holds for its scroll run, then the sheet (pulled up by one screen)
   slides over it: 150 of the 250 run is the opening, the last 100 the curtain. */
.cover { position: relative; z-index: 0; }
.cover-run { height: 0; }
.js .cover-run { height: 250vh; height: 250svh; }

/* winter sky down to the snowfield, the horizon behind the car's waist */
.hero__sky {
  position: absolute; inset: -3% -2%; z-index: -1;
  background: linear-gradient(to bottom,
    #bccdd8 0%, #d3dfe6 24%, #e8eef1 calc(var(--horizon) - 12%), #f3f6f7 var(--horizon),
    #f8fafa calc(var(--horizon) + 0.6%), #eef2f4 calc(var(--horizon) + 15%), #dfe6ea 100%);
  transform: translate3d(calc(var(--mx, 0) * 6px), calc(var(--push) * -2vh), 0);
  will-change: transform;
}
/* the low morning sun behind the right-hand peaks: a white core with a little warmth around it */
.hero__sun {
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 30% at 76% 34%, rgba(255,255,255,.9) 0%, rgba(255,255,255,.4) 42%, rgba(255,255,255,0) 100%),
    radial-gradient(48% 42% at 78% 38%, rgba(255,222,186,.42) 0%, rgba(255,226,196,.18) 45%, rgba(255,230,205,0) 100%);
}
/* The valley image has its horizon 80% of the way down, so it is lowered by
   20% of its own height to put that line on --horizon. Its snowfield fades
   into the page's own snow below. */
.hero__valley {
  position: absolute;
  left: 50%;
  bottom: calc(100% - var(--horizon));
  width: max(100%, 1200px, 170vh);
  max-width: none;
  height: auto;
  transform: translate3d(calc(-50% + var(--mx, 0) * -8px), 20%, 0);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
/* mist lying along the valley floor, brightest behind the car */
.hero__mist {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 12% at 50% var(--horizon), rgba(255,255,255,.8) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 100%),
    linear-gradient(to bottom, rgba(248,250,250,0) calc(var(--horizon) - 7%), rgba(248,250,250,.5) calc(var(--horizon) - 0.5%), rgba(248,250,250,.25) calc(var(--horizon) + 3%), rgba(248,250,250,0) calc(var(--horizon) + 10%));
}

/* top row: where Davos is, the menu, and the time there now */
.hero__top {
  position: absolute;
  top: clamp(14px, 3vh, 28px);
  left: 0; right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: calc(1 - var(--push) * 4);
}
/* Load states: everything starts visible, and is hidden for the load moment only
   when script is running (html.js) and has not yet marked the page loaded. Without
   script the opening simply shows. */
.hero__top p { margin: 0; color: #44505b; transition: opacity .8s ease 1.5s; }
.js body:not(.is-loaded) .hero__top p { opacity: 0; }
.hero__time { text-align: right; }
html:not(.js) .hero__time { visibility: hidden; } /* the clock needs script */
.hero__nav { display: flex; gap: clamp(18px, 3.4vw, 52px); }
.hero__nav a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 0 76% / 0 1px no-repeat;
  transition: opacity .5s ease, background-size var(--duration-fast) var(--ease-smooth-out);
}
.js body:not(.is-loaded) .hero__nav a { opacity: 0; }
.is-loaded .hero__nav a { opacity: 1; transition-delay: 1.1s, 0s; }
.is-settled .hero__nav a { transition-delay: 0s; }
.hero__nav a:hover, .hero__nav a:focus-visible { background-size: 100% 1px; }
.hero[data-focus] .hero__nav a { opacity: .45; transition-delay: 0s; }
.hero[data-focus] .hero__nav a.is-focus { opacity: 1; }
.hero.is-pushed .hero__top, .hero.is-pushed .hero__foot { pointer-events: none; visibility: hidden; }

/* The wordmark mirrors the logo and sits above the car, in the sky over the valley. */
.wordmark {
  position: absolute;
  left: 0; right: 0;
  top: 14vh; top: 14svh;
  margin: 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-weight: 400;
  line-height: 1;
  transform: translate3d(calc(var(--mx, 0) * 5px), calc(var(--push) * -7vh), 0) scale(calc(1 - var(--push) * 0.1));
  filter: blur(calc(var(--push) * 16px));
  opacity: calc(1 - var(--push) * 2.4);
  will-change: transform, opacity, filter;
}
.wordmark__main {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8.4vw, 11rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  white-space: nowrap;
  color: #1f262b;
  filter: blur(0);
  transition: filter 1.6s var(--ease) .2s, opacity 1.2s ease .2s;
}
.js body:not(.is-loaded) .wordmark__main { filter: blur(14px); opacity: 0; }
.wordmark__sub {
  display: block;
  margin-top: 0.8em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.6em;
  padding-left: 0.6em; /* balances trailing letter-spacing */
  color: var(--bronze); /* the logo's own colour, warm against the cool snow */
  transition: opacity 1s ease .9s;
}
.js body:not(.is-loaded) .wordmark__sub { opacity: 0; }

/* The car stands on the snow in front of the valley; scrolling brings it closer.
   Its shadow is baked into the image (sclass-studio.webp), so it sits on the snow. */
.hero__car {
  position: absolute;
  left: 50%;
  bottom: 8vh; bottom: 8svh;
  width: min(60vw, 920px, 96vh);
  transform:
    translate3d(calc(-50% + var(--mx, 0) * -12px), calc(var(--push) * 5vh + var(--my, 0) * -4px), 0)
    scale(calc(1 + var(--push) * 0.34));
  transform-origin: 50% 88%;
  will-change: transform;
}
.hero__img {
  position: relative;
  width: 100%;
  transition: opacity 1.4s ease .35s, transform 2.4s var(--ease) .35s;
}
.js body:not(.is-loaded) .hero__img { opacity: 0; transform: translate3d(2.5%, 0, 0); }
/* light snow, in front of the car (script.js draws it) */
.hero__snow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: calc(1 - var(--push) * 1.4);
}
/* as you scroll, mist closes over the valley */
.hero__dim {
  position: absolute; inset: 0;
  background: var(--frost);
  opacity: clamp(0, calc((var(--push) - 0.1) * 2.4), 0.96);
  pointer-events: none;
}

/* The statement rises into the mist and darkens as you read it. */
.hero__statement {
  position: absolute;
  left: 0; right: 0; top: 50%;
  padding: 0 var(--gutter);
  opacity: clamp(0, calc((var(--push) - 0.3) * 6), 1); /* only once the mist is thick enough to read it on */
  transform: translate3d(0, calc(-50% + (1 - var(--push)) * 14vh), 0);
  will-change: transform, opacity;
}
.statement {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.9vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
  text-indent: 16%;
  color: var(--slate);
  text-wrap: pretty;
}
.statement .w { opacity: 0.16; }
.statement .w.is-lit { opacity: 1; }

/* foot: a fact on the left, the scroll cue in the middle, what the service is on the right */
.hero__foot {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(22px, 4.5vh, 46px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  padding: 0 var(--gutter);
  opacity: calc(1 - var(--push) * 3.2);
}
.hero__fact, .hero__line { margin: 0; transition: opacity .8s ease 1.3s; }
.js body:not(.is-loaded) .hero__fact, .js body:not(.is-loaded) .hero__line { opacity: 0; }
.hero__fact { display: flex; align-items: center; gap: 0.8rem; }
.hero__num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  color: var(--bronze);
}
.hero__fact-text { max-width: 13ch; font-size: 0.8rem; line-height: 1.35; color: rgba(35,39,43,.7); }
.hero__line {
  justify-self: end;
  max-width: 31ch;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(35,39,43,.78);
}
.hero__cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #4e5862;
  text-decoration: none;
  transition: color var(--duration-quick) ease-out;
}
.hero__cue:hover { color: var(--slate); }
.hero__cue-line { position: relative; width: 1px; height: 46px; background: rgba(35,39,43,.16); overflow: hidden; }
.hero__cue-line::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--slate);
  animation: cue-fall 2.8s var(--ease-smooth-out) 2s 4 both;
}
@keyframes cue-fall { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(360%); } }

/* ================= The sheet that covers the cover ================= */
.sheet {
  position: relative;
  z-index: 1;
  background: var(--snow);
  box-shadow: 0 -28px 60px rgba(var(--shade), .16), 0 28px 60px rgba(var(--shade), .2);
}
.js .sheet { margin-top: -100vh; margin-top: -100svh; }

/* Chapters that hold while the next one slides over them. script.js sets each
   one's sticky top (so tall chapters hold on their last screen) and --c, which
   runs 0 to 1 as the next chapter covers it: the chapter fades into pale mist and
   steps back. */
.stack {
  position: sticky;
  z-index: 0;
  transform: scale(calc(1 - var(--c, 0) * 0.05));
  transform-origin: 50% 85%;
}
.stack::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--frost);
  opacity: calc(var(--c, 0) * 0.7);
  pointer-events: none;
}
/* each held chapter only holds until its partner has covered it */
.pair { position: relative; }
.fleet, .services, .enquire { position: relative; z-index: 1; }
.fleet, .services { box-shadow: 0 -24px 50px rgba(var(--shade), .12); }

/* ================= WEF ================= */
.wef { padding: var(--section) 0; background: var(--snow); }
.wef__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.wef__intro { position: sticky; top: 48px; }

/* A quiet countdown to the next Forum, under the WEF introduction: a hairline, one
   small grey line, and the days, hours and minutes in the serif. Nothing moves; the
   numbers change once a minute (script.js). */
.countdown { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); max-width: 36ch; }
.countdown[hidden], .countdown [hidden] { display: none; }
.countdown__label { margin: 0 0 0.55rem; font-size: 0.85rem; letter-spacing: 0.01em; color: var(--glacier); }
.countdown__time { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; }
.countdown__part { display: inline-flex; align-items: baseline; gap: 0.4rem; white-space: nowrap; }
.countdown__num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #3a444b; /* a step softer than the body ink */
}
.countdown__unit { font-size: 0.8rem; color: var(--glacier); }

.ledger { margin: 0; }
.ledger__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}
.ledger__row:last-child { border-bottom: 1px solid var(--rule); }
.ledger dt { font-weight: 500; color: var(--bronze); }
.ledger dd { margin: 0; max-width: 46ch; }
/* WEF facts: script.js brightens each row as it crosses the middle of the screen */
.js-focus .ledger__row { will-change: opacity; }

/* ================= Fleet: two cars, each opening into its cabin =================
   The same ground, type and hairlines as the WEF and Services chapters. Each car
   holds on screen (sticky stage inside a tall run) while script.js raises --o from
   0 to 1: the car comes closer and softens, and the frame opens from the middle,
   like a pair of doors, onto the cabin. The switch beneath swaps the version. */
.fleet { background: var(--snow); padding-bottom: clamp(24px, 4vw, 48px); }
.fleet__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-top: var(--section);
}
.fleet__head .h2 { margin-bottom: 0.3em; }
.fleet__lede { color: var(--glacier); margin: 0; max-width: 52ch; }
.fleet__kit {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.fleet__kit li { display: flex; align-items: center; gap: 0.65rem; }
.fleet__kit .glyph { margin-top: 0; }

.model__run { position: relative; }
.js .model__run { height: 230vh; height: 230svh; }
.model__stage {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 5vh, 56px) 0 clamp(88px, 12vh, 112px); /* the floating contents sit below */
  --fh: clamp(220px, calc(100svh - 360px), 580px);
}
.model__frame { position: relative; overflow: hidden; background: #dde2e3; }
/* the car on a soft studio sweep, lit from behind */
.model__out {
  position: relative;
  height: var(--fh);
  background:
    radial-gradient(42% 54% at 50% 58%, rgba(255,255,255,.85), rgba(255,255,255,0) 72%),
    linear-gradient(to bottom, #f2f4f4 0%, #e6eaea 56%, #d7dddf 100%);
}
.model__cars {
  position: absolute; left: 50%; bottom: 7%;
  width: min(70%, calc(var(--fh) * 1.65));
  transform: translate3d(-50%, 0, 0) scale(calc(1 + var(--o, 0) * 0.22));
  transform-origin: 50% 66%;
  filter: blur(calc(var(--o, 0) * 7px));
  will-change: transform, filter;
}
.model__car { width: 100%; }
.model__car + .model__car { position: absolute; left: 0; bottom: 0; }
/* the cabin behind it, revealed from the middle outwards */
.model__in {
  position: absolute; inset: 0;
  background: var(--slate);
  clip-path: inset(0 calc(50% - var(--o, 0) * 50%) 0 calc(50% - var(--o, 0) * 50%));
}
.model__cabin {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  scale: calc(1.14 - var(--o, 0) * 0.14);
}
/* a line of light along each opening edge, brightest half-way */
.model__seam {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: calc(min(var(--o, 0), 1 - var(--o, 0)) * 2.4);
}
.model__seam::before, .model__seam::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 18px 2px rgba(255,255,255,.5);
}
.model__seam::before { left: calc(50% - var(--o, 0) * 50%); }
.model__seam::after { right: calc(50% - var(--o, 0) * 50%); }
/* a version change crossfades with a soft blur */
.model [data-v] { transition: opacity var(--duration-very-slow) var(--ease-smooth-out), filter var(--duration-very-slow) var(--ease-smooth-out); }
.model [data-v]:not(.is-on) { opacity: 0; filter: blur(8px); pointer-events: none; }

.model__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: clamp(20px, 3.5vw, 56px);
  align-items: start;
  margin-top: clamp(14px, 2.4vh, 26px);
  padding-top: clamp(14px, 2.2vh, 22px);
  border-top: 1px solid var(--rule);
}
.model__name {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.05; letter-spacing: -0.005em;
}
.model__facts { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--bronze); }
.model__copy { display: grid; }
.model__copy p { grid-area: 1 / 1; margin: 0; max-width: 46ch; }
.model__pick { justify-self: end; }

/* Sliding switch (transitions.dev 16), in this palette. JS writes the pressed
   button's offsetLeft and offsetWidth onto the pill; CSS owns the tween. */
.t-tabs {
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-text-muted: var(--glacier);
  --tabs-text-active: var(--slate);
  --tabs-bar-bg: #dfe4e4;
  --tabs-pill-bg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 48px;
  background: var(--tabs-bar-bg);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  height: 40px;
  padding: 4px 18px;
  font: inherit; font-size: 0.9rem;
  white-space: nowrap;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 48px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.t-tab:not([aria-pressed="true"]):hover,
.t-tab[aria-pressed="true"] { color: var(--tabs-text-active); }
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 40px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  box-shadow: 0 1px 2px rgba(35,39,43,.12);
  transform: translateX(0);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .t-tabs-pill, .t-tab { transition: none !important; }
}
/* without the scroll script, or with reduced motion: the cabin simply sits under the car */
html:not(.js) .model__in { position: relative; height: var(--fh); clip-path: none; }
html:not(.js) .model__cabin { scale: 1; }

/* ================= Chauffeurs ================= */
.chauffeurs { background: var(--ice); color: var(--slate); padding: var(--section) 0; }
.chauffeurs__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
}
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list[data-sc-in] { opacity: 1; transform: none; }
.plain-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--ice-deep);
  max-width: 44ch;
}

/* ================= Services and the route chart ================= */
.services { padding: 0 0 var(--section); background: var(--snow); }
/* a scroll-craft "pin" act: the stage holds for a while and --sc-p (0 to 1 across the hold) draws the routes */
.routes__stage { display: flex; align-items: center; background: var(--snow); }
.routes__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.routes__text .h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); margin-bottom: 0.5em; max-width: 20ch; }
/* no single word left alone on the last line of a row */
.ledger dd, .plain-list li, .model__copy p { text-wrap: pretty; }
.routes__text p { margin: 0; max-width: 40ch; font-size: 0.95rem; }

.chart { margin: 0; }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: #b9c1c3; stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; }
.chart__grid text { font-family: var(--sans); font-size: 17px; letter-spacing: .04em; fill: var(--glacier); }

/* Each route draws itself while the chart holds. Without the engine
   --sc-p is unset, falls back to 1, and the chart is simply complete. */
.route {
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--t));
}
.route--zrh { --t: clamp(0, calc((var(--sc-p, 1) - 0.04) / 0.24), 1); }
.route--bsl { --t: clamp(0, calc((var(--sc-p, 1) - 0.12) / 0.26), 1); }
.route--brn { --t: clamp(0, calc((var(--sc-p, 1) - 0.20) / 0.26), 1); }
.route--lsn { --t: clamp(0, calc((var(--sc-p, 1) - 0.28) / 0.30), 1); }
.route--gva { --t: clamp(0, calc((var(--sc-p, 1) - 0.34) / 0.30), 1); }

.place circle { fill: var(--slate); }
.place text { font-family: var(--sans); font-size: 22px; font-weight: 500; fill: var(--slate); }
.place .place__code { font-size: 16px; font-weight: 400; letter-spacing: .06em; fill: var(--glacier); }
.place--dav { opacity: clamp(0, calc((var(--sc-p, 1) - 0.62) / 0.08), 1); }
.place--dav circle { fill: var(--bronze); }
.place--dav .place__ring {
  fill: none; stroke: var(--bronze); stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center;
  transform: scale(calc(0.3 + clamp(0, calc((var(--sc-p, 1) - 0.62) / 0.16), 1) * 0.7));
}
.services__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 7vw, 110px);
  align-items: start;
}
.services__note {
  margin: 0;
  padding-top: 1.15rem;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  color: var(--glacier);
}
.services__ledger[data-sc-in] { opacity: 1; transform: none; }

/* Line-drawn service marks (after outcrowd's small card graphics): one bronze
   hairline that draws itself once, as its row arrives. */
.ledger dt { display: flex; align-items: flex-start; gap: 0.6rem; }
.glyph {
  flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.12rem;
  fill: none; stroke: var(--bronze); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.glyph * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .services__ledger .glyph * {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease-smooth-out) 0.2s;
}
.js .services__ledger .ledger__row.sc-in .glyph * { stroke-dashoffset: 0; }

/* ================= Quotation ================= */
.enquire { background: var(--white); padding: var(--section) 0; }
.enquire__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.enquire__intro { position: sticky; top: 48px; }
.contact { margin-top: 2.2rem; }
.contact__item {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-bottom: 0.6em;
}
/* Placeholder styling, remove once real contact details are in */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15em; }
.contact__item {
  color: var(--slate); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--duration-fast) var(--ease-smooth-out), color var(--duration-quick) ease-out;
}
.contact__item:hover, .contact__item:focus-visible { color: var(--bronze); background-size: 100% 1px; }
.contact__wa {
  margin-top: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem; color: var(--slate); text-decoration: none;
  padding: 0.55rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px;
  transition: border-color var(--duration-fast) var(--ease-smooth-out), background-color var(--duration-fast) var(--ease-smooth-out);
}
.contact__wa::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3f8f5e; }
.contact__wa:hover { border-color: var(--slate); background: var(--snow); }

/* Photographs from the fleet shoot: framed, no captions, a little slower than the page */
.arrival { position: relative; margin: 0 0 clamp(48px, 7vw, 96px); overflow: hidden; aspect-ratio: 2.2 / 1; background: #1b1e21; }
/* 12% spare above and below, measured against the frame's height, so the parallax drift never shows an edge */
.arrival img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.arrival--small { aspect-ratio: 1.6 / 1; margin: 2rem 0 0; background: var(--rule); }
.arrival--small img { top: 0; height: 100%; transition: scale var(--duration-very-slow) var(--ease-smooth-out); }
.arrival--small:hover img { scale: 1.03; }
.services__aside { min-width: 0; }
.footer__link { text-decoration: none; }
.footer__link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.quote__set {
  border: 0; padding: 0; margin: 0 0 2.6rem; min-width: 0;
  display: flex; flex-direction: column;
  gap: 1.6rem;
}
.quote__legend {
  padding: 0;
  margin-bottom: 1.1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}
/* rows share their width between whichever fields are showing */
.quote__row { display: flex; flex-wrap: wrap; gap: 1.6rem 1.75rem; }
.quote__row > .field { flex: 1 1 9.5rem; }
/* Service and Vehicle each take a full line, so long choices such as
   "Mercedes V-Class, Face forward layout" are never cut off */
.quote__row--wide > .field { flex-basis: 100%; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field[hidden] { display: none; }
.field label { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--glacier); margin-bottom: 0.3rem; }
.field__opt { color: var(--faint); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--slate);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #878f95; /* 3.3:1 on white, so each field reads as a field */
  border-radius: 0;
  padding: 0.5rem 0 calc(0.5rem + 1px);
  width: 100%;
  -webkit-appearance: none;
          appearance: none;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
/* iPhone Safari: with appearance none, an empty date box shrinks to a thin line and its date
   is centred. Keep it one line high and left-aligned, like the other fields. */
.field input::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
.field input::-webkit-datetime-edit { display: inline-flex; }
.field input::-webkit-datetime-edit,
.field input::-webkit-datetime-edit-fields-wrapper,
.field input::-webkit-datetime-edit-year-field,
.field input::-webkit-datetime-edit-month-field,
.field input::-webkit-datetime-edit-day-field { padding-top: 0; padding-bottom: 0; }
.field select {
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b666d' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}
.field select:invalid { color: var(--faint); }
.field ::placeholder { color: var(--faint); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--glacier); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--bronze);
  padding-bottom: 0.5rem;
}
/* Error state shake (transitions.dev 12). The input owns the underline, so it is the .t-input. */
.t-input.is-error, .t-input.is-error:focus { border-bottom-color: #9a4a3c; }
.t-error-msg { margin: 0.35rem 0 0; font-size: 0.8rem; color: #9a4a3c; }
.t-input {
  transition: border-color 150ms ease-out;
  will-change: transform;
}
.t-input.is-error {
  transition: border-color var(--revert-dur, 280ms) ease-out;
}
.t-error-msg {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity    var(--revert-dur, 280ms) ease-out,
    visibility 0s linear var(--revert-dur, 280ms);
}
.t-input-wrap.is-error .t-error-msg {
  opacity: 1;
  visibility: visible;
  transition:
    opacity    var(--revert-dur, 280ms) ease-out,
    visibility 0s linear 0s;
}
.t-input.is-shaking {
  animation: t-input-shake calc(
      var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2
    ) linear;
}
@keyframes t-input-shake {
  0%      { transform: translateX(0);                                 animation-timing-function: var(--shake-ease); }
  28.57%  { transform: translateX(var(--shake-distance));             animation-timing-function: var(--shake-ease); }
  57.14%  { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57%  { transform: translateX(var(--shake-overshoot));            animation-timing-function: var(--shake-ease); }
  100%    { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .t-input { animation: none !important; transform: none !important; }
}

.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.quote__note { font-size: 0.85rem; color: var(--glacier); margin: 0; }
.quote__send {
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--slate);
  border: 0;
  border-radius: 999px; /* the same pill as the floating bar and the WhatsApp button */
  padding: 0.95rem 1.9rem;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-smooth-out), scale var(--duration-quick) var(--ease-smooth-out);
}
.quote__send:hover { background: var(--bronze); }
.quote__send:active { scale: 0.98; } /* presses on click (taste-skill) */
.quote__status { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--bronze); min-height: 1.6em; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 0.8rem; }
.quote__ready { flex-basis: 100%; color: var(--slate); }
.quote__send--small { display: inline-block; text-decoration: none; padding: 0.75rem 1.4rem; font-size: 0.92rem; }
.quote__send--quiet { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); }
.quote__send--quiet:hover { background: var(--snow); color: var(--slate); }
.quote__copy {
  flex-basis: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 0.85rem; color: var(--glacier);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule);
}
.quote__copy:hover, .quote__copy:focus-visible { color: var(--slate); text-decoration-color: currentColor; }

/* ================= Close ================= */
/* The footer waits underneath the whole page (sticky to the bottom, below the
   sheet) and is uncovered as the quotation lifts away. */
.footer {
  position: sticky;
  bottom: 0;
  z-index: -1;
  background: var(--slate);
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  padding-top: clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
}
.footer p { margin: 0 0 0.45em; max-width: 34ch; }
/* The logo in small: the same two lines as the opening wordmark (serif name, widely spaced sans beneath) */
.lockup { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: inherit; text-decoration: none; }
.lockup__main { font-family: var(--serif); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap; }
.lockup__sub { margin-top: 0.6em; font-family: var(--sans); font-weight: 300; font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.62em; padding-left: 0.62em; }
.footer__mark { color: var(--white); margin-bottom: 1.4em !important; }
.footer__mark .lockup { transition: opacity var(--duration-quick) ease-out; }
.footer__mark .lockup:hover { opacity: .75; }
/* the Questions button in the footer menu looks like the links beside it */
.footer__ask { font: inherit; color: inherit; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer nav a, .footer__ask {
  display: block; width: fit-content; text-decoration: none; line-height: 1.95;
  /* the underline draws in from the left on hover (taste-skill) */
  background: linear-gradient(currentColor, currentColor) 0 88% / 0 1px no-repeat;
  transition: background-size var(--duration-fast) var(--ease-smooth-out), color var(--duration-quick) ease-out;
}
.footer nav a:hover, .footer nav a:focus-visible, .footer__ask:hover, .footer__ask:focus-visible { color: var(--white); background-size: 100% 1px; }
.footer__note { color: rgba(255,255,255,.5); font-size: 0.82rem; margin-top: 0.8em !important; }
.footer__legal { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.footer__legal:hover { color: var(--white); text-decoration-color: currentColor; }
.quote__note a { color: inherit; text-underline-offset: 3px; }

/* ================= Legal page ================= */
.legal-page { background: var(--snow); }
.legal-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: clamp(20px, 4vw, 36px);
  border-bottom: 1px solid var(--rule);
}
.legal-top .lockup { text-decoration: none; }
.legal-top a { text-underline-offset: 3px; }
.legal { padding-block: clamp(48px, 8vw, 104px) var(--section); max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; margin: 0 0 0.4em; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.4em 0 0.6em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.legal h3 { font-size: 1rem; font-weight: 500; color: var(--bronze); margin: 1.8em 0 0.4em; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35em; }
.legal .lead { color: var(--glacier); }
.legal dl { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0 0 1.2em; }
.legal dt { color: var(--glacier); }
.legal dd { margin: 0; }
.footer--plain { position: relative; z-index: auto; bottom: auto; padding-bottom: clamp(48px, 7vw, 88px); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0.1rem; } .legal dd { margin-bottom: 0.7rem; } }

/* The page ends on the name, cut by the bottom edge, coming into focus. */
.closing {
  margin: clamp(48px, 7vw, 96px) 0 0;
  max-width: none;
  font-family: var(--serif);
  font-size: 28.6vw;
  line-height: 0.62;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: #333a40;
  user-select: none;
  transform: translate3d(0, 0.3em, 0);
}
.js .closing {
  opacity: 0;
  filter: blur(16px);
  transform: translate3d(0, 0.44em, 0) scale(1.04);
  transition: opacity 1.4s ease, transform 1.9s var(--ease), filter 1.9s var(--ease);
}
.js .closing.is-in { opacity: 1; filter: blur(0); transform: translate3d(0, 0.3em, 0); }

/* ================= Floating contents ================= */
.folio {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 30;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  /* hidden also means out of the Tab order, once it has faded */
  visibility: hidden;
  transition: opacity .45s ease, transform .55s var(--ease), visibility 0s linear .55s;
}
.folio.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; visibility: visible; transition: opacity .45s ease, transform .55s var(--ease), visibility 0s; }
html:not(.js) .folio { display: none; }
.folio__bar {
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  color: var(--white);
  font-size: 0.88rem;
  background: rgba(35,39,43,.8);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
}
.folio__toggle {
  display: flex; align-items: center; gap: 0.65rem;
  font: inherit; color: inherit;
  background: none; border: 0;
  padding: 0.5rem 0.95rem 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.folio__toggle:hover { background: rgba(255,255,255,.08); }
.folio__icon { width: 14px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s var(--ease); }
.folio__toggle[aria-expanded="true"] .folio__icon { transform: scaleY(0.2); }
.folio__label { min-width: 6.4em; text-align: left; }
.folio__cta {
  color: var(--slate);
  background: var(--snow);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.folio__cta:hover { background: var(--white); }
.folio.at-quote .folio__cta { display: none; }
.folio.at-quote .folio__label { min-width: 0; }
.folio__menu {
  position: absolute;
  left: 0; bottom: calc(100% + 8px);
  min-width: 13rem;
  display: flex; flex-direction: column;
  padding: 8px;
  background: rgba(35,39,43,.92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
}
/* Menu dropdown (transitions.dev 05): grows from the pill's bottom-left corner. */
.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
.t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
.t-dropdown[data-origin="bottom-left"]   { transform-origin: bottom left; }
.t-dropdown[data-origin="bottom-center"] { transform-origin: bottom center; }
.t-dropdown[data-origin="bottom-right"]  { transform-origin: bottom right; }
.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity   var(--dropdown-close-dur) var(--dropdown-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
}
.folio__menu a, .folio__ask { color: var(--white); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 10px; font-size: 0.92rem; }
.folio__menu a:hover, .folio__menu a[aria-current="true"], .folio__ask:hover { background: rgba(255,255,255,.1); }
/* on phones the Questions button moves into this menu, below a hairline */
.folio__ask {
  display: none;
  font: inherit; font-size: 0.92rem; text-align: left;
  background: none; border: 0; cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 -1px 0 rgba(255,255,255,.14);
  border-radius: 0 0 10px 10px;
}
.folio__cta-short { display: none; }

/* ================= Questions (corner) ================= */
.ask {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 20;
  font: inherit;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(35,39,43,.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s ease, visibility 0s, background-color .2s ease;
}
.is-loaded .ask { opacity: 1; }
/* kept off the opening screen, where the hero's own lines sit in that corner, and
   out of the way of the quotation button and the closing name (script.js sets float-off) */
.is-loaded.on-cover .ask, .is-loaded.float-off .ask { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s, background-color .2s ease; }
html:not(.js) .ask, html:not(.js) .footer__ask { display: none; }
.ask:hover { background: rgba(35,39,43,.92); }

.faq {
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  width: min(480px, 100%);
  max-width: 100%;
  border: 0;
  padding: 0;
  background: var(--snow);
  color: var(--slate);
  box-shadow: -24px 0 60px rgba(35,39,43,.18);
}
.faq::backdrop { background: rgba(197,212,220,.6); } /* pale ice, not a dark curtain */
.faq[open] { animation: sheet-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }

.faq__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px 28px 16px;
  background: var(--snow);
  border-bottom: 1px solid var(--rule);
}
.faq__title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0; }
.faq__close {
  font: inherit; font-size: 0.9rem;
  background: none; border: 0; padding: 4px 0;
  color: var(--slate); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.faq__body { padding: 8px 28px 48px; font-size: 0.95rem; }
.faq__group {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bronze);
  margin: 2rem 0 0.25rem;
}
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.75rem 0.85rem 0;
  position: relative;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
/* plus that becomes a minus: the upright bar folds flat as the answer opens */
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute; right: 2px; top: 1.3rem;
  width: 11px; height: 1px;
  background: var(--glacier);
}
.faq summary::after {
  transform: rotate(90deg);
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.faq .t-acc[data-open="true"] summary::after,
html:not(.js) .faq details[open] summary::after { transform: rotate(0deg); }

/* Accordion expand (transitions.dev 21), on the native <details> so the
   page still works without script. */
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
html:not(.js) .t-acc-panel { grid-template-rows: 1fr; }
html:not(.js) .t-acc-panel-inner { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .t-acc-panel, .t-acc-panel-inner, .faq summary::after {
    transition: none !important;
  }
}
.faq details p { margin: 0 0 1rem; color: #3d4348; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .hero__car { width: 80vw; bottom: 12svh; }
  .wordmark { top: 17svh; }
}
@media (max-width: 860px) {
  .wef__grid, .services__body, .enquire__grid, .chauffeurs__grid, .routes__grid { grid-template-columns: 1fr; }
  .wef__intro, .enquire__intro { position: static; }
  .ledger__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .statement { text-indent: 10%; }
  /* fleet: a smaller frame, the name and switch stacked over the text */
  .fleet__head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .model__stage { --fh: min(80vw, 44svh); padding: 20px 0 96px; }
  .model__cars { width: min(90%, calc(var(--fh) * 1.65)); bottom: 8%; }
  .model__info { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .model__pick { justify-self: start; }
  .model__copy p { font-size: 0.95rem; }
  .routes__grid { gap: 18px; }
  .routes__text .h2 { font-size: clamp(1.8rem, 7.4vw, 2.6rem); margin-bottom: 0.35em; }
  .routes__text p { font-size: 0.95rem; }
}
@media (max-width: 640px) {
  /* the chart is drawn in its own units, so its type and strokes scale up on phones */
  .chart { margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .chart__grid text { font-size: 24px; }
  .chart__grid line { stroke-width: 2.5; stroke-dasharray: 1 12; }
  .route { stroke-width: 4; }
  .place text { font-size: 30px; }
  .place .place__code { display: none; }
  .place--dav .place__code { display: inline; font-size: 22px; transform: translateY(14px); }
  .place--dav .place__ring { stroke-width: 2.5; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* hero: place and time on one line, the menu on the next; the name on two lines */
  .hero__top { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .hero__time { grid-column: 2; grid-row: 1; }
  .hero__nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .hero__nav a { font-size: 0.85rem; padding: 12px 0; }
  .wordmark { top: 21svh; }
  .wordmark__main { font-size: 14.4vw; line-height: 0.95; }
  .wordmark__main > span { display: block; }
  .wordmark__sub { letter-spacing: 0.5em; padding-left: 0.5em; }
  .hero { --horizon: 64%; }
  .hero__car { width: 94vw; bottom: 19svh; }
  .hero__foot { bottom: 28px; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__cue { display: none; }
  .hero__num { font-size: 2.2rem; }
  .hero__line { font-size: 0.8rem; }
  .statement { font-size: 8.2vw; max-width: none; }
  /* phones: one bar (menu and a short quotation button); Questions moves into the menu */
  .folio { left: 16px; transform: translateY(18px); }
  .folio.is-on { transform: none; }
  .folio__cta-long { display: none; }
  .folio__cta-short { display: inline; }
  .folio__label { min-width: 0; }
  .folio__ask { display: block; }
  .ask { display: none; }
  .footer__cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .hero__sky, .wordmark, .hero__foot, .hero__statement { transform: none; filter: none; }
  .hero__car { transform: translateX(-50%); }
  .hero__statement { top: 42%; }
  .statement .w { opacity: 1 !important; }
  /* each car stands with its cabin beneath it, the chart is a still picture */
  .js .model__run { height: auto; }
  .model__stage { position: static; min-height: 0; padding-block: clamp(32px, 6vw, 64px); }
  .model__in { position: relative; height: var(--fh); clip-path: none; }
  .model__cabin { scale: 1; }
  .model__cars { transform: translateX(-50%); filter: none; }
  .model__seam { display: none; }
  .routes__stage { position: static; height: auto; overflow: visible; padding-block: var(--section); }
  .routes { height: auto !important; }
  .route { stroke-dashoffset: 0; }
  .place--dav { opacity: 1; }
  .place--dav .place__ring { transform: none; }
  .js .closing { filter: none; transform: translate3d(0, 0.3em, 0); }
  .stack { transform: none; }
}

/* phones: one field per line, so a chosen vehicle or a long email address shows in full */
@media (max-width: 560px) { .quote__row > .field { flex-basis: 100%; } }
