/* ==========================================================================
   DOCATHO — Azulejo Station Hall
   Cobalt on milk white only. Mustard lives inside border frames and nowhere
   else. Every layout decision snaps to whole tiles; nothing is ever cut in
   half. Grout seams run through every surface, illustration included — the
   grid is not hidden, it is the truth the painting admits.
   ========================================================================== */

:root {
  /* --- Glaze -------------------------------------------------------------
     Cobalt is the brand's #064CBD fired at three depths. It is not an accent:
     it owns whole regions of the page. */
  /* The exact blue in the logo file and in both mobile apps' Tailwind
     `primary`. The headline used to sit a shade off the logo beside it. */
  --cobalt-deep: #043a94;
  --cobalt: #064cbd;
  --cobalt-mid: #4e77c4;
  --cobalt-wash: #a8c0e4;
  --cobalt-ghost: #d8e3f4;

  /* Milk white, fired twice — the tile body and the grout between.
     Grout is deliberately visible: the grid is the truth the painting admits,
     so it must read at arm's length, not only on close inspection. */
  --milk: #f2ecdd;
  --milk-hi: #faf6ec;
  --grout: #d6cdb6;
  --grout-deep: #bfb499;
  /* The ground grid is the quietest seam on the page: it should be felt at
     arm's length, not counted. Hairline rules inside panels keep --grout. */
  --grout-soft: #e6dfcc;

  /* Mustard. Frames only. Never a fill, never text on milk. */
  --mustard: #e0a01c;
  --mustard-deep: #b47c0d;

  --ink: #0a1f4d;
  --ink-soft: #3a558f;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;

  /* The tile. Every measurement on this page is a multiple of it. */
  --tile: 88px;
  --wrap: 1416px;      /* 16 tiles + gutters */
  --seam: 1px;

  --shadow-plate: 0 2px 0 var(--grout-deep), 0 10px 28px rgba(8, 47, 143, 0.13);
  --shadow-deep: 0 3px 0 var(--grout-deep), 0 26px 60px rgba(8, 47, 143, 0.22);
}

@media (max-width: 900px) { :root { --tile: 64px; } }

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--tile) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* Browser surfaces are part of the glaze, not the browser's business. */
::selection { background: var(--cobalt); color: var(--milk-hi); }
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--grout); }
::-webkit-scrollbar-thumb {
  background: var(--cobalt-mid);
  border: 3px solid var(--grout);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--cobalt); }
html { scrollbar-color: var(--cobalt-mid) var(--grout); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

::placeholder { color: var(--cobalt-wash); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Materials
   -------------------------------------------------------------------------- */

/* Grout seams. The tile grid is visible on every surface — it runs straight
   through photographs and line art alike. */
.glaze {
  position: relative;
  background-color: var(--milk);
  background-image:
    linear-gradient(90deg, var(--grout-soft) var(--seam), transparent var(--seam)),
    linear-gradient(var(--grout-soft) var(--seam), transparent var(--seam));
  background-size: var(--tile) var(--tile);
}

.glaze--deep {
  background-color: var(--cobalt-deep);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) var(--seam), transparent var(--seam)),
    linear-gradient(rgba(255, 255, 255, 0.055) var(--seam), transparent var(--seam));
  color: var(--milk);
}

/* Tin-glaze crackle — the fine craze in a fired surface. Sits over everything
   at low opacity so flat fields read as ceramic, not as CSS colour. */
.crackle::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='0.09'/%3E%3C/svg%3E");
}

.glaze--deep.crackle::after { mix-blend-mode: overlay; opacity: 0.4; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 900px) { .wrap { padding-inline: 44px; } }

/* Sections are measured in tiles, so a panel edge always lands on a seam. */
.hall { padding-block: calc(var(--tile) * 1.05); position: relative; }
@media (min-width: 900px) { .hall { padding-block: calc(var(--tile) * 1.35); } }

/* --------------------------------------------------------------------------
   The frame — every panel is a cartouche
   -------------------------------------------------------------------------- */

/* Double keyline: a hairline outer, a heavier inner, milk between them.
   This is the single most repeated object on the page. */
.plate {
  position: relative;
  background: var(--milk-hi);
  border: 1px solid var(--cobalt-mid);
  outline: 1px solid var(--cobalt-mid);
  outline-offset: 4px;
  box-shadow: var(--shadow-plate);
}

.plate--deep {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-wash);
  outline-color: var(--cobalt-wash);
  color: var(--milk);
}

/* Mustard is permitted here and only here: inside a frame, as a frame. */
.plate--gilt { outline-color: var(--mustard); }

/* --------------------------------------------------------------------------
   Type — brushed roman caps over a small-caps body
   -------------------------------------------------------------------------- */
h1, h2, h3, .caps {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cobalt-deep);
  letter-spacing: 0.01em;
  line-height: 1.06;
  text-wrap: balance;
}

.glaze--deep h1, .glaze--deep h2, .glaze--deep h3,
.plate--deep h2, .plate--deep h3 { color: var(--milk-hi); }

.h-hall {
  font-size: clamp(2.4rem, 5.6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
}

.h-panel { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.h-plate { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: 0.03em; }

/* The brushed caption band that names a panel — set in the body face as true
   letterspaced caps, never as a coloured eyebrow above a heading. */
.prose {
  font-size: 1.1875rem;
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: 68ch;
}

.glaze--deep .prose { color: var(--cobalt-ghost); }

/* The ecosystem thesis carries the section; it is set bold and inked so it
   reads as a statement, not supporting copy. */
.prose--strong { font-weight: 700; color: var(--cobalt-deep); }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}

.glaze--deep .lead { color: var(--cobalt-ghost); }

/* An oversized painted initial opening a panel of running text. */
.initial::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Rules and friezes
   -------------------------------------------------------------------------- */
.rule {
  height: 1px;
  background: var(--cobalt-mid);
  opacity: 0.45;
}

/* A repeating painted border band. Minor content rides these, as in the hall. */
.frieze {
  height: 12px;
  border-top: 1px solid var(--cobalt-mid);
  border-bottom: 1px solid var(--cobalt-mid);
}

.frieze--deep {
  border-color: var(--cobalt-wash);
}

/* --------------------------------------------------------------------------
   Controls — framed plates with a chevron, exactly as the hall sets them
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 30px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  background: var(--milk-hi);
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 4px;
  transition: background-color 0.35s ease, color 0.35s ease,
    box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn svg.chev { width: 15px; height: 15px; flex: none; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }

/* The glaze filling the line work in the kiln: the fired state floods cobalt. */
.btn:hover,
.btn:focus-visible {
  background: var(--cobalt);
  color: var(--milk-hi);
  box-shadow: var(--shadow-deep);
  transform: translateY(-2px);
}

.btn:hover svg.chev, .btn:focus-visible svg.chev { transform: translateX(4px); }

.btn--fired {
  background: var(--cobalt);
  color: var(--milk-hi);
  box-shadow: var(--shadow-plate);
}

.btn--fired:hover, .btn--fired:focus-visible { background: var(--cobalt-deep); }

.btn--ghost {
  outline-color: var(--cobalt-mid);
  border-color: var(--cobalt-mid);
}

.glaze--deep .btn {
  background: transparent;
  color: var(--milk-hi);
  border-color: var(--cobalt-wash);
}

.glaze--deep .btn:hover, .glaze--deep .btn:focus-visible {
  background: var(--milk-hi);
  color: var(--cobalt-deep);
}

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.76rem; letter-spacing: 0.14em; }

