/* ==========================================================================
   Sunce Rent - Individual Long-Term Mobility
   Stylesheet
   --------------------------------------------------------------------------
   1.  Fonts (self-hosted, GDPR friendly)
   2.  Design tokens - light and dark theme
   3.  Reset and base
   4.  Layout primitives
   5.  Typography
   6.  Buttons
   7.  Header - floating, translucent, theme and language switch
   8.  Hero with background slider
   9.  Section: how it works
   10. Section: long-term mobility
   11. Section: contact band (fixed background)
   12. Section: request form
   13. Footer
   14. Legal pages
   15. Animation
   16. Responsive adjustments
   ========================================================================== */

/* 1. Fonts ================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Design tokens ========================================================= */

:root {
  /* Brand constants - identical in both themes */
  --navy:        #041C52;
  --navy-deep:   #02123A;
  --navy-soft:   #1A3372;
  --gold:        #F9BB00;
  --gold-light:  #FFD75E;
  --gold-deep:   #A97C00;

  /* Semantic colours - light theme */
  --bg:          #FFFFFF;
  --bg-alt:      #F6F7FA;
  --surface:     #F3F6FB;
  --heading:     #041C52;
  --text:        #3B4356;
  --muted:       #6C7488;
  --line:        #E3E6EE;
  --line-soft:   #EDEFF5;
  --field-bg:    #FFFFFF;
  --placeholder: #9AA2B4;

  --header-bg:   rgba(255, 255, 255, .82);
  --header-brd:  rgba(4, 28, 82, .08);

  /*
   * Hero veil. The left half, where the text sits, is painted in the page
   * colour and fades out across the middle so the right half shows the
   * photograph untouched. Only this veil changes with the theme.
   */
  /* The hero veil is mixed from one colour, so its ramp is written once */
  --hero-rgb:    255, 255, 255;
  /* Weak on purpose: in light mode this fade sits over the photograph and a
     strong white one washed the picture out along the bottom edge. */
  --hero-foot:   rgba(255, 255, 255, .35);
  --hero-base:   #FFFFFF;

  /* Text on the veil */
  --hero-text:      #041C52;
  /* Darkened from #4A5470: the facts line reaches into the fade, where the
     lighter tone fell just under the 4.5:1 contrast floor. */
  --hero-text-soft: #3C4459;
  --hero-line:      rgba(4, 28, 82, .16);

  --error:       #B4232A;
  --error-bg:    #FDF4F4;
  --success:     #16714C;
  --success-bg:  #F2F9F6;

  /* Rhythm */
  --gutter:      clamp(1.125rem, 4vw, 2.5rem);
  --measure:     78rem;
  --section-y:   clamp(4.5rem, 9vw, 8.5rem);
  --header-h:    4.75rem;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur:         .45s;

  --shadow-sm:   0 4px 14px -8px rgba(4, 28, 82, .3);
  --shadow-nav:  0 14px 40px -26px rgba(4, 28, 82, .55);
  --shadow-btn:  0 12px 26px -14px rgba(4, 28, 82, .6);
  --shadow-card: 0 22px 48px -32px rgba(4, 28, 82, .45);
}

/*
 * Dark theme. Applied through data-theme="dark" on <html>, which main.js
 * sets from the stored preference or the operating system setting.
 */
:root[data-theme='dark'] {
  --bg:          #080D1E;
  --bg-alt:      #0D1428;
  --surface:     #111A33;
  --heading:     #FFFFFF;
  --text:        #BFC7D9;
  --muted:       #8F98AE;
  --line:        #1F2A45;
  --line-soft:   #18223B;
  --field-bg:    #0D1428;
  --placeholder: #6B748C;

  --header-bg:   rgba(10, 16, 36, .8);
  --header-brd:  rgba(255, 255, 255, .1);

  --hero-rgb:    5, 9, 20;
  --hero-foot:   rgba(5, 9, 20, .8);
  --hero-base:   #050914;

  --hero-text:      #FFFFFF;
  --hero-text-soft: rgba(255, 255, 255, .74);
  --hero-line:      rgba(255, 255, 255, .2);

  --error:       #FF8A90;
  --error-bg:    #2A1216;
  --success:     #5FD6A8;
  --success-bg:  #0E241C;

  --shadow-nav:  0 16px 44px -26px rgba(0, 0, 0, .9);
  --shadow-card: 0 24px 52px -30px rgba(0, 0, 0, .8);
}

/* 3. Reset and base ======================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--navy); }

.skip-link {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 300;
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Layout primitives ===================================================== */

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 5.5vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  display: block;
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule-gold {
  width: 48px; height: 3px;
  margin: 1.5rem auto 0;
  background: var(--gold);
  border: 0;
  border-radius: 2px;
  transform: scaleX(.35);
  transform-origin: center;
  transition: transform .8s var(--ease-out) .15s;
}
.rule-gold--left { margin-inline: 0; transform-origin: left; }
.is-visible .rule-gold { transform: scaleX(1); }

