/* ==========================================================================
   Extensa Group — V2 homepage composition
   Loads after tokens.css. Section order matches the approved hierarchy.
   No section repeats the layout of the one above it.
   ========================================================================== */

/* --------------------------------------------------------------- masthead */
.mast {
  position: sticky; top: 0; z-index: 90; background: var(--paper);
  transition: box-shadow var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.mast.stuck { box-shadow: 0 1px 0 var(--rule); }
.mast .wrap {
  display: flex; align-items: center; gap: var(--s-6);
  height: clamp(62px, 5.2vw, 84px);
}
/* The Group masthead and footer carry the 2022 Landscape lock-up, the
   designer's own artwork at its own 3.90:1 — nothing retypeset, nothing
   redrawn. Since 19 November the Developments masthead carries the same
   artwork, with its business name set beside it. */
.brand { position: relative; }
.brand::before { content: ''; position: absolute; inset: -11px -8px; }
.brand {
  display: flex; align-items: center; gap: .36em;
  font-size: clamp(.9375rem, 1.1vw, 1.0625rem); font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; white-space: nowrap;
}
.brand .g { font-weight: 400; }
.brand img { height: var(--lh, clamp(22px, 2vw, 30px)); width: auto; }
/* Developments: artwork, then the business name on the same baseline.
   The ink in that artwork ends exactly at the EXTENSA baseline, but its
   viewBox carries 598 of 2894 units of margin below — so the image is
   pulled up by that fraction and the two baselines meet. Without it the
   word sits a fifth of the logo's height too low. */
.brand--dev { --lh: clamp(22px, 2vw, 30px); align-items: baseline; gap: .5em; }
/* With align-items: baseline Chrome lines the text baseline up with the
   image's bottom BORDER edge, and ignores a negative bottom margin — tested,
   the offset does not move. So the word is lifted explicitly instead, by the
   2894-2296 = 598 units of margin the artwork carries below the EXTENSA
   baseline, as a fraction of the 2894-unit viewBox. */
.brand--dev .g { display: inline-block;
                 transform: translateY(calc(var(--lh) * -0.2066)); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 34px); margin-left: auto; }
.nav a {
  position: relative; font-size: var(--t-small); font-weight: 500;
  padding: var(--s-2) 0; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hair);
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-sep { width: var(--hair); height: 20px; background: var(--rule); }
.nav .biz { font-weight: 600; }
.nav .biz .mark { display: inline-block; color: var(--orange); margin-right: 7px;
                  vertical-align: 1px; opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.nav .biz:hover .mark { opacity: 1; }
.mast-rule { height: var(--hair); background: var(--rule); }

/* The visible rule stays 26x16 — the drawn mark is three hairlines and it is
   meant to look light. The *hit* area is pushed out to 44x44 with a pseudo
   element, so the control satisfies WCAG 2.2 SC 2.5.8 without the icon
   changing size. Same trick below for the wordmark and the footer links. */
.burger { display: none; margin-left: auto; width: 26px; height: 16px; position: relative; }
.burger::before { content: ''; position: absolute; left: 50%; top: 50%;
                  width: 44px; height: 44px; transform: translate(-50%, -50%); }
.burger span { position: absolute; left: 0; right: 0; height: var(--hair); background: var(--ink);
               transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease); }
