/* ==========================================================================
   1 Poultry — Landing
   Figma: "Wireframe - Landing" (321:22048), 1440 x 7643
          "Landing Sequence"    (321:22285), six 1440 x 1024 keyframes

   Sections, in document order:
     0  intro sequence   321:22360 / 22310 / 22328 / 22344 / 22286 / 22298
     1  hero             321:22049 + 321:22050
     2  statement        321:22059  "Frame 56"
     3  strip            321:22069  "Component 11"  (7,300px wide band)
     4  performance      351:2727   "Component 10"  + 364:24803
     5  floorplates      351:1793   "Frame 127" / Component 1 + 364:24806
     6  location         321:22070  "Component 14" (1,720px — bleeds right)
     7  closing CTA      321:22052  "Frame 22"

   Sections 4 and 5 are the same components as The Building, so this page
   also loads pages/building.css and <main> carries .page--building. The
   floorplan viewer markup and the plan drawings are reused verbatim from
   building.css — nothing here re-implements them.
   ========================================================================== */

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



/* Shared flat wash. base.css only scrims the top and bottom edges of a
   .bleed; every centred line on this page sits over a bright plate, so the
   middle needs filling too (same trick as .exp-wash on Experience). */
.home-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   0. Intro sequence — the opening title overlay
   --------------------------------------------------------------------------
   Six Figma keyframes read as one move: an italic "1" fades up, " of a Kind"
   wipes out of it and back again, the "1" slides right, and "Pou" / "try"
   grow outward from it to spell the brand. The gold plate then washes in
   behind and the overlay hands off to the hero — which is the same
   photograph, so there is no cut.

   The construction mirrors Figma's: both lines are laid out normally with
   their own "1" made invisible (so the metrics stay honest), and one real
   "1" is parked on top and moved between the two measured slots. Every
   reveal is a black curtain that scales away — transform only, exactly like
   .exp-gallery__frame::after on Experience.

   Nothing here is visible until JS adds .is-intro-running to <html>, so a
   browser with JS off never meets a fixed overlay it cannot dismiss.
   ========================================================================== */
.intro {
  /* The overlay is a sibling of <main>, so its one page-local token has to
     be declared here rather than on .page--home. */
  --fs-intro: clamp(2.125rem, calc(4.583vw * var(--s)), 4.125rem);       /* Figma 66 @1440 */
  opacity: 0;
  visibility: hidden;
  place-items: stretch;
  /* The black is .intro__plate, not this element: the ground has to be
     something the timeline can fade on its own, so the intro can end on
     the live hero instead of on a photograph of it. */
  background: transparent;
  cursor: pointer;
}
html.is-intro-running .intro { opacity: 1; visibility: visible; }
html.is-intro-running body { overflow: hidden; }

/* The page underneath is held back and released on hand-off. GSAP never
   writes to either element, so neither can be stranded invisible. */
html.is-intro-running .site-header,
html.is-intro-running .home-hero__gate { opacity: 0; }
/* No translate. The headline used to rise 30px as the intro lifted, which
   is the headline visibly repositioning itself the moment the page arrives.
   It fades in where it sits. */

/* 420ms, not 140: the intro's wordmark takes half a second to lift away,
   and at 140ms the hero headline was fading up through it — the two sat on
   top of each other for a beat. This starts as the wordmark clears. */
.home-hero__gate {
  transition: opacity   var(--dur-lg) var(--ease-out-expo) 420ms,
              transform var(--dur-lg) var(--ease-out-expo) 420ms;
}
/* components.css already transitions the header's background and tuck —
   this re-states those and adds opacity rather than dropping them. */
.site-header {
  transition: background var(--dur-md) var(--ease-out-expo),
              transform  var(--dur-md) var(--ease-out-expo),
              opacity    var(--dur-lg) var(--ease-out-expo) 140ms;
}

.intro__stage { position: absolute; inset: 0; overflow: hidden; }

/* The intro's ground, and its hand-off.

   This used to be a copy of hero-gold.jpg that washed IN over the black at
   3.24s, so the intro ended on a photograph. With a film behind it that
   photograph read as a still held on screen for about a second before the
   video appeared. It is now simply the black itself, and the timeline fades
   it OUT — so the wordmark is left standing over the live hero, already
   playing, and there is nothing to cut to. */
