/* ==========================================================================
   1 Poultry — shared components: header, menu overlay, buttons, footer,
   stat rows, credential badges, floorplan carousel, loader
   ========================================================================== */

/* ---------- Header (Figma "Menu-Top" / Frame 28, 1440x130) ------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  /* 120, not the Figma's 130: the bar is the first thing every page
     measures against, so it sits on the spacing ladder like everything
     else. Top-anchored sections then clear it at 160 — one step up. */
  height: clamp(5rem, calc(8.333vw * var(--s)), 7.5rem);
  padding: 0 var(--pad-x);
  color: var(--c-cream);
  transition: background var(--dur-md) var(--ease-out-expo),
              transform  var(--dur-md) var(--ease-out-expo);
}
/* The header never hides and never paints a bar: it stays transparent and
   flips its own ink to whatever is passing underneath. site.js samples the
   tone separately on the left and the right, because a section split down
   the middle wants a different answer for the mark than for the burger.
   The soft shadow is what keeps cream ink legible over a bright photograph
   without putting a panel across the design. */
.site-header {
  background: none;
  color: var(--c-cream);
  mix-blend-mode: normal;
}
.site-header__logo img,
.site-header .burger {
  filter: drop-shadow(0 1px 0.625rem rgba(0, 0, 0, 0.45));
  transition: filter var(--dur-md) var(--ease-out-expo);
}
.site-header--on-light .site-header__logo img {
  filter: invert(1) brightness(0.16) drop-shadow(0 1px 0.5rem rgba(255, 255, 255, 0.5));
}
.site-header--burger-on-light .burger {
  color: var(--c-black);
  filter: drop-shadow(0 1px 0.5rem rgba(255, 255, 255, 0.5));
}

/* Standing on a flat colour, the bar paints itself that colour (site.js
   sets the value inline, sampling the section under it) and the ink sits
   on a known ground. The drop-shadows above exist only to lift cream off
   a photograph — over a painted bar they read as a smudge, so they go. */
.site-header--solid .site-header__logo img,
.site-header--solid .burger { filter: none; }
.site-header--solid.site-header--on-light .site-header__logo img {
  filter: invert(1) brightness(0.16);
}
.site-header--solid.site-header--burger-on-light .burger { filter: none; }
/* While the overlay is open the ground is always black. */
.is-menu-open .site-header--on-light .site-header__logo img,
.is-menu-open .site-header .burger {
  filter: none;
}
.is-menu-open .site-header--on-light .site-header__logo img { filter: none; }
.is-menu-open .site-header .burger { color: var(--c-cream); }

.site-header__logo { width: clamp(7.5rem, calc(11.8vw * var(--s)), 10.625rem); }
.site-header__logo img { width: 100%; transition: opacity var(--dur-sm) var(--ease-out-expo); }
.site-header__logo:hover img { opacity: 0.72; }

/* Burger — three rules that fold into an X */
.burger {
  position: relative; z-index: 1;
  width: 2.5rem; height: 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.burger__bar {
  display: block; width: 100%; height: 0.1875rem; border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform var(--dur-sm) var(--ease-out-expo),
              opacity   var(--dur-xs) linear;
}
.burger:hover .burger__bar:nth-child(2) { transform: scaleX(0.72); }
.is-menu-open .burger__bar:nth-child(1) { transform: translateY(0.90625rem) rotate(45deg); }
.is-menu-open .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.is-menu-open .burger__bar:nth-child(3) { transform: translateY(-0.90625rem) rotate(-45deg); }

/* ---------- Menu overlay (Figma "Menu - Desktop - V2") ---------------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--c-black-true);
  display: grid; align-content: safe center;
  padding: clamp(5rem, calc(8.3333vw * var(--s)), 7.5rem) var(--pad-x) var(--pad-x);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* 110px is the Figma size at the 1440x1024 frame: 7.639vw hits it on width,
     10.7422vh hits it on height, so the design size survives at the frame and
     shrinks only on genuinely shorter viewports. Scrolling is the
     last-resort fallback below ~560px tall. */
  --fs-menu: min(clamp(2.5rem, calc(7.639vw * var(--s)), 6.875rem), calc(10.7422vh * var(--s)));
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-lg) var(--ease-out-expo);
  visibility: hidden;
}
.is-menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }

/* The overlay takes focus when it opens so Escape and the screen reader have
   somewhere to land; it is not a tab stop and has nothing to outline. */
.menu:focus { outline: none; }

.menu__list { display: flex; flex-direction: column; }

.menu__item { overflow: hidden; }
.menu__link {
  display: block;
  font-size: var(--fs-menu);
  /* --lh-tight; 1.35 could not fit six items at the Figma 110px on the
     1024-tall frame. */
  line-height: var(--lh-tight);
  color: var(--c-cream);
  transform: translate3d(0, 105%, 0);
  transition: transform var(--dur-lg) var(--ease-out-expo) var(--i-delay, 0ms);
  will-change: transform;
}
.is-menu-open .menu__link { transform: none; }

/* The gradient wash that fills each word on hover, exactly as in Figma. */
.menu__link span {
  display: inline-block;
  background-image: var(--grad-menu);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--c-cream);
  transition: background-position var(--dur-lg) var(--ease-out-expo),
              color var(--dur-md) var(--ease-out-expo),
              transform var(--dur-md) var(--ease-out-expo);
}
.menu__link:hover span,
.menu__link:focus-visible span {
  color: transparent;
  background-position: 0 0;
  transform: translateX(clamp(0.375rem, calc(0.9vw * var(--s)), 0.875rem));
}
/* ---------- What is on each page ---------------------------------------
   Six words told you the site had six pages. They did not tell you that the
   schedule of areas, the floor plans and the specification were all on one
   of them, under a name chosen for the scheme rather than for the person
   looking — an agent said as much: "I just want a schedule of areas or a
   floor plan". The three pages that hold more than one thing now say so.

   The words themselves are untouched. On a desktop the contents appear in
   the half of the overlay that was always empty, on hover or keyboard focus;
   on a phone, where there is no right half and the overlay cannot be
   scrolled, the disclosure opens the list in place and only one is ever
   open. */
.menu__item--has-sub { position: relative; }

.menu__sub {
  list-style: none;
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
}
.menu__sublink {
  display: inline-block;
  color: var(--c-cream);
  opacity: 0.68;
  transition: opacity var(--dur-sm) var(--ease-out-expo),
              transform var(--dur-sm) var(--ease-out-expo);
}
.menu__sublink:hover,
.menu__sublink:focus-visible { opacity: 1; transform: translateX(0.3125rem); }

/* The disclosure is the phone's control; a desktop reveals on hover and has
   no use for it. */
.menu__disc { display: none; }