/* 5. Typography ============================================================ */

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.display__soft {
  display: block;
  margin-top: .18em;
  font-size: .58em;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
.h3 { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); letter-spacing: -.012em; }

.lead {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  text-wrap: pretty;
}

p { margin: 0 0 1.25rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* 6. Buttons =============================================================== */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 4px;
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover {
  --btn-bg: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.btn:active { transform: translateY(0); }

/* In dark mode the filled button turns gold. Outline buttons keep their
   own look, so they are excluded here. */
:root[data-theme='dark'] .btn:not(.btn--ghost) { --btn-bg: var(--gold); --btn-fg: var(--navy); }
:root[data-theme='dark'] .btn:not(.btn--ghost):hover { --btn-bg: var(--gold-light); }

.btn__arrow {
  width: 1em; height: 1em;
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--sm { padding: .625rem 1.125rem; font-size: .6875rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--heading);
  border-color: var(--line);
}
.btn--ghost:hover {
  --btn-bg: var(--heading);
  --btn-fg: var(--bg);
  border-color: var(--heading);
}

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* 7. Header ================================================================ */

/*
 * The header floats over the page. Above the hero it is fully transparent;
 * as soon as the page scrolls it becomes a detached translucent bar.
 * main.js toggles .is-stuck.
 */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 var(--gutter);
  transition: padding .4s var(--ease);
}
.header.is-stuck { padding-top: .625rem; }

.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--measure);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(.75rem, 1.6vw, 1.125rem) clamp(.75rem, 2vw, 1.5rem);
  /*
   * Even at the top the bar keeps a light plate. Fully transparent made the
   * links hard to pick out against the photograph.
   */
  background: var(--header-bg);
  border: 1px solid var(--header-brd);
  border-radius: 10px;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
    box-shadow .4s var(--ease), min-height .4s var(--ease);
}
.header.is-stuck .header__bar {
  min-height: 4rem;
  background: var(--header-bg);
  border-color: var(--header-brd);
  box-shadow: var(--shadow-nav);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

/* Reading progress along the bottom edge of the floating bar */
.header__progress {
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.header.is-stuck .header__progress { opacity: 1; }

/*
 * Logo. The supplied JPEG was navy artwork on a white rectangle, which left
 * an obvious white plate on the bar. The two PNGs used here are cut out of
 * that file with a transparent background:
 *   sunce-rent-logo.png        original colours, for light backgrounds
 *   sunce-rent-logo-light.png  navy parts recoloured white, for dark ones
 */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 4px;
}

.brand__crop {
  --logo-h: clamp(30px, 3.1vw, 38px);
  display: block;
  height: var(--logo-h);
  transition: height .4s var(--ease);
}
.brand__crop img {
  width: auto;
  height: 100%;
}

/*
 * The bar always carries a plate in the page colour, so the logo variant
 * depends on the theme alone.
 */
.brand__on-light { display: block; }
.brand__on-dark  { display: none; }

:root[data-theme='dark'] .brand__on-light { display: none; }
:root[data-theme='dark'] .brand__on-dark  { display: block; }

/*
 * The nav fills the space next to the logo. margin-inline:auto on the list
 * makes it absorb the free space on both sides, which centres the links
 * while the tools and the call to action stay on the right.
 */
.nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: clamp(.75rem, 1.6vw, 1.5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.1vw, 1.125rem);
  /* auto side margins centre the links between the logo and the controls */
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/*
 * With room to spare the right margin is pinned and only the left one absorbs
 * the slack, which carries the links over toward the controls. Below this the
 * bar is too full for that: the shift would only push them into the logo, so
 * they stay centred.
 */
@media (min-width: 74rem) {
  .nav__list { margin-right: clamp(2rem, 5vw, 5.5rem); }
}

.nav__link {
  position: relative;
  display: block;
  padding: .5rem .125rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--hero-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.header.is-stuck .nav__link { color: var(--heading); }

.nav__link span { position: relative; display: inline-block; }
.nav__link span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -.3125rem;
  width: 100%; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .38s var(--ease);
}
.nav__link:hover span::after,
.nav__link[aria-current='true'] span::after { transform: scaleX(1); }
.nav__link[aria-current='true'] { font-weight: 600; }

.nav__rule {
  width: 1px; height: 1.375rem;
  background: var(--line);
  transition: background-color .4s var(--ease);
}
.header.is-stuck .nav__rule { background: var(--line); }

/* --- Tools: theme and language ----------------------------------------- */

.nav__tools { display: flex; align-items: center; gap: .375rem; }

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 .5rem;
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
    color .3s var(--ease), transform .3s var(--ease);
}
.tool:hover { transform: translateY(-1px); background: var(--bg-alt); }

