/* ==========================================================================
   1 Poultry — Location
   Figma: "Location - Desktop" 321:22116 (1440 x 4781)
   Sections: hero → amenities map → neighbours map → connectivity strip +
   rail map → CTA band
   ========================================================================== */

/* The real Poultry Sans ships a Semibold face, so the UA default
   font-weight:bold on h1–h6 now snaps to it. The design is Medium
   throughout — hold headings at the body weight.
   (Belongs in base.css; kept page-local because base.css is locked.) */


.location {
  /* Page-scoped steps the shared scale doesn't carry.
     The vw value hits the Figma size exactly at 1440px, like tokens.css. */
  --loc-stat:      clamp(1.375rem, calc(2.222vw * var(--s)), 2rem);   /* lead; was an off-scale 30 */
  --loc-map-inset: clamp(1.25rem, calc(5.5556vw * var(--s)), 5rem);    /* filter row gap */
  --key-col: 15rem;                              /* the amenities key column */
  /* The ground each plate is drawn on. The amenities and connectivity
     plates arrived on #F1F0EE / #F2F1F0 — a neutral grey — while the page
     and the neighbours plate are cream, so both maps read as grey slabs
     laid on a cream page. The artwork's ground has been shifted to the page
     cream (tools/recolour-maps.py), and the frames follow it, so the plate
     now meets the page with no edge at all. */
  --loc-map-ground: var(--c-cream);
  /* All three plates now sit on the page cream, so this is the same value.
     Kept as its own name because the neighbours frame has its own aspect
     ratio and letterbox and may need to diverge again. */
  --loc-map-ground-nb: var(--c-cream);
}

/* ---------- 1. Hero (321:22124 + Tagline 321:22127) ------------------- */
.loc-hero__title {
  /* em so the two-line hero break survives the type scale — as px it
     collapsed to one line at 768. */
  max-width: 12em;
  margin-inline: auto;
}

/* ---------- 2 + 3. Maps: amenities, then neighbours (brochure pp. 8-9) ---- */
/* Two sections built exactly the same way so the pair reads as one idea:
   headline, the brochure plate across the full content width, then its key
   underneath it in columns — the numbered treatment from brochure page 8, a
   colour dot and the group name over `number  name` rows.

   Both plates are the brochure artwork with every marker already baked in.
   Filtering covers what is NOT selected — a cream disc over each unselected
   pin, a cream plate over each unselected brand logo — and re-draws the
   chosen category's pins as DOM elements on top, at the coordinates in
   assets/data/location-map.json (pin centre as a % of the image). The map
   itself is never washed, so the artwork keeps its full colour.

   Deliberately NOT .screen: at the Figma width a full-bleed-to-content plate
   is ~853px tall, so plate plus key cannot fit one screenful without
   shrinking the map back to the narrow thing it was. These two size to their
   content; every other .screen block on the page is untouched. Sizes are
   fixed Figma px — the fluid tokens would scale a second time under the
   page zoom. */
.loc-map {
  background: var(--c-cream);
  color: var(--c-black);
}
/* 160 at the top, not 80. The triangle nav lands on section tops, and the
   header is up to 120 tall — at 80 the headline arrived underneath it. 160 is
   the step every other section on the site starts its first line at. */
/* The amenities map is width-bound, not height-bound: the frame takes the
   stage less the key column, and its ratio turns that into a height. So the
   only way to grow the map is to give it width (key column 20rem -> 15rem)
   and then buy back the height that costs from this top padding. 80 still
   lands the headline clear of the header — section[id] carries a 6rem
   scroll-margin, so the first line arrives ~150 down the viewport. */
.loc-map--amenities { padding-block: var(--sp-8) var(--sp-8); }
.loc-map--nb        { padding-block: var(--sp-10) var(--sp-9); }

.loc-map__stage {
  /* amenities.pinDiameterPct from location-map.json, as a % of the plate */
  --loc-pin-d: 1.77cqw;
  --key-col-gap: 1.875rem;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.loc-map__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: none;
}