/* A text link painted as a rule that fills in */
.painted-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  padding-bottom: 4px;
  background-image: linear-gradient(var(--cobalt), var(--cobalt));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.painted-link:hover, .painted-link:focus-visible { background-size: 100% 1px; }
.painted-link svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Station board (header)
   -------------------------------------------------------------------------- */
.board {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 80;
  background: var(--milk);
  border-bottom: 1px solid var(--cobalt-mid);
  transition: box-shadow 0.4s ease, background-color 0.4s ease;
}

.board.is-departed { box-shadow: 0 1px 0 var(--grout-deep), 0 14px 34px rgba(8, 47, 143, 0.12); }

.board__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 24px;
}

@media (min-width: 900px) { .board__inner { padding-inline: 44px; } }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.2em;
  color: var(--cobalt-deep);
}

.mark__tile {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 2px;
  background: var(--milk-hi);
  display: grid;
  place-items: center;
  color: var(--cobalt);
}

.mark__tile svg { width: 26px; height: 26px; }
.glaze--deep .mark, .board--deep .mark { color: var(--milk-hi); }

.hall-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1080px) { .hall-nav { display: flex; } }

.hall-nav a {
  padding: 9px 15px;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.hall-nav a:hover, .hall-nav a:focus-visible {
  color: var(--cobalt-deep);
  border-color: var(--cobalt-mid);
  background: var(--milk-hi);
}

.board__cta { display: none; }
@media (min-width: 1080px) { .board__cta { display: inline-flex; } }

.latch {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 3px;
  color: var(--cobalt-deep);
  background: var(--milk-hi);
}

@media (min-width: 1080px) { .latch { display: none; } }
.latch svg { width: 21px; height: 21px; }

.hall-drawer {
  display: grid;
  gap: 2px;
  padding: 10px 24px 26px;
  background: var(--milk);
  border-bottom: 1px solid var(--cobalt-mid);
}

.hall-drawer[hidden] { display: none; }

.hall-drawer a {
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  border-bottom: 1px solid var(--grout);
}

.hall-drawer .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   THE HALL — first viewport
   -------------------------------------------------------------------------- */
.entrance {
  position: relative;
  padding-top: calc(var(--tile) + 40px);
  overflow: hidden;
}

.entrance__grid {
  position: relative;
  display: grid;
  gap: calc(var(--tile) / 2);
  align-items: start;
  padding-block: calc(var(--tile) * 0.75) calc(var(--tile) * 1.25);
}

@media (min-width: 1024px) {
  .entrance__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: calc(var(--tile) * 0.75);
  }
}

/* The first viewport must carry the whole pitch — headline, promise, both
   doors and what is live — without a scroll. Everything here is sized off the
   viewport, so a short laptop screen gets a shorter hero, not a cropped one. */
@media (min-width: 1024px) {
  .entrance { padding-top: calc(var(--tile) + 4px); }
  .entrance__grid { padding-block: 22px calc(var(--tile) * 0.6); align-items: stretch; }
  .entrance .h-hall { font-size: clamp(2.2rem, 3.6vw, 3.5rem); }
  .entrance .lead { font-size: 1.0625rem; }
  .entrance .cartouche { padding: clamp(24px, 2.2vw, 34px); }

  /* Both columns run the same height and the doors sit on the baseline, so
     the first viewport reads as one framed composition, not two stacks. */
  /* The card keeps its own rhythm and its natural height; any slack in the row
     is absorbed by the photograph, which is built to take it. An empty stretch
     inside a framed cartouche reads as a mistake, on a photograph it reads as
     composition. */
  .entrance .cartouche { align-self: start; }
  .entrance .doors { padding-top: 28px; }
  /* One object in the right column now — the photograph takes the whole
     height the headline card sets, so the two columns close on one line. */
  .entrance__right { align-content: stretch; grid-template-rows: minmax(0, 1fr); }
  /* The photo fills whatever height the left column sets. Absolute, so the
     image's own 4:5 ratio can't drive the row height back up. */
  .entrance .panel-scene--tall { height: 100%; min-height: 200px; }
  .entrance .panel-scene--tall img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
    object-position: 50% 30%;
  }
}

/* The status line above the headline: the one claim that is already true. */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid var(--mustard);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  background: var(--milk);
}

.hero-eyebrow i {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--cobalt);
  transform: rotate(45deg);
}

/* One door leads, the other follows — a page with two equal calls has none. */
.door--fired {
  background: var(--cobalt);
  border-color: var(--cobalt-deep);
}

.door--fired b { color: var(--milk-hi); }
.door--fired span { color: var(--cobalt-ghost); }
.door--fired:hover, .door--fired:focus-visible { background: var(--cobalt-deep); }

.cartouche {
  position: relative;
  padding: clamp(26px, 3.4vw, 46px);
  background: var(--milk-hi);
  border: 1px solid var(--cobalt);
  outline: 2px solid var(--mustard);
  outline-offset: 6px;
  box-shadow: var(--shadow-deep);
}

.entrance h1 { margin-bottom: 22px; }
.entrance h1 em { font-style: normal; color: var(--cobalt); display: block; }

/* The two doors. Equal size, equal weight — a patient and a provider are
   offered the same plate, which is the whole two-audience answer. */
.doors {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

@media (min-width: 560px) { .doors { grid-template-columns: 1fr 1fr; } }

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  text-align: left;
  background: var(--milk-hi);
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 4px;
  transition: background-color 0.4s ease, color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.door b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.door b svg { width: 15px; height: 15px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.door span { font-size: 0.95rem; color: var(--ink-soft); }

.door:hover, .door:focus-visible {
  background: var(--cobalt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
}

.door:hover b, .door:focus-visible b { color: var(--milk-hi); }
.door:hover span, .door:focus-visible span { color: var(--cobalt-ghost); }
.door:hover b svg, .door:focus-visible b svg { transform: translateX(5px); }

/* --- The narrative panel: a photograph fired onto tile --------------------
   Real photography, glazed. Grayscale to cobalt duotone, then the grout grid
   painted straight over the top — the scene is composed across tile
   boundaries, seams and all. */
.panel-scene {
  position: relative;
  border: 1px solid var(--cobalt);
  outline: 2px solid var(--mustard);
  outline-offset: 6px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  background: var(--cobalt-deep);
}

.panel-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.24) brightness(1.06);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.panel-scene--tall img { aspect-ratio: 4 / 5; }

/* The hero photograph is a three-across family group in a portrait file; the
   frame stays 5:4 at every breakpoint so the figure reads as a landscape
   panel, and object-position keeps the faces in the band that survives. */
@media (max-width: 1023px) {
  .entrance .panel-scene--tall img { aspect-ratio: 5 / 4; }
}

/* On desktop the right column is photograph over download plate. The picture
   keeps its 5:4 frame rather than being stretched to the headline card's
   height — a tall frame would push the group off the panel's centre. */
@media (min-width: 1024px) {
  .entrance__right { align-content: start; grid-template-rows: auto; }
  .entrance .panel-scene--tall { height: auto; }
  .entrance .panel-scene--tall img {
    position: static;
    aspect-ratio: 5 / 4;
    height: auto;
    object-position: 50% 32%;
  }
}
.panel-scene--wide img { aspect-ratio: 16 / 9; }

/* The duotone wash: cobalt in the shadows, milk in the lights. */
.panel-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(178deg, rgba(10, 68, 209, 0.5), rgba(8, 47, 143, 0.72));
  mix-blend-mode: multiply;
}

/* Grout runs through the picture, not around it. */
.panel-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(244, 239, 226, 0.42) var(--seam), transparent var(--seam)),
    linear-gradient(rgba(244, 239, 226, 0.42) var(--seam), transparent var(--seam));
  background-size: calc(var(--tile) / 1.5) calc(var(--tile) / 1.5);
}

