/* ==========================================================================
   1 Poultry — The Building
   Figma: "The Building - Desktop" (351:22944), 1440 x 4731
   Sections, in document order:
     1  hero              351:22945 + 351:22948
     2  floorplates       351:22956 / Component 1 (351:22957)
     3  plans overlay     351:11943, 351:11440, 351:12851, 351:12864,
                          351:13073, 351:13086, 351:12421
     4  performance       364:24763 / Component 10
     5  gallery + CTA     351:22951 + 351:22953
   ========================================================================== */

/* 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.) */


/* --------------------------------------------------------------------------
   Page-local tokens.
   These five colours and the 28px feature title exist only in this page's
   Figma frames, so they are declared here rather than in tokens.css. If any
   of them turns up on a second page, tell the lead and promote it.

   Promoted, as that note asked: the floorplate stack and the plan viewer now
   run on Experience as well, so the legend's five colours are scoped to the
   components that use them rather than to this page. They travel with the
   markup wherever it is placed; --fs-feature stays a page token.
   -------------------------------------------------------------------------- */
.page--building,
.building__floorplates,
.plans {

  --sw-workspace:   #3F2451;   /* Component 1 legend                     */
  --sw-prow:        #9E9CFD;
  --sw-retail:      #F5AFAD;
  --sw-garden:      #C4EBD4;
  --sw-reception: var(--c-coral);   /* ground-floor plan key                  */
  --sw-retail-gf:   #F1B987;

  --fs-feature:     clamp(1.3125rem, calc(1.944vw * var(--s)), 1.75rem);   /* Figma 28 @1440      */
  --fs-plan-title:  clamp(1.75rem, calc(2.778vw * var(--s)), 2.5rem);   /* Figma 40 @1440      */
  --sw-size:        clamp(1.625rem, calc(2.569vw * var(--s)), 2.3125rem);
}

/* --------------------------------------------------------------------------
   Fit-to-screen stages.
   components.css owns the geometry: it takes .screen__stage out of flow and
   centres it on its own axes, so a composition taller than the viewport no
   longer hangs off the bottom. The local copy of that rule is gone.
   What is left here is type: .screen__stage is the Figma composition at its
   true 1440px width, scaled by --fit. Inside it the vw-based clamps would
   still resolve against the viewport, so the type would drift away from the
   design as the stage scaled. Pinning the tokens to their 1440px values
   makes the stage exactly the Figma block, scaled — which is the whole
   point of the mechanism. Below 860px .screen hands over to the stacked
   mobile layout and the fluid tokens take back over.
   -------------------------------------------------------------------------- */
@media (min-width: 861px) {
  .screen__stage {
    --pad-x:       2.8125rem;
    --gutter:      1.25rem;
    --fs-display:  3.4375rem;
    --fs-lead:     2rem;
    --fs-body:     1.5625rem;
    --fs-small:    1.25rem;
    --fs-xs:       1.125rem;
    --fs-micro:    1rem;
    --fs-feature:  1.75rem;
    --sw-size:     2.3125rem;
  }
}

/* ==========================================================================
   1. Hero — full-bleed aerial, scrims top and bottom, centred cream type
   ========================================================================== */
.building__hero { min-height: var(--vh-hero); }
/* QA: base.css scrims only the top and bottom 42%; the title sits dead centre
   over bright sky and measured 3.9:1. A light flat veil takes it past 4.5:1. */
.building__hero .bleed__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  pointer-events: none;
}
.building__hero .bleed__inner { width: 100%; max-width: none; }
.building__hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: 9.5em;            /* Figma 522px at 55px */
  margin-inline: auto;
  text-wrap: balance;
}

/* ==========================================================================
   2. Floorplates — floor index + exploded axonometric + heading and key
   --------------------------------------------------------------------------
   The block is one Figma screenful (Frame 127 / Component 1, 1440 x 1074),
   so it rides the shared .screen contract from components.css: the whole
   composition scales to whatever the viewport can show and no part of it
   ever falls past the fold.

   The floor index and the drawing are ONE component, not two columns that
   happen to sit side by side. Every row is parked at the vertical centre of
   its own plate — --cy is that centre as a percentage of the drawing's
   831-unit height, measured off the Figma artwork, and --rule is the
   midpoint between that plate and the next one down. Hovering, focusing or
   clicking either half drives the other through [data-floor-active].
   ========================================================================== */