@media (min-width: 861px) {
  /* .menu__item clips its word for the slide-up reveal. Once the overlay has
     finished opening (site.js adds .is-menu-ready) the clip has done its job
     and is released, so the panel can sit outside the row. */
  /* The list hugs its longest word rather than filling the overlay, so the
     panel can be placed off the end of the type and clear every word by the
     same distance. A stated left could not: the words are sized against both
     the width and the height of the window, so "Innovation" is 620px on one
     screen and 540 on another, and any fixed column landed on top of it. */
  .menu__list { width: max-content; max-width: 100%; }
  .menu__sub {
    position: absolute;
    top: 50%;
    left: calc(100% + clamp(2.5rem, calc(5vw * var(--s)), 5.625rem));
    translate: 0 -50%;
    width: max-content;
    display: grid;
    gap: clamp(0.5rem, calc(0.8vw * var(--s)), 0.875rem);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.625rem);
    transition: opacity var(--dur-md) var(--ease-out-expo),
                transform var(--dur-md) var(--ease-out-expo);
  }
  body.is-menu-ready .menu__item { overflow: visible; }
  /* The pointer has to cross the gap between the word and its list. Both are
     inside the row, but the gap is not — without a bridge the list closes
     halfway to itself. */
  .menu__sub::before {
    content: "";
    position: absolute;
    inset: -1.5rem 0 -1.5rem calc(-1 * clamp(2.5rem, calc(5vw * var(--s)), 5.625rem) - 0.5rem);
  }
  body.is-menu-ready .menu__item--has-sub:hover .menu__sub,
  body.is-menu-ready .menu__item--has-sub:focus-within .menu__sub {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 860px) {
  .menu__item--has-sub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .menu__item--has-sub > .menu__link { grid-column: 1; }
  .menu__disc {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    color: var(--c-cream);
    opacity: 0.6;
    transition: opacity var(--dur-sm) var(--ease-out-expo),
                rotate var(--dur-md) var(--ease-out-expo);
  }
  .menu__disc svg { width: 1.375rem; height: 1.375rem; }
  .menu__disc[aria-expanded="true"] { opacity: 1; rotate: 180deg; }
  /* Collapsed on a max-height rather than the 0fr grid trick: 0fr sizes the
     first row only, and these lists have three, so the other two stayed at
     full height and left a dead 220px gap under every word that had a list.
     The cap is twice the tallest list the menu can hold, so it cannot clip
     even if a label wraps, and it is only ever crossed while animating. */
  .menu__sub {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.625rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--dur-md) var(--ease-out-expo),
                opacity var(--dur-sm) var(--ease-out-expo),
                padding var(--dur-md) var(--ease-out-expo);
  }
  .menu__item--has-sub.is-open .menu__sub {
    max-height: 15rem;
    opacity: 1;
    padding-block: 0.625rem 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu__sub, .menu__disc, .menu__sublink { transition: none; }
}

/* The page you are on wears the wash at rest — the same fill the others take
   on hover. Opening the menu from an inner page used to give you six
   identical words and no clue which one you had arrived from, which is
   exactly what the agents described as getting lost. */
.menu__link[aria-current="page"] span {
  color: transparent;
  background-position: 0 0;
}

/* Enquire is filled with the atrium photograph rather than the ramp */
.menu__link--image span { background-image: url("../img/global/menu-enquire-fill.png?v=093234f6"); background-size: cover; background-position: center; }

.menu__meta {
  margin-top: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);
  display: flex; flex-wrap: wrap; gap: 0.625rem 1.875rem;
  color: var(--c-white-40); font-size: var(--fs-xs);
  opacity: 0; transition: opacity var(--dur-md) var(--ease-out-expo) 520ms;
}
.is-menu-open .menu__meta { opacity: 1; }

body.is-menu-open { overflow: hidden; }

/* ---------- Button (Figma "Component 13") ----------------------------- */
.btn {
  --btn-ink: var(--c-cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  min-height: 2.9375rem;
  border: 1px solid var(--btn-ink);
  border-radius: 6.25rem;
  color: var(--btn-ink);
  font-size: var(--fs-body);
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-md) var(--ease-out-expo),
              border-color var(--dur-md) var(--ease-out-expo),
              transform var(--dur-sm) var(--ease-out-expo);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-ink);
  transform: translate3d(0, 101%, 0);
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.btn:hover, .btn:focus-visible { color: var(--c-black); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn--dark { --btn-ink: var(--c-black); }
.btn--dark:hover { color: var(--c-cream); }

/* ---------- Footer (Figma "Frame 148", 1440x596) ---------------------- */
.site-footer {
  background: var(--c-black-true); color: var(--c-white);
  padding: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem) var(--pad-x) clamp(2.8125rem, calc(4.1667vw * var(--s)), 3.75rem);
}
.site-footer__grid {
  max-width: var(--page-max); margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(13.75rem, 1fr) repeat(2, minmax(13.75rem, 21.0625rem));
  gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);
  align-items: stretch;      /* so the brand column can push its legal
                                block down onto the other columns' baseline */
}
/* Two rows: the wordmark and address sit alone on the first, and every
   column of content starts on the second — so Menu, Quick links and Get in
   touch all begin on one line under the logo. Row 2 is 1fr so the brand
   column stretches to the agents' full height, which is what lets its
   credits settle onto their bottom edge. */
.site-footer__head {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 1.25rem; }
/* The two-row model only holds where there are three real columns. At 1024
   the brand spans the pair and the agents drop below it, and at 720 the
   whole thing stacks — forcing a row there collides the lot. */