.header.is-stuck .tool {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}
.header.is-stuck .tool:hover { background: var(--bg-alt); }

.tool svg { width: 1.0625rem; height: 1.0625rem; }

/* Only one icon is shown, depending on the active theme */
.tool__moon { display: none; }
:root[data-theme='dark'] .tool__sun  { display: none; }
:root[data-theme='dark'] .tool__moon { display: block; }

.lang { padding: 0 .625rem; letter-spacing: .06em; }

/* The switch that lives inside the menu; the bar carries its own on wide screens */
.nav__theme {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--heading);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}
.nav__theme-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.nav__theme svg { width: 1.0625rem; height: 1.0625rem; }

/*
 * Call button. A tel: link, so it opens the dialler on a phone and hands the
 * number to the desktop's calling app. The number is spelled out where the bar
 * has room; on a tighter bar the handset alone carries it, and the accessible
 * name keeps the number either way.
 */
.tool--call {
  padding: 0 .5rem;
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.tool--call svg { width: 1.0625rem; height: 1.0625rem; }
.tool--call:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
/* The bar plate rules below would otherwise strip the fill back off */
.header .tool--call,
.header.is-stuck .tool--call { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/*
 * Calling is the primary action on the bar, so it takes the button. Requesting
 * a vehicle sits with the other links instead.
 *
 * Wide bars carry the button with the number spelled out; once the menu
 * collapses there is no room for it, and the handset beside the switches takes
 * over so calling stays one tap away without opening the menu.
 */
.nav__cta-bar { display: none; flex: none; letter-spacing: .04em; }
.btn__phone { width: 1.05em; height: 1.05em; flex: none; }

@media (min-width: 62.0625rem) {
  .nav__cta-bar { display: inline-flex; }
  .tool--call { display: none; }
}
.lang b { font-weight: 700; }
.lang i { font-style: normal; opacity: .45; }

/* --- Burger ------------------------------------------------------------- */

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--heading);
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
    color .3s var(--ease);
}
.nav__bars { display: block; width: 20px; }
.nav__bars span {
  display: block;
  width: 100%; height: 2px;
  margin: 4.5px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform .32s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded='true'] .nav__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] .nav__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__contact { display: none; }

/* 8. Hero ================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  /*
   * The hero is the landing screen, so it fills the viewport on every device.
   * min-height rather than height: on a short landscape window the copy may
   * still push it taller instead of being clipped.
   */
  min-height: 100vh;   /* fallback where svh is unsupported */
  min-height: 100svh;
  /* Top padding clears the floating header so nothing is cut off */
  padding-block: calc(var(--header-h) + clamp(1.5rem, 5vw, 4.5rem))
                 clamp(4.5rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--hero-base);
  isolation: isolate;
  transition: background-color .35s var(--ease);
}

/* --- Background slider -------------------------------------------------- */

.hero__slides { position: absolute; inset: 0; z-index: -2; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; }

/*
 * The three photographs have very different shapes: forest is 2:3 portrait,
 * mercedes 4:5, toyota 3:2 landscape. A single object-position framed only
 * one of them well, so each slide carries its own.
 *
 * On a landscape viewport the crop is vertical, so only the Y value applies;
 * on a portrait phone it is horizontal and only X applies. Setting both means
 * one declaration per photograph covers every screen.
 */
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 55%);
}
.hero__slide--forest   { --focus-x: 62%; --focus-y: 46%; }
.hero__slide--mercedes { --focus-x: 52%; --focus-y: 60%; }
.hero__slide--toyota   { --focus-x: 50%; --focus-y: 55%; }

/*
 * On a wide screen every one of these photographs is taller than the frame,
 * so the crop is vertical and object-position cannot pan sideways. The slide
 * box is shifted bodily to the right instead, which moves the car clear of the
 * copy without resizing it: equal values on both sides keep the box the same
 * width, so the picture is only translated, never scaled up.
 *
 * The strip this exposes on the left sits under the solid part of the veil and
 * is painted in the hero's own colour, so no seam shows.
 */
@media (min-width: 62rem) {
  /*
   * How far each one moves depends on how wide its car sits in the frame.
   * The mercedes fills most of its picture, so the same shift that frames the
   * other two pushes its bodywork off the right edge and it reads as oversized.
   */
  .hero__slide { left: var(--pan, 14vw); right: calc(0px - var(--pan, 14vw)); }
  .hero__slide--mercedes { --pan: 4vw; }
}