.building__floorplates {
  background: var(--c-black-true);
  color: var(--c-cream);
  padding-block: clamp(5rem, calc(8.3333vw * var(--s)), 7.5rem);
  overflow: clip;
}
/* Under .screen the height comes from the stage, not from padding. */
.building__floorplates.screen { padding-block: 0; }
.building__floorplates.screen > .screen__stage { --stage-w: 90rem; --stage-h: 67.125rem; }
.building__floorplates.screen .shell { height: 100%; display: grid; align-items: center; }

.building__floorplates__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);
}

/* ---- floor index + drawing: one figure, one vertical coordinate space ---- */
.building__figure {
  display: grid;
  gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);
  align-items: start;
}

/* ---------- "Click a floor" ------------------------------------------
   Every row and every plate in the drawing is a button that opens the plan
   viewer, and nothing said so — an agent hunting for a floor plan had no
   reason to try. The verb follows the input: a coarse pointer taps. */
/* The key and its note are one block so the column's space-between still
   puts them at the foot, where the key sat before the note existed. Adding
   the note as a third child had pushed the key up to the middle. */
.building__floorkey {
  display: flex;
  flex-direction: column;
  gap: clamp(0.875rem, calc(1.4vw * var(--s)), 1.25rem);
}

.building__floorhint {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--c-cream-70);
}
.building__floorhint--tap { display: none; }
@media (pointer: coarse) {
  .building__floorhint--click { display: none; }
  .building__floorhint--tap   { display: inline; }
}

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

.building__floor {
  position: relative;
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
  align-items: baseline;
  width: 100%;
  text-align: left;
  color: var(--c-cream);
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
  padding-block: clamp(0.9375rem, calc(2.0833vw * var(--s)), 1.875rem);
  transition: transform var(--dur-md) var(--ease-out-expo),
              opacity   var(--dur-md) var(--ease-out-expo);
}
.building__floor__rule {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-cream);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.45;
  transition: transform var(--dur-lg) var(--ease-out-expo) var(--reveal-delay, 0ms),
              opacity   var(--dur-md) var(--ease-out-expo);
}
/* the rule draws itself in on the same cascade as the row it belongs to */
.building__floorlist .building__floor.is-in ~ .building__floor__rule { transform: scaleX(1); }

.building__floor__area { justify-self: start; }
.building__floor:focus-visible { outline-offset: 0.375rem; }

/* ---- exploded axonometric ---- */
.building__stack {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 22.75rem;
}
.building__stack img,
.building__stack .fps { display: block; width: 100%; height: auto; }
/* ...and the rule above is what keeps [hidden] from working, so say it. */
.building__stack img[hidden] { display: none; }

/* The seven plate buttons sit over the drawing, each clipped to its own
   plate. The clip is in percentages of this box, which always carries the
   drawing's 364 x 831 ratio, so the hit shapes hold at every size. */
.building__plates { position: absolute; inset: 0; }
.building__plate {
  position: absolute;
  inset: 0;
  clip-path: var(--clip);
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
/* A clip-path swallows the focus ring, so the plate itself becomes the focus
   indicator — see .fps__hit below, which is stroked for keyboard focus only. */
.building__plate:focus-visible { outline: none; }

/* ---- the drawing's own states ------------------------------------------
   floorplate-stack.svg is the flat Figma export re-sorted into one group per
   floor, with every zone-coloured path classed. That is the whole reason a
   plate can be lit on its own and the key can pick a colour out of the art. */
.fps__floor { transition: opacity var(--dur-sm) var(--ease-out-quart); }
.fps__z     { transition: fill var(--dur-sm) var(--ease-out-quart); }
.fps__hit {
  fill: none;
  stroke: var(--c-cream);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-sm) var(--ease-out-quart);
}

/* Floor highlight — dim the stack and hold the live plate. No outline: the
   highlight is the contrast between the lit plate and the dimmed ones, as
   the Figma has it. */