.intro__plate {
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: 0;
  background: var(--c-black-true);
}
.intro__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Part of the ground, so it clears with it. */
  background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.30) 0%,
                rgba(0, 0, 0, 0.42) 50%,
                rgba(0, 0, 0, 0.30) 100%);
}

/* A zero-size anchor at dead centre. Both lines and the travelling "1" are
   positioned against it, so measuring is a plain rect subtraction. */
.intro__type {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 1;
  font-size: var(--fs-intro);
  line-height: 1;
  color: var(--c-white);
}

.intro__line,
.intro__one {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(-50%, -50%, 0);
  white-space: nowrap;
  margin: 0;
  line-height: 1;
}
.intro__one {
  z-index: 2;
  font-style: italic;
  opacity: 0;
  will-change: transform, opacity;
}

/* The in-line "1" holds the space its travelling twin will occupy. */
.intro__slot { visibility: hidden; font-style: italic; }

/* Curtain reveals. Pure black on pure black, so all you see is type
   arriving; the origin decides which edge it grows from. */
.intro__wipe { position: relative; display: inline-block; }
.intro__curtain {
  position: absolute;
  inset: -0.22em -0.02em;
  background: var(--c-black-true);
  transform: scaleX(1);
  will-change: transform;
  pointer-events: none;
}
.intro__tail .intro__curtain,
.intro__post .intro__curtain { transform-origin: 100% 50%; }  /* reveals left edge first  */
.intro__pre  .intro__curtain { transform-origin: 0% 50%; }    /* reveals right edge first */

/* The wordmark is set italic throughout, as in the Figma keyframes; only
   " of a Kind" is roman. */
.intro__pre, .intro__post { font-style: italic; }

.intro__skip {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(1.25rem, calc(3vw * var(--s)), 2.5rem);
  z-index: 3;
  color: var(--c-cream-40);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-sm) var(--ease-out-expo);
}
.intro__skip:hover, .intro__skip:focus-visible { color: var(--c-cream); }

/* ==========================================================================
   1. Hero — full-bleed gold plate, centred tagline (321:22049 + 321:22050)
   ========================================================================== */
.home-hero { min-height: var(--vh-hero); }
.home-hero .bleed__media { inset: -8% 0; }
.home-hero .bleed__media img { max-width: none; }   /* base.css caps it at 100% */

/* The left half of the plate is bright ochre; cream 55px type needs more
   than the edge scrims to hold. */
.home-hero__wash {
  background: radial-gradient(115% 78% at 50% 50%,
                rgba(0, 0, 0, 0.52) 0%,
                rgba(0, 0, 0, 0.34) 55%,
                rgba(0, 0, 0, 0.10) 100%);
}

.home-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  /* A stated width, not a max-width. With max-width the box shrinks to the
     text, and text-wrap: balance then has a box it has itself narrowed — the
     headline wrapped mid-load and sprang back. 14.6em holds this line to two
     even lines at the design size and never re-measures. */
  width: 14.6em;
  max-width: 100%;
  margin-inline: auto;
  text-wrap: balance;
}

/* The date, under the headline. Lede size: it is the second thing you read
   on the plate, not the first. */
.home-hero__sub {
  margin-top: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
}

/* A quiet cue that there is a page below the fold — not in the Figma, but
   the hero is otherwise a single line on a full-screen plate. */
.home-hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, calc(3.4vw * var(--s)), 3rem);
  width: 1px;
  height: clamp(2.5rem, calc(4.4vw * var(--s)), 3.875rem);
  background: var(--c-cream-40);
  transform-origin: 50% 100%;
  animation: home-cue 2.8s var(--ease-in-out) infinite;
}
@keyframes home-cue {
  0%, 100% { transform: translateX(-50%) scaleY(0.25); opacity: 0.15; }
  45%      { transform: translateX(-50%) scaleY(1);    opacity: 0.85; }
}

/* ==========================================================================
   2. Statement — "Frame 56" (321:22059)
   ========================================================================== */
.home-statement { min-height: var(--vh-hero); }
.home-statement .bleed__media { inset: -8% 0; }
.home-statement .bleed__media img { max-width: none; }