/* Slow zoom only on the visible slide */
.hero__slide.is-active img { animation: heroZoom 12s linear forwards; }

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /*
     * Covers the copy column and then clears, so the right of the frame keeps
     * the photograph at full strength instead of being washed out.
     */
    /*
     * Eight stops tracing a smoothstep curve rather than three tracing a
     * straight line. A linear ramp between two alphas is read by the eye as a
     * band with an edge on it; easing the ends into the flat parts is what
     * makes this register as the picture fading out instead of stopping.
     */
    linear-gradient(97deg,
      rgba(var(--hero-rgb), .985)   0%,
      rgba(var(--hero-rgb), .985)  30%,
      rgba(var(--hero-rgb), .925)  37%,
      rgba(var(--hero-rgb), .772)  44%,
      rgba(var(--hero-rgb), .566)  51%,
      rgba(var(--hero-rgb), .347)  58%,
      rgba(var(--hero-rgb), .154)  64%,
      rgba(var(--hero-rgb), .039)  70%,
      rgba(var(--hero-rgb), 0)     76%),
    /* Blend into the section below. Kept short: any longer and it lies across
       the picture rather than just the seam at the bottom edge. */
    linear-gradient(to bottom, transparent 88%, var(--hero-foot) 100%);
  transition: background-image .35s var(--ease);
}

/*
 * Portrait screens, phone through tablet.
 *
 * The veil above is a side gradient built for a landscape frame with the copy
 * in its left third. On a portrait screen the copy spans the full width and
 * that gradient left a hard vertical seam down the photograph, so the veil
 * runs top to bottom instead.
 *
 * A portrait viewport is also taller than any of the photographs, so the crop
 * is horizontal and the car always lands in the middle band. Centred copy sat
 * straight on top of it; anchoring the copy under the header and clearing the
 * veil below leaves the car in the open.
 *
 * Both conditions are needed. The shape decides which veil reads correctly, so
 * a phone held sideways keeps the landscape one; the width keeps a tall desktop
 * window on the landscape treatment, since above this breakpoint the copy still
 * sits in its own column and the side gradient is the one built for it.
 */

/* --- Slide indicators --------------------------------------------------- */

.hero__dots {
  position: absolute;
  left: 50%; bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .625rem;
  margin: 0; padding: 0;
  list-style: none;
}
/*
 * Each marker is a 3px button, but as an inline child it sat in a text line
 * box that made the list 29px tall. On a short screen that invisible height
 * reached up over the facts line.
 */
.hero__dots li { display: flex; }
.hero__dot {
  width: 34px; height: 3px;
  padding: 0;
  background: var(--hero-line);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.hero__dot:hover { background: var(--hero-text-soft); }
.hero__dot[aria-selected='true'] { background: var(--gold); transform: scaleY(1.6); }

/* --- Hero content ------------------------------------------------------- */

.hero__grid { width: 100%; }
.hero__copy { max-width: 40rem; }

.hero .display { color: var(--hero-text); }
.hero .display__soft { color: var(--hero-text-soft); }

.hero .lead {
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 34rem;
  color: var(--hero-text-soft);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin: 0 0 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hero-text-soft);
}
.hero__kicker::before {
  content: '';
  width: 40px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .875rem 1.25rem;
  margin-top: clamp(1.75rem, 3.4vw, 2.75rem);
}

.hero .btn:not(.btn--ghost) {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  border-color: var(--gold);
}
.hero .btn:not(.btn--ghost):hover { --btn-bg: var(--gold-light); border-color: var(--gold-light); }
.hero .btn--ghost { --btn-fg: var(--hero-text); border-color: var(--hero-line); }
.hero .btn--ghost:hover {
  --btn-bg: var(--hero-text);
  --btn-fg: var(--hero-base);
  border-color: var(--hero-text);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.375rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--hero-line);
  list-style: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hero-text-soft);
}
.hero__meta li { display: flex; align-items: center; gap: .625rem; }
.hero__meta li::before {
  content: '';
  width: 5px; height: 5px;
  flex: none;
  background: var(--gold);
  border-radius: 50%;
}

/* Staggered entrance */
.hero__copy > * { animation: heroIn .9s var(--ease-out) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .16s; }
.hero__copy > :nth-child(3) { animation-delay: .27s; }
.hero__copy > :nth-child(4) { animation-delay: .38s; }
.hero__copy > :nth-child(5) { animation-delay: .49s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* 9. Section: how it works ================================================= */

/*
 * The four stages read as one journey: a dashed trail bends between medallions
 * that alternate high and low along it.
 *
 * The trail is one SVG stretched across the grid with preserveAspectRatio
 * disabled, so viewBox y=0 lands on the raised medallions and y=100 on the
 * dropped ones whatever the width. That keeps the bends under the circles
 * without hard-coding a single pixel position.
 */
.steps-flow {
  --medallion: clamp(4.25rem, 6.5vw, 5.75rem);
  --step-drop: clamp(2.25rem, 4.5vw, 4rem);
  position: relative;
}

.steps__path {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--medallion) / 2);
  width: 100%;
  height: var(--step-drop);
  z-index: 0;
  overflow: visible;
}
.steps__path path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
  vector-effect: non-scaling-stroke;
  opacity: .6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0; padding: 0;
  list-style: none;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
