/* ==========================================================================
   1 Poultry — Enquire
   Figma: "Enquire - Desktop" (321:22243) — 1440 x 1313
   Left 852px (59.17%) atrium photograph, right column on pure black,
   then a 289px black footer strip.
   ========================================================================== */

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


/* Pure black behind the overscroll too, so the cream body never flashes. */
html, body { background: var(--c-black-true); }

.enquire {
  background: var(--c-black-true);
  color: var(--c-white);
}

/* ---------- Stage -----------------------------------------------------
   The Figma composes the photo/contact split as one 1440 x 1024 screen and
   hangs a 289px footer strip below it, so the split now rides the shared
   .screen / .screen__stage contract like every other coloured block on the
   site — the client asked for each one to fit a screen fully, and at 1440
   this column was 1025px tall on any viewport, dropping Savills past the
   fold at 900 and 850.
   The photograph is NOT .screen__media: it is 59.17% of the composition,
   not a full-bleed bed. It stays a real grid cell (so it keeps its bleed to
   the left edge and its full height) and only the contact column goes in
   the stage, which is the same split the Innovation stats panel uses. */
.enquire__stage {
  display: grid;
  grid-template-columns: 59.17% 1fr;   /* 852 / 588 at 1440 */
}

/* ---------- The atrium photograph ------------------------------------- */
.enquire__media {
  grid-column: 1;
  position: relative;
  overflow: hidden;
  background: var(--c-black);
  isolation: isolate;
}
/* the reveal scale lives on this wrapper so GSAP can own the <img> transform */
.enquire__media-scale {
  position: absolute;
  inset: 0;
  transform: scale(1.16);
  transition: transform var(--dur-xl) var(--ease-out-expo);
  will-change: transform;
}
.enquire__media.is-in .enquire__media-scale { transform: none; }

.enquire__img {
  position: absolute;
  top: -9%;
  left: -6%;
  width: 112%;
  height: 118%;                 /* headroom for the parallax + pointer drift */
  max-width: none;              /* base.css caps images at 100% — not this one */
  object-fit: cover;
  object-position: 50% 4%;      /* matches the Figma crop: drum, balcony, clock */
  will-change: transform;
}

/* A whisper of a scrim so the cream wordmark holds up over the glass. */
.enquire__media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* ---------- Contact column --------------------------------------------
   Simply the second cell of the .enquire__stage grid. It used to be an
   absolutely positioned, --fit-scaled stage pinned with left: 59.17%; now
   that the whole document is zoom-scaled there is no per-stage transform to
   work around, and those offsets pushed the column clean off the right edge.
   Ordinary grid placement, vertically centred. */
.enquire__panel {
  grid-column: 2;
  place-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Every vertical measurement in this column — padding, gaps and the type
     itself — is a fraction of the screen it has to fit inside, capped at the
     Figma value. At a 1440x1024 screen the fractions resolve to the design;
     on a window that is shorter in proportion (where site.js has hit its
     0.7 zoom floor and the logical screen is under 1024) they all shrink
     together, so the column keeps its rhythm and Catherine Facer never falls
     off the bottom. The column adds up to about 92% of the screen, which
     leaves real air rather than the 1px it used to clear by. */
  padding:
    min(10rem, calc(var(--screen-h) * 0.1563))   /* one step clear of the 120px header */
    var(--pad-x)
    min(5rem, calc(var(--screen-h) * 0.0781))
    var(--sp-4);      /* 22  — the gap off the photograph */
}
.enquire__panel-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  will-change: transform;           /* GSAP owns this element's transform */
}

/* Inside a fixed stage --fit is the only responsive step, so the fluid type
   scale is pinned to the Figma sizes — otherwise the clamp and the scale
   compound and the contact details arrive at ~35px/13px on a 1280 desktop.
   Below 860 the stage is released and the fluid scale takes over again. */
@media (min-width: 861px) {
  .enquire__panel {
    --fs-display: min(3.4375rem, calc(var(--screen-h) * 0.0537));
    --fs-body:    min(1.5625rem, calc(var(--screen-h) * 0.0244));
    --fs-small:   min(1.25rem, calc(var(--screen-h) * 0.0195));
    /* One multiplier on every vertical step in the column. The page was drawn
       with two agents per agency and now carries three, which pushed the last
       name off the bottom of the screen at every size. Tightening the rhythm
       as a single factor keeps the intervals in proportion to each other
       rather than picking one gap to sacrifice. */
    --v: 0.68;
  }
}

.enquire__title {
  font-size: var(--fs-display);
  line-height: var(--lh-snug);
  max-width: 14ch;
}
.enquire__title em { font-style: italic; display: inline-block; }
/* the split mask needs a sliver of room for the italic's overshoot */
.enquire__title .split-line { padding-right: 0.08em; }

.enquire__label {
  margin-top: min(3.75rem, calc(var(--screen-h) * 0.0586 * var(--v, 1)));
  font-size: var(--fs-body);
  line-height: 1;
}

.enquire__agency {
  width: 100%;
  max-width: 34.25rem;
  margin-top: min(2.8125rem, calc(var(--screen-h) * 0.0439 * var(--v, 1)));
  display: flex;
  flex-direction: column;
  gap: min(2.8125rem, calc(var(--screen-h) * 0.0439 * var(--v, 1)));
}
.enquire__agency-name {
  font-size: var(--fs-body);
  line-height: 1;
}