@media (min-width: 1025px) {
  .site-footer__grid { grid-template-rows: auto 1fr; }
  .site-footer__grid > * { grid-row: 2; }
  .site-footer__head { grid-row: 1; }
  .site-footer__brand { grid-column: 1; }
}
.site-footer__mark { width: clamp(8.75rem, calc(13.2vw * var(--s)), 11.875rem); }
/* The Figma fills the wordmark with the hero film, running on a loop. The
   letterforms are an inline <clipPath> in objectBoundingBox units, so the
   clip is a same-document reference — an external SVG mask is silently
   dropped when the site is opened straight off disk (file://) and the mark
   disappears. The gold gradient sits underneath as the fallback: if the
   video is missing or refused, the wordmark still reads. */
.site-footer__mark { display: block; }
.footer-mark {
  position: relative;
  width: 100%;
  aspect-ratio: 170 / 52;
}
.footer-mark__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.footer-mark__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-clip-path: url(#poultryClip);
          clip-path: url(#poultryClip);
  background-image: linear-gradient(100deg,
      #3A3020 0%, #63501F 12%, #B07C29 26%, #F5B92E 40%,
      #E08A28 52%, #F5B92E 64%, #B07C29 78%, #63501F 90%, #3A3020 100%);
}
.footer-mark__video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  .footer-mark__video { display: none; }   /* the gold gradient stands in */
}
.site-footer__mark img { width: 100%; }
/* ---------- The way out ------------------------------------------------
   Every page closed on a plate and a list of agents, so the only route on
   was back up to the header — and until this week the header was a burger.
   Two agents reported the same thing in different words: they got to the
   foot of a section and were stuck. The sections are restated here, which
   is what the comparable City schemes do and what gives every page a second
   exit.

   The right-hand column is the one that matters. A letting agent does not
   arrive looking for "Experience"; they arrive looking for a floor plan or
   a schedule of areas, and nothing on the site said those words anywhere —
   they are on the Experience page, under a name chosen for the scheme
   rather than for the person searching. Naming them, and linking straight
   at them, is the whole of that fix. */
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem clamp(1.25rem, calc(2.8vw * var(--s)), 2.8125rem);
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
}
.site-footer__links-col { display: flex; flex-direction: column; gap: 0.625rem; }
/* Same type and the same drop as "Get in touch", less the column's own
   0.625rem gap, so all three headings sit on one line and their first
   items do too. */
.site-footer__col-head { margin-bottom: 0.875rem; opacity: 1; }
.site-footer__link {
  position: relative;
  align-self: flex-start;
  opacity: 0.7;
  transition: opacity var(--dur-sm) var(--ease-out-expo);
}
.site-footer__link:hover,
.site-footer__link:focus-visible { opacity: 1; }
/* Same marker as the header bar, so "you are here" means one thing across
   the whole site. */
.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.site-footer__link:hover::after { transform: scaleX(1); }
.site-footer__link[aria-current="page"] { opacity: 1; }
.site-footer__link[aria-current="page"]::after { transform: scaleX(1); }

/* margin-top: auto does the work now the column stretches — the old fixed
   padding-top pushed the credits below the agents instead of level with
   them. The padding is just a floor for short viewports. */
.site-footer__legal { margin-top: auto; padding-top: clamp(1.875rem, calc(3vw * var(--s)), 3.125rem); font-size: var(--fs-small); line-height: var(--lh-snug); }
/* Sized by width, in the same proportion the Enquire footer uses — the two
   marks have very different aspect ratios (FORE is 4:1, MORE nearer 2:1),
   so matching their heights makes MORE read small. */