/* Every second stage rides the low point of the trail */
.step:nth-child(even) { margin-top: var(--step-drop); }

.step__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--medallion);
  height: var(--medallion);
  margin: 0 auto clamp(1.25rem, 2vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  /* A ring in the page colour, so the trail passes behind rather than across */
  box-shadow: 0 0 0 .5rem var(--bg);
  transition: transform .45s var(--ease), border-color .45s var(--ease),
    background-color .45s var(--ease);
}
.step:hover .step__badge {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.step__icon {
  width: 45%; height: 45%;
  color: var(--gold-deep);
  transition: color .4s var(--ease);
}
:root[data-theme='dark'] .step__icon { color: var(--gold); }

.step__num {
  position: absolute;
  left: 50%; bottom: -.5rem;
  transform: translateX(-50%);
  padding: .1875rem .5rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.step h3 { margin-bottom: .5rem; text-wrap: pretty; }

.step p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 10. Section: long-term mobility ========================================== */

.planbar {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.planbar__aside .lead { margin-top: 1.5rem; color: var(--muted); }
.planbar__aside .facts { margin-top: clamp(1.5rem, 2.8vw, 2rem); }
.planbar__aside .btn { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

.facts { margin: 0; padding: 0; list-style: none; }

.facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(1.125rem, 2.2vw, 1.625rem);
  border-top: 1px solid var(--line);
  font-size: clamp(.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.6;
  color: var(--heading);
  transition: padding-left .4s var(--ease);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li:hover { padding-left: .5rem; }

.facts__mark {
  width: 1.375rem; height: 1.375rem;
  margin-top: .1875rem;
  flex: none;
  color: var(--gold);
}

/* Image with an offset gold frame */
.shot { position: relative; }
.shot--delayed { --reveal-delay: 140ms; }

.shot__frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}
.shot__frame img {
  width: 100%;
  /* height:auto is required, otherwise the HTML height attribute wins
     and aspect-ratio has no effect */
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
}
.shot:hover .shot__frame img { transform: scale(1.07); }

.shot::before {
  content: '';
  position: absolute;
  left: -16px; bottom: -16px;
  width: 46%; height: 56%;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 0 4px;
  z-index: 0;
}

.shot__badge {
  position: absolute;
  z-index: 2;
  right: -.75rem;
  top: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  padding: .875rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 40px -22px rgba(4, 28, 82, .85);
}
:root[data-theme='dark'] .shot__badge { background: var(--gold); color: var(--navy); }

.shot__badge b {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.shot__badge span {
  display: block;
  margin-top: .125rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
}

/* 11. Section: contact band ================================================ */

/*
 * The background stays still while the page scrolls. background-attachment
 * fixed does that without any JavaScript. Mobile browsers, iOS in
 * particular, handle it badly, so it falls back further down.
 */
.band {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background-color: var(--navy-deep);
  background-image: url('../img/avenue-2000.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
  isolation: isolate;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Lightened from .9/.84, which buried the photograph almost completely */
  background: linear-gradient(180deg, rgba(2,18,58,.74) 0%, rgba(4,28,82,.68) 100%);
}

.band__inner { max-width: 44rem; margin-inline: auto; }
.band h2 { color: #fff; }

.band p {
  margin: 1.25rem 0 0;
  font-size: clamp(.9375rem, 1.35vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
}

.band__phone {
  display: inline-block;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: clamp(1.375rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.band__phone:hover { color: var(--gold); border-bottom-color: var(--gold); }

.band__actions { margin-top: clamp(1.5rem, 3vw, 2rem); }
.band .btn { --btn-bg: var(--gold); --btn-fg: var(--navy); border-color: var(--gold); }
.band .btn:hover { --btn-bg: #fff; border-color: #fff; }

/* 12. Section: request form ================================================ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: start;
}

.fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.fieldset__legend {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--heading);
}

.field { margin-bottom: 1.375rem; }
.field:last-child { margin-bottom: 0; }

.field > label {
  display: block;
  margin-bottom: .4375rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}
.req { color: var(--gold-deep); }
:root[data-theme='dark'] .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8125rem 1rem;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  font-size: .9375rem;
  color: var(--heading);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
    background-color .25s var(--ease);
}
.field textarea { min-height: 11rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(249, 187, 0, .2);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 42, .12);
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236C7488' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.field--unit { position: relative; }
.field--unit input { padding-right: 2.25rem; }
.field--unit .unit {
  position: absolute;
  right: 1rem; bottom: .8125rem;
  font-size: .9375rem;
  color: var(--muted);
  pointer-events: none;
}

.field__error {
  display: none;
  margin-top: .375rem;
  font-size: .8125rem;
  color: var(--error);
}
.field__error.is-shown { display: block; }
.field__error--center { text-align: center; }

/* Honeypot: hidden from people, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .75rem;
  max-width: 44rem;
  margin: 0 auto;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.125rem; height: 1.125rem;
  margin: .1875rem 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent a { color: var(--heading); text-underline-offset: 3px; }

.form-foot .btn { margin-top: 1.5rem; min-width: 15rem; }

.form-note { margin: 1.125rem 0 0; font-size: .8125rem; color: var(--muted); }

.form-status {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 5px;
  font-size: .9375rem;
  line-height: 1.6;
  text-align: left;
}
.form-status[hidden] { display: none; }
.form-status--ok    { border-left-color: var(--success); color: var(--success); background: var(--success-bg); }
.form-status--error { border-left-color: var(--error);   color: var(--error);   background: var(--error-bg); }

/* 13. Footer =============================================================== */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
}
:root[data-theme='dark'] .footer { background: #05091A; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 3.5vw, 3rem);
}

.footer__swoosh { width: 92px; height: auto; margin-bottom: 1.25rem; color: var(--gold); }

.footer__logo {
  margin: 0 0 1rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  color: #fff;
}
.footer__logo span { color: var(--gold); }

.footer__tagline { margin: 0; max-width: 26ch; line-height: 1.65; }

.footer h2 {
  margin: 0 0 1.125rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: .625rem; }

.footer a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.footer a:hover { color: var(--gold); }
.footer a:focus-visible { outline-color: var(--gold); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .55);
}
.footer__bar nav { display: flex; gap: 1.5rem; }

/* 14. Legal pages ========================================================== */

.legal { padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) var(--section-y); }
.legal__inner { max-width: 46rem; margin-inline: auto; }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.legal__back:hover { color: var(--heading); gap: .75rem; }
.legal__back svg { width: .875em; height: .875em; }

.legal h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.legal h1 + .rule-gold { margin-bottom: clamp(2rem, 4.5vw, 3rem); transform: scaleX(1); }

.legal h2 { margin: clamp(2.25rem, 4.5vw, 3rem) 0 .875rem; font-size: clamp(1.1875rem, 2vw, 1.5rem); }
.legal h3 { margin: 1.75rem 0 .625rem; font-size: 1.0625rem; font-weight: 600; }

.legal ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal li::marker { color: var(--gold-deep); }
:root[data-theme='dark'] .legal li::marker { color: var(--gold); }

.legal address { margin: 0 0 1.25rem; font-style: normal; line-height: 1.8; }
.legal a { color: var(--heading); text-underline-offset: 3px; }

.legal__note {
  margin-top: clamp(2rem, 4.5vw, 3rem);
  padding: 1.25rem 1.375rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 5px 5px 0;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* 15. Animation ============================================================ */

/*
 * Scroll reveal. main.js adds .is-visible once an element enters the
 * viewport. Variants slide in from a side or scale up slightly.
 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal--left  { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--zoom  { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/*
 * Word by word headings. main.js wraps each word of a [data-split] element
 * in a span and numbers it, so the words can come in one after another.
 */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.is-visible .word { opacity: 1; transform: none; }

/* Children appear one after another */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > :nth-child(1) { transition-delay: .04s; }
.stagger.is-visible > :nth-child(2) { transition-delay: .13s; }
.stagger.is-visible > :nth-child(3) { transition-delay: .22s; }
.stagger.is-visible > :nth-child(4) { transition-delay: .31s; }
.stagger.is-visible > :nth-child(5) { transition-delay: .40s; }

/* 16. Responsive =========================================================== */

/* --- Small laptops and iPad landscape ---------------------------------- */
@media (max-width: 75rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field textarea { min-height: 9rem; }
}

@media (max-width: 68rem) {
  /*
   * Two columns: the trail cannot bend across a wrap, so it gives way to the
   * medallions alone and the stages sit level with each other.
   */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(2rem, 4vw, 3rem); }
  .steps__path { display: none; }
  .step:nth-child(even) { margin-top: 0; }
}

/* --- iPad portrait and below: burger menu ------------------------------ */
@media (max-width: 62rem) {
  .nav__toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h) - 2rem);
    padding: .75rem 1.25rem 1.5rem;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-nav);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; margin-inline: 0; }

  .nav__link,
  .header.is-stuck .nav__link {
    padding: 1rem 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--heading);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link span::after { display: none; }
  .nav__link[aria-current='true'] { padding-left: .75rem; box-shadow: inset 3px 0 0 var(--gold); }

  .nav__rule { display: none; }
  /* The last link needs no rule under it: the contact block brings its own */
  .nav__list li:last-child .nav__link { border-bottom: 0; }

  /* The switches stay on the bar rather than hiding inside the menu.
     The burger sits before them in the markup, so it is reordered last. */
  .nav__toggle { order: 3; }
  .nav__tools { order: 2; margin-left: auto; margin-right: .375rem; }
  .nav__tools .tool { height: 2.25rem; min-width: 2.25rem; padding: 0 .4375rem; }

  /*
   * The bar is short here, so the appearance switch moves into the menu and
   * only calling and the language pair stay out - call first, language after.
   */
  #themeToggle { display: none; }
  .nav__theme { display: flex; }

  /* Stacked rather than side by side, which halves the width it needs */
  .lang {
    flex-direction: column;
    gap: 0;
    padding: 0 .375rem;
    font-size: .5625rem;
    line-height: 1.15;
  }
  .lang i { opacity: .55; }
  .lang__slash { display: none; }

  .nav__contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .5rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--line-soft);
    font-size: .9375rem;
  }
  .nav__contact a { color: var(--muted); text-decoration: none; }
  .nav__contact a:hover { color: var(--heading); }

  /*
   * On touch sizes the bar always gets a plate, otherwise the burger and
   * the switches would sit unreadable over a bright part of the photo.
   */
  .header .header__bar {
    background: var(--header-bg);
    border-color: var(--header-brd);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }
  .header .nav__toggle,
  .header .tool:not(.tool--call) {
    background: transparent;
    color: var(--heading);
    border-color: var(--line);
  }

  .planbar { grid-template-columns: 1fr; }
  .shot { margin-top: .5rem; }
  .shot__badge { top: auto; bottom: 1rem; right: 1rem; }
}

/* --- Phones ------------------------------------------------------------- */
@media (max-width: 44rem) {
  html { scroll-padding-top: 5.5rem; }

  /* The hero keeps the full screen here too - it is the landing view. */
  .hero { padding-block: calc(var(--header-h) + 1.25rem) 4.25rem; }
  .hero__copy { max-width: 100%; }
  .hero__dot { width: 26px; }

  /* Smaller type leaves more of the photograph visible */
  .hero .display { font-size: clamp(1.6rem, 7.4vw, 2.4rem); }
  .hero .lead { font-size: .9375rem; margin-top: 1rem; }
  .hero__kicker { font-size: .625rem; margin-bottom: .875rem; }
  .hero__kicker::before { width: 26px; }

  /*
   * The three facts stay on a single row. The size follows the viewport so
   * they still fit at 320 px without wrapping.
   */
  .hero__meta {
    flex-wrap: nowrap;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: .875rem;
    font-size: clamp(.5rem, 2.6vw, .75rem);
  }
  .hero__meta li { gap: .3125rem; white-space: nowrap; }
  .hero__meta li::before { width: 4px; height: 4px; }

  /* Both buttons on one line, sharing the width evenly */
  .hero__actions { flex-wrap: nowrap; gap: .625rem; }
  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: .75rem;
    font-size: .6875rem;
    letter-spacing: .06em;
  }
  .hero__actions .btn__arrow { display: none; }

  /*
   * One column: the trail becomes a dashed rail down the left and the stages
   * hang off it, so the sequence still reads top to bottom.
   */
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }
  .step {
    display: grid;
    grid-template-columns: var(--medallion) 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.125rem;
    align-items: start;
    padding-bottom: 2rem;
    text-align: left;
  }
  /* The medallion runs beside both lines rather than forcing a row of its own */
  .step__badge { grid-row: 1 / span 2; margin: 0; }
  .step h3 { grid-column: 2; grid-row: 1; margin-bottom: .375rem; }
  .step p  { grid-column: 2; grid-row: 2; }

  .step::before {
    content: '';
    position: absolute;
    left: calc(var(--medallion) / 2 - 1px);
    top: var(--medallion);
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(var(--gold) 0 3px, transparent 3px 12px);
    opacity: .6;
  }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { content: none; }

  .form-grid { grid-template-columns: 1fr; }
  .consent { justify-content: flex-start; }
  .form-foot .btn { width: 100%; min-width: 0; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bar { justify-content: flex-start; }

  /*
   * A fixed background cannot hold still here. Mobile browsers size it to the
   * viewport rather than the element and several drop the behaviour outright,
   * so the picture scrolls with the section and is drawn to cover it instead.
   */
  .band {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 30rem) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .shot__badge { padding: .75rem 1rem; }
}

/* Very narrow phones: tighten the buttons a little further */
@media (max-width: 22.5rem) {
  .hero__actions .btn { font-size: .625rem; padding-inline: .5rem; }
  .hero__meta { gap: .4375rem; }

  /*
   * The bar carries a logo, three controls and the burger. At this width they
   * no longer fit at full size, so each gives up a little rather than the
   * burger being squeezed off the end.
   */
  .header__bar { gap: .5rem; padding-inline: .625rem; }
  .brand__crop { --logo-h: 26px; }
  .nav__tools { gap: .25rem; margin-right: .25rem; }
  .nav__tools .tool { height: 2rem; min-width: 2rem; padding: 0 .3125rem; }
  .lang { padding: 0 .375rem; font-size: .625rem; }
  .nav__toggle { width: 2.125rem; height: 2.125rem; }
}

@media (max-aspect-ratio: 1 / 1) and (max-width: 62rem) {
  /*
   * A phone is not a small desktop. There is no room here for a copy column
   * beside the picture, so the picture takes the whole screen and the copy
   * sits over it: heading in the middle, the buttons and the facts line down
   * at the foot where a thumb reaches them.
   */
  .hero { align-items: stretch; }
  .hero__grid { display: flex; }

  .hero__copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 100%;
  }
  /*
   * The slack is shared, not dumped in one place.
   *
   * An automatic margin above the buttons took all of it, so on a tall phone
   * the gap under the lead ballooned while the buttons slid to the very foot:
   * 18% of the screen on a 651px one against 39% on a 932px one. Two flexible
   * spacers split it one-to-two instead - one above the heading, one under the
   * lead - and flexible space, unlike an automatic margin, simply collapses
   * when a screen is too short to have any.
   *
   * The foot padding goes with the height of the screen for the same reason:
   * a fixed one is a smaller share of a tall screen, which is what let the
   * buttons drift downwards.
   */
  .hero { padding-bottom: 12vh; }
  .hero__copy::before { content: ''; flex: 1 1 0; }
  .hero .lead { flex: 2 1 auto; }
  .hero__actions { justify-content: center; }

  /* Larger here than on a desktop: it is the only thing carrying the screen */
  .hero .display { font-size: clamp(2.125rem, 9.6vw, 3.25rem); }
  .hero .lead { font-size: 1rem; }

  /*
   * One even wash rather than a band that fades in and out. It is judged
   * against the brightest part of these photographs, where it is the least
   * help: even there the small text clears 4.5:1, and at this strength the
   * picture still reads across the whole screen.
   */
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(var(--hero-rgb), .82)   0%,
      rgba(var(--hero-rgb), .72)  18%,
      rgba(var(--hero-rgb), .70)  50%,
      rgba(var(--hero-rgb), .72)  82%,
      rgba(var(--hero-rgb), .84) 100%);
  }

  /* The whole picture is on show, so each one is left as it was framed */
  .hero__slide { bottom: 0; }

  /*
   * Brighter than on a desktop. There the secondary copy sits on a near-solid
   * plate; here it lies over the picture itself, and against the brightest sky
   * in the set the softer tone measured just under 4.5:1.
   */
  :root[data-theme='dark'] .hero { --hero-text-soft: rgba(255, 255, 255, .9); }
}