[data-floor-active] .fps__floor { opacity: 0.3; }
[data-floor-active="0"] .fps__floor[data-floor="0"],
[data-floor-active="1"] .fps__floor[data-floor="1"],
[data-floor-active="2"] .fps__floor[data-floor="2"],
[data-floor-active="3"] .fps__floor[data-floor="3"],
[data-floor-active="4"] .fps__floor[data-floor="4"],
[data-floor-active="5"] .fps__floor[data-floor="5"],
[data-floor-active="6"] .fps__floor[data-floor="6"] { opacity: 1; }
/* The ring survives for one job only: a keyboard user tabbing the plates has
   no other focus indicator, because the clip-path above eats the outline.
   [data-floor-focus] is set from focus alone, never from a pointer, so a
   mouse never sees it. */
[data-floor-focus="0"] .fps__hit[data-floor="0"],
[data-floor-focus="1"] .fps__hit[data-floor="1"],
[data-floor-focus="2"] .fps__hit[data-floor="2"],
[data-floor-focus="3"] .fps__hit[data-floor="3"],
[data-floor-focus="4"] .fps__hit[data-floor="4"],
[data-floor-focus="5"] .fps__hit[data-floor="5"],
[data-floor-focus="6"] .fps__hit[data-floor="6"] { opacity: 0.9; }

/* ...and the matching row in the index, from the same state. */
[data-floor-active] .building__floorlist .building__floor { opacity: 0.5; }
[data-floor-active] .building__floorlist .building__floor__rule { opacity: 0.25; }
[data-floor-active="0"] .building__floorlist li[data-floor="0"] .building__floor,
[data-floor-active="1"] .building__floorlist li[data-floor="1"] .building__floor,
[data-floor-active="2"] .building__floorlist li[data-floor="2"] .building__floor,
[data-floor-active="3"] .building__floorlist li[data-floor="3"] .building__floor,
[data-floor-active="4"] .building__floorlist li[data-floor="4"] .building__floor,
[data-floor-active="5"] .building__floorlist li[data-floor="5"] .building__floor,
[data-floor-active="6"] .building__floorlist li[data-floor="6"] .building__floor {
  opacity: 1;
  transform: translate3d(clamp(0.25rem, calc(0.6vw * var(--s)), 0.625rem), 0, 0);
}
[data-floor-active="0"] .building__floorlist li[data-floor="0"] .building__floor__rule,
[data-floor-active="1"] .building__floorlist li[data-floor="1"] .building__floor__rule,
[data-floor-active="2"] .building__floorlist li[data-floor="2"] .building__floor__rule,
[data-floor-active="3"] .building__floorlist li[data-floor="3"] .building__floor__rule,
[data-floor-active="4"] .building__floorlist li[data-floor="4"] .building__floor__rule,
[data-floor-active="5"] .building__floorlist li[data-floor="5"] .building__floor__rule,
[data-floor-active="6"] .building__floorlist li[data-floor="6"] .building__floor__rule { opacity: 1; }

/* Zone highlight — the key holds its colour in the artwork and every other
   zone falls back to the black, exactly as the Figma component's four
   highlight variants do. The white line work is untouched, so the drawing
   reads as line art with one colour left in it.

   The zones that fall back are REPAINTED black, not faded out. Fading them
   made them transparent, and the artwork is layered: floor 1's garden is a
   large octagon with the purple workspace fill lying over its outer ring,
   which is what crops it to the neat green circle you see in the drawing's
   normal state. Drop the purple to nothing and that octagon is uncovered,
   so the garden highlight came up a different shape from the garden itself.
   Painting the purple black keeps it occluding, and the green reads exactly
   as it does at rest. */
/* The dark roof deck on 6 and the ground-floor undercroft are not keyed
   zones, but they are fills — they drop back with everything else rather
   than leaving one plate a different colour from the rest.

   Written as :not() so the live zone's own fill is never overwritten: it
   keeps the colour the artwork gives it, rather than being set and reset. */
[data-zone-active="workspace"] .fps__z:not(.fps__z--workspace),
[data-zone-active="retail"]    .fps__z:not(.fps__z--retail),
[data-zone-active="prow"]      .fps__z:not(.fps__z--prow),
[data-zone-active="garden"]    .fps__z:not(.fps__z--garden) { fill: var(--c-black-true); }