/* Category row - a single-select tablist: the four views are mutually
   exclusive, not toggles. Visual treatment unchanged from the Figma. */
.loc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.625rem var(--loc-map-inset);
  margin-top: 1.25rem;
}

.loc-filter {
  position: relative;
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-black);
  padding-bottom: 0.3125rem;
  opacity: 0.55;
  transition:
    opacity   var(--dur-sm) var(--ease-out-expo),
    transform var(--dur-sm) var(--ease-out-expo);
}
.loc-map__stage .loc-filter { font-size: var(--fs-micro); }
.loc-filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.loc-filter:hover,
.loc-filter:focus-visible { opacity: 1; transform: translateY(-2px); }
.loc-filter:hover::after,
.loc-filter:focus-visible::after { transform: scaleX(1); }
.loc-filter[aria-selected="true"],
.loc-filter[aria-pressed="true"] { opacity: 1; }
.loc-filter[aria-selected="true"]::after,
.loc-filter[aria-pressed="true"]::after { transform: scaleX(1); }

/* ---- map left, key beside it ----
   The key used to sit under the map. The map is most of a screenful, so
   the key was always below the fold: you could pick a category and never
   see the names it belonged to. Beside the map, both are on screen at
   once. Below 1100px it goes back to stacking, where there is no width to
   put a column in. */
.loc-map__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.875rem;
  margin-top: 1.875rem;
}
.loc-map--nb .loc-map__row { margin-top: 1.875rem; }

@media (min-width: 1100px) {
  .loc-map--amenities .loc-map__row {
    grid-template-columns: minmax(0, 1fr) var(--key-col);
    column-gap: var(--key-col-gap);
    align-items: start;
  }

  /* Food carries 28 names and runs well past the foot of the map, which
     pushed the section taller than the map it belongs to. Each panel is
     held to the map's own height and scrolls inside it instead.

     The height is derived, not guessed: the stage is always --page-max wide
     under the page scale, so the map column is that less the padding, the
     key column and the gap — and the frame's ratio turns it into a height.
     Change the column width or the gap and this follows. */
  .loc-map--amenities .loc-key__panel {
    max-height: calc((var(--page-max) - var(--pad-x) * 2
                      - var(--key-col) - var(--key-col-gap)) * 1643 / 2600);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--c-black-30, rgba(16, 16, 16, 0.28)) transparent;
    padding-right: 0.625rem;
    /* A soft fade at the foot of the panel, so a list that runs on reads as
       scrollable rather than as one that has simply been cut off. It lifts
       once you reach the end. */
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 2.875rem), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - 2.875rem), transparent 100%);
  }
  .loc-map--amenities .loc-key__panel.is-end {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .loc-map--amenities .loc-key__panel::-webkit-scrollbar { width: 0.375rem; }
  .loc-map--amenities .loc-key__panel::-webkit-scrollbar-track { background: transparent; }
  .loc-map--amenities .loc-key__panel::-webkit-scrollbar-thumb {
    background: rgba(16, 16, 16, 0.24);
    border-radius: 0.1875rem;
  }
}

/* The frame is the window; the track is the thing that scrolls on mobile;
   the plate sits inside the track at its own aspect ratio, vertically
   centred, so a percentage coordinate always resolves against the image
   itself. */
.loc-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2600 / 1643;
  overflow: hidden;
  background: var(--loc-map-ground);
}
/* The two brochure plates are drawn on slightly different grounds; each
   frame matches its own so the letterbox never reads as an edge. Sampled
   from the artwork - flagged to the lead, no token exists. */
.loc-map__frame--nb {
  aspect-ratio: 2600 / 1604;
  background: var(--loc-map-ground-nb);
}
.loc-map__track { position: absolute; inset: 0; }