.site-footer__devlogos { display: flex; align-items: center; gap: clamp(1rem, calc(1.7vw * var(--s)), 1.5rem); margin-top: 0.75rem; }
.site-footer__devlogo { display: block; opacity: 0.9; transition: opacity var(--dur-sm) var(--ease-out-expo); }
.site-footer__devlogo img { width: 100%; height: auto; }
.site-footer__devlogo--fore { width: clamp(4.5rem, calc(6.57vw * var(--s)), 5.9rem); }
.site-footer__devlogo--more { width: clamp(3.67rem, calc(5.35vw * var(--s)), 4.8rem); }
.site-footer__devlogo:hover { opacity: 1; }
.site-footer__legal .site-footer__devlogos + p { margin-top: 1.25rem; }
.site-footer__legal p + p { margin-top: 0.625rem; }
.site-footer a.u-underline {
  text-decoration: underline; text-underline-offset: 0.1875rem;
  transition: opacity var(--dur-sm) var(--ease-out-expo);
}
.site-footer a.u-underline:hover { opacity: 0.6; }

/* A fixed row height, so both agencies' contact lists start on the same
   line. The two logos are different shapes and were sized independently —
   Savills is the taller — which left the right-hand column sitting about
   10px below the left all the way down. The height is the taller of the two;
   each logo still keeps its own optical size inside it. */
.agent-logos { display: flex; align-items: center; gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem); margin-bottom: 1.875rem; height: clamp(1.875rem, calc(2.92vw * var(--s)), 2.625rem); }
.agent-logos img { width: auto; }
.agent-logos img[alt*="Cushman"] { height: clamp(1.375rem, calc(2.22vw * var(--s)), 2rem); }
.agent-logos img[alt*="Savills"]  { height: clamp(1.875rem, calc(2.92vw * var(--s)), 2.625rem); }

.contact-card { display: flex; flex-direction: column; gap: 0.625rem; }
.contact-card + .contact-card { margin-top: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem); }
.contact-card__name { font-size: var(--fs-small); }
.contact-card__row  { font-size: var(--fs-xs); color: var(--c-white-70); }
.contact-card a { transition: color var(--dur-sm) var(--ease-out-expo); }
.contact-card a:hover { color: var(--c-white); }

/* ---------- Stat rows (Innovation) ------------------------------------ */
.stat-list { display: flex; flex-direction: column; }
.stat {
  padding-block: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  position: relative;
}
/* The rule under a stat is drawn by ::after so it can wipe in on scroll.
   ::before is the faint track it draws along, so the row still reads
   with JS off or under prefers-reduced-motion. */
.stat::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: currentColor; opacity: 0.22;
}
.stat::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-lg) var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.stat.is-in::after { transform: scaleX(1); }
.stat__figure { font-size: var(--fs-display); line-height: 1; }
.stat__label  { font-size: var(--fs-small); opacity: 0.75; margin-top: 0.9375rem; }

/* ---------- Credential badges (Component 9 / Frames 147-151) ---------- */
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.625rem, calc(1.0417vw * var(--s)), 0.9375rem); }
.badge { text-align: center; }
/* No overflow: hidden. The disc is a ring, not a mask — it was left over
   from a filled-disc hover that no longer exists, and all it did was crop
   the EPC plate against the circle whenever the mark sat off centre. With
   the mark pinned to the disc's centre (see .badge__icon) nothing can reach
   the edge, so there is nothing to clip and no way to clip it. */
.badge__disc {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--c-cream-40);
  transition: border-color var(--dur-md) var(--ease-out-expo),
              transform    var(--dur-md) var(--ease-out-expo);
}
/* The Figma badges have no hover treatment. A disc that filled and inverted
   its mark was invented here and read as broken — the marks are a mix of
   ink-on-transparent SVG and cropped bitmap, so inverting them is not even
   consistent. All that is left is the ring coming up to full strength. */
.badge:hover .badge__disc,
.badge:focus-visible .badge__disc { border-color: var(--c-cream); }
/* Pinned to the centre of the disc rather than laid out inside it. As a
   grid child the mark's position depended on the box the browser gave it,
   and that box changes: the images load late, the page rescales on a resize,
   a scrollbar appears. Every one of those was a chance for a mark to sit a
   few pixels off and, on the EPC plate, to be cut by the ring. Absolutely
   centred, its position is one calculation that cannot be re-run wrongly.
   max-height keeps any mark inside the circle whatever its aspect. */
