/* ==========================================================================
   AIU2: NEW LANDING PAGE, THE STYLES  (version 2 look, 20 November 2026)
   ==========================================================================
   This file sets how the page looks: colours, lettering, spacing, and how
   the layout changes between a laptop and a phone.

   THE IDEA BEHIND THE LOOK
   British road signs. They are the plainest English in the country: big
   clear lettering, strong flat colour, and no decoration. That matches what
   AIU2 promises: clear directions, in plain English.

     Blue   = the surface the map lies on (motorway-sign blue)
     Green  = the map itself, and the prices panel (main-road-sign green)
     Yellow = the map's cover, the AIU2 plate, and the main buttons
              (the yellow route-number patch on a road sign)
     White  = lettering on colour, and the reading sections

   CONTENTS
     1.  The colour and size settings
     2.  Basics for the whole page
     3.  Buttons and the AIU2 plate
     4.  The top bar
     5.  The hero and the scroll moment
     6.  Why AIU2
     7.  Prices
     8.  The sample film
     9.  Get in touch (the form)
     10. The footer
     11. The caption bar for the voice-over
     12. The privacy notice page (privacy.html)
     13. The "page not found" page (404.html)
     14. Less movement, for visitors who ask for it
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. THE COLOUR AND SIZE SETTINGS
   Change a colour here and it changes everywhere.
   The blue, yellow and green were measured from the photographs, so the
   page and the pictures match.
   -------------------------------------------------------------------------- */
:root {
  --blue: #064A8C;        /* the surface in the photographs */
  --blue-deep: #04376B;   /* a darker blue, for the footer and the step plates */
  --green: #0A6640;       /* the printed map */
  --yellow: #FFCC15;      /* the map's cover */
  --ink: #0B0C0C;         /* near-black lettering */
  --white: #FFFFFF;
  --mist: #E9EFF6;        /* a very pale blue, for one quiet section */
  --slate: #33414F;       /* softer lettering on white (still easy to read) */
  --alarm: #8A1C1C;       /* dark red, only for form problems */

  /* The lettering. Verdana is the stand-in if the main typeface cannot load. */
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;

  /* The gap between the page edge and the content. Small on a phone,
     larger on a wide screen. */
  --edge: clamp(1.25rem, 5vw, 5rem);

  /* How movement slows to a stop: quick at first, then gentle. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* The colour of the ring shown around whatever the keyboard is on.
     Sections on white or yellow change this to blue so it stays visible. */
  --ring: var(--yellow);
}


/* --------------------------------------------------------------------------
   2. BASICS FOR THE WHOLE PAGE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Menu links glide to their section instead of jumping. */
  scroll-behavior: smooth;
  /* Leave room for the top bar when a menu link lands on a section.
     (A little less than the bar's height, so the bar is always solid there.) */
  scroll-padding-top: 3.25rem;
  /* The scroll bar wears the page's colours too. */
  scrollbar-color: var(--blue) var(--mist);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  text-wrap: pretty;
}