/* ---- heading + key ---- */
.building__floorplates__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.8125rem, calc(8.3333vw * var(--s)), 7.5rem);
}
.building__floorplates__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: 8.4em;            /* Figma 461px at 55px */
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9375rem clamp(1.25rem, calc(4.1667vw * var(--s)), 3.75rem);
}
.legend > li { display: flex; }
.legend__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  text-align: left;
  color: inherit;
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  transition: opacity var(--dur-sm) var(--ease-out-quart);
}
.legend__swatch {
  flex: 0 0 var(--sw-size);
  width: var(--sw-size);
  aspect-ratio: 1;
  background: var(--sw, currentColor);
  border-radius: 2px;
  transition: box-shadow var(--dur-sm) var(--ease-out-quart);
}
button.legend__item { cursor: pointer; }
button.legend__item:focus-visible { outline-offset: 0.375rem; }
/* Click latches a zone so a touch user gets the same reading a hover gives. */
button.legend__item[aria-pressed="true"] .legend__swatch {
  box-shadow: 0 0 0 2px var(--c-black-true), 0 0 0 0.25rem var(--c-cream);
}
[data-zone-active] .legend__item { opacity: 0.4; }
[data-zone-active="workspace"] .legend__item[data-zone="workspace"],
[data-zone-active="retail"]    .legend__item[data-zone="retail"],
[data-zone-active="prow"]      .legend__item[data-zone="prow"],
[data-zone-active="garden"]    .legend__item[data-zone="garden"] { opacity: 1; }

/* ==========================================================================
   3. Plans overlay — the seven floorplan slides
   ========================================================================== */
.plans {
  /* QA: --z-menu (100) now sits UNDER --z-header (200), so the fixed header
     and its burger painted across the top of this lightbox and covered the
     close button. The plans lightbox is modal and must clear the header. */
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: var(--c-cream);
  color: var(--c-black);
  display: grid;
  /* QA: the implicit column was auto-sized, so the panel grew to its
     max-content width (1538px) and pushed the specs and the plan off the
     right edge below 1024. minmax(0, 1fr) pins it to the viewport.
     `safe center` keeps the top of a taller-than-viewport panel reachable
     instead of clipping the floor title above the scroll origin. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-content: safe center;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity    var(--dur-md) var(--ease-out-expo),
              transform  var(--dur-lg) var(--ease-out-expo),
              visibility var(--dur-md) linear;
}
.plans.is-open { opacity: 1; visibility: visible; transform: none; }
body.is-plans-open { overflow: hidden; }

.plans__inner {
  width: 100%;
  max-width: min(96.125rem, 100%);
  margin-inline: auto;
  padding: clamp(3.75rem, calc(5.5556vw * var(--s)), 5rem) var(--pad-x) clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem);
}

.plans__close {
  position: fixed;
  top: clamp(1.125rem, calc(2.2vw * var(--s)), 2rem);
  right: clamp(1.125rem, calc(2.2vw * var(--s)), 2rem);
  z-index: 2;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background var(--dur-sm) var(--ease-out-expo),
              transform  var(--dur-sm) var(--ease-out-expo);
}
.plans__close img { width: 0.75rem; height: 0.75rem; }
.plans__close:hover { transform: rotate(90deg) scale(1.06); }

/* --- slide panel: reuses .floors__* from components.css --- */
.plans .floors__title {
  font-size: var(--fs-plan-title);
  line-height: var(--lh-tight);
}
.plans .floors__panel { padding-inline: 0; align-items: start; }

.plans__specs {
  margin-top: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  border-bottom: 1px solid currentColor;
}
.plans .floors__spec {
  margin-top: 0;
  padding-block: 0.625rem;
  font-size: var(--fs-micro);
  line-height: var(--lh-snug);
}

.plans__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem);
  min-height: clamp(20rem, calc(40vw * var(--s)), 35rem);
}
.plans__north {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3125rem;
  font-size: var(--fs-micro);
}
.plans__north img { width: 1.125rem; height: 1.125rem; transform: rotate(90deg); }

/* the plan drawing cross-fades as the track slides */
.plans .floors__plan {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity   var(--dur-lg) var(--ease-soft),
              transform var(--dur-xl) var(--ease-soft);
}
.plans .floors__slide[aria-hidden="false"] .floors__plan,
.plans .floors__slide:not([aria-hidden]) .floors__plan { opacity: 1; transform: none; }
/* QA: the page is now scaled with a single root `zoom`, so the logical
   viewport is at least 1440x1024 and is WIDER than 1440 on any window
   shorter than 4:3 (1440x900 -> 1638x1024). That let .plans__inner reach
   its 1538px cap for the first time, the plan column grew with it, and the
   taller drawing pushed the title, the controls and the foot of the plan
   past the fold. The drawing is now capped in height as well as width, so
   the viewer always fits the fold the way the 1538x830 component does.

   The cap is stated in Figma px, NOT in vh: under a root `zoom` Chrome
   still resolves vh against the real viewport, so `100vh - 320px` on a
   1440x900 window reads 580 instead of the 704 the logical 1638x1024 frame
   actually has, and the plan shrank by a third. initPageScale guarantees a
   logical viewport of at least 1024px tall above the fold-down, and the
   chrome around the drawing is fixed at 298px (96 + 48 inner padding,
   35 x 2 panel padding, 40 + 44 controls), so 704px is the honest cap. */