.badge__icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 62%;
  max-height: 62%;
  object-fit: contain;
  --nx: 0; --ny: 0;
  transform: translate(-50%, -50%)
             translate(calc(var(--nx) * 1%), calc(var(--ny) * 1%));
}
.badge__title { margin-top: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; }
.badge__note  { margin-top: 0.9375rem; font-size: var(--fs-xs); opacity: 0.7; line-height: var(--lh-ui); }

/* ---------- Floorplan carousel (Component 1 / Frames 126-132) --------- */
.floors { position: relative; }
.floors__viewport { overflow: hidden; }
.floors__track {
  display: flex;
  transition: transform var(--dur-lg) var(--ease-soft);
  will-change: transform;
}
.floors__slide { flex: 0 0 100%; min-width: 0; }
.floors__panel {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) 1fr;
  gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
  align-items: start;
  padding: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
}
.floors__title { font-size: var(--fs-lead); line-height: var(--lh-tight); }
.floors__spec { border-top: 1px solid currentColor; padding-top: 0.625rem; margin-top: 1.25rem; display: flex; justify-content: space-between; gap: 0.9375rem; font-size: var(--fs-xs); }
.floors__plan { position: relative; }
.floors__plan img { width: 100%; }
.floors__nav { position: absolute; top: clamp(1rem, calc(1.8vw * var(--s)), 1.625rem); right: clamp(1rem, calc(1.8vw * var(--s)), 1.625rem); display: flex; gap: 0.625rem; }
.floors__btn {
  width: 1.875rem; height: 1.875rem; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center;
  transition: background var(--dur-sm) var(--ease-out-expo), color var(--dur-sm) var(--ease-out-expo), transform var(--dur-sm) var(--ease-out-expo);
}
.floors__btn:hover { background: currentColor; transform: scale(1.08); }
.floors__btn:hover svg { color: var(--c-cream); }
.floors__btn[disabled] { opacity: 0.3; pointer-events: none; }
.floors__dots { display: flex; gap: 0.625rem; justify-content: center; margin-top: 1.25rem; }
.floors__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; opacity: 0.3; transition: opacity var(--dur-sm), transform var(--dur-sm); }
.floors__dot[aria-current="true"] { opacity: 1; transform: scale(1.35); }

/* ---------- Horizontal marquee / logo strip --------------------------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Loader / landing sequence --------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--c-black-true); color: var(--c-cream);
  display: grid; place-items: center;
  transition: opacity var(--dur-lg) var(--ease-out-expo), visibility var(--dur-lg);
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* The full top padding is sized for tall frames; from 860px down it has to
   give way or the six items crowd the meta line. (line-height stays at the
   1.15 base here - loosening it on short viewports defeats the purpose.) */
@media (max-height: 860px) {
  .menu { padding-top: clamp(3.75rem, calc(11vh * var(--s)), 5rem); }
}
@media (max-height: 560px) {
  /* Below 560px tall the 10.7422vh cap would push the type past the viewport,
     and the overlay cannot be wheel-scrolled (the smooth-scroll layer
     swallows wheel events), so hold the type to 9vh and keep everything on
     screen instead of relying on the scroll fallback. */
  .menu { align-content: start; --fs-menu: min(clamp(2.5rem, calc(7.639vw * var(--s)), 6.875rem), calc(9vh * var(--s))); }
  .menu__meta { margin-top: 1.25rem; }
}

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal { padding-top: 1.875rem; }
  .badges { grid-template-columns: repeat(3, 1fr); row-gap: 2.8125rem; }
  .floors__panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  /* On one column the credits were stranded between the wordmark and the
     first contact, reading as a caption to the address rather than as the
     sign-off they are. They belong under the agents. The brand column is
     dissolved into the grid (display:contents) so its three parts can be
     ordered independently of each other; nothing about it changes above
     this width, where it is still a real column with its own baseline. */
  .site-footer__brand { display: contents; }
  .site-footer__head { display: contents; }
  .site-footer__mark { order: 1; }
  .site-footer__head > .t-small { order: 2; margin-top: -0.625rem; }
  /* Stacked, the exit goes near the top of the footer — that is where you
     arrive, and making someone scroll six contact cards to find the way on
     is the problem this was added to solve. */
  .site-footer__links { order: 3; margin-top: 0.625rem; }
  .site-footer__grid > div:not(.site-footer__brand) { order: 4; }
  .site-footer__legal { order: 5; margin-top: 0; padding-top: 0; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .menu__link { line-height: var(--lh-snug); }
  .agent-logos { gap: 1.25rem; }
}
@media (max-width: 480px) {
  /* Two, not one. A single column put five 256px discs in a 2,600px stack —
     five screenfuls to read five words. Paired, the band is three rows, and
     the odd one out is centred across both so the row does not read as a
     dropped item. */
  .badges { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-7); }
  .badges > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .stat::after   { transform: scaleX(1); }
  .marquee__track { animation: none; }
}