/* Figma lays one 0 → 78% black ramp down the whole plate. */
.home-statement__wash {
  background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.00) 0%,
                rgba(0, 0, 0, 0.34) 46%,
                rgba(0, 0, 0, 0.78) 100%);
}

.home-statement .bleed__inner { max-width: 55rem; width: 100%; }
.home-statement__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);        /* Figma 70px */
}
.home-statement__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  /* 16em, not the Figma's 14.2: the headline here is now the longer of the
     two lines the section used to carry, and at 14.2em it broke to four. */
  max-width: 16em;
  text-wrap: balance;
}
.home-statement__lede {
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  max-width: 22.7em;                     /* Figma 566px @25px */
  margin-inline: auto;
  text-wrap: balance;
}

/* ==========================================================================
   3. Strip — "Component 11" (321:22069)
   --------------------------------------------------------------------------
   Figma draws a 7,300px band inside a 1,440px window: five 960 x 693 plates
   each followed by a 482px caption. On the web that is a sticky viewport
   whose track is pulled sideways by vertical scroll. Without JS, under
   reduced motion, or on a narrow screen the same markup is simply a
   swipeable snap-scrolling band — no content is ever unreachable.
   ========================================================================== */
.home-strip {
  background: var(--c-cream);
  color: var(--c-black);
  padding-block: clamp(2.8125rem, calc(8.3333vw * var(--s)), 7.5rem);   /* Figma 119px */
  overflow: clip;
}
.home-strip__sticky { position: relative; }
/* The controls belong to the scroller, so they only exist while it is one.
   Above 1025 the band is scroll-jacked by the page and has its own progress
   bar; a pair of arrows there would be a second, contradicting control. */
.home-strip__nav { display: none; }
.home-strip__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-strip__viewport::-webkit-scrollbar { display: none; }

.home-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.home-strip__plate {
  position: relative;
  flex: 0 0 auto;
  width: clamp(17.5rem, calc(66.67vw * var(--s)), 60rem);         /* Figma 960px */
  aspect-ratio: 960 / 693;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.06);
  scroll-snap-align: center;
}
.home-strip__plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}

.home-strip__caption {
  flex: 0 0 auto;
  width: clamp(15rem, calc(33.5vw * var(--s)), 30.125rem);          /* Figma 482px */
  padding-inline: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
  font-size: var(--fs-title);
  line-height: var(--lh-tight);
  text-align: center;
  text-wrap: balance;
  scroll-snap-align: center;
}
.home-strip__caption a {
  display: inline-block;
  transition: opacity var(--dur-sm) var(--ease-out-expo);
}
.home-strip__caption a::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.34em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.home-strip__caption a:hover::after,
.home-strip__caption a:focus-visible::after { transform: scaleX(1); }

/* Sticky mode is switched on by JS once it knows the rail can be measured. */
.home-strip.is-railed { padding-block: 0; overflow: visible; }
.home-strip.is-railed .home-strip__rail { position: relative; }
.home-strip.is-railed .home-strip__sticky {
  position: sticky;
  top: 0;
  height: var(--screen-h);
  display: grid;
  align-content: center;
}
.home-strip.is-railed .home-strip__viewport {
  overflow: hidden;
  scroll-snap-type: none;
}

/* A hairline progress rule under the band while it is being pulled. */
.home-strip__progress {
  display: none;
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(1.5rem, calc(3.4vw * var(--s)), 3rem);
  height: 1px;
  background: rgba(16, 16, 16, 0.16);
}
.home-strip.is-railed .home-strip__progress { display: block; }
.home-strip__progress span {
  display: block;
  height: 100%;
  background: var(--c-black);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ==========================================================================
   4. Performance — "Component 10" (351:2727) + "Learn more" (364:24803)
   Colour, grid and the feature list all come from building.css; the only
   difference on this page is the button under the heading.
   ========================================================================== */
.home-perform__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);        /* Figma title → button: 47px */
}

/* Three facts on the landing page rather than the six The Building carries,
   stacked in one column so each headline can be read at size. The rule under
   each one is the same pair the .stat rows use: ::before is the faint track
   so the row still reads with JS off, ::after is the line that wipes in from
   the left when the fact reveals. */