/* Anything marked "hidden" in the page really is hidden. */
[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

img, video, canvas { display: block; max-width: 100%; }

/* Highlighted text is yellow with black lettering, like the map's cover. */
::selection { background: var(--yellow); color: var(--ink); }

/* The ring around whatever the keyboard is on. */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* Text that screen readers read out, but that is not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The "skip to the main content" link: off-screen until the keyboard
   reaches it, then it drops into view. */
.skip {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7em 1em;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  border-radius: 0.5rem;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* An ordinary link inside a paragraph. */
.text-link {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
.text-link:hover { text-decoration-thickness: 0.2em; }


/* --------------------------------------------------------------------------
   3. BUTTONS AND THE AIU2 PLATE
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.25em;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* The little arrow in a button nudges forward when the button is pointed at. */
.btn__arrow {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(0.2em); }

/* Yellow: the main button. */
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--white); }

/* Outlined in white: the second button, used on blue. */
.btn--line {
  background: rgba(4, 55, 107, 0.45);
  color: var(--white);
  border-color: var(--white);
}
.btn--line:hover { background: var(--white); color: var(--blue); }

/* Near-black: the send button, used on yellow. */
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.btn--ink:disabled { opacity: 0.6; cursor: default; }

/* The play and pause pictures in the voice button. Only one shows:
   "play" while the voice is off, "pause" while it is speaking. */
.btn__icon { width: 1.2em; height: 1.2em; flex: none; }
.btn__icon--pause { display: none; }
[aria-pressed="true"] > .btn__icon--play { display: none; }
[aria-pressed="true"] > .btn__icon--pause { display: block; }

/* The AIU2 plate: the logo. Black lettering on a yellow patch. */
.plate {
  display: inline-block;
  padding: 0.3em 0.55em 0.24em;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 0.3em;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.plate--small { font-size: 1rem; margin-right: 0.4em; }


/* --------------------------------------------------------------------------
   4. THE TOP BAR
   It stays at the top of the screen, solid blue, so the menu is always
   readable. Over the hero photo only, it goes see-through so the photo
   shows behind it (site.js adds "data-over-hero" there).
   -------------------------------------------------------------------------- */
.top {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--edge);
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 30px -18px rgba(2, 20, 45, 0.8);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.top[data-over-hero] {
  background: transparent;
  box-shadow: none;
}

.top__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

.top__link {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 0.12em;
}
.top__link:hover { text-decoration-line: underline; }

.top__cta {
  padding: 0.55em 0.95em;
  border: 2px solid var(--white);
  border-radius: 0.5rem;
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.top__cta:hover { background: var(--white); color: var(--blue); }

/* On a phone there is only room for the plate and the "Get in touch" button. */
@media (max-width: 47.99rem) {
  .top__link { display: none; }
}


/* --------------------------------------------------------------------------
   5. THE HERO AND THE SCROLL MOMENT

   There are two ways this part can show:

   A. PLAIN (the starting point). Used when scripts are off or cannot run.
      The hero photo fills the first
      screen, then the three steps and a photo of the open map follow as an
      ordinary part of the page.

   B. LIVE. site.js adds the word "stage-live" to the page. The first screen
      then stays put while the visitor scrolls, the film plays forward or
      backward with the scroll, and the three steps appear one at a time.
      Every "stage-live" rule below belongs to B.
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  background: var(--blue);
  color: var(--white);
}

.stage__pin { position: relative; }

/* The hero photo, filling the first screen edge to edge. */
.stage__still {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
}
.stage__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The film. Not used in the plain version. */
.stage__film { display: none; }

/* ---------- The headline, pitch and buttons ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 5.5rem var(--edge) 4.5rem;
}

/* On a wide screen the words sit in the left third, clear of the map,
   which lies in the middle of the photo. */
.hero__top,
.hero__bottom { max-width: min(33vw, 36rem); }

.hero__title {
  font-size: clamp(2.6rem, 5.2vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero__lede {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.45;
  max-width: 30ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #DCE7F3;
  max-width: 34ch;
}

/* ---------- The three steps (plain version: a simple row) ---------- */
.beats { padding: clamp(2.5rem, 6vw, 5rem) var(--edge); }

.beats__list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  max-width: 78rem;
  margin: 0 auto;
}

/* Each step is a small blue plate with a white rim, like a road sign. */
.beat {
  padding: 1.1rem 1.35rem 1.25rem;
  background: var(--blue-deep);
  border: 3px solid var(--white);
  border-radius: 0.9rem;
}
.beat__name { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.beat__text { margin-top: 0.4rem; font-size: 1.05rem; line-height: 1.45; }

/* The "scroll to open the map" hint is only for the live version. */
.stage__cue { display: none; }

/* The open-map photo, shown under the steps in the plain version. */
.stage__open {
  width: 100%;
  height: auto;
}

/* ---------- On a phone held upright ----------
   The photo is the tall one: the map lies across the middle of the screen.
   The headline goes above it and the buttons below it. */
@media (orientation: portrait) {
  .hero {
    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding: 0;
    text-align: center;
  }

  /* Both blocks are measured from the middle of the screen, where the map
     lies: the headline ends just above the map, and the buttons start just
     below it. That keeps them clear of the map on any size of phone. */
  .hero__top,
  .hero__bottom {
    position: absolute;
    left: var(--edge);
    right: var(--edge);
    max-width: none;
  }
  .hero__top { bottom: calc(50% + 10.5% + 0.5rem); }
  .hero__bottom { top: calc(50% + 10.5% + 0.5rem); }

  .hero__title { font-size: clamp(2.5rem, 12.5vw, 4.5rem); }
  .hero__lede {
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
    max-width: 32ch;
  }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1 1 100%; max-width: 22rem; }
  .hero__note { margin: 0.7rem auto 0; font-size: 0.875rem; }
}

/* On a short phone there is less room, so the headline is a little smaller
   and the small note under the buttons is left out. */
@media (orientation: portrait) and (max-height: 700px) {
  .hero__title { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .hero__lede { font-size: 1rem; margin-top: 0.5rem; }
  .hero__note { display: none; }
}

/* ---------- B. THE LIVE VERSION ---------- */

/* The section becomes very tall. The extra height is the "distance" the
   visitor scrolls while the first screen stays put and the film plays.
   ("lvh" is the height of the screen; "vh" is the fallback for older phones.) */
.stage-live .stage {
  height: 440vh;
  height: 440lvh;
}

/* The first screen sticks to the top while that distance is scrolled. */
.stage-live .stage__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.stage-live .stage__still { height: 100%; }

/* The film sits exactly over the photo. It stays see-through until its
   first frame has been drawn, so there is never a blank flash. */
.stage-live .stage__film {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.stage-live .stage__film.is-ready { opacity: 1; }

/* The number "--p" is set by site.js. It runs from 0 (top of this part)
   to 1 (end of this part) as the visitor scrolls. Everything below fades
   in or out by reading that one number. */
.stage { --p: 0; }

/* The headline fades and drifts up as soon as the scroll begins. */
.stage-live .hero {
  position: absolute;
  inset: 0 0 auto 0;
  /* The same height as the stuck screen, so the words line up with the map. */
  height: 100vh;
  height: 100lvh;
  min-height: 0;
  opacity: clamp(0, calc(1 - (var(--p) - 0.012) / 0.06), 1);
  transform: translate3d(0, calc(var(--p) * -22vh), 0);
}
/* Once it has faded, it is switched off fully, so its buttons cannot be
   pressed by accident. (site.js sets data-phase.) */
.stage-live .stage[data-phase="film"] .hero { visibility: hidden; }

/* The three steps: stacked in the same spot at the foot of the screen.
   Each one is given the stretch of the scroll where it should show:
   "--from" is where it fades in, "--to" is where it fades out. */
.stage-live .beats {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  pointer-events: none;
}
.stage-live .beats__list { display: block; max-width: none; }

.stage-live .beat {
  --show: clamp(0, min(calc((var(--p) - var(--from)) / 0.035), calc((var(--to) - var(--p)) / 0.035)), 1);
  position: absolute;
  left: 50%;
  bottom: clamp(0.75rem, 3vh, 2.25rem);
  width: min(92vw, 37rem);
  text-align: center;
  background: rgba(4, 55, 107, 0.94);
  box-shadow: 0 22px 44px -22px rgba(1, 14, 34, 0.85);
  opacity: var(--show);
  transform: translate(-50%, calc((1 - var(--show)) * 1.5rem));
}
.stage-live .beat--1 { --from: 0.16; --to: 0.40; }
.stage-live .beat--2 { --from: 0.43; --to: 0.67; }
.stage-live .beat--3 { --from: 0.70; --to: 1.20; }  /* the last one stays to the end */

/* While the voice-over is playing, its caption bar sits at the foot of the
   screen. The steps move up to make room for it. (site.js adds "voice-on".) */
.stage-live.voice-on .beat { bottom: calc(clamp(0.75rem, 3vh, 2.25rem) + 6.5rem); }

/* The hint at the foot of the first screen. It fades the moment the
   visitor starts to scroll. */
.stage-live .stage__cue {
  display: flex;
  align-items: center;
  gap: 0.5em;
  position: absolute;
  left: 50%;
  top: calc(100svh - 3rem);
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: clamp(0, calc(1 - var(--p) / 0.025), 1);
}
.stage__cue svg {
  width: 1.1em;
  height: 1.1em;
  animation: cue-bob 1.8s var(--ease) infinite alternate;
}
@keyframes cue-bob {
  from { transform: translateY(-0.15em); }
  to   { transform: translateY(0.2em); }
}

/* On a phone the buttons sit near the foot of the screen, so the hint
   would crowd them. The moving map is its own hint there. */
@media (orientation: portrait) {
  .stage-live .stage__cue { display: none; }
}

/* The open-map photo is not needed when the film is running. */
.stage-live .stage__open { display: none; }


/* --------------------------------------------------------------------------
   6. WHY AIU2
   White, for reading. Words on the left, the photo of the hands on the right.
   -------------------------------------------------------------------------- */
.why {
  --ring: var(--blue);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(4.5rem, 11vw, 9.5rem) var(--edge);
  max-width: 92rem;
  margin: 0 auto;
}

.why__title {
  font-size: clamp(2.2rem, 4.8vw, 4.25rem);
  max-width: 13ch;
}

.why__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  max-width: 44ch;
  color: var(--slate);
}

/* The reasons: a plain list, one rule between each. Name left, words right. */
.reasons { margin-top: clamp(2rem, 4vw, 3.25rem); }

.reason {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1.1rem 0 1.2rem;
  border-top: 2px solid var(--ink);
}
.reason:last-child { border-bottom: 2px solid var(--ink); }
.reason dt { font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.reason dd { max-width: 52ch; color: var(--slate); }

@media (min-width: 40rem) {
  .reason { grid-template-columns: 13.5rem 1fr; }
}

.why__photo img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
.why__photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--slate);
  max-width: 44ch;
}

/* On a wide screen: two columns, with the photo staying in view while the
   list beside it is read. */
@media (min-width: 60rem) {
  .why { grid-template-columns: 7fr 5fr; align-items: start; }
  .why__photo { position: sticky; top: 6rem; }
}


/* --------------------------------------------------------------------------
   7. PRICES
   A green field with one big white-rimmed panel: a road sign. Each row is
   a service and its price, like a place name and its distance.
   -------------------------------------------------------------------------- */
.prices {
  padding: clamp(3rem, 8vw, 7rem) var(--edge);
  background: var(--green);
  color: var(--white);
}

.sign {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4.5vw, 4rem);
  border: 4px solid var(--white);
  border-radius: clamp(1rem, 2.4vw, 1.75rem);
}

.sign__title { font-size: clamp(2.1rem, 4.6vw, 4rem); }

.sign__lede {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  max-width: 46ch;
}

.routes { margin-top: clamp(1.75rem, 4vw, 3rem); }

.route {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.35rem 0 1.45rem;
  border-top: 2px solid rgba(255, 255, 255, 0.6);
}
.route:last-child { border-bottom: 2px solid rgba(255, 255, 255, 0.6); }

.route__name { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; }
.route__text { margin-top: 0.35rem; font-size: 1.05rem; line-height: 1.45; max-width: 44ch; }

/* The price: big yellow figures, like a route number. */
.route__price { line-height: 1.1; }
.route__price strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.route__price span { display: block; margin-top: 0.2rem; font-size: 1rem; }
.route__price--ask strong { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; }

/* On a wide screen the price sits at the right-hand end of its row. */
@media (min-width: 48rem) {
  .route { grid-template-columns: 1fr auto; align-items: center; }
  .route__price { text-align: right; }
}

.sign__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.sign__note { font-size: 1rem; }


/* --------------------------------------------------------------------------
   8. THE SAMPLE FILM
   -------------------------------------------------------------------------- */
.sample {
  --ring: var(--blue);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 8.5rem) var(--edge);
  background: var(--mist);
}

.sample__film { position: relative; }

.sample__video {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  /* The colour shown for the instant before the film's first picture
     arrives: blue, to match that picture. */
  background: var(--blue);
}

/* The pause and play button, tucked in the corner of the film. */
.sample__toggle {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.55em 0.9em;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  --ring: var(--yellow);
}
.sample__toggle:hover { background: var(--blue); }

.sample__title { font-size: clamp(2.1rem, 4.4vw, 3.75rem); max-width: 11ch; }
.sample__text p { margin-top: 1.1rem; max-width: 46ch; color: var(--slate); }
.sample__text p:first-of-type { margin-top: 1.5rem; }

/* The fold-out with the words of the voice-over. */
.words { margin-top: 1.75rem; max-width: 46ch; }
.words summary { font-weight: 800; cursor: pointer; text-underline-offset: 0.2em; }
.words summary:hover { text-decoration: underline; }

@media (min-width: 60rem) {
  .sample { grid-template-columns: 7fr 5fr; }
}


/* --------------------------------------------------------------------------
   9. GET IN TOUCH (THE FORM)
   Yellow, the colour of the map's cover.
   -------------------------------------------------------------------------- */
.contact {
  --ring: var(--blue);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(4rem, 10vw, 8.5rem) var(--edge);
  background: var(--yellow);
}

.contact__title { font-size: clamp(2.4rem, 5.4vw, 4.75rem); max-width: 9ch; }
.contact__lede {
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  max-width: 30ch;
}
.contact__where { margin-top: 1rem; max-width: 34ch; }

@media (min-width: 60rem) {
  .contact { grid-template-columns: 5fr 7fr; align-items: start; }
}

.form { display: grid; gap: 1.2rem; max-width: 40rem; }

/* The trap for junk-mail robots: kept off-screen, so people never see it. */
.form__trap { position: absolute; left: -200vw; }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 800; line-height: 1.3; }
.field__optional { font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  font: inherit;
  line-height: 1.4;
  caret-color: var(--blue);
}
.field textarea { resize: vertical; min-height: 8rem; }

/* A box that needs attention gets a thick dark-red border and a message. */
.field--error input,
.field--error textarea { border-color: var(--alarm); border-width: 3px; }
.field__error { color: var(--alarm); font-weight: 800; font-size: 1rem; }

.form .btn { justify-self: start; }
.form__problem { color: var(--alarm); font-weight: 800; }
.form__small { font-size: 0.95rem; line-height: 1.45; max-width: 44ch; }

.form__done h3 { font-size: clamp(2rem, 4vw, 3rem); }
.form__done p { margin-top: 0.75rem; font-size: 1.25rem; max-width: 30ch; }


/* --------------------------------------------------------------------------
   10. THE FOOTER
   -------------------------------------------------------------------------- */
.foot {
  display: grid;
  gap: 0.6rem;
  padding: clamp(2.5rem, 6vw, 4rem) var(--edge);
  background: var(--blue-deep);
  color: #DCE7F3;
  font-size: 1rem;
}
.foot__line { font-size: 1.25rem; font-weight: 800; color: var(--white); }

/* The links in the footer (to the privacy notice, or back to the home page). */
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 0.4rem;
}
.foot__links a {
  color: var(--white);
  font-weight: 800;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
.foot__links a:hover { text-decoration-thickness: 0.2em; }


/* --------------------------------------------------------------------------
   11. THE CAPTION BAR FOR THE VOICE-OVER
   A black bar at the foot of the screen. It stays in view while the voice
   plays, even if the visitor scrolls. Words still to come are grey, words
   already spoken are white, and the word being spoken is yellow.
   -------------------------------------------------------------------------- */
.captions {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(94vw, 46rem);
  padding: 0.85rem 0.9rem 0.85rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0.9rem;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75);
}