.plans .floors__plan img {
  width: 100%; height: auto;
  max-height: 44rem;
  object-fit: contain;
  object-position: left center;
}

/* QA: components.css stacks .floors__panel to one column below 1024px.
   Media queries are not affected by the root zoom, so on a 1024-wide screen
   that rule fires while the overlay is being laid out in a full 1440 Figma
   px of width - the plan dropped underneath the title and the panel ran to
   1568px tall. While the page is scaled, the viewer keeps the side-by-side
   split the component is drawn with. */
.is-scaled .plans .floors__panel {
  grid-template-columns: minmax(15rem, 20rem) 1fr;
}

 /* One controls row under the plan. components.css parks .floors__nav in the
    top-right corner, which is where the close button lives here. */
.plans__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9375rem, calc(2.0833vw * var(--s)), 1.875rem);
  margin-top: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
}
.plans .floors__nav { position: static; gap: 0.625rem; }
.plans .floors__btn { width: 2.75rem; height: 2.75rem; }
.plans .floors__btn svg { width: 0.875rem; height: 0.875rem; }
.plans .floors__dots { margin-top: 0; }

.plans__legend {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.plans__legend .legend__item { font-size: var(--fs-micro); gap: 0.9375rem; }
.plans__legend .legend__swatch { --sw-size: clamp(1.125rem, calc(1.6vw * var(--s)), 1.4375rem); border-radius: 1px; }

/* ==========================================================================
   4. Performance — claret panel + full-height facade photograph
   ========================================================================== */
.building__perform {
  display: grid;
  /* Dead centre, both panels. It was 735:705 here and 1:1 on "1 of a kind",
     so the seam moved 1% of the screen between two sections that read as a
     pair — and a full-bleed split only works if the eye can trust the line. */
  grid-template-columns: 1fr 1fr;
  background: var(--c-claret);
  color: var(--c-white);
  overflow: clip;
  /* One inset for the whole panel: where the headline starts, where the last
     rule ends, and the top and bottom of the photograph. It was 125 on this
     section and 145 on "1 of a kind", because each stage was centred at its
     own content height and the two contents are not the same height — a
     20px drift with no reason behind it. */
  --panel-inset: clamp(3.75rem, calc(8.681vw * var(--s)), 7.8125rem);
}
/* As a .screen the panel is one screenful: the claret and the photograph
   split the viewport full-bleed on .screen__media, outside the stage, and
   the copy rides the stage so it scales instead of being cut off. Both are
   out of flow above 860px, so the section's own two-column grid never
   applies to them and needs no reset here. */
.building__perform__bed {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.building__perform__bed .building__perform__media { grid-column: 2; }
/* components.css sizes any img inside .screen__media to 100%/100%, which
   beats the oversized-and-clipped frame the parallax drift needs. Restate it
   at the higher specificity so the photograph still has slack to move in. */
.building__perform__bed .building__perform__media img {
  inset: -9% 0;
  width: 100%;
  height: 118%;
  max-width: none;
  object-fit: cover;
}
/* The photograph is a plate on the claret, not a second bleed. Its top and
   bottom are the text's: the stage's own 45 plus the panel's 80, which is
   where the headline starts and where the last rule ends, so the two columns
   read off one measure instead of two. Left and right are a page margin — off
   the page edge on one side, off the split on the other.

   Above 860 only. Below it the panel stacks and the photograph is a band. */
/* The stage takes the whole screen rather than being centred at whatever
   height its copy happens to be, so the inset above is measured from the
   section and means the same thing on both panels. */
.building__perform.screen > .screen__stage { --stage-w: 90rem; --stage-h: 64rem; height: 100%; }
.building__perform.screen .building__perform__copy {
  /* The stage is the section's first column, so the copy simply fills it and
     is capped at the Figma measure. min(), not a flat 735: at exactly 1440
     the column is 720 and a flat 735 overflowed the seam by 15. */
  width: min(45.9375rem, 100%);
  height: 100%;
  min-height: 0;
  padding-block: var(--panel-inset);
}

.building__perform__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.8125rem, calc(8.3333vw * var(--s)), 7.5rem);
  min-height: clamp(35rem, calc(71.1vw * var(--s)), 64rem);
  padding: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem) clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem)
           clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem) var(--pad-x);
}
.building__perform__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  /* Figma sets this as two sentences on two lines. 14.4em (792px, the
     Figma text box) is wider than the claret column, so the real face
     wrapped it "…Designed / to perform." Hold it just under the width of
     "Built to Last. Designed" so the break lands after the full stop. */
  max-width: 9.7em;
}
/* The photograph is oversized inside a clipped frame so its data-parallax
   drift never exposes an edge. */