.home-facts .features {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.home-facts .feature {
  position: relative;
  padding-block: min(1.875rem, calc(var(--screen-h) * 0.0293));
}
.home-facts .feature:first-child { padding-top: 0; }
.home-facts .feature::before,
.home-facts .feature::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: currentColor;
}
.home-facts .feature::before { opacity: 0.24; }
.home-facts .feature::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-lg) var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.home-facts .feature.is-in::after { transform: scaleX(1); }

.home-facts .feature__title {
  font-size: min(2.5rem, calc(var(--screen-h) * 0.0391));
  line-height: var(--lh-tight);
}
.home-facts .feature__body {
  margin-top: 0.625rem;
  font-size: var(--fs-xs);
  max-width: 46ch;
}

@media (max-width: 860px) {
  .home-facts .feature__title { font-size: clamp(1.5625rem, calc(5.4vw * var(--s)), 2rem); }
  .home-facts .feature__body  { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-facts .feature::after { transform: scaleX(1); transition: none; }
}

/* ==========================================================================
   5. Floorplates — "Frame 127" (351:1793)
   Figma insets the black band inside the cream page: 85px above, 89 below.
   ========================================================================== */
.home-floors {
  background: var(--c-black-true);
  padding-block: 0;
}
.home-floors .building__floorplates {
  padding-block: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem);
}

/* The black band runs edge to edge. It used to be inset 85/89 with cream
   showing above and below, scaled by --fit; with the document now zoom-scaled
   there is no --fit, so those insets froze at full size and read as stray
   cream bands between sections. Full bleed, matching The Building. */
.home-floors.screen > .screen__stage { --stage-w: 90rem; --stage-h: 67.125rem; }
.home-floors > .screen__media {
  inset: 0;
  background: var(--c-black-true);
}
@media (min-width: 861px) {
  .home-floors.screen { padding-block: 0; }
  /* The stage's height has to reach the shell for the composition to centre
     in it — on this page the black band sits between the two. */
  .home-floors.screen .building__floorplates { background: none; padding-block: 0; height: 100%; }
  .home-floors.screen .shell { height: 100%; display: grid; align-items: center; }
}
/* Below the stage breakpoint the block stacks and grows past a screen, so the
   band goes back to being the section's own background. */
@media (max-width: 860px) {
  .home-floors > .screen__media { display: none; }
}
.home-floors .building__floorplates__copy { gap: clamp(1.875rem, calc(5.5556vw * var(--s)), 5rem); }
.home-floors__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
}

/* ==========================================================================
   6. Location — "Component 14" (321:22070)
   1,720px wide against a 1,440px frame: the aerial runs off the right edge.
   ========================================================================== */
.home-loc {
  display: grid;
  grid-template-columns: minmax(0, 588fr) minmax(0, 852fr);
  background: var(--c-ink-navy);
  color: var(--c-cream);
  overflow: clip;
}
/* One screenful, same contract as the claret panel: the navy and the aerial
   split the viewport full-bleed outside the stage, the copy scales inside.
   Below the stage breakpoint building.css hands the panel back to the
   stacked layout, so everything here is scoped above it. */
.home-loc__bed {
  display: grid;
  grid-template-columns: minmax(0, 588fr) minmax(0, 852fr);
}
.home-loc__bed .home-loc__media { grid-column: 2; }
/* Same as the claret panel: keep the oversized frame the drift needs.

   The panel is portrait and the photograph landscape, so cover scales to
   the height and crops horizontally: X chooses which slice of the picture
   you see, Y does nothing at all. 1 Poultry's drum sits at 50.2% of the
   source width — dead centre — so centring the image horizontally is what
   puts the building in the middle of the panel, at any crop width. It was
   at 62%, which slid the drum a good way left of centre. */