.captions__line {
  flex: 1;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;       /* room for two lines, so the bar does not jump */
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0 0.3em;
}

.captions .word { color: #AEB9C6; transition: color 0.12s; }
.captions .word--said { color: var(--white); }
.captions .word--now { color: var(--yellow); }

.captions__stop {
  flex: none;
  padding: 0.5em 0.85em;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}
.captions__stop:hover { background: var(--white); color: var(--ink); }


/* --------------------------------------------------------------------------
   12. THE PRIVACY NOTICE PAGE  (privacy.html)
   A plain reading page: a blue band with the heading, then the notice on
   white. Each part of the notice is a row with a black line above it, the
   same pattern as the list of reasons on the home page.
   -------------------------------------------------------------------------- */

/* The blue band with the page's heading. The space at the top leaves room
   for the top bar, which sits over the page. */
.page-head {
  padding: clamp(6.5rem, 13vw, 10rem) var(--edge) clamp(2.5rem, 6vw, 4.5rem);
  background: var(--blue);
  color: var(--white);
}

/* Keeps the heading and the notice below it lined up on a very wide screen. */
.page-head__inner,
.notice__inner {
  max-width: 76rem;
  margin: 0 auto;
}

.page-head__title { font-size: clamp(2.6rem, 6vw, 5.25rem); }

.page-head__lede {
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  max-width: 38ch;
}

.page-head__date {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: #DCE7F3;
}

/* The white area that holds the notice. Links here get a blue ring when
   the keyboard is on them, because yellow would not show on white. */
.notice {
  --ring: var(--blue);
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--edge) clamp(4rem, 10vw, 8rem);
}