.building__perform__media { position: relative; overflow: hidden; }
.building__perform__media img {
  position: absolute;
  inset: -9% 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem) clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
}
.feature__title { font-size: var(--fs-feature); line-height: var(--lh-tight); }
.feature__body  {
  margin-top: 0.625rem;
  font-size: var(--fs-micro);
  line-height: var(--lh-ui);
  max-width: 32ch;
  color: var(--c-white-70);
  transition: color var(--dur-md) var(--ease-out-expo);
}
.feature:hover .feature__body { color: var(--c-white); }

/* ==========================================================================
   5. Gallery + closing call to action
   ========================================================================== */
.building__gallery { min-height: min(clamp(37.5rem, calc(70.35vw * var(--s)), 63.3125rem), var(--screen-h)); }
/* The Figma composite darkens the whole gallery plate; base.css only scrims
   the top and bottom edges, and the closing line sits dead centre over a
   bright interior. A flat veil over the plate keeps the cream type legible. */
.building__gallery .bleed__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);   /* QA: 0.38 measured 3.8:1 on the cream type */
  pointer-events: none;
}
.building__gallery .bleed__inner { width: 100%; max-width: none; }
.building__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
}
.building__cta__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: 12.4em;           /* Figma 678px at 55px */
  margin-inline: auto;
}
.building__gallery__track {
  position: absolute; inset: 0;
  display: flex;
}
.building__gallery__slide { flex: 0 0 100%; position: relative; }
.building__gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Responsive
   --------------------------------------------------------------------------
   Everything above is the stacked, fluid layout — the one a phone gets and
   the one a browser falls back to. The composed Figma layout is scoped to
   .screen__stage below, because inside a stage the width is always 1440 and
   a viewport media query says nothing useful about it.
   ========================================================================== */
@media (min-width: 861px) {

  /* ---- the floorplates composition, at its true Figma width ---- */
  /* The copy column is measured against the drawing, not centred beside it:
     the heading's cap-line starts level with the top plate and the colour
     key's last row finishes level with the ground plate, as the Figma has
     it. stretch gives the column the drawing's full height; the flex
     space-between inside it does the rest. */
  .screen__stage .building__floorplates__grid {
    grid-template-columns: min-content minmax(0, 1fr);
    gap: 3.75rem;
    align-items: stretch;
  }
  .screen__stage .building__floorplates__copy { height: 100%; gap: 2.8125rem; }
  .screen__stage .building__figure {
    grid-template-columns: 16.5rem 22.75rem;
    gap: 3.75rem;
    align-items: stretch;    /* the drawing sets the height; rows hang off it */
  }
  .screen__stage .building__floorlist { display: block; position: relative; }
  /* Each row is a full-height layer over the drawing's coordinate space, with
     the button parked at its plate's centre and the rule at the midpoint
     between that plate and the next. Both are percentages, so they hold at
     whatever --fit the screen ends up scaling the stage to. */
  .screen__stage .building__floorlist > li {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .screen__stage .building__floor {
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--cy, 50) * 1%);
    translate: 0 -50%;       /* kept off `transform`, which the reveal and the
                                hover nudge both own */
    padding-block: 0;
    gap: 2.8125rem;
    pointer-events: auto;
  }
  .screen__stage .building__floor__rule {
    top: calc(var(--rule, 100) * 1%);
    bottom: auto;
  }

  /* ---- the split panels, laid out against the stage's 1440 ---- */
  .screen__stage .building__perform__copy {
    padding: 5rem 2.8125rem 5rem var(--pad-x);
    gap: 7.5rem;
  }
  .screen__stage .features { gap: 2.8125rem 1.875rem; }
  .screen__stage .legend { gap: 0.9375rem 3.75rem; }
}