.home-loc__bed .home-loc__media img {
  inset: -6% 0;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
/* The stage takes the panel's height rather than its content's. It is
   place-self: center in the section grid, so a stage even a few pixels
   taller than the panel hangs over both clipped edges — which is what was
   shaving the last travel time. With a stated height the copy's own
   height: 100% finally has something real to resolve against. */
.home-loc.screen > .screen__stage {
  --stage-w: 90rem;
  --stage-h: 64rem;
  height: 100%;
}
@media (min-width: 861px) {
  /* The bed and the stage are both out of flow up here, so the section's own
     588/852 grid never reaches them and needs no reset. */
  /* height alone governs up here — the stacked layout's min-height would
     otherwise hold the column at the 1024 design height inside a shorter
     panel, and the panel clips. */
  .home-loc.screen .home-loc__copy { width: 36.75rem; height: 100%; min-height: 0; max-height: 100%; }
  /* The gap is a MINIMUM, not the spacing: justify-content: space-between
     opens it out to the Figma's 130px whenever the column has the room. It
     was stated as a flat 130px, which made the column taller than the panel
     on any window shorter than the 1024 design height — the section clips,
     so the last travel time was cut in half. */
  .screen__stage .home-loc__copy { padding: 5rem 2.8125rem 5rem var(--pad-x); gap: 1.875rem; }
}

.home-loc__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.875rem, 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);
}

.home-loc__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);        /* Figma 64px */
}
.home-loc__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: 10em;                       /* Figma 546px @55px */
}
.home-loc__lede {
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  max-width: 22em;                       /* Figma 548px @25px */
}

.home-loc__times { display: flex; flex-direction: column; }
.home-loc__time {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 264fr) minmax(0, 284fr);
  align-items: baseline;
  gap: 0.625rem;
  padding-block: clamp(0.625rem, calc(1.3889vw * var(--s)), 1.25rem) clamp(0.625rem, calc(1.3889vw * var(--s)), 1.25rem);
  border-top: 1px solid var(--c-cream-15);
}
.home-loc__time::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--c-cream);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-lg) var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.home-loc__time.is-in::before { transform: scaleX(1); }
.home-loc__place { font-size: var(--fs-body); line-height: var(--lh-tight); }
.home-loc__span  { font-size: var(--fs-small); line-height: var(--lh-tight); color: var(--c-cream-70); }

.home-loc__media { position: relative; overflow: hidden; min-height: 100%; }
.home-loc__media img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;              /* see the bed rule above */
  will-change: transform;
}

/* ==========================================================================
   7. Closing CTA — "Frame 22" (321:22052)
   ========================================================================== */
.home-cta { min-height: var(--vh-hero); }
.home-cta .bleed__media { inset: -8% 0; }
.home-cta .bleed__media img { max-width: none; }

.home-cta__wash {
  background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.40)  0%,
                rgba(0, 0, 0, 0.16) 50%,
                rgba(0, 0, 0, 0.40) 100%);
}
.home-cta__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-black-true);
  opacity: 0.24;
  pointer-events: none;
}

/* Figma drops the closing block with its top on the frame's midpoint. */
.home-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);         /* Figma 36px */
  transform: translateY(min(calc(7.6svh * var(--s)), 5rem));
}
.home-cta__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: 12.4em;                     /* Figma 678px @55px */
}
.home-cta .btn { will-change: transform; }

/* ==========================================================================
   Responsive — 1200 / 1024 / 768 / 480
   ========================================================================== */
@media (max-width: 1200px) {
  .home-loc { grid-template-columns: minmax(0, 640fr) minmax(0, 800fr); }
  .home-strip__caption { width: clamp(15rem, calc(36vw * var(--s)), 27.5rem); }
}

@media (max-width: 1024px) {
  /* JS switches the sticky rail off below this width; the strip reverts to
     a swipeable band, which is the better gesture on a touch screen.

     One swipe, one view. The track is a flex row of ten items — plate,
     caption, plate, caption — so on a phone every second swipe landed on a
     paragraph with no picture and every other on a picture with no words.
     Two grid rows with column flow pairs them back up without touching the
     markup: the plates fill row one, the captions row two, and each column
     is one of the five views, snapped. */
  .home-strip__track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    /* 78, not 86. The missing fifth is the point: a card that fills the
       screen reads as a picture, and the next card's edge showing past it is
       the only thing that says there are five. */
    grid-auto-columns: min(calc(78vw * var(--s)), 30rem);
    align-items: start;
    column-gap: var(--sp-5);
    row-gap: var(--sp-5);
    width: max-content;
    padding-inline: var(--pad-x);
  }
  .home-strip__plate,
  .home-strip__caption {
    width: auto;
    scroll-snap-align: start;
  }
  .home-strip__viewport { scroll-padding-inline-start: var(--pad-x); }

  .home-strip__nav { display: flex; }
  .home-strip__caption {
    padding-inline: 0;
    text-align: left;
    font-size: var(--fs-lead);
  }

  .home-loc { grid-template-columns: minmax(0, 1fr); }
  .home-loc__bed { grid-template-columns: minmax(0, 1fr); }
  .home-loc__bed .home-loc__media { grid-column: 1; }
  .home-loc__copy { min-height: 0; padding-inline: var(--pad-x); }
  .home-loc__media { min-height: clamp(26.25rem, calc(62vw * var(--s)), 38.75rem); }
  .home-loc__media img { object-position: 50% 50%; }

  .home-strip__plate { width: min(calc(78vw * var(--s)), 45rem); }
  .home-strip__caption { width: min(calc(64vw * var(--s)), 26.25rem); }

  .home-floors .building__floorplates__copy { gap: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem); }
}