.panel-scene__cartouche {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 15px 19px;
  background: rgba(244, 239, 226, 0.94);
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 3px;
}

.panel-scene__cartouche b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-bottom: 3px;
}

.panel-scene__cartouche span { font-size: 0.9rem; color: var(--ink-soft); }

/* The departures register — the hall's own sidebar, listing what is reachable
   from this platform. Density is the point: the reference hall never leaves a
   viewport carrying only a headline. */
.entrance__right { display: grid; gap: 18px; align-content: start; }

.departures { padding: 26px 28px; }

.departures ul { display: grid; }

.departures li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--grout);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
}

.departures li:last-child { border-bottom: 0; }
.departures li svg { width: 18px; height: 18px; color: var(--cobalt); }

.departures li b {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   The service frieze — six pillars as a running border band
   -------------------------------------------------------------------------- */
.pillars-band {
  border-block: 1px solid var(--cobalt-mid);
  overflow: hidden;
  background: var(--milk-hi);
  padding-block: 20px;
}

.band-run {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.band-run__track {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  flex: none;
  animation: run 46s linear infinite;
}

.band-run:hover .band-run__track,
.band-run:focus-within .band-run__track { animation-play-state: paused; }

@keyframes run { to { transform: translateX(-100%); } }

.band-run__item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  white-space: nowrap;
}

.band-run__item svg { width: 21px; height: 21px; color: var(--cobalt); flex: none; }

.band-run__pip {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--mustard);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Panel head — a title band with its rule, no eyebrow
   -------------------------------------------------------------------------- */
/* A painted rule with a lozenge at its centre opens every panel head — the
   hall never starts a section on bare ground. */
.panel-head::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 9px;
  margin-bottom: 8px;
  background:
    linear-gradient(var(--cobalt-mid), var(--cobalt-mid)) left center / 100% 1px no-repeat;
  position: relative;
}

.panel-head { display: grid; gap: 20px; margin-bottom: calc(var(--tile) * 0.5); }

@media (min-width: 940px) {
  .panel-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: calc(var(--tile) * 0.6);
    align-items: end;
  }
}

/* --------------------------------------------------------------------------
   The maze → the hall
   -------------------------------------------------------------------------- */
.before-after {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

@media (min-width: 940px) { .before-after { grid-template-columns: 1fr auto 1fr; gap: 30px; } }

.scatter {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* Five painpoints, stacked as full-width cracked plates so the panel carries
   the same weight as the joined one beside it. */
.scatter__field {
  flex: 1;
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.scatter__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-bottom: 26px;
}

/* Loose tiles. Each errand is its own cracked plate at its own angle: the
   disconnected state is drawn as deliberately as the connected one. */
/* A broken tile, not a chip. The disconnected state is drawn as deliberately
   as the connected one: every errand is its own cracked plate, chipped at two
   corners, sitting at its own angle and drifting apart until the seam closes. */
.loose {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 20px;
  background: var(--milk-hi);
  border: 1px solid var(--cobalt-mid);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  box-shadow: 0 1px 0 var(--grout-deep), 2px 3px 0 rgba(8, 47, 143, 0.07);
  clip-path: polygon(
    0 0, calc(100% - 9px) 0, 100% 7px, 100% calc(100% - 5px),
    calc(100% - 6px) 100%, 7px 100%, 0 calc(100% - 8px)
  );
  /* --drift runs 1 → 0 as the seam closes on scroll. */
  transform:
    translate(calc(var(--dx, 0px) * var(--drift, 1)), calc(var(--dy, 0px) * var(--drift, 1)))
    rotate(calc(var(--rot, 0deg) * var(--drift, 1)));
  transition: transform 0.25s linear;
}

/* --cobalt-wash measured 1.57:1 on milk — the checks were invisible. */
.loose svg { width: 16px; height: 16px; color: var(--cobalt-mid); flex: none; }
.loose:nth-child(1) { --dx: -14px; --dy: -8px;  --rot: -3.4deg; }
.loose:nth-child(2) { --dx:  18px; --dy: -4px;  --rot:  2.6deg; }
.loose:nth-child(3) { --dx: -22px; --dy:  6px;  --rot: -2.1deg; }
.loose:nth-child(4) { --dx:  12px; --dy: 12px;  --rot:  3.8deg; }
.loose:nth-child(5) { --dx: -16px; --dy: 18px;  --rot: -2.7deg; }
.loose:nth-child(6) { --dx:  20px; --dy: 10px;  --rot:  1.9deg; }
.loose:nth-child(7) { --dx: -10px; --dy: 22px;  --rot: -4.1deg; }

.seam-mark {
  display: grid;
  place-items: center;
  gap: 12px;
  padding-block: 26px;
}

/* Mustard measured 1.93:1 on milk. Mustard stays a frame colour; the arrow
   is the load-bearing graphic here, so it takes the cobalt. */
.seam-mark svg { width: 38px; height: 38px; color: var(--cobalt); }

/* The closing seam. Its height is driven by scroll position, so the visitor
   watches the gap between the two states actually shut. */
.seam-mark::before,
.seam-mark::after {
  content: "";
  width: 1px;
  background: var(--cobalt);
  height: calc(var(--close, 0) * 84px);
  transition: height 0.25s linear;
}

@media (max-width: 939px) {
  .seam-mark::before, .seam-mark::after {
    width: calc(var(--close, 0) * 120px);
    height: 1px;
  }
}

.seam-mark span {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  writing-mode: horizontal-tb;
}

@media (min-width: 940px) {
  .seam-mark { align-content: center; }
  .seam-mark span { writing-mode: vertical-rl; }
}

.joined { position: relative; padding: 30px; display: flex; flex-direction: column; }
.joined .joined__line { flex: 1; align-content: space-around; }

.joined__line { display: grid; gap: 0; margin-top: 20px; }

.joined__step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(168, 192, 228, 0.35);
}

.joined__step:last-child { border-bottom: 0; }

.joined__step i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cobalt-wash);
  color: var(--milk-hi);
}

.joined__step i svg { width: 19px; height: 19px; }
.joined__step b { font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.05em; color: var(--milk-hi); display: block; }
.joined__step span { font-size: 0.92rem; color: var(--cobalt-ghost); }

/* --------------------------------------------------------------------------
   The six panels — narrative panels of unequal size, never a card grid
   -------------------------------------------------------------------------- */
.panels {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

@media (min-width: 1024px) {
  .panels {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(var(--tile), auto);
  }
  /* Deliberately unequal: the hall does not repeat one panel six times. */
  .panels > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .panels > :nth-child(2) { grid-column: span 3; }
  .panels > :nth-child(3) { grid-column: span 3; }
  .panels > :nth-child(4) { grid-column: span 2; }
  .panels > :nth-child(5) { grid-column: span 2; }
  .panels > :nth-child(6) { grid-column: span 2; }
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--milk-hi);
  border: 1px solid var(--cobalt-mid);
  transition: background-color 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.panel:hover { border-color: var(--cobalt); box-shadow: var(--shadow-plate); }

.panel__glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cobalt-wash);
  color: var(--cobalt);
  margin-bottom: 22px;
}