/* ==========================================================================
   Whole-page proportional scale
   The Figma is drawn at 1440 x 1024. Rather than scaling each block
   separately — which made a stage inside a fluid layout scale twice and
   drift — the whole design is expressed in rem and site.js sets ONE root
   font size from how the frame fits the window. Every length in rem then
   holds its Figma proportion at any window size.

   This replaces documentElement.style.zoom, which did the same job but is
   not a standardised property: engines disagree about what it does to a
   measurement, so anything converting between a rect and a scroll position
   was correct in one browser and wrong in another. Scaling the root font
   size leaves one coordinate space and nothing to convert.

   A viewport unit is deliberately NOT in rem — 100svh is one screenful and
   says so, which is what --screen-h now is.
   ========================================================================== */
.screen {
  position: relative;
  height: var(--screen-h);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
}
/* No transform, no absolute offset: the stage is simply the block's content,
   laid out at Figma's own measurements. The modifiers are alignment only. */
.screen__stage {
  position: relative;
  place-self: center;
  width: 100%;
  max-width: var(--stage-w, 90rem);
}
.screen__stage--left  { place-self: center start; }
.screen__stage--right { place-self: center end; }

/* Media beds and washes sit behind the content, full-bleed. */
.screen > .screen__media { position: absolute; inset: 0; z-index: -2; }
.screen > .screen__media img,
.screen > .screen__media video { width: 100%; height: 100%; object-fit: cover; }

/* Below the tablet breakpoint the stacked mobile layouts are taller than a
   screen by design, so .screen releases its one-screen contract. */
@media (max-width: 860px) {
  .screen { height: auto; min-height: 0; overflow: visible; }
  /* ...but a plate is still a plate. .bleed asks for a screenful and .screen
     takes it away — same specificity, and components.css is the later file, so
     the reset won and every section that is both came out the height of its
     own headline. Experience and the Innovation closer had each been patched
     locally; the Innovation hero had not, and on a phone it was a 440pt band
     with the credentials gradient opening under it. Stated once, here. */
  .screen.bleed { min-height: var(--vh-hero); }
  .screen__stage { max-width: none; }

  /* .screen gives up its clipping on the line above so a stacked section can
     grow past a screenful. The media beds are deliberately oversized — inset
     -8% and a 118% height, so a parallax has somewhere to travel — and with
     nothing clipping them they hang over the top of whatever section comes
     next. On History that put 67px of the hero photograph across the head of
     the claret band, and the only things that covered it were the blocks
     carrying their own claret backing: the opening title read as a claret
     rectangle cut off 20px short of the right edge.

     Clipping the bed was the first answer and it is half of one: it stops the
     image escaping the bed, but the bed is itself 42px taller than the section
     at each end. The scrims and the wash are only as tall as the section, so
     those 42px paint as unwashed photograph — a lighter strip along the foot
     of every plate, and a cut across the head of the section below. Both
     halves are needed: the bed contains its image and its blooms, and a
     section carrying a full-bleed bed clips that bed. Experience had already
     patched its two locally; History, the Innovation hero, closer and
     credentials band had not. Stated once, here. */
  .screen > .screen__media { overflow: hidden; }
  .screen.bleed,
  .hist-hero.screen,
  .inn-creds.screen { overflow: hidden; }
}