@media (max-width: 768px) {
  .home-hero .bleed__media,
  .home-statement .bleed__media,
  .home-cta .bleed__media { inset: -5% 0; }

  .home-loc__time { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 480px) {
  .home-strip { padding-block: clamp(2.8125rem, calc(4.1667vw * var(--s)), 3.75rem); }
  .home-cta__inner { gap: 1.25rem; }
  .home-hero__cue { display: none; }
}

/* ==========================================================================
   Anyone who has asked for less motion gets the page, not the performance.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .home-hero__gate,
  .site-header { opacity: 1 !important; transform: none !important; }
  .home-hero__cue { animation: none; transform: translateX(-50%) scaleY(1); opacity: 0.4; }
  .home-loc__time::before { transform: none !important; }
  .home-hero .bleed__media img,
  .home-statement .bleed__media img,
  .home-cta .bleed__media img,
  .home-loc__media img { inset: 0; height: 100%; }
  .home-strip.is-railed .home-strip__sticky { position: static; height: auto; }
  .home-strip.is-railed .home-strip__viewport { overflow-x: auto; }
}


/* ---------- Hero film ---------------------------------------------------
   The looping background video sits over the still and only becomes visible
   once it is playing (site.js adds .has-video), so a missing or refused file
   leaves the photograph in place rather than a black rectangle. */
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-lg) var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}
.bleed__media.has-video .home-hero__video { opacity: 1; }
/* Behind the intro there is nothing to cross-fade for — the overlay covers
   the hero — so the swap is instant. It is only the late case, where the
   film arrives after the intro has lifted, that earns a fade. */
html.is-intro-running .home-hero__video,
html.is-intro-running .bleed__media [data-hero-img] { transition: none; }
/* Once the film is up the still underneath is redundant; leave it in the flow
   so its parallax keeps driving the bed, just stop it showing through. */
.bleed__media.has-video [data-hero-img] { opacity: 0; transition: opacity var(--dur-lg) var(--ease-out-expo); }

@media (prefers-reduced-motion: reduce) {
  .home-hero__video { display: none; }
  .bleed__media.has-video [data-hero-img] { opacity: 1; }
}


/* ==========================================================================
   5. 1 of a kind — the claret panel mirrored
   Same component, handed the other way round: the photograph takes the left
   half and the colour block the right, so the two cards face each other
   across the page instead of repeating.

   The split is dead centre, not the claret card's 735/705. Two halves of a
   screen read as a deliberate division; anything a few per cent off it reads
   as a mistake, and this card sits directly below one that IS 735/705, which
   is exactly where the eye would catch it.
   ========================================================================== */
.home-kind {
  grid-template-columns: 1fr 1fr;
  /* The colour run down the page is navy -> claret -> black -> cream, which is
     burgundy -> blue -> black -> cream. Ground and subject are independent:
     the colour is set here, the photograph on the <img> in index.html. */
  background: var(--c-claret);
  color: var(--c-cream);
}
.home-kind .building__perform__bed { grid-template-columns: 1fr 1fr; }
.home-kind .building__perform__bed .building__perform__media { grid-column: 1; }
/* The section's own grid is what places the stage — the bed is an absolute
   overlay with a grid of its own. Sending the stage to the second column is
   the whole mirror: without it the stage lands in the half the photograph
   wants and the copy column simply overflows it. */
.home-kind > .screen__stage { grid-column: 2; }