/* Below the stage breakpoint the block is a stack that is taller than a
   screen by design, and .screen releases its contract to match. The plate
   buttons go with it: at that width the drawing cannot carry seven legible
   hit shapes, and the rows already do the job. */
@media (max-width: 860px) {
  .building__plates { display: none; }
  .building__floorplates__copy { order: -1; }

  /* The composition survives the fold-down; only its scale changes.

     It used to break in two here — the drawing above, the seven floors as a
     plain list below — and the drawing then meant nothing, because what makes
     it read is a row sitting level with the plate it names. So the two columns
     stay: the index on the left, the drawing on the right at 36vw, and the
     rows go back to being an absolutely-positioned layer over the drawing's
     own coordinate space, parked at the same --cy percentages the desktop
     uses. stretch is what makes that work — the drawing sets the height and
     the percentages are measured against it. */
  .building__figure {
    grid-template-columns: minmax(0, 1fr) calc(36vw * var(--s));
    gap: var(--sp-4);
    align-items: stretch;
  }
  .building__stack {
    order: 0;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: none;
  }
  .building__floorlist { display: block; position: relative; }
  .building__floorlist > li { position: absolute; inset: 0; pointer-events: none; }
  .building__floor {
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--cy, 50) * 1%);
    translate: 0 -50%;
    padding-block: 0;
    grid-template-columns: 2ch minmax(0, 1fr);
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    pointer-events: auto;
  }
  .building__floor__rule {
    top: calc(var(--rule, 100) * 1%);
    bottom: auto;
  }

  .building__perform.screen,
  .home-loc.screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: stretch;
  }
  .building__perform > .screen__media,
  .home-loc > .screen__media {
    position: static;
    z-index: auto;
    order: 2;
  }
  .building__perform__bed,
  .home-loc__bed { grid-template-columns: minmax(0, 1fr); }
  /* The bed drops to one column here, but the photograph still carried the
     `grid-column: 2` its desktop half needs — which put it in an implicit
     second column with nothing to size it. The image is absolutely positioned
     inside a relative frame, so that column measured 0 and every phone got a
     420px band of flat claret where the building should be. */
  .building__perform__bed .building__perform__media,
  .home-loc__bed .home-loc__media { grid-column: 1; }
  .building__perform.screen .building__perform__copy,
  .home-loc.screen .home-loc__copy { width: auto; height: auto; }
  .building__perform__media { min-height: clamp(26.25rem, calc(62vw * var(--s)), 40rem); }
}

@media (max-width: 1024px) {
  .building__perform { grid-template-columns: 1fr; }
  .building__perform__copy { min-height: 0; padding-inline: var(--pad-x); }
  .building__perform__media { min-height: clamp(26.25rem, calc(62vw * var(--s)), 40rem); }
  .plans__aside { min-height: 0; }
}

@media (max-width: 768px) {
  .legend { gap: 0.9375rem clamp(0.9375rem, calc(2.0833vw * var(--s)), 1.875rem); }
  .features { gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem); }
  .building__gallery { min-height: calc(0.78 * var(--screen-h)); }
}

@media (max-width: 480px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .building__floor { grid-template-columns: 2.5ch minmax(0, 1fr); gap: 1.25rem; }
  .plans__inner { padding-top: clamp(3.75rem, calc(5.5556vw * var(--s)), 5rem); }
  .plans__close { width: 2.75rem; height: 2.75rem; }
}

/* Anyone who has asked for less motion gets the page, not the performance. */
@media (prefers-reduced-motion: reduce) {
  .building__floor__rule { transform: none !important; }
  /* The highlight states are the interaction, not decoration — they stay,
     they just stop easing. */
  .fps__floor, .fps__z, .fps__hit, .legend__item,
  .building__floor, .building__floor__rule { transition-duration: 1ms; }
  .plans .floors__plan { opacity: 1 !important; transform: none !important; }
  .plans, .plans.is-open { transform: none !important; }
}