.panel__glyph svg { width: 28px; height: 28px; }
.panel h3 { margin-bottom: 11px; }
.panel p { color: var(--ink-soft); font-size: 1.02rem; }

.panel__list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--grout);
}

.panel__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.panel__list svg { width: 16px; height: 16px; color: var(--cobalt); flex: none; }

.panel--lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Cobalt owns whole panels, not accents on them. Roughly half the hall is
   glazed blue — a field, never a highlight. */
.panel--fired {
  background: var(--cobalt-deep);
  border-color: var(--cobalt);
  color: var(--cobalt-ghost);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) var(--seam), transparent var(--seam)),
    linear-gradient(rgba(255, 255, 255, 0.08) var(--seam), transparent var(--seam));
  background-size: calc(var(--tile) / 2) calc(var(--tile) / 2);
}

.panel--fired h3 { color: var(--milk-hi); }
.panel--fired p { color: var(--cobalt-ghost); }
.panel--fired .panel__glyph { border-color: var(--cobalt-wash); color: var(--milk-hi); }
.panel--fired .panel__list { border-top-color: rgba(168, 192, 228, 0.3); }
.panel--fired .panel__list li { color: var(--cobalt-ghost); }
.panel--fired .panel__list svg { color: var(--mustard); }
.panel--fired:hover { border-color: var(--mustard); }

/* --------------------------------------------------------------------------
   The route — Discover · Book · Access · Continue
   -------------------------------------------------------------------------- */
.route {
  display: grid;
  gap: 0;
  border: 1px solid var(--cobalt-mid);
  background: var(--milk-hi);
}

@media (min-width: 900px) { .route { grid-template-columns: repeat(4, 1fr); } }

.route__stop {
  position: relative;
  padding: 34px 28px;
  border-bottom: 1px solid var(--cobalt-mid);
}

.route__stop:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .route__stop { border-bottom: 0; border-right: 1px solid var(--cobalt-mid); }
  .route__stop:last-child { border-right: 0; }
}

.route__glyph {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 3px;
  color: var(--cobalt);
  margin-bottom: 22px;
}

.route__glyph svg { width: 23px; height: 23px; }
.route__stop h3 { font-size: 1.3rem; margin-bottom: 9px; }
.route__stop p { font-size: 0.98rem; color: var(--ink-soft); }

/* Alternate stops are fired, so the route reads as glazed and unglazed tile
   running in sequence rather than four identical cells. */
.route__stop:nth-child(even) {
  background: var(--cobalt-deep);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) var(--seam), transparent var(--seam)),
    linear-gradient(rgba(255, 255, 255, 0.08) var(--seam), transparent var(--seam));
  background-size: calc(var(--tile) / 2) calc(var(--tile) / 2);
}

.route__stop:nth-child(even) h3 { color: var(--milk-hi); }
.route__stop:nth-child(even) p { color: var(--cobalt-ghost); }
.route__stop:nth-child(even) .route__glyph {
  border-color: var(--cobalt-wash);
  outline-color: var(--mustard);
  color: var(--milk-hi);
}

/* --------------------------------------------------------------------------
   Ledger — a two-column register of capabilities
   -------------------------------------------------------------------------- */
.ledger { display: grid; gap: 0; }

@media (min-width: 760px) { .ledger { grid-template-columns: 1fr 1fr; column-gap: 34px; } }

.ledger li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 13px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--grout);
  font-size: 1.02rem;
}

.glaze--deep .ledger li, .plate--deep .ledger li { border-bottom-color: rgba(168, 192, 228, 0.26); }

.ledger li svg { width: 19px; height: 19px; color: var(--cobalt); }
.glaze--deep .ledger li svg { color: var(--mustard); }
.ledger li b { font-weight: 600; color: var(--ink); }
.glaze--deep .ledger li b { color: var(--milk-hi); }
.ledger li span { color: var(--ink-soft); display: block; font-size: 0.93rem; }
.glaze--deep .ledger li span { color: var(--cobalt-ghost); }

/* --------------------------------------------------------------------------
   Provider hall — the drenched inverse
   -------------------------------------------------------------------------- */
.provider-hall { display: grid; gap: calc(var(--tile) / 2); align-items: center; }

@media (min-width: 1000px) {
  .provider-hall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--tile) * 0.75); }
}

.tagplates { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }

.tagplate {
  padding: 9px 17px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--milk-hi);
  border: 1px solid var(--cobalt-wash);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tagplate:hover { background: var(--milk-hi); color: var(--cobalt-deep); }

/* --------------------------------------------------------------------------
   Principles register
   -------------------------------------------------------------------------- */
/* The five principles are painted as plates, not listed as a register: a
   numbered azulejo run, unequal by design, alternating fired and milk the way
   the ecosystem mosaic does. */
.creed { --creed-rule: rgba(6, 76, 189, 0.22); }

@media (min-width: 1024px) {
  .creed > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .creed > :nth-child(2) { grid-column: span 3; }
  .creed > :nth-child(3) { grid-column: span 3; }
  .creed > :nth-child(4) { grid-column: span 2; }
  .creed > :nth-child(5) { grid-column: span 4; }
}

.creed__plate { justify-content: flex-end; }

/* The numeral is the plate's ornament, sitting where the ecosystem panels
   carry their glyph. Cobalt, never mustard: mustard stays a frame colour. */
.creed__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cobalt-mid);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--creed-rule);
}

.panel--fired .creed__num { color: var(--cobalt-ghost); border-bottom-color: rgba(168, 192, 228, 0.3); }

.creed .panel--lead { justify-content: space-between; }
.creed .panel--lead .creed__num { font-size: clamp(3rem, 6vw, 5rem); border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.creed__lead-note { margin-top: 14px; font-size: 0.98rem; }

.creed .panel--lead h3 { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(168, 192, 228, 0.3); }

/* --------------------------------------------------------------------------
   The map mosaic
   -------------------------------------------------------------------------- */
.mosaic { display: grid; gap: calc(var(--tile) / 2); align-items: center; }

@media (min-width: 1000px) { .mosaic { grid-template-columns: 1fr 1fr; gap: calc(var(--tile) * 0.75); } }

.mosaic__map { position: relative; }
.mosaic__map svg { width: 100%; height: auto; }

.mosaic__pin {
  position: absolute;
  top: 56%;
  left: 41%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  background: var(--milk-hi);
  border: 1px solid var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 3px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  white-space: nowrap;
}

.mosaic__pin::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cobalt);
  transform: rotate(45deg);
  animation: kiln 2.8s ease-out infinite;
}

@keyframes kiln {
  0%   { box-shadow: 0 0 0 0 rgba(10, 68, 209, 0.45); }
  70%  { box-shadow: 0 0 0 13px rgba(10, 68, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 68, 209, 0); }
}

/* --------------------------------------------------------------------------
   The unpainted tile — the honest empty state
   -------------------------------------------------------------------------- */
.unpainted {
  position: relative;
  display: grid;
  place-items: center;
  gap: 15px;
  padding: clamp(30px, 3.4vw, 44px) 30px;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 11px,
      rgba(168, 192, 228, 0.16) 11px, rgba(168, 192, 228, 0.16) 22px
    ),
    var(--milk-hi);
  border: 1px dashed var(--cobalt-wash);
}

.unpainted svg { width: 34px; height: 34px; color: var(--cobalt-mid); }
.unpainted h3 { font-size: 1.22rem; }
.unpainted p { color: var(--ink-soft); max-width: 50ch; }