/*
 * Short screens: small phones, and any window shorter than it is wide is not.
 *
 * The hero holds a fixed amount of copy, so below roughly 560px of height it
 * no longer fits a single screen and the buttons drop below the fold. Rather
 * than let that happen, everything gives up a little: the offset above the
 * heading, the type, and the padding at both ends.
 */
@media (max-aspect-ratio: 1 / 1) and (max-width: 62rem) and (max-height: 620px) {
  .hero { padding-block: calc(var(--header-h) + .375rem) 10vh; }

  .hero__kicker {
    margin-top: 1.5vh;
    margin-bottom: .5rem;
    font-size: .5625rem;
  }
  .hero .display { font-size: clamp(1.5rem, 7.4vw, 2rem); }
  .hero .lead { font-size: .8125rem; margin-top: .5rem; }

  .hero__actions { gap: .5rem; }
  .hero__actions .btn { padding-block: .625rem; }

  .hero__meta { margin-top: .625rem; padding-top: .5rem; }

  .hero__dots { bottom: .625rem; }
}

/* --- Accessibility preferences ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .stagger > *,
  .word { opacity: 1; transform: none; }
  .rule-gold { transform: scaleX(1); }
  .hero__slide.is-active img { animation: none; }
}

@media print {
  .header, .footer, .hero__slides, .hero__dots, .btn { display: none; }
  body { color: #000; background: #fff; }
}