.loc-plate {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: var(--ar);
  translate: 0 -50%;
  container-type: inline-size;   /* cqw = a % of the plate, so pin geometry
                                    tracks the artwork at any size */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity    var(--dur-md) var(--ease-out-expo),
    visibility var(--dur-md);
}
.loc-plate.is-shown { opacity: 1; visibility: visible; }
.loc-plate--amenities  { --ar: 2600 / 1643; }
.loc-plate--neighbours { --ar: 2600 / 1604; }
.loc-plate__img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}

/* Muting the pins, not the map.
   A veil over the whole plate drained the brochure artwork of its colour.
   Instead one cream disc sits over each baked pin belonging to a category
   that is not currently selected — slightly larger than the pin so it covers
   it cleanly — and the map itself is never touched. */


/* ---- drawn pins ---- */
.loc-pins { position: absolute; inset: 0; }

.loc-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--loc-pin-d);
  aspect-ratio: 1;
  translate: -50% -50%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  scale: 0.34;
  pointer-events: none;
  transition:
    opacity 340ms var(--ease-out-expo),
    scale   520ms var(--ease-out-expo);
}
.loc-pin.is-on {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
  transition-delay: calc(var(--i) * 13ms);   /* stagger in; out is immediate */
}
.loc-pin__dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pin);
  color: var(--c-white);
  font-size: 1cqw;
  line-height: 1;
  letter-spacing: -0.01em;
  transition:
    scale      var(--dur-sm) var(--ease-out-expo),
    box-shadow var(--dur-sm) var(--ease-out-expo);
}
.loc-pin.is-hot { z-index: 6; }
.loc-pin.is-hot .loc-pin__dot {
  scale: 1.5;
  box-shadow: 0 0 0 0.22cqw var(--c-cream), 0 0 0 0.42cqw var(--pin);
}
.loc-pin:focus-visible { outline: none; }
.loc-pin:focus-visible .loc-pin__dot {
  scale: 1.5;
  box-shadow: 0 0 0 0.22cqw var(--c-cream), 0 0 0 0.42cqw var(--c-black);
}

/* ---- neighbour / landmark plates: baked artwork, so only a ring ---- */
.loc-hit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* A cream halo first, then the group colour: the plates are dark purple on a
   cream ground, so a single coloured ring would disappear into them. */
.loc-hit::after {
  content: "";
  position: absolute;
  inset: -0.22cqw;
  border-radius: 0.16cqw;
  box-shadow:
    0 0 0 0.2cqw  var(--c-cream),
    0 0 0 0.42cqw var(--pin);
  opacity: 0;
  scale: 0.96;
  transition:
    opacity var(--dur-sm) var(--ease-out-expo),
    scale   var(--dur-sm) var(--ease-out-expo);
}
.loc-hit.is-hot { z-index: 6; }
.loc-hit:focus-visible { outline: none; }
.loc-hit.is-hot::after,
.loc-hit:focus-visible::after { opacity: 1; scale: 1; }

/* ---- the key ---- */
.loc-key {
  display: grid;
  min-width: 0;
}
/* The four amenity panels share one grid cell and cross-fade, so switching
   category never jumps the page height. */
.loc-key__panel {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0.625rem, 0);
  transition:
    opacity    var(--dur-md) var(--ease-out-expo),
    transform  var(--dur-md) var(--ease-out-expo),
    visibility var(--dur-md);
}
.loc-key__panel.is-active { opacity: 1; visibility: visible; transform: none; }

.loc-key__group + .loc-key__group { margin-top: 1.875rem; }
.loc-key__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-micro);
  line-height: var(--lh-snug);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid color-mix(in srgb, var(--c-black) 18%, transparent);
}
.loc-key__dot {
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  background: var(--pin);
  flex: none;
}
/* Food is 28 rows, so the key runs four columns across the full width and
   stays about seven rows deep. The column-width floor drops it to three or
   two if the measure ever gets tight. */
.loc-key__list {
  columns: 11.875rem 4;
  column-gap: var(--key-col-gap);
  margin-top: 0.625rem;
}
/* In the side column there is only room for one column of names, and the
   list is as tall as the map beside it. */