/* One part of the notice. */
.clause {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0 1.7rem;
  border-top: 2px solid var(--ink);
}

.clause h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* The words: a comfortable line length for reading. */
.clause p {
  max-width: 66ch;
  color: var(--slate);
}

/* On a wider screen: the heading on the left, the words on the right. */
@media (min-width: 48rem) {
  .clause { grid-template-columns: 16rem 1fr; }
}

/* The button and the link at the foot of the notice. The black line above
   them closes the list. */
.notice__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--ink);
}


/* --------------------------------------------------------------------------
   13. THE "PAGE NOT FOUND" PAGE  (404.html)
   A blue screen with one yellow plate in the middle. The plate has a black
   arrow, like the cover of the folded map on the home page.
   -------------------------------------------------------------------------- */

/* The blue area. It fills the screen, and sits the plate in the middle.
   The space at the top leaves room for the top bar. */
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6.5rem var(--edge) 4rem;
  background: var(--blue);
}

/* The yellow plate. */
.lost__sign {
  --ring: var(--blue);
  width: min(100%, 44rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--yellow);
  color: var(--ink);
  border-radius: clamp(1rem, 2.4vw, 1.75rem);
  box-shadow: 0 30px 60px -30px rgba(1, 14, 34, 0.9);
}

.lost__arrow {
  width: clamp(4rem, 12vw, 6.5rem);
  height: auto;
}

.lost__title {
  margin-top: 0.75rem;
  font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  max-width: 11ch;
}

.lost__text {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
}

.lost__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}


/* --------------------------------------------------------------------------
   14. LESS MOVEMENT
   Some visitors ask their device to cut down on movement. For them: no
   gliding to sections, no fades, and no bobbing arrow. site.js also does
   not start the looping sample film by itself for them.

   The scroll film of the map DOES still play for them. That was the
   owner's decision on 20 November 2026: it only moves while the visitor
   is scrolling, and it stops the moment they stop.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