/* --------------------------------------------------------------------------
   FAQ — cartouche accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--cobalt-mid); max-width: 78ch; }
.faq__item { border-bottom: 1px solid var(--grout); }

/* The sign sits in a fixed left column so the toggles align down the list,
   and the whole block is measured rather than stretched across the wrap. */
.faq__q {
  display: grid;
  grid-template-columns: 34px minmax(0, 62ch);
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 25px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cobalt-deep);
  transition: color 0.25s ease;
}

.faq__q:hover { color: var(--cobalt); }

.faq__sign {
  order: -1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--cobalt-mid);
  outline: 1px solid transparent;
  outline-offset: 3px;
  color: var(--cobalt);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease, color 0.3s ease, outline-color 0.3s ease;
}

.faq__sign svg { width: 14px; height: 14px; }

.faq__q[aria-expanded="true"] .faq__sign {
  transform: rotate(135deg);
  background: var(--cobalt);
  color: var(--milk-hi);
  outline-color: var(--mustard);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; color: var(--ink-soft); max-width: 62ch; padding-left: 56px; }

/* --------------------------------------------------------------------------
   Departure — the closing hall
   -------------------------------------------------------------------------- */
.departure { position: relative; text-align: center; overflow: hidden; }
.departure .wrap { position: relative; z-index: 2; }
.departure h2 { margin-bottom: 22px; }
.departure .lead { margin-inline: auto; }

/* The one photograph in the departure hall: the riders who make the 60-minute
   claim above it true. Bounded so the CTA still reads as the centre. */
.departure__scene { max-width: 760px; margin: 40px auto 0; text-align: left; }

.departure__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 38px;
}

/* The plate's outer keyline and corner flourishes sit 6px proud of its box, so
   the buttons below need clearance from the frame, not from the border. */
.enquiry + .departure__actions { margin-top: 58px; }

.departure__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 44px;
  font-size: 0.95rem;
  color: var(--cobalt-ghost);
}

.departure__meta span { display: inline-flex; align-items: center; gap: 10px; }
.departure__meta svg { width: 16px; height: 16px; color: var(--mustard); }

/* --------------------------------------------------------------------------
   Enquiry — an unfired tile set into the fired wall.
   The departure hall is drenched cobalt, so the form arrives as milk-white
   plate: the ticket window in the concourse, the one lit surface you walk to.
   -------------------------------------------------------------------------- */
.enquiry {
  position: relative;
  max-width: 840px;
  margin: 52px auto 0;
  padding: 34px 26px 30px;
  text-align: left;
  background: var(--milk-hi);
  border: 1px solid var(--cobalt-mid);
  outline: 1px solid var(--cobalt-mid);
  outline-offset: 5px;
  box-shadow: var(--shadow-deep);
}

@media (min-width: 700px) { .enquiry { padding: 46px 48px 40px; } }

/* The four painted corner flourishes every framed object in the hall carries,
   drawn on the outer keyline. Mustard punctuates the corners and nothing else. */
.enquiry::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--mustard), var(--mustard)), linear-gradient(var(--mustard), var(--mustard)),
    linear-gradient(var(--mustard), var(--mustard)), linear-gradient(var(--mustard), var(--mustard)),
    linear-gradient(var(--mustard), var(--mustard)), linear-gradient(var(--mustard), var(--mustard)),
    linear-gradient(var(--mustard), var(--mustard)), linear-gradient(var(--mustard), var(--mustard));
  background-repeat: no-repeat;
  background-size:
    16px 1px, 1px 16px, 16px 1px, 1px 16px,
    16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
}

/* Three states share one plate. The frame is the constant; the painting inside
   it changes, so the page never jumps when the form is submitted. */
.enquiry__panel { display: none; }
.enquiry[data-state="idle"] .enquiry__form,
.enquiry[data-state="error"] .enquiry__form { display: block; }
.enquiry[data-state="sending"] .enquiry__firing { display: block; }
.enquiry[data-state="done"] .enquiry__done { display: block; }

/* The short states are centred in the plate. The plate itself becomes the grid
   so the visible panel stretches to whatever height the form was holding —
   centring inside the panel's own min-height would strand it near the top. */
.enquiry[data-state="sending"],
.enquiry[data-state="done"] { display: grid; }

.enquiry__firing,
.enquiry__done {
  min-height: 268px;
  display: none;
  place-content: center;
  text-align: center;
}

.enquiry[data-state="sending"] .enquiry__firing,
.enquiry[data-state="done"] .enquiry__done { display: grid; }

/* The authored motion moment, at loader scale: line work drawn in mid cobalt,
   flooded by the glaze one lozenge at a time, left to right. */
.kiln-run {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 26px;
}

.kiln-run i {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border: 1px solid var(--cobalt-mid);
  background: transparent;
  animation: kiln-fire 1.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.kiln-run i:nth-child(2) { animation-delay: 0.13s; }
.kiln-run i:nth-child(3) { animation-delay: 0.26s; }
.kiln-run i:nth-child(4) { animation-delay: 0.39s; }
.kiln-run i:nth-child(5) { animation-delay: 0.52s; }

@keyframes kiln-fire {
  0%, 70%, 100% { background: transparent; border-color: var(--cobalt-mid); }
  28%, 42% { background: var(--cobalt); border-color: var(--cobalt); }
}

.enquiry__state-note {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
}

/* The seal: a fired tile seen corner-on, gilt-framed, with the tick inside. */
.enquiry__seal {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  transform: rotate(45deg);
  background: var(--cobalt);
  outline: 1px solid var(--mustard);
  outline-offset: 4px;
  animation: seal-set 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enquiry__seal svg {
  width: 24px;
  height: 24px;
  transform: rotate(-45deg);
  color: var(--milk-hi);
}

@keyframes seal-set {
  from { opacity: 0; transform: rotate(45deg) scale(0.72); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

.enquiry__done .enquiry__note { margin-inline: auto; }

.enquiry__done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.enquiry__done-actions .btn {
  background: var(--cobalt);
  color: var(--milk-hi);
  border-color: var(--cobalt-deep);
}

.enquiry__done-actions .btn:hover,
.enquiry__done-actions .btn:focus-visible {
  background: var(--cobalt-deep);
  color: var(--milk-hi);
}

/* The secondary action must not read as a second button, so it drops the
   inscription caps of .painted-link and returns to running text. Only the
   rule that fills on hover is kept. */
.enquiry__done-actions .painted-link {
  border: 0;
  padding: 0 0 3px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  background-image: linear-gradient(var(--ink-soft), var(--ink-soft));
}

@media (prefers-reduced-motion: reduce) {
  .kiln-run i { animation: none; background: var(--cobalt); border-color: var(--cobalt); }
  .enquiry__seal { animation: none; }
}

/* The plate is milk inside a fired section, so the drenched-section heading
   colour has to be overridden back to cobalt or the title paints white on white. */
.glaze--deep .enquiry .enquiry__title {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  letter-spacing: 0.04em;
  color: var(--cobalt-deep);
}

.enquiry__note {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* A painted rule closes the head, exactly as a panel head opens one. */
.enquiry__grid {
  display: grid;
  gap: 22px 26px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--grout);
}

@media (min-width: 700px) { .enquiry__grid { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 9px; min-width: 0; }

.field > span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
}

/* "optional" is an aside about the field, not part of its name — it drops out
   of the inscription face so it cannot be misread as the label. */
.field > span i {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--ink-soft);
}

.field input,
.field select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  caret-color: var(--cobalt);
  background: var(--milk);
  border: 1px solid var(--cobalt-mid);
  border-radius: 0;
  transition: border-color 0.35s ease, background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.field input::placeholder { color: var(--ink-soft); opacity: 0.72; }

/* The glaze entering the line work, at field scale: the keyline fires gilt and
   a cobalt wash floods in behind it. */
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--mustard);
  background: var(--milk-hi);
  box-shadow: 0 0 0 3px rgba(6, 76, 189, 0.16);
}

.field input:hover,
.field select:hover { border-color: var(--cobalt); }

/* Native select chrome is the one thing on this page that would arrive
   rounded and system-grey, so it is redrawn with the hall's own chevron. */
.field__select { position: relative; display: block; }

.field__select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
}