/* ---------- Fixed section scroller ------------------------------------ */
/* The brand triangle, parked in the bottom-right corner and never leaving.
   One click takes you to the top of the next section; at the foot of the
   page it turns over and takes you home. It sits under the header so the
   burger and the overlay keep the top-right corner, and it steps aside
   entirely while the menu is open — there is nothing to scroll past then. */
.section-nav {
  position: fixed;
  right: var(--pad-x);
  bottom: clamp(1.25rem, calc(2.8vw * var(--s)), 2.5rem);
  z-index: 150;
  width:  clamp(2.125rem, calc(3.3vw * var(--s)), 3rem);
  height: clamp(2.125rem, calc(3.3vw * var(--s)), 3rem);
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0;
  color: var(--c-coral);
  cursor: pointer;
  transition: opacity var(--dur-sm) var(--ease-out-expo),
              transform var(--dur-sm) var(--ease-out-expo);
}
.section-nav__tri {
  width: 62%; height: auto;
  fill: currentColor;
  /* Coral holds up on cream and on navy alike; the shadow is only there so
     it never dissolves into a bright photograph. */
  filter: drop-shadow(0 1px 0.5rem rgba(0, 0, 0, 0.35));
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.section-nav:hover  { transform: translateY(0.1875rem); }
.section-nav:active { transform: translateY(1px); }
.section-nav--up .section-nav__tri { transform: rotate(180deg); }
.section-nav--up:hover { transform: translateY(-0.1875rem); }

.is-menu-open .section-nav {
  opacity: 0; pointer-events: none;
}
/* ---------- Rail controls --------------------------------------------
   The row under a horizontal band: an arrow, the dots, an arrow. Shared,
   because two pages have one and a control that looks like a different
   control on a different page is a different control. Each page decides
   when it shows; none of them decides what it looks like. */
.rail-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-inline: var(--pad-x);
}
.rail-arrow {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  color: inherit;
  transition: opacity var(--dur-sm) var(--ease-out-expo);
}
.rail-arrow svg { width: 1.125rem; height: 1.125rem; }
.rail-arrow:disabled { opacity: 0.28; }
.rail-nav .floors__dots { margin-top: 0; flex: 1 1 auto; }
.rail-nav .floors__dot { background: currentColor; }

/* ---------- Touch targets --------------------------------------------
   Everything the thumb has to hit is at least 44 tall on a coarse pointer.
   The height is bought with padding and given straight back with an equal
   negative margin, so not one of these rules moves anything on the page —
   the box grows, the layout does not. */
@media (max-width: 860px) {
  .site-footer a,
  .enquire__link,
  .enquire-footer a,
  .loc-key__row,
  .legend__item,
  .home-strip__caption a {
    padding-block: 0.75rem;
    margin-block: -0.75rem;
  }
  .burger { width: 2.75rem; height: 2.75rem; padding-block: 0.375rem; }
  .site-header__logo { padding-block: 0.25rem; margin-block: -0.25rem; }
  .intro__skip { padding: 0.75rem; margin: -0.75rem; }
  /* The carousel dots are 8px of ink with a 44px hit box around them: the
     box is drawn by a pseudo-element so the row's rhythm is untouched. */
  .floors__dot { position: relative; }
  .floors__dot::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 2.75rem; height: 2.75rem;
    transform: translate(-50%, -50%);
  }
  .floors__dots { gap: 1.375rem; }
}

/* Not on a phone. The scroller advances one section per press, and below 860
   a section is no longer one screenful — it is a stack four or five screens
   tall, so a press throws the reader past everything in it. A thumb scrolls
   better than a button here, and the corner goes back to the page. */
@media (max-width: 860px) {
  .section-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-nav,
  .section-nav__tri { transition: none; }
}

/* --------------------------------------------------------------- deep links
   Every deep-linked section carries its own id, so a plain #hash is a real
   anchor the browser can jump to on its own. This keeps that jump off the
   fixed header — before site.js has run, and with scripting off entirely.
   site.js then re-lands on the section's composition with the same clearance,
   reading the figure back from the browser rather than computing it, because
   the page's zoom makes hand arithmetic land short. */
section[id] { scroll-margin-top: 6rem; }