@media (min-width: 1100px) {
  .loc-map--amenities .loc-key__list { columns: 1; margin-top: 0.625rem; }
}
.loc-key__list > li { break-inside: avoid; }

/* Neighbours: two named groups side by side, 20 names against 7, split so
   both land at the same depth. */
.loc-key--nb {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  column-gap: 2.8125rem;
  align-items: start;
}
.loc-key--nb .loc-key__group + .loc-key__group { margin-top: 0; }
.loc-key--nb [data-group="neighbours"] .loc-key__list { columns: 11.875rem 3; }
.loc-key--nb [data-group="landmarks"]  .loc-key__list { columns: 11.875rem 1; }

.loc-key__row {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: 0 0.3125rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 0.3125rem 0.25rem 0.3125rem 0.3125rem;
  margin-left: -0.3125rem;
  border-radius: 0.1875rem;
  font-size: var(--fs-micro);
  line-height: var(--lh-ui);
  color: var(--c-black);
  cursor: pointer;
  transition:
    color            var(--dur-sm) var(--ease-out-expo),
    background-color var(--dur-sm) var(--ease-out-expo),
    transform        var(--dur-sm) var(--ease-out-expo);
}
.loc-key__row--plain { grid-template-columns: minmax(0, 1fr); }
.loc-key__n {
  color: var(--pin);
  font-variant-numeric: tabular-nums;
}
.loc-key__row:hover,
.loc-key__row:focus-visible,
.loc-key__row.is-hot {
  color: var(--pin);
  background-color: color-mix(in srgb, var(--pin) 11%, transparent);
  transform: translate3d(0.1875rem, 0, 0);
  outline: none;
}
.loc-key__row:focus-visible {
  box-shadow: 0 0 0 1px var(--pin);
}

/* Without the data file there is nothing to filter or to name: fall back to
   the plain plates. */
.loc-map.is-static .loc-filters,
.loc-map.is-static .loc-key { display: none; }

/* ---------- 3a. "Get there 1st." strip (Component 15, 347:1787) ------- */
.loc-links {
  background: var(--c-cream);
  padding-bottom: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem);
}

.loc-strip {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  /* The band above closes with generous air; this opens with the same, so
     the two read as one rhythm rather than the strip being crowded up
     against the navy. */
  /* One padding-top, deliberately. There were two — this generous one and a
     24-35px one further down the same rule, which is the one that won, so
     raising the first had no effect at all and the strip stayed crowded up
     against the navy band. */
  padding-top: clamp(5rem, calc(11.1111vw * var(--s)), 10rem);
  display: grid;
  grid-template-columns:
    minmax(0, 623fr)
    minmax(0, 409fr)
    minmax(0, 370fr);
  align-items: start;
  padding-bottom: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
}

.loc-strip__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
}
.loc-strip__title em { font-style: italic; }

/* Tabs — the Figma component has two states but no visible affordance,
   so a minimal, on-brand switch is provided. */
.loc-strip__tabs {
  display: flex;
  gap: 1.25rem;
  margin-top: clamp(0.9375rem, calc(1.3889vw * var(--s)), 1.25rem);
}
.loc-tab {
  position: relative;
  font-size: var(--fs-micro);
  line-height: var(--lh-snug);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  padding-bottom: 0.3125rem;
  transition: opacity var(--dur-sm) var(--ease-out-expo);
}
.loc-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.loc-tab:hover { opacity: 0.85; }
.loc-tab[aria-selected="true"] { opacity: 1; }
.loc-tab[aria-selected="true"]::after { transform: scaleX(1); }