/* Half of the 1440 stage, so the copy column and the photograph meet on the
   centre line rather than approximately near it. */
/* The selector carries .building__perform and .screen deliberately: the
   735px width it is overriding is set at that specificity in building.css,
   and at anything lower the copy stays 735 wide, overflows its half by 15px
   and lands left of the centre line. */
.building__perform.home-kind.screen .building__perform__copy {
  width: min(45.9375rem, 100%);
  margin-left: auto;
  padding: var(--panel-inset) var(--pad-x)
           var(--panel-inset) clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
}
.home-kind .feature__body { color: var(--c-cream-70); }
.home-kind .feature:hover .feature__body { color: var(--c-cream); }

@media (max-width: 860px) {
  .home-kind { grid-template-columns: 1fr; }
  .home-kind .building__perform__copy { margin-left: 0; padding-inline: var(--pad-x); width: auto; }
  /* The mirror is a desktop idea. Stacked, both halves are simply the page
     width — the bed drops to one column and the stage comes back out of the
     implicit second one it was sent to, which had no width to give it. */
  .home-kind .building__perform__bed { grid-template-columns: minmax(0, 1fr); }
  .home-kind .building__perform__bed .building__perform__media,
  .home-kind > .screen__stage { grid-column: 1; }
}

/* The brand italicises the numeral wherever it stands for the address —
   "A world-1st model", "Are you the 1?" — so it does here too. */
.home-kind .building__perform__title em { font-style: italic; }

/* ---------- Vertical rhythm on a phone --------------------------------
   Stated last in the file so it outranks the per-composition figures above,
   which were each drawn to a 1440-wide frame: 119px above the strip, the
   panel inset on the two split bands, 80 on the location copy. Stacked, they
   read as four different mistakes rather than four decisions. See --sec-y. */
@media (max-width: 860px) {
  .home-strip:not(.is-railed) { padding-block: var(--sec-y); }
  .building__perform.home-perform.screen .building__perform__copy,
  .building__perform.home-kind.screen .building__perform__copy,
  .home-loc .home-loc__copy { padding-block: var(--sec-y); }
}

/* ---------- The band's controls, above the tablet breakpoint -----------
   The arrows were drawn for the scroller and hidden here because up here
   the band is pulled by page scroll instead. That left the band with no
   control at all on the widest screens — a row of photographs that only
   moves if you happen to scroll the page, with nothing on it that says so.
   The arrows come back and drive the page to the next plate (see the rail
   driver in index.html). The dots do not: the progress rule under the band
   already says how far along you are, and two position indicators on one
   band is one too many. */
@media (min-width: 1025px) {
  .home-strip__nav { display: flex; justify-content: flex-end; }
  .home-strip__nav .floors__dots { display: none; }
}

/* ==========================================================================
   Panel order and ground
   --------------------------------------------------------------------------
   The home page now rehearses the menu: Experience, Location, Innovation,
   History. Two things follow from the reorder.

   One — the photograph has to change sides down the run or two panels in a
   row read as the same panel. "1 of a kind" keeps its image left and
   Location keeps its image right; Innovation, which used to sit first and
   led with its copy, is mirrored so the four alternate L, R, L, R.

   Two — four dark bands and then the black closer is one weight all the way
   down. History, the last of the four, is the light one: the same component
   on cream, which also bookends the cream strip at the top of the page.
   ========================================================================== */
.home-perform { background: var(--c-black); }
.home-perform .building__perform__bed { grid-template-columns: 1fr 1fr; }
.home-perform .building__perform__bed .building__perform__media { grid-column: 1; }
.home-perform > .screen__stage { grid-column: 2; }
.building__perform.home-perform.screen .building__perform__copy {
  width: min(45.9375rem, 100%);
  margin-left: auto;
}

/* The rule under each fact is drawn in the panel's ink on the dark bands;
   on cream it has to come the other way. */

@media (max-width: 860px) {
  .home-perform .building__perform__bed { grid-template-columns: minmax(0, 1fr); }
  .home-perform .building__perform__bed .building__perform__media,
  .home-perform > .screen__stage { grid-column: 1; }
  .building__perform.home-perform.screen .building__perform__copy {
    margin-left: 0;
    padding-block: var(--sec-y);
  }
}