.field__select svg {
  position: absolute;
  right: 17px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--cobalt);
  pointer-events: none;
}

/* Until a real type is chosen the control reads as placeholder, not as data. */
.field__select select:invalid { color: var(--ink-soft); }
.field__select option { color: var(--ink); }

/* Errors only after a submit attempt, never while the visitor is still typing. */
.enquiry.is-checked .field input:invalid,
.enquiry.is-checked .field select:invalid {
  border-color: var(--mustard-deep);
  background: rgba(224, 160, 28, 0.07);
}

/* Parked off-canvas rather than display:none — a hidden-but-rendered field is
   the one dumb form-fillers still fill in. */
.enquiry__pot {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.enquiry__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--grout);
}

/* This is the page's one terminal action, so it takes the fired plate.
   The plate is milk inside a drenched section, so every one of the
   `.glaze--deep .btn` colours has to be restated — inheriting even one of them
   lands cobalt-deep type on a cobalt-deep fill and the label disappears. */
.enquiry__foot .btn {
  background: var(--cobalt);
  color: var(--milk-hi);
  border-color: var(--cobalt-deep);
}

.enquiry__foot .btn:hover,
.enquiry__foot .btn:focus-visible {
  background: var(--cobalt-deep);
  color: var(--milk-hi);
  border-color: var(--cobalt-deep);
}

.enquiry__msg {
  flex: 1 1 15ch;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.enquiry__msg.is-bad { color: var(--mustard-deep); }

.enquiry button[disabled] { opacity: 0.6; cursor: progress; }
.enquiry button[disabled]:hover { transform: none; box-shadow: none; }


/* --------------------------------------------------------------------------
   Base frieze (footer)
   -------------------------------------------------------------------------- */
.base { position: relative; overflow: hidden; padding-top: calc(var(--tile) * 0.85); }

.base__grid { display: grid; gap: 44px; padding-bottom: 50px; }

@media (min-width: 880px) { .base__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; } }

.base__blurb { margin-top: 20px; max-width: 36ch; color: var(--cobalt-ghost); }

.base__cin {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cobalt-ghost);
}

.base__cin span { display: inline-block; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.07em; opacity: 0.82; }

.base h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cobalt-wash);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(168, 192, 228, 0.3);
}

.base ul { display: grid; gap: 12px; }
.base li a, .base address a { color: var(--cobalt-ghost); transition: color 0.2s ease; }
.base li a:hover, .base address a:hover { color: var(--milk-hi); }
.base address { font-style: normal; display: grid; gap: 12px; color: var(--cobalt-ghost); }

.base__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid rgba(168, 192, 228, 0.3);
  font-size: 0.9rem;
  color: var(--cobalt-wash);
}

.base__bar nav { display: flex; gap: 26px; }
.base__bar a:hover { color: var(--milk-hi); }

/* --------------------------------------------------------------------------
   Motion — one authored moment: the glaze filling line work in the kiln
   -------------------------------------------------------------------------- */
.kiln {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiln.is-fired { opacity: 1; transform: none; }

/* Line art is drawn, then flooded — the glaze wash entering the outline. */
.draw path, .draw circle, .draw line, .draw polyline {
  stroke-dasharray: var(--len, 900);
  stroke-dashoffset: var(--len, 900);
  transition: stroke-dashoffset 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.draw.is-fired path, .draw.is-fired circle,
.draw.is-fired line, .draw.is-fired polyline { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .kiln { opacity: 1; transform: none; }
  .draw path, .draw circle, .draw line, .draw polyline { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Fired sections inherit the register and FAQ chrome
   -------------------------------------------------------------------------- */
.glaze--deep .panel-head::before { background-image: linear-gradient(var(--cobalt-wash), var(--cobalt-wash)); }
.glaze--deep .ledger li svg { color: var(--mustard); }

/* India fired: the map and its pin invert onto the cobalt ground. */
#india .mosaic__map svg path[fill] { fill: rgba(255, 255, 255, 0.07); stroke: var(--cobalt-wash); }
#india .mosaic__pin {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-wash);
  color: var(--milk-hi);
}
#india .mosaic__pin::before { background: var(--mustard); }
#india .ledger li svg { color: var(--mustard); }

/* --------------------------------------------------------------------------
   Brand mark — the app's own logo, not a redrawn one
   -------------------------------------------------------------------------- */
.mark__logo {
  height: 46px;
  width: auto;
  display: block;
}

@media (min-width: 900px) { .mark__logo { height: 58px; } }

/* The logo is a single blue; on the fired ground it goes to milk rather than
   shipping a second file that can drift out of sync with the app's asset. */
.mark--inverse .mark__logo {
  filter: brightness(0) saturate(100%) invert(97%) sepia(6%) saturate(300%) hue-rotate(3deg) brightness(103%);
}

/* --------------------------------------------------------------------------
   The founder's words, set as a painted panel
   -------------------------------------------------------------------------- */
.origin { padding: clamp(30px, 4vw, 52px); text-align: center; }

.origin p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--cobalt-deep);
  max-width: 44ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* The long-form story reads as body prose, not as a pull quote. */
.origin--story { text-align: left; max-width: 880px; margin-inline: auto; }
.origin--story > * { max-width: none; margin-inline: 0; }
.origin--story p.story {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 74ch;
  margin-inline: 0;
  text-wrap: initial;
}
.origin--story p.story + p.story { margin-top: 18px; }

.origin footer { margin-top: 24px; }

.origin footer b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.origin footer span { font-size: 0.92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   App slides — the real product screens, redrawn

   These mirror the shipping apps: customer-app tabs (Home · Doctors · Tests ·
   Medicines · DocAI) and provider-app tabs (Home · Appointments · Profile),
   down to the app palette (#064CBD on #F7F9FC), the white rounded cards and
   the actual copy. The phone frame stays in the hall's hand; the screen inside
   is the app's. Swap for real PNG exports and only the frame markup survives.
   -------------------------------------------------------------------------- */
.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 250px);
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  overflow-x: auto;
  padding-block: 8px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar { display: none; }
.phone { scroll-snap-align: center; }

.phone__body {
  position: relative;
  aspect-ratio: 9 / 17;
  padding: 9px;
  border: 1px solid var(--cobalt);
  outline: 2px solid var(--mustard);
  outline-offset: 5px;
  border-radius: 30px;
  background: var(--milk-hi);
  box-shadow: var(--shadow-deep);
}

.glaze--deep .phone__body { border-color: var(--cobalt-wash); background: var(--cobalt-deep); }

.phone__body::before {
  content: "";
  position: absolute;
  top: 15px; left: 50%;
  width: 46px; height: 3px;
  transform: translateX(-50%);
  background: var(--cobalt-wash);
  border-radius: 2px;
  z-index: 2;
}

/* A real screenshot instead of a rebuilt screen: the frame takes the phone's
   own ratio so nothing important is cropped out of the capture. */
.phone--shot .phone__body { aspect-ratio: 0.474; padding: 7px; }

.phone--shot .phone__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  display: block;
}

/* The notch pip belongs to a drawn screen, not a captured one. */
.phone--shot .phone__body::before { display: none; }

.phone figcaption,
.phone__cap {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
}

.phone__cap span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.glaze--deep .phone__cap { color: var(--milk-hi); }
.glaze--deep .phone__cap span { color: var(--cobalt-ghost); }

/* Placed after .door so the fired variant wins on the cascade. */
.door--fired { background: var(--cobalt); border-color: var(--cobalt-deep); }
.door--fired b { color: var(--milk-hi); }
.door--fired span { color: var(--cobalt-ghost); }
.door--fired:hover, .door--fired:focus-visible { background: var(--cobalt-deep); border-color: var(--mustard); }
.door--fired:hover b, .door--fired:focus-visible b { color: var(--milk-hi); }
.door--fired:hover span, .door--fired:focus-visible span { color: var(--cobalt-ghost); }

.hero-eyebrow { align-self: flex-start; }
@media (min-width: 1024px) {
  .entrance .panel-scene--tall { min-height: 250px; }
  /* Faces on the upper third of a tall frame, grass cropped off the bottom. */
  .entrance .panel-scene--tall img { object-position: 50% 38%; }
}

/* The hero photograph is a full portrait again, so its plaque can carry both
   lines — a strip with the subline cut was a symptom of the band crop. */
@media (min-width: 1024px) {
  .entrance .panel-scene__cartouche { left: 22px; bottom: 22px; padding: 14px 20px; }
}

/* Three facts, set as a gilt-ruled register between the promise and the doors. */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mustard);
}