/* The two panels stack in one grid cell and cross-fade. */
.loc-strip__panels {
  grid-column: 2 / -1;
  display: grid;
}
.loc-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 409fr) minmax(0, 370fr);
  /* The Figma sets these two columns edge to edge and gets away with it
     because both notes happen to be short. They are text, not boxes: a note
     one word longer runs straight into the column beside it with nothing
     between them. A gutter, so the pair can never touch whatever the copy
     does. */
  column-gap: clamp(1.25rem, calc(2.8vw * var(--s)), 2.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0.875rem, 0);
  transition:
    opacity    var(--dur-md) var(--ease-out-expo),
    transform  var(--dur-md) var(--ease-out-expo),
    visibility var(--dur-md);
}
.loc-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.loc-fact__lead {
  font-size: var(--loc-stat);
  line-height: var(--lh-tight);
}
.loc-fact__note {
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  margin-top: 0.625rem;
}

/* Airport table (347:1738–1745) */
.loc-times {
  display: grid;
  grid-template-columns: minmax(0, 185fr) minmax(0, 180fr);
  row-gap: 0.9375rem;
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
}
.loc-times__place,
.loc-times__span { white-space: nowrap; }
.loc-times__row {
  display: contents;
}

/* ---------- 3b. Rail map (Brochure page 6, 321:22231) ----------------- */
.loc-rail {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  aspect-ratio: 1438 / 945;
  overflow: hidden;
  background: var(--loc-map-ground);
}

/* Raster and vector overlays share one plate, so the two vector pieces stay
   pinned to their landmarks however the plate is sized or scaled. */
.loc-rail__plate {
  position: absolute;
  left: -8.4%;
  top: 0;
  width: 116.8%;      /* cover: 1438:945 box, 16:9 artwork */
  container-type: inline-size;
  will-change: transform;
}
.loc-rail__img { display: block; width: 100%; height: auto; }

/* Vector overlays above the raster (347:1724 / 347:1729), positioned by
   their centres as a fraction of the plate. */
/* ---------- the walk marker ------------------------------------------ */
/* Both maps carry the brochure's dashed ring; neither said what it meant. The
   brochure sets the label along the ring itself, so this does the same — an
   SVG laid over the plate in the artwork's own coordinates, with the type on
   a textPath concentric with the printed circle and a little outside it. The
   arc runs clockwise, which is what puts the letters upright and outboard;
   counter-clockwise and they hang inside the ring upside down.

   The SVG has no size of its own: it fills the plate, and because its viewBox
   is the artwork's pixel dimensions every coordinate in the markup is a
   coordinate on the map. Nothing to re-derive when the plate resizes. */