.burger span { transform-origin: 50% 50%; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: calc(50% - 0.5px); }
.burger span:nth-child(3) { top: calc(100% - 1px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  padding: clamp(84px, 14vw, 120px) var(--gutter) var(--s-8);
  display: none; flex-direction: column; gap: var(--s-2); overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer a {
  font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 300; letter-spacing: -0.028em;
  padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer .sub { font-size: var(--t-label); font-weight: 700; letter-spacing: var(--ls-label);
               text-transform: uppercase; color: var(--orange-ink); margin-top: var(--s-7); }

/* ------------------------------------------------------------------- hero
   Headline left, photograph right, both hung from the masthead rule.
   The photograph keeps its native 3:2 — nothing is cropped to fit a banner. */
/* Roughly 40 typography / 60 photography. The headline, the supporting line
   and the action are one block, not three things spaced apart, and the
   photograph is sized against the viewport rather than a fixed ratio so it
   actually fills the opening screen. */
.hero { padding: clamp(20px, 2.2vw, 36px) 0 clamp(26px, 2.8vw, 44px); }
.hero-g { align-items: start; }
.hero-txt { grid-column: 1 / 6; align-self: center; }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; }
/* The serif line carries the orange. At display size the 3.44:1 against the
   warm white clears the 3:1 large-text threshold; the same orange at caption
   size would not, which is what --orange-ink is for. */
.hero h1 .ser, .hero h1 .dot { color: var(--orange); }
/* A short rule under the headline — the one piece of orange that is purely
   structural, holding the headline and the sentence apart. */
.hero-rule { width: clamp(48px, 5vw, 72px); height: 2px; background: var(--orange);
             margin-top: clamp(20px, 2.2vw, 30px); }
.hero-sub { margin-top: clamp(16px, 1.8vw, 24px); max-width: 34ch; }
.hero-act { margin-top: clamp(24px, 2.6vw, 34px); }
.hero-fig { grid-column: 6 / -1; }
.hero-fig .fig { height: clamp(380px, 64vh, 700px); }

/* The annotation strip: what the photograph is, and who built it. */
.hero-note {
  grid-column: 6 / -1; margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: var(--hair) solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--ink-3);
}
.hero-note b { color: var(--ink); font-weight: 700; }
.hero-note .r { display: flex; align-items: center; gap: var(--s-5); }
.hero-note .r::before { content: ''; width: 2px; height: 1em; background: var(--orange); }
.hero-note .act { border: 0; padding: 0; letter-spacing: var(--ls-label);
                  font-size: var(--t-label); text-transform: uppercase; color: var(--ink); }
.hero-note .mark { color: var(--orange); transition: transform var(--t-mid) var(--ease); }
.hero-note .act:hover .mark { transform: translateY(3px); }

/* -------------------------------------------------- 01 — our businesses
   Heading left; two entry points right, staggered so neither reads as the
   default. Equal width, equal weight: one firm, two specialisms.         */
.biz-sec { padding: clamp(40px, 4.4vw, 72px) 0 var(--section); }
/* Heading and sentence on one line, then two equal tiles beneath — the two
   businesses carry identical weight rather than one leading the other. */
.biz-head { grid-column: 1 / 7; }
.biz-lead { grid-column: 7 / -1; align-self: start; }
.biz-row { margin-top: clamp(28px, 3.2vw, 52px); }
.biz-a { grid-column: 1 / 7; }
.biz-b { grid-column: 7 / -1; }
/* Both tiles at 16:9, matching and equal. */
.biz-card .fig { aspect-ratio: 16 / 9; }
.biz-card h3 {
  margin-top: var(--s-5); font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-bottom: var(--s-4); border-bottom: var(--hair) solid var(--rule);
  transition: border-color var(--t-mid) var(--ease);
}
.biz-card:hover h3 { border-bottom-color: var(--orange); }
.biz-card:hover .arrow { transform: translate(3px, -3px); }
.biz-card p { margin-top: var(--s-4); font-size: var(--t-small); color: var(--ink-2);
              line-height: 1.6; max-width: 52ch; }

/* ------------------------------------------------- 02 — selected projects
   An index, not a portfolio grid: three sizes, three heights, one baseline
   of hairlines. Bennerley is widest, Melody is tallest and keeps its
   native portrait, Devonshire closes the row.                            */
.pj-sec { padding: 0 0 var(--section); }
.pj-sec .h2 { grid-column: 1 / 7; }
.pj-sec .lead { grid-column: 7 / -1; align-self: end; }
.pj-row { margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.pj-1 { grid-column: 1 / 6; }
.pj-2 { grid-column: 6 / 9;  margin-top: clamp(28px, 4.4vw, 72px); }
.pj-3 { grid-column: 9 / -1; margin-top: clamp(56px, 8.4vw, 148px); }
.pj-1 .fig { aspect-ratio: 3 / 2; }
.pj-2 .fig { aspect-ratio: 2 / 3; }      /* native — Melody is not cropped */
.pj-3 .fig { aspect-ratio: 3 / 2; }
.pj .num { flex: 0 0 auto; padding-top: .42em; font-size: var(--t-label); font-weight: 700;
           letter-spacing: var(--ls-label); color: var(--orange-ink); }
.pj .cap-m { line-height: 1.5; }
.pj:hover .cap { border-top-color: var(--orange); }
.pj:hover .arrow { transform: translate(3px, -3px); }
/* No rule and no gulf: this reads as the last line of the gallery, not as a
   section of its own. */
.pj-more {
  margin-top: clamp(20px, 2.2vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}
.pj-more a { font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.02em;
             display: flex; align-items: center; gap: var(--s-4); }
.pj-more a:hover .arrow { transform: translate(3px, -3px); }

/* ---------------------------------------------------- 03 — our people
   A lineup, not a scatter: the heading and the introduction share one row,
   then all five people run the full width at the same size. The team is
   five equals, and the earlier arrangement — three widths, three baselines,
   two of them tucked under the others — kept implying a hierarchy that is
   not there. The only variation left is a small alternating drop, enough to
   stop the row reading as a passport page. */
/* A link target: "Who we are" in the Group masthead lands here, so it has to
   clear the sticky masthead when jumped to. */
.pp-sec { padding: 0 0 var(--section); scroll-margin-top: clamp(76px, 8vw, 104px); }
.pp-head { grid-column: 1 / 7; }
/* A step up on --t-h2, scoped here: this heading carries the section on its
   own now that the CTA sits under it, and the other h2s are unchanged. */
.pp-head .h2 { font-size: clamp(2.25rem, 4.4vw, 3.875rem); }
.pp-head .act { margin-top: clamp(24px, 2.8vw, 40px); }
.pp-copy { grid-column: 7 / -1; align-self: start; }
.pp-copy .lead + .lead { margin-top: var(--s-4); }
.pp-grid {
  margin-top: clamp(22px, 2.4vw, 38px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--col-gap);
  align-items: start;
}
.pp-1, .pp-2, .pp-3, .pp-4, .pp-5 { grid-column: auto; margin-top: 0; }
.pp-2, .pp-4 { margin-top: clamp(18px, 2.4vw, 44px); }
/* The Developments page runs four, not five: Josh leads Electrical. The
   alternating drop still lands on 2 and 4, so the rhythm is unchanged. */
.pp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pp .fig { aspect-ratio: 3 / 4; }
.pp .fig img { object-position: 50% 22%; }

/* Hover on a pointer, focus on a keyboard, tap on a touchscreen. The text is
   in the HTML at all times — it is faded, never removed — so it is read by
   search engines and screen readers whether or not it is on screen. */
.pp-btn { display: block; width: 100%; position: relative; text-align: left; }
.pp-bio {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  /* Two layers, so the face stays visible and the words stay readable.
     This one is a light wash over the whole portrait — enough to say the
     tile is hovered, nowhere near enough to hide anyone. The scrim that
     actually carries the text is on the span below. */
  --scrim: 5, 16, 79;
  background: rgba(var(--scrim), .14);
  color: var(--white); opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.pp-bio span {
  display: block; margin: 0; width: 100%;
  font-size: var(--t-small); font-weight: 400; letter-spacing: -0.005em;
  text-transform: none; line-height: 1.45; color: var(--white); text-wrap: pretty;
  /* The scrim is sized by the text, not by a share of the portrait. A fixed
     gradient down the whole tile failed the moment a biography ran long: at
     390px Jordan's runs to five lines, and its first line landed above the
     ramp at 3.14:1. Anchoring the gradient to the span means two lines or
     six, the text always sits in the solid end of it.

     White on navy needs .58 alpha to clear AA against the brightest pixel a
     photograph can offer, and .70 to clear AAA. The text begins 3em down,
     by which point this gradient and the wash above compose to about .86. */
  padding: 3em clamp(14px, 1.4vw, 22px) clamp(14px, 1.4vw, 22px);
  background: linear-gradient(to bottom,
    rgba(var(--scrim), 0)    0,
    rgba(var(--scrim), .60)  1.9em,
    rgba(var(--scrim), .84)  2.9em,
    rgba(var(--scrim), .88) 100%);
}
.pp-btn:hover .pp-bio,
.pp-btn:focus-visible .pp-bio,
.pp-btn[aria-expanded="true"] .pp-bio { opacity: 1; }
.pp-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (hover: none) {
  /* No hover to rely on: a small orange mark says the portrait does something. */
  .pp-btn::after {
    content: ''; position: absolute; right: 10px; bottom: 10px; width: 9px; height: 9px;
    background: var(--orange); opacity: .9;
  }
  .pp-btn[aria-expanded="true"]::after { opacity: 0; }
}
.pp figcaption { margin-top: var(--s-3); padding-top: var(--s-3);
                 border-top: var(--hair) solid var(--rule); }
.pp figcaption b { display: block; font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
                   font-weight: 600; letter-spacing: -0.01em; }
.pp figcaption span { display: block; margin-top: 2px; font-size: var(--t-label);
                      font-weight: 600; letter-spacing: var(--ls-label);
                      text-transform: uppercase; color: var(--ink-3); }

/* A placement waiting on a real photograph. Deliberately plain and
   deliberately obvious: nothing synthetic stands in for a person. */
.hold {
  background: var(--stone); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-3); color: var(--ink-2);
}
.hold .mark { color: var(--orange); opacity: .6; }
.hold em { font-style: normal; font-size: var(--t-label); font-weight: 700;
           letter-spacing: var(--ls-label); text-transform: uppercase; }

/* ------------------------------------------------------- 04 — our belief
   The one loud moment on the page. Full-bleed brand orange, navy type at
   display scale, a single hairline to hold the composition.              */
.belief { padding: clamp(80px, 10vw, 168px) 0; }
.belief .index-rule { background: var(--navy); opacity: .32; }
.belief .index-l { color: var(--navy); }
.belief .index-l .n, .belief .index-r { color: var(--on-orange-2); }
.belief-g { align-items: center; row-gap: clamp(32px, 4vw, 56px); }
.belief h2 { grid-column: 1 / 8; font-size: var(--t-belief); font-weight: 300;
             line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.belief .side {
  grid-column: 9 / -1; padding-left: clamp(24px, 3vw, 56px);
  border-left: var(--hair) solid rgba(5,16,79,.3);
}
.belief .side p { font-size: var(--t-lead); line-height: 1.55; color: var(--on-orange-2);
                  max-width: 42ch; }

/* ------------------------------------------------------- 05 — get in touch */
.contact { padding: var(--section) 0 clamp(56px, 6vw, 96px); }
.contact h2 { grid-column: 1 / 7; }
.contact .routes {
  grid-column: 8 / -1; padding-left: clamp(24px, 3vw, 56px);
  border-left: var(--hair) solid var(--rule-dark);
}
.contact .routes > p { color: var(--on-dark-2); max-width: 42ch; margin-bottom: var(--s-6); }
.route {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-5) 0; border-bottom: var(--hair) solid var(--rule-dark);
  transition: border-color var(--t-mid) var(--ease);
}
.route:first-of-type { border-top: var(--hair) solid var(--rule-dark); }
.route:hover { border-bottom-color: var(--orange); }
.route:hover .arrow { transform: translate(3px, -3px); }
.route .rt { display: block; }
.route b { display: block; font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.02em; }
.route .rt-s { display: block; margin-top: 4px; font-size: var(--t-label); font-weight: 600;
               letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-dark-2); }
.contact .tel { margin-top: var(--s-7); font-size: var(--t-small); color: var(--on-dark-2); }
.contact .tel a { border-bottom: var(--hair) solid var(--rule-dark); padding-bottom: 2px;
                  position: relative; }
.contact .tel a::before { content: ''; position: absolute; inset: -6px -8px; }
.contact .tel a:hover { border-bottom-color: var(--orange); }

/* ------------------------------------------------------------------ footer */
.foot { padding: 0 0 clamp(32px, 4vw, 56px); }
.foot-rule { height: var(--hair); background: var(--rule-dark); margin-bottom: var(--s-7); }
.foot-g { row-gap: var(--s-7); align-items: start; }
.foot-brand { grid-column: 1 / 5; }
.foot-brand .brand { font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: .14em; }
.foot-col { grid-column: span 2; }
.foot-col h2, .foot-col h3 { font-size: var(--t-label); font-weight: 700; letter-spacing: var(--ls-label);
               text-transform: uppercase; color: var(--on-dark-2); margin-bottom: var(--s-4); }
.foot-col a { position: relative; }
.foot-col a::before { content: ''; position: absolute; inset: -5px -6px; }
.foot-col a, .foot-col p { display: block; font-size: var(--t-small); color: var(--on-dark);
                           padding: 5px 0; }
.foot-col a:hover { color: var(--orange); }
.foot-social { grid-column: 11 / -1; display: flex; gap: var(--s-5); justify-content: flex-end; }
.foot-social a { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small);
                 position: relative; }
.foot-social a::before { content: ''; position: absolute; inset: -5px -6px; }
.foot-social a:hover { color: var(--orange); }
.foot-social svg { width: 17px; height: 17px; fill: currentColor; }
.foot-legal a { position: relative; }
.foot-legal a::before { content: ''; position: absolute; inset: -6px -8px; }
.foot-legal {
  grid-column: 1 / -1; margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: var(--hair) solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  font-size: var(--t-small); color: var(--on-dark-2); line-height: 1.5;
}

/* ------------------------------------------------- 06 — the social pop-up
   A small piece of editorial, not an interruption. It waits for scroll,
   it remembers being dismissed, it leaves the enquiry routes alone.      */
/* Out of the layout until the script arms it. It was costing every visitor two
   photographs — 56 KB of the 159 KB a phone pulls on first view — for a panel
   that may be dismissed for a fortnight and never drawn at all. display:none
   keeps its lazy images unfetched; visibility:hidden did not. */
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 95;
  width: min(312px, calc(100vw - var(--s-5) * 2));
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--rule-strong), 0 18px 48px rgba(5,16,79,.14);
  /* visibility, not just opacity: a pop-up that is not showing must be out
     of the tab order and out of the accessibility tree, not merely faded. */
  opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
              visibility 0s linear var(--t-mid);
}
            transition-delay: 0s, 0s, 0s; }
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-bottom: var(--hair) solid var(--rule);
}
             text-transform: uppercase; color: var(--ink-3); }
         color: var(--ink-3); transition: color var(--t-fast) var(--ease); }
  position: absolute; left: 0; bottom: 0; padding: 5px 7px;
  background: var(--paper); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
             padding-top: var(--s-3); border-top: var(--hair) solid var(--rule); }
               font-size: var(--t-small); font-weight: 600; }