.proof span {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.proof b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--cobalt-deep);
}

/* --------------------------------------------------------------------------
   Premium pass — nav, hero and the FAQ column
   -------------------------------------------------------------------------- */

/* The board condenses once the visitor leaves the platform: the wordmark drops
   a size and the band tightens, so the hall gains height as you walk into it. */
.board__inner { transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.mark__logo { transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@media (min-width: 900px) {
  .board.is-departed .board__inner { padding-block: 8px; }
  .board.is-departed .mark__logo { height: 46px; }
}

/* Nav items hold one line each; a two-line nav label reads as an accident. */
.hall-nav a {
  position: relative;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 10px 13px;
}

/* Position in the hall, drawn as the same painted rule the panels use. */
.hall-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hall-nav a.is-here { color: var(--cobalt-deep); }
.hall-nav a.is-here::after { transform: scaleX(1); }
.board__cta { white-space: nowrap; }

/* Gilt is spent where it earns attention: the hero cartouche, the photograph
   and the fired door. A gold line around every object is gold around none. */
.door { outline-color: transparent; }
.door--fired { outline: 1px solid var(--mustard); outline-offset: 4px; }

@media (min-width: 1024px) {
  .entrance .h-hall { font-size: clamp(2.4rem, 4.1vw, 4rem); }
  .proof b { font-size: 1.28rem; }
}

/* The photograph drifts a hair over half a minute — the one slow thing in a
   still hall, and the reduced-motion rule stops it outright. */
@keyframes hall-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.entrance .panel-scene--tall img {
  animation: hall-drift 34s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

/* The FAQ is a single measured column, centred in the hall. */
.faq-hall .panel-head { justify-items: center; text-align: center; }
.faq-hall .panel-head--split { grid-template-columns: minmax(0, 62ch); justify-content: center; gap: 14px; }
.faq-hall .prose { margin-inline: auto; }
.faq { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Audit remediation
   -------------------------------------------------------------------------- */

/* Nav and footer links were 22–28px tall boxes; inline padding does not make a
   target. Every standing link now clears 40px. */
.hall-nav a { display: inline-flex; align-items: center; min-height: 42px; }
.base address a, .base nav a { display: inline-flex; align-items: center; min-height: 40px; }
.base__bar nav a { min-height: 40px; }

/* --------------------------------------------------------------------------
   Hero, louder — the first viewport as a painted wall, not a two-column layout
   -------------------------------------------------------------------------- */
/* The photograph stays inside the room. Bleeding it off the right edge left the
   register below it hanging on a different margin, and stripped the gilt frame
   from the one object that most needs it — the two read as a mistake, not as a
   wall continuing. Both objects in the right column now share one edge. */

/* The bigger display size is spent only where there is height to spend it;
   a short laptop keeps the whole pitch above the fold instead. */
@media (min-width: 1280px) and (min-height: 820px) {
  .entrance .h-hall { font-size: clamp(2.6rem, 4.5vw, 4.6rem); line-height: 0.94; }
  .entrance .lead { font-size: 1.12rem; max-width: 46ch; }
}

/* The photograph paints itself in, tile row by tile row — the kiln grammar
   applied to the one photograph that carries the hall. */
@keyframes hall-paint {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.entrance .panel-scene--tall {
  animation: hall-paint 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* A short laptop gets the compact cut of the hero: the pitch above the fold
   beats the poster-sized display line. */
@media (min-width: 1024px) and (max-height: 820px) {
  .entrance .h-hall { font-size: clamp(2.1rem, 3.1vw, 3.1rem); line-height: 0.98; }
  .entrance .lead { font-size: 1.02rem; }
  .entrance .proof { margin-top: 16px; padding-top: 14px; }
  .entrance .doors { padding-top: 22px; }
  .entrance .door { padding: 15px 18px; }
  .board__inner { padding-block: 9px; }
  .mark__logo { height: 48px; }
}

/* --------------------------------------------------------------------------
   Hero register + plaque — the station-timetable pass
   -------------------------------------------------------------------------- */

/* Three facts on an even register with hairline divisions, rather than three
   items pushed together by a flex gap. */
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.proof span {
  padding-inline: 20px;
  border-left: 1px solid var(--grout);
}

.proof span:first-child { padding-left: 0; border-left: 0; }

/* The caption is a plaque screwed to the tile, not a band across it. */
.panel-scene__cartouche {
  right: auto;
  max-width: calc(100% - 36px);
  width: fit-content;
}

@media (min-width: 1280px) {
  .entrance .panel-scene__cartouche { right: auto; }
}

/* Departures read as a platform board: the eye travels the row on a dotted
   leader instead of jumping a void. */
.departures li { position: relative; }

.departures li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  z-index: 0;
  background-image: radial-gradient(circle, var(--grout-deep) 0.5px, transparent 0.6px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity: 0.85;
}

.departures li > * { position: relative; z-index: 1; background: var(--milk-hi); }
.departures li svg { padding-right: 6px; box-sizing: content-box; }
.departures li b { padding-left: 8px; }

/* The principles are a mosaic of plates now, so their head sits on the left
   wall like every other section head in the hall. */

/* --------------------------------------------------------------------------
   The departures board, moved out of the hero
   -------------------------------------------------------------------------- */

/* As a hero sidebar this register was seven dense rows fighting the headline
   for the first viewport. Standing on its own wall it takes the hall's
   measured-column form — the same centred plate the FAQ and the principles
   use — so the timetable reads as a list, not a spreadsheet. */
.departures-hall .panel-head { justify-items: center; text-align: center; }
.departures-hall .panel-head--split { grid-template-columns: minmax(0, 62ch); justify-content: center; gap: 14px; }
.departures-hall .prose { margin-inline: auto; }

.departures-hall .departures {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px) clamp(22px, 3.2vw, 44px);
}

.departures-hall .departures li { padding: 15px 0; font-size: 0.92rem; }
.departures-hall .departures li svg { width: 20px; height: 20px; }
.departures-hall .departures li b { font-size: 0.92rem; }

/* On a phone the longest labels wrap, and a dotted leader through a wrapped
   line reads as a printing error. Narrow screens stack the value under the
   label and drop the leader. */
@media (max-width: 560px) {
  .departures-hall .departures li { grid-template-columns: 22px 1fr; gap: 4px 13px; }
  .departures-hall .departures li b { grid-column: 2; text-align: left; padding-left: 0; }
  .departures-hall .departures li::after { display: none; }
}

/* --------------------------------------------------------------------------
   The hero, unboxed
   -------------------------------------------------------------------------- */

/* Five frames stacked in one viewport — card, eyebrow pill, two doors and a
   plaque — read as packaging around the pitch rather than as a hall. The
   entrance now carries one framed object, the photograph. Everything on the
   left stands on the tile itself, held by type and two hairline rules. */
.entrance .cartouche {
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .entrance .cartouche { padding-right: clamp(24px, 3.4vw, 64px); }
  .entrance__grid { padding-block: clamp(28px, 4vw, 56px) calc(var(--tile) * 0.7); }
}

/* The eyebrow is a mark and a rule now, not a box. */
.entrance .hero-eyebrow {
  padding: 0;
  border: 0;
  background: none;
  gap: 11px;
  margin-bottom: 26px;
  letter-spacing: 0.2em;
  color: var(--mustard-deep);
}

.entrance .hero-eyebrow::after {
  content: "";
  width: clamp(28px, 5vw, 84px);
  height: 1px;
  background: var(--mustard);
}

/* One door is fired, the other is a hairline. Neither wears a second frame. */
.entrance .door { outline: 0; }
.entrance .door--fired { box-shadow: 0 16px 34px rgba(8, 47, 143, 0.24); }
.entrance .door:not(.door--fired) {
  background: transparent;
  border-color: var(--grout-deep);
}
.entrance .door:not(.door--fired):hover,
.entrance .door:not(.door--fired):focus-visible {
  background: var(--milk-hi);
  border-color: var(--cobalt);
}

/* The photograph keeps its gilt — it is the only frame left, so it earns it.
   The glaze lifts a little and the grout over the picture is halved: the
   family should read as a photograph first and a tile second. */
.entrance .panel-scene::before {
  background: linear-gradient(178deg, rgba(10, 68, 209, 0.4), rgba(8, 47, 143, 0.64));
}

.entrance .panel-scene::after { opacity: 0.5; }

/* The plaque loses its double keyline for a single gilt margin rule. */
.entrance .panel-scene__cartouche {
  border: 0;
  outline: 0;
  border-left: 3px solid var(--mustard);
  background: rgba(250, 246, 236, 0.93);
  padding: 16px 22px;
}

/* --------------------------------------------------------------------------
   The reel — app screens as a scroll-snapped carousel
   -------------------------------------------------------------------------- */

/* Six screens do not fit a row, and a row of six shrunk to fit shows nothing.
   One screen is read at a time, centred and at full weight; its neighbours
   stand behind it, smaller and dimmer, so the reel reads as depth rather than
   as a list that ran out of room. Arrows and dots only call scrollTo — the
   native scroll a swipe already produces is the single source of position. */
/* The slide width also drives the reel's height (a phone is 2.11x its width),
   so it is capped in vh as well as vw — otherwise a laptop viewport gets a
   carousel taller than the screen and the controls fall below the fold. */
.reel { position: relative; --slide: clamp(214px, min(64vw, 27vh), 274px); }

.reel__track {
  grid-auto-columns: var(--slide);
  justify-content: start;
  gap: clamp(24px, 4vw, 60px);
  /* Half a rail minus half a slide: the first and last screens can reach the
     centre like every other one. */
  padding-inline: calc(50% - var(--slide) / 2);
  padding-block: 18px 10px;
  scroll-behavior: smooth;
}

.reel__track .phone {
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s ease;
  opacity: 0.3;
  transform: scale(0.84);
  filter: blur(1.5px);
}

.reel__track .phone.is-current {
  opacity: 1;
  transform: none;
  filter: none;
}

/* The caption belongs to the screen being read. Carrying six captions at once
   is six things asking to be read and none of them answered. */
.reel__track .phone__cap {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.reel__track .phone.is-current .phone__cap { opacity: 1; }

/* The current screen gets the gilt; the others keep only their keyline, so the
   frame itself marks where to look. */
.reel__track .phone .phone__body {
  outline-color: transparent;
  box-shadow: none;
  transition: outline-color 0.55s ease, box-shadow 0.55s ease;
}

.reel__track .phone.is-current .phone__body {
  outline-color: var(--mustard);
  box-shadow: var(--shadow-deep);
}

/* Only the dots sit in normal flow; the arrows float over the reel itself, so
   the whole control set stays on screen with the screens it drives. */
.reel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* Centred on the phone, not on the reel: the track's top padding plus half a
   phone (a screen is 2.11x its own width, and --slide is that width). */
.reel__arrow {
  position: absolute;
  top: calc(18px + var(--slide) * 1.055);
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--grout-deep);
  background: rgba(250, 246, 236, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 10px 26px rgba(6, 32, 78, 0.16);
  color: var(--cobalt-deep);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Tucked against the screen they act on, not against the viewport edge — an
   arrow parked over a blurred neighbour reads as belonging to that one.
   max() keeps them on screen when the rail is wider than the gutter. */
.reel__arrow[data-reel-prev] { left: max(4px, calc(50% - var(--slide) / 2 - 76px)); }
.reel__arrow[data-reel-next] { right: max(4px, calc(50% - var(--slide) / 2 - 76px)); }

.reel__arrow svg { width: 17px; height: 17px; }
.reel__arrow:hover, .reel__arrow:focus-visible {
  background: var(--milk-hi);
  border-color: var(--mustard);
  transform: translateY(-50%) scale(1.07);
}
.reel__arrow[disabled] { opacity: 0.22; cursor: default; }
.reel__arrow[disabled]:hover { transform: translateY(-50%); border-color: var(--grout-deep); }

.glaze--deep .reel__arrow {
  color: var(--milk-hi);
  border-color: var(--cobalt-wash);
  background: rgba(8, 38, 92, 0.62);
  box-shadow: 0 10px 26px rgba(2, 14, 40, 0.4);
}
.glaze--deep .reel__arrow:hover, .glaze--deep .reel__arrow:focus-visible {
  background: rgba(8, 38, 92, 0.86);
  border-color: var(--mustard);
}

/* A counter, not just dots: the reel says where it is in words as well. */
.reel__dots { display: flex; align-items: center; gap: 11px; }

/* A dot is a tile seen corner-on — gilt when it is the one being read. */
.reel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--grout-deep);
  background: transparent;
  cursor: pointer;
  transform: rotate(45deg);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.reel__dot:hover { border-color: var(--mustard); }

.reel__dot.is-current {
  background: var(--mustard);
  border-color: var(--mustard);
  transform: rotate(45deg) scale(1.45);
}

.glaze--deep .reel__dot { border-color: var(--cobalt-wash); }

@media (prefers-reduced-motion: reduce) {
  .reel__track { scroll-behavior: auto; }
  .reel__track .phone, .reel__track .phone__cap, .reel__track .phone__body { transition: none; }
  .reel__track .phone { filter: none; }
}