.map-walk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.map-walk__text {
  fill: var(--c-walk, #FB7780);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.map-walk__icon { fill: var(--c-walk, #FB7780); }

.loc-rail__tunnel {
  position: absolute;
  left: 63.74%;
  top: 62.93%;
  width: 8.75%;
  transform: translate(-50%, -50%) rotate(59.03deg);
  transform-origin: center;
  text-align: center;
  white-space: nowrap;
  color: var(--c-black);
  font-size: 0.75rem;
  line-height: var(--lh-snug);
  letter-spacing: 0.5px;
}
@supports (width: 1cqw) {
  .loc-rail__tunnel { font-size: 0.605cqw; letter-spacing: 0.03cqw; }
}
/* Hidden below the fold-down: at a fitted width it is a two-pixel word, and a
   label nobody can read is just a smudge on the drawing. */
@media (max-width: 860px) {
  .loc-rail__tunnel { display: none; }
}

/* ---------- 4. Closing CTA (Frame 22, 321:22235) ---------------------- */
/* QA: the cream heading sits centred over pale stone and wood, outside the
   top/bottom scrims base.css draws, and measured 3.7:1. These veils use the
   shared .bleed--wash hook rather than a second local ::after. */
.loc-hero  { --bleed-wash: 0.18; }
.loc-cta   { --bleed-wash: 0.26; }

.loc-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
}
.loc-cta__title { max-width: 45rem; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1200px) {
  .loc-strip { grid-template-columns: minmax(0, 520fr) minmax(0, 409fr) minmax(0, 370fr); }
}

@media (max-width: 1024px) {
  .loc-strip {
    grid-template-columns: 1fr;
    row-gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
  }
  .loc-strip__panels { grid-column: 1; }
}

@media (max-width: 860px) {
  /* Below the shared 860px release point the page zoom is off, so the plate
     would shrink to illegibility at the real viewport width. Each map
     becomes a horizontal scroller instead, keeping its key underneath. */
  .loc-map--amenities { padding-block: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem) clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem); }
  .loc-map--nb        { padding-block: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem) clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem); }
  .loc-map__title { font-size: var(--fs-display); line-height: var(--lh-tight); }
  .loc-map__stage .loc-filter { font-size: var(--fs-xs); }
  .loc-filters { margin-top: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem); gap: 0.625rem 1.875rem; }
  /* Legible, and hittable. The type floor is 14 — 12 is a desktop label size
     and reads as a mistake on a phone — and the extra height is bought on the
     top edge only, so the underline these carry on their bottom edge does not
     move. */
  .loc-map__stage .loc-filter,
  .loc-filter,
  .loc-tab { font-size: var(--fs-xs); padding-top: 1.3125rem; margin-top: -1.3125rem; }
  .loc-key__n,
  .loc-key__name { font-size: var(--fs-xs); }
  .loc-key__row { padding-block: 0.75rem; }

  .loc-map__row,
  .loc-map--nb .loc-map__row {
    row-gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
    margin-top: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  }
  .loc-map__frame {
    aspect-ratio: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .loc-map__frame--nb { aspect-ratio: auto; }
  .loc-map__track {
    position: relative;
    inset: auto;
    width: 58.75rem;
    aspect-ratio: 2600 / 1643;
  }
  .loc-map__frame--nb .loc-map__track { aspect-ratio: 2600 / 1604; }

  .loc-key__list,
  .loc-key--nb [data-group="neighbours"] .loc-key__list,
  .loc-key--nb [data-group="landmarks"]  .loc-key__list { columns: 9.375rem 2; }
  .loc-key--nb {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.875rem;
  }
  .loc-key--nb .loc-key__group + .loc-key__group { margin-top: 0; }
}

@media (max-width: 860px) {
  /* The schematic fits the page rather than panning across it. It is the
     drawing the brochure uses and it stays the drawing here; at this width
     the printed station names go below reading size, and the shape of the
     network — which is what the plate is for — is what carries. The times
     themselves are set beside it, in the panel above. */
  .loc-rail {
    aspect-ratio: auto;
    overflow: visible;
    padding-inline: var(--pad-x);
  }
  .loc-rail__plate { position: static; width: 100%; }
  .loc-rail__img { position: static; width: 100%; height: auto; max-width: none; }
}

@media (max-width: 768px) {

  .loc-panel { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .loc-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 21.25rem; }
}

@media (max-width: 480px) {
  /* Wide enough that the pin numbers and the printed street names survive the
     reduction — the plate pans, so width costs nothing but a swipe. */
  .loc-map__track { width: 56.25rem; }
  .loc-hero__title { max-width: 100%; }
}

/* Calm mode: everything arrives already placed, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .loc-plate,
  .loc-pin,
  .loc-pin__dot,
  .loc-hit::after,
  .loc-key__panel,
  .loc-key__row { transition: none; }
  .loc-pin { opacity: 1; scale: 1; }
  .loc-pin:not(.is-on) { opacity: 0; }
  .loc-pin.is-on { transition-delay: 0ms; }
}


/* ==========================================================================
   3. In good company — the occupiers band
   --------------------------------------------------------------------------
   Replaces the neighbours plate. Navy, because navy is the colour this site
   already uses when it talks about where the building sits (the landing
   location band) — the page reads as one argument rather than two.

   The marquee is CSS only: each row holds its list twice and translates by
   exactly -50%, so the second copy is standing where the first one started
   at the moment it wraps and the loop has no seam. No scroll listener, no
   JS, nothing to fall out of step.
   ========================================================================== */