/* ------------------------------------------------ hero alternatives panel
   Preview only. Removed with one line in build.py before launch.         */
.alt {
  position: fixed; left: var(--s-5); bottom: var(--s-5); z-index: 96;
  background: var(--navy); color: var(--white); padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-3); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.alt b { font-weight: 700; color: rgba(255,255,255,.6); }
.alt button { padding: 5px 10px; border: var(--hair) solid rgba(255,255,255,.3); font-weight: 600; }
.alt button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* ==========================================================================
   Responsive. Three breakpoints, each one a real layout change.
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-txt { grid-column: 1 / 6; }
  .hero-fig, .hero-note { grid-column: 6 / -1; }
  .hero-fig .fig { height: clamp(340px, 54vh, 520px); }
  .biz-head, .biz-lead { grid-column: 1 / -1; }
  .biz-lead { margin-top: var(--s-4); }
  .biz-a { grid-column: 1 / 7; }
  .biz-b { grid-column: 7 / -1; }
  .pj-sec .h2 { grid-column: 1 / -1; }
  .pj-sec .lead { grid-column: 1 / -1; margin-top: var(--s-4); }
  .pp-head, .pp-copy { grid-column: 1 / -1; }
  /* Stacked, the CTA stays directly under the headline where it belongs,
     and the supporting copy follows it. */
  .pp-copy { margin-top: var(--s-5); }
  .pp-head .act { margin-top: var(--s-5); }
  .belief h2 { grid-column: 1 / -1; }
  .belief .side { grid-column: 1 / -1; padding-left: 0; border-left: 0;
                  padding-top: var(--s-5); border-top: var(--hair) solid rgba(5,16,79,.3); }
  .contact h2 { grid-column: 1 / -1; }
  .contact .routes { grid-column: 1 / -1; margin-top: var(--s-7);
                     padding-left: 0; border-left: 0; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 4; }
  .foot-social { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Five across stops being a lineup and becomes a row of stamps once each
   portrait drops under about 165px — at 880 the job titles were running to
   three ragged lines. Below this they wrap to three and two instead. */
@media (max-width: 960px) {
  .pp-grid { grid-template-columns: repeat(6, 1fr); }
  /* Four across would leave one stranded on a row of its own at this
     width, so they go two and two. */
  .pp-grid--4 { grid-template-columns: repeat(4, 1fr); }
  /* All five keep one width. Letting the second row span the full six columns
     made the last two portraits half again as large as the first three, which
     put back exactly the hierarchy this layout is meant to remove. The empty
     third of the second row is the price, and it is the right price. */
  .pp-1, .pp-2, .pp-3, .pp-4, .pp-5 { grid-column: span 2; }
  .pp-2 { margin-top: 0; }
  .pp-4, .pp-5 { margin-top: var(--s-6); }
}

/* The navigation collapses at the width its own contents need, which is not
   the same on both brands. The Group bar is wordmark + three links + button
   and fits comfortably to 880. The Developments bar adds two more links and
   the group switcher: measured, it needs 1147px, and below that the Get in
   touch button ran past the right edge and scrolled the whole document
   sideways. Measured rather than guessed, after 960 turned out not to be
   enough either. */
@media (max-width: 1180px) {
  .mast--dev .nav { display: none; }
  .mast--dev .burger { display: block; }
}
/* 860, which is what the Group bar carried at its approved checkpoint
   (extensa-group-homepage-v1). The Developments work split this rule per
   brand and set Group to 960 along the way, which quietly moved the
   collapse point on a signed-off page: between 861 and 960 it showed a
   burger where it used to show the full navigation. Measured since — the
   Group bar needs 838px — so 860 stands. */
@media (max-width: 860px) {
  .mast--group .nav { display: none; }
  .mast--group .burger { display: block; }
}

@media (max-width: 860px) {
  .hero-txt, .hero-fig, .hero-note { grid-column: 1 / -1; }
  .hero-fig { margin-top: var(--s-6); }
  .hero-fig .fig { height: clamp(320px, 46vh, 460px); }
  .hero-sub { max-width: none; }
  .biz-a, .biz-b { grid-column: 1 / -1; margin-top: var(--s-7); }
  .biz-row { margin-top: 0; }
  .pj-1, .pj-2, .pj-3 { grid-column: 1 / -1; margin-top: var(--s-8); }
  .pj-2 .fig { aspect-ratio: 3 / 4; }
  .foot-col { grid-column: span 6; }
  .alt { display: none; }
}

@media (max-width: 540px) {
  .hero-note { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .pp-grid { grid-template-columns: 1fr 1fr; }
  .pp-1, .pp-2, .pp-3, .pp-4, .pp-5 { grid-column: span 1; margin-top: 0; }
  .pp-5 { grid-column: 1 / -1; }
  .pp-5 .fig { aspect-ratio: 16 / 10; }
  .pp-5 .fig img { object-position: 50% 28%; }
  .cap { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}

/* The footer lock-up: the white Landscape artwork, as supplied. */
.foot-logo { height: clamp(26px, 2.6vw, 38px); width: auto; }