.enquire__people {
  display: flex;
  flex-direction: column;
  gap: min(1.875rem, calc(var(--screen-h) * 0.0293 * var(--v, 1)));
  max-width: 21.0625rem;
}
.enquire__person {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.enquire__person-name {
  font-size: var(--fs-small);
  line-height: 1;
}
.enquire__lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

/* Every phone + email is a link; the rule wipes in from the left on hover. */
.enquire__link {
  position: relative;
  display: inline-block;
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: var(--c-white);
  transition: color     var(--dur-sm) var(--ease-out-expo),
              transform var(--dur-sm) var(--ease-out-expo);
}
.enquire__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.1875rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-md) var(--ease-out-expo);
}
.enquire__link:hover,
.enquire__link:focus-visible { color: var(--c-cream); transform: translateX(0.1875rem); }
.enquire__link:hover::after,
.enquire__link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- The hairline, which draws itself -------------------------- */
.enquire__rule {
  position: relative;
  width: 100%;
  max-width: 34.25rem;
  height: 1px;
  margin-block: min(1.875rem, calc(var(--screen-h) * 0.0293));
  background: var(--c-white-15);
  overflow: hidden;
}
.enquire__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-white-40);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-xl) var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.enquire__rule.is-in::after { transform: scaleX(1); }
.enquire__rule + .enquire__agency { margin-top: 0; }

/* ---------- Short black footer strip (289px in the design) ------------ */
.enquire-footer {
  background: var(--c-black-true);
  color: var(--c-white);
  padding: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem) var(--pad-x) clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem);
  min-height: clamp(12.25rem, calc(20vw * var(--s)), 18.0625rem);
}
.enquire-footer__grid {
  max-width: var(--page-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.25rem, calc(3.125vw * var(--s)), 2.8125rem);
  align-items: start;
}
.enquire-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem);
}
.enquire-footer__mark { width: clamp(8.75rem, calc(13.2vw * var(--s)), 11.875rem); display: block; }
.enquire-footer__mark {
  transition: transform var(--dur-sm) var(--ease-out-expo), opacity var(--dur-sm) var(--ease-out-expo);
}
.enquire-footer__mark:hover { transform: translateY(-0.25rem); opacity: 0.86; }
.enquire-footer__mark img {
  width: 100%;
  transition: transform var(--dur-md) var(--ease-out-expo),
              opacity   var(--dur-sm) linear;
}
.enquire-footer__mark:hover img { transform: translateY(-0.25rem); opacity: 0.86; }

.enquire-footer__address { font-size: var(--fs-body); line-height: 1; }

.enquire-footer__logos {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, calc(2.0833vw * var(--s)), 1.875rem);
  min-height: 4.5rem;
}
.enquire-footer__logo {
  display: block;
  opacity: 0.9;
  transition: transform var(--dur-md) var(--ease-out-expo),
              opacity   var(--dur-sm) linear;
}
.enquire-footer__logo img { width: 100%; }
.enquire-footer__logo:hover { opacity: 1; transform: translateY(-0.25rem); }
.enquire-footer__logo--fore { width: clamp(6.125rem, calc(9.38vw * var(--s)), 8.4375rem); }
.enquire-footer__logo--more { width: clamp(5rem, calc(7.64vw * var(--s)), 6.875rem); }

/* ---------- Responsive ------------------------------------------------ */
/* The split holds its Figma composition and simply scales all the way down
   to 860 — the width at which components.css releases .screen — and stacks
   below it. The old 1200/1024 steps are gone: inside a fixed stage the
   column has one width and one set of Figma measures, and re-cutting them
   part of the way down fought the scale rather than helping it. */
@media (max-width: 860px) {
  /* the photograph stacks above the contact column */
  .enquire__stage { grid-template-columns: minmax(0, 1fr); }
  .enquire__media { grid-column: 1; height: clamp(22.5rem, calc(62svh * var(--s)), 38.75rem); }
  .enquire__img { object-position: 50% 32%; }   /* a landscape band wants the balcony */
  /* the desktop placement puts this in column 2 — the stack needs it back
     in column 1, or it lands in an implicit second track */
  .enquire__panel {
    grid-column: 1;
    place-self: auto;
    width: 100%;
    padding: clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem) var(--pad-x) clamp(2.8125rem, calc(5.5556vw * var(--s)), 5rem);
  }
  .enquire__rule { max-width: none; }
  .enquire__title { max-width: none; }
  .enquire__agency, .enquire__people { max-width: none; }
}

@media (max-width: 768px) {
  .enquire__media { height: clamp(20rem, calc(52svh * var(--s)), 30rem); }
  .enquire__label { margin-top: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem); }
  .enquire__agency { margin-top: var(--sp-5); }
  .enquire-footer__grid { grid-template-columns: 1fr; gap: clamp(1.875rem, calc(3.125vw * var(--s)), 2.8125rem); }
  .enquire-footer__logos { min-height: 0; }
}

@media (max-width: 480px) {
  .enquire__media { height: calc(78vw * var(--s)); min-height: 18.75rem; }
  .enquire__img { object-position: 50% 38%; }
  .enquire__people { gap: 1.875rem; }
  .enquire-footer { padding-bottom: clamp(1.875rem, calc(4.1667vw * var(--s)), 3.75rem); }
  .enquire-footer__logos { gap: 1.25rem; }
}

/* ---------- Calm mode -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .enquire__media-scale { transform: none !important; }
  .enquire__rule::after { transform: scaleX(1) !important; transition: none !important; }
  .enquire__link:hover { transform: none; }
  .enquire-footer__logo:hover,
  .enquire-footer__mark:hover img { transform: none; }
}

/* The closing page carries the same exit as every other, set into its own
   footer grid rather than the shared one. */
.enquire-footer__links { margin-top: clamp(1.5rem, calc(3vw * var(--s)), 2.5rem); color: var(--c-cream); }