.firms {
  position: relative;
  background: var(--c-ink-navy);
  color: var(--c-cream);
  padding-block: clamp(7.5rem, calc(11.1111vw * var(--s)), 10rem);
  overflow: clip;
}
.firms__inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  text-align: center;
}
.firms__title {
  /* An optical trim, not a spacing change. The band's padding is a straight
     160 top and bottom and measures dead even — but the top of that gap ends
     at a line BOX and the bottom of it starts at the logos' ink, and a 55px
     line box carries about 12px of air above its capitals. So the top read
     as the larger of the two by exactly that. This pulls the cap-line up to
     where the box was, which is what makes the two gaps look equal rather
     than measure equal. */
  margin-top: -0.22em;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  /* wide enough to hold the line together at the design width; it breaks
     on its own once the column is genuinely too narrow */
  max-width: 19em;
  margin-inline: auto;
  text-wrap: balance;
}
.firms__lede {
  margin-top: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem);
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  color: var(--c-cream-70);
  max-width: 34em;
  margin-inline: auto;
}

.firms__rows {
  margin-top: clamp(5rem, calc(8.3333vw * var(--s)), 7.5rem);
  display: grid;
  gap: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem);
  /* the rows run edge to edge and fade out into the navy at both margins */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.firms__row { overflow: hidden; }
.firms__track {
  display: flex;
  align-items: center;
  gap: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem);
  width: max-content;
  padding-inline: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
  animation: firms-run var(--dur, 46s) linear infinite;
}
/* The second row runs the other way and a little slower, so the band never
   reads as one object sliding past. */
.firms__row:nth-child(2) .firms__track {
  animation-direction: reverse;
  --dur: 58s;
}
@keyframes firms-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Hovering the band holds it, so a name can actually be read. */
.firms__rows:hover .firms__track { animation-play-state: paused; }

/* Every mark gets the same box and is contained inside it, rather than
   sharing a common height. These twenty range from a near-square L&G to a
   White & Case wordmark thirteen times as wide as it is tall; matched on
   height alone the wide ones would dominate the row completely. */
.firm {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(8.25rem, calc(14.6vw * var(--s)), 13.125rem);
  height: clamp(2.125rem, calc(3.6vw * var(--s)), 3.25rem);
}
.firm__logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity var(--dur-sm) var(--ease-out-quart);
}
.firm:hover .firm__logo { opacity: 1; }

/* The name is the fallback if a mark is ever missing. */
.firm__name {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.1875rem, calc(1.736vw * var(--s)), 1.5625rem);
  line-height: 1;
  color: var(--c-cream);
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  .firms__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    row-gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  }
  /* With the rows static the duplicate copy is just repetition, so the
     second half of each track is dropped. --n is the real count, set on the
     element in the markup. */
  .firms__track > .firm:nth-child(n + 11) { display: none; }
  .firms__rows { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 860px) {
  .firm__name { font-size: clamp(1.1875rem, calc(4.6vw * var(--s)), 1.5625rem); }
  .firm__logo { height: clamp(1.25rem, calc(4.8vw * var(--s)), 1.75rem); }
}

/* ---------- The nine brand plates -------------------------------------
   Lifted off the original artwork before the printed markers were painted
   out of it, and placed back at the coordinates they came from — so they
   sit exactly where the brochure has them and disappear with their category
   like every other marker. */
.loc-logo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-md) var(--ease-out-expo);
}
.loc-logo.is-on { opacity: 1; }
.loc-logo__img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
@media (prefers-reduced-motion: reduce) { .loc-logo { transition: none; } }

/* ---------- Vertical rhythm on a phone — see --sec-y ------------------- */
@media (max-width: 860px) {
  .loc-map--amenities,
  .loc-map--nb { padding-block: var(--sec-y); }
  .firms       { padding-block: var(--sec-y); }
  .loc-links   { padding-bottom: var(--sec-y); }
  .loc-links .loc-strip { padding-top: var(--sec-y); }
}
