/* ==========================================================================
   Extensa Developments — page compositions
   Homepage and Our services. Loaded after tokens.css, styles.css and
   system.css, all of which these pages share with the Group homepage.

   No two sections repeat a layout.
   ========================================================================== */

/* ------------------------------------------------------------- dev hero
   Roughly 40 typography / 60 photography — reached with two uncropped
   frames rather than one cropped one. Melody Road is 2:3; a single
   portrait wide enough to fill 60% of a desktop screen would stand about
   1,300px tall and fall straight out of the opening view. Two frames,
   one tall and one dropped, carry the same weight at their own
   proportions. The second runs to the edge of the page.               */
.dhero { padding: clamp(24px, 2.6vw, 44px) 0 clamp(96px, 10vw, 168px); overflow-x: clip; }
.dhero-g { align-items: center; }
.dhero-t { grid-column: 1 / 6; align-self: center; }
.dhero h1 { max-width: 14ch; }
.dhero .lead { margin-top: clamp(20px, 2.2vw, 30px); max-width: 34ch; }
.dhero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5);
             margin-top: clamp(26px, 2.8vw, 38px); }

/* One dominant photograph, with the construction shot laid over its
   bottom-right corner — Julie's wireframe, 19 November. It replaced two
   frames side by side, which gave a finished house and the work behind it
   equal billing when the point is that one explains the other.

   Proportions are read off the wireframe: the small frame is 45% of the
   main one's width, its right edge flush with it, and it hangs 46% of its
   own height below. The paper border is what makes it read as laid on top
   rather than cut into. */
.dhero-f { grid-column: 6 / -1; }
.dhero-stack { position: relative; }
.dhero-f .fig { aspect-ratio: 3 / 2; }
.dhero-f2 {
  position: absolute; right: 0; bottom: 0; width: 45%;
  transform: translateY(46%);
  padding: clamp(8px, .9vw, 14px) 0 0 clamp(8px, .9vw, 14px);
  background: var(--paper);
}
.dhero-f2 .fig { aspect-ratio: 3 / 2; }
.dhero-note {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: var(--hair) solid var(--rule);
  font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--ink-3);
}
.dhero-note b { color: var(--ink); font-weight: 700; }
/* The small frame's caption is its own, and sits under it. */
.dhero-note2 { margin-top: var(--s-3); }

/* ------------------------------------------------- 02 selected work
   Rebuilt 19 November to Julie's mock-up. It was a magazine spread — one
   wide, one tall, one dropped a long way down — which gave the three
   projects three different weights and left the third stranded low. Now
   three equal columns, one 4:5 frame, and only a small drop on the middle
   one so the row has a pulse without a hierarchy nobody intended.          */
.dw { padding: 0 0 var(--section); }
.dw-head { grid-column: 1 / 7; }
.dw-lead { grid-column: 7 / -1; align-self: end; }
.dw-row { margin-top: clamp(36px, 4.4vw, 72px); align-items: start; }
.dw-a { grid-column: 1 / 5; }
.dw-b { grid-column: 5 / 9; margin-top: clamp(18px, 2.4vw, 44px); }
.dw-c { grid-column: 9 / -1; }
.dw-a .fig, .dw-b .fig, .dw-c .fig { aspect-ratio: 4 / 5; }
.dw-more { margin-top: clamp(40px, 4.6vw, 72px); padding-top: var(--s-5);
           border-top: var(--hair) solid var(--rule); }
.dw-more a { display: inline-flex; align-items: center; gap: var(--s-4);
             font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.02em; }
.dw-more a:hover .arrow { transform: translate(3px, -3px); }

/* --------------------------------------------- 03 collaborators ------- */
/* Rebuilt 19 November to Julie's mock. It was compact on purpose — a
   credibility beat between the work and the services — but compact had
   become cramped: a small heading, the copy stacked under it, and the logos
   starting almost immediately underneath. Now it carries the same
   heading-left, copy-right arrangement as Our people, at the same heading
   size, with the logos given a band of their own across the full width.  */
.dco { padding: clamp(36px, 4.4vw, 72px) 0 clamp(72px, 8vw, 128px); }
.dco-head { grid-column: 1 / 7; }
.dco-head .h2 { font-size: clamp(2.25rem, 4.4vw, 3.875rem); }
.dco-head .act { margin-top: clamp(24px, 3vw, 40px); }
.dco-lead { grid-column: 8 / -1; align-self: start; }
.dco-mq { grid-column: 1 / -1; margin-top: clamp(44px, 5.6vw, 92px); }

/* ------------------------------------------------- 04 our expertise --- */
/* Everything readable on the left, one substantial photograph on the
   right that changes with the open service. The accordion no longer
   runs the full width with nothing beside it.                          */
.dx { padding: 0 0 var(--section); }
.dx-l { grid-column: 1 / 7; }
.dx-l .lead { margin-top: var(--s-4); }
.dx-acc { margin-top: clamp(28px, 3.4vw, 48px); }
.dx-more { margin-top: clamp(24px, 2.8vw, 40px); }
.dx-fig { grid-column: 8 / -1; position: sticky; top: clamp(88px, 9vw, 116px); }
.dx-fig .fig { aspect-ratio: 4 / 5; }
/* One frame per service, stacked; only the current one is shown. */
.dx-fig .fig { position: relative; }
.dx-shot { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.dx-shot[data-on] { opacity: 1; }
.dx-shot img { width: 100%; height: 100%; object-fit: cover; }
.dx-cap { margin-top: var(--s-3); padding-top: var(--s-3);
          border-top: var(--hair) solid var(--rule);
          font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
          text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------- 05 our approach ----
   A stone band: the one warm interruption before the orange one.        */
/* Both sections are now link targets — "Who we are" in the nav lands on
   .dpp — so they need to clear the sticky masthead when jumped to. */
.dap, .dpp { scroll-margin-top: clamp(76px, 8vw, 104px); }
.dap { background: var(--stone); padding: var(--section) 0; }
.dap .index-rule { background: var(--orange); opacity: .5; }
.dap-g { align-items: center; row-gap: clamp(32px, 4vw, 56px); }
.dap-t { grid-column: 8 / -1; grid-row: 1; }
.dap-t h2 { max-width: 13ch; }
.dap-t p { margin-top: var(--s-5); color: var(--ink-2); max-width: 46ch;
           line-height: var(--lh-body); }
.dap-t p + p { margin-top: var(--s-4); }
.dap-t .act { margin-top: clamp(28px, 3.4vw, 48px); }
.dap-f { grid-column: 1 / 7; grid-row: 1; }
.dap-f .fig { aspect-ratio: 4 / 3; background: #d9d4cb; }
.dap-note { grid-column: 1 / 7; grid-row: 2; margin-top: var(--s-4); padding-top: var(--s-3);
            border-top: var(--hair) solid var(--rule);
            font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
            text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------- 06 our people ------ */
/* Bottom padding matters here: the orange For-architects band butts
   straight up against this section, and with none the last job title
   sat on the colour change. */
.dpp { padding: var(--section) 0 clamp(56px, 6.4vw, 104px); }
/* Nothing else. The scatter that used to live here — a 9-column sub-grid with
   three widths and three baselines — is gone, and this section now inherits
   the approved Group layout: heading and introduction on one row, five equal
   portraits across the full width beneath. The team is five equals on both
   brands, and two different arrangements of the same five faces made the
   group look like two companies rather than one. */

/* ------------------------------------------- 07 for architects --------
   Full-width orange. Navy type. The page's deliberate interruption.     */
.darch { padding: clamp(60px, 7.2vw, 116px) 0; }
.darch .index-rule { background: var(--navy); opacity: .32; }
.darch .index-l { color: var(--navy); }
.darch .index-l .n::after { color: var(--on-orange-2); }
.darch .index-r { color: var(--on-orange-2); }
.darch-g { align-items: end; row-gap: clamp(28px, 3.4vw, 48px); }
.darch h2 { grid-column: 1 / 7; font-size: var(--t-belief); font-weight: 300;
            line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.darch .side { grid-column: 7 / -1; padding-left: clamp(24px, 3vw, 56px);
               border-left: var(--hair) solid rgba(5,16,79,.3); }
.darch .side p { font-size: var(--t-lead); line-height: 1.55; color: var(--on-orange-2);
                 max-width: 42ch; }
.darch .side p + p { margin-top: var(--s-4); }
.darch .act { margin-top: var(--s-6); border-bottom-color: rgba(5,16,79,.35); color: var(--navy); }
.darch .act:hover { border-bottom-color: var(--navy); }
.darch .arrow { stroke: var(--navy); }

/* ------------------------------------------------- 08 testimonials ---- */
.dq { padding: var(--section) 0; }
.dq-g { row-gap: clamp(28px, 3.4vw, 48px); }
.dq-head { grid-column: 1 / -1; }
.dq-body { grid-column: 1 / -1; }

/* ------------------------------------------- 09 contact, two pathways - */
.dc-two { grid-column: 6 / -1; padding-left: clamp(24px, 3vw, 56px);
          border-left: var(--hair) solid var(--rule-dark); }
.dc-two > p { color: var(--on-dark-2); max-width: 42ch; margin-bottom: var(--s-5); }
/* The headline sat at the top of a tall column with nothing under it. */
.contact .grid > .h2 { align-self: center; }
.dark.contact { padding: clamp(60px, 7vw, 112px) 0 clamp(48px, 5vw, 80px); }

/* Our services only. Two faults, one cause: styles.css puts the headline in
   columns 1-7 and dev.css puts the routes in 6-12, so the two overlap in
   column 6 and grid auto-placement drops the routes onto a row of their own
   — 146px below the headline, measured, which is what reads as the headline
   floating and the hole underneath it. Pulling the headline back to column 6
   puts both on one row and they start on the same line. Scoped to this page
   because the Developments homepage is signed off as it stands. */
.contact--tight .grid > .h2 { grid-column: 1 / 6; align-self: start; }
.contact--tight .dc-two { grid-column: 7 / -1; }
.dark.contact--tight { padding: clamp(52px, 6vw, 92px) 0 clamp(40px, 4.4vw, 72px); }
.contact .tel { margin-top: var(--s-6); font-size: var(--t-body); }
.contact .tel a { font-weight: 600; }

/* ==========================================================================
   Our services
   Rebuilt 19 November 2026. Six sections, and no two of them share a
   composition: the opening is copy against two offset frames, the four
   services alternate side, go full width and then turn a corner, the
   architect band is type alone, the approach is a wide documentary band over
   three columns, and the review is one paragraph in a lot of air.
   ========================================================================== */

/* ---- the opening ---------------------------------------------------------
   The Developments hero component, used as it stands: .dhero, .dhero-stack,
   .dhero-f2 laid over the bottom-right corner at 45% with its paper border,
   .dhero-note captions, .dhero-cta. Three overrides and nothing else.

   The first version composed its own thing — two frames side by side on the
   right, four columns and two. It did not work. A 24px grid gap is a seam,
   not an interval, so two photographs read as one broken picture, and with
   no shared edge the small frame and its caption floated. The overlap is the
   approved answer to exactly this pairing: a finished house with the work
   behind it laid over its corner, so one plainly explains the other.

   The override: this hero's dominant frame is a portrait. The Developments
   hero takes a landscape because a portrait at seven columns stands 1,300px
   tall; at five it is 820, which the section carries. */
.sop .dhero-t { grid-column: 1 / 6; }
.sop .dhero-f { grid-column: 7 / -1; }
.sop .dhero-f .fig { aspect-ratio: 3 / 2; }
/* Half the tail the two-frame version needed. There is one photograph now and
   it ends above the copy, so the only thing the old 212px was holding open
   was empty ground between the hero and the first service. */
.sop { padding-bottom: clamp(56px, 6vw, 96px); }

/* ---- 01 our expertise, the standfirst ---------------------------------- */
.sx { padding: 0 0 clamp(40px, 4.4vw, 64px); }
.sx-h { grid-column: 1 / 6; }
.sx-l { grid-column: 7 / -1; align-self: end; }
.sx-l .lead { max-width: 46ch; }

/* ---- the services directory ---------------------------------------------
   One grid, five rows, nothing alternating. The earlier version gave each
   service a composition of its own and the page lost the thing a services
   page is for: being able to see, in one movement of the eye, everything the
   company does. Number, service, photograph — the same three positions every
   time, separated by a hairline, is what makes that possible.

   The photograph takes four of twelve columns. That is the ceiling, not a
   starting point: it is there to confirm the service, not to perform. */
.sd { list-style: none; margin-top: clamp(32px, 3.6vw, 56px);
      border-top: var(--hair) solid var(--rule); }
.sd-i { display: grid; grid-template-columns: repeat(12, 1fr);
        column-gap: var(--col-gap); align-items: start;
        padding: clamp(28px, 3.2vw, 48px) 0;
        border-bottom: var(--hair) solid var(--rule);
        scroll-margin-top: clamp(80px, 9vw, 120px); }
.sd-n { grid-column: 1 / 2; padding-top: .5em;
        font-size: var(--t-label); font-weight: 700; letter-spacing: var(--ls-label);
        color: var(--orange-ink); }
.sd-t { grid-column: 2 / 9; }
.sd-h { font-size: var(--t-h3); font-weight: 400; line-height: 1.2;
        letter-spacing: -.014em; color: var(--ink); }
.sd-t > p { margin-top: var(--s-4); max-width: 54ch; color: var(--ink-2); }
.sd-cta { display: flex; flex-wrap: wrap; align-items: center;
          gap: var(--s-4) clamp(20px, 2.4vw, 36px);
          margin-top: clamp(18px, 2vw, 26px); }
.sd-a { grid-column: 9 / -1; }
.sd-a .fig { aspect-ratio: 4 / 3; }
/* A row with no photograph: the explanation keeps a readable measure on the
   left and "when you'd need it" takes the columns the picture would have. */
.sd-i--txt .sd-t { grid-column: 2 / 8; }
/* With no photograph and no "when", widening the column alone changed
   nothing: the 54ch cap on the paragraphs was the real constraint, so the row
   still ran half empty. The heading and its explanation sit side by side
   instead, which fills the row and keeps the measure. */
.sd-i--wide .sd-t { grid-column: 2 / -1; display: grid;
                    grid-template-columns: 4fr 7fr; column-gap: var(--col-gap);
                    align-items: start; }
.sd-i--wide .sd-t > p { margin-top: 0; }
@media (max-width: 860px) {
  .sd-i--wide .sd-t { grid-template-columns: 1fr; }
  .sd-i--wide .sd-t > p { margin-top: var(--s-4); }
}
.sd-w { grid-column: 8 / -1; }
.sd-w > p { margin-top: var(--s-4); max-width: 42ch; color: var(--ink-2); }
.sd-wl { margin: 0; font-size: var(--t-label); font-weight: 700;
         letter-spacing: var(--ls-label); text-transform: uppercase;
         color: var(--ink-3); }
@media (max-width: 860px) {
  .sd-i--txt .sd-t { grid-column: 2; }
  .sd-w { grid-column: 1 / -1; grid-row: 2; padding-top: var(--s-4); }
}

/* ---- 02 architects ------------------------------------------------------
   Full-width orange, navy type, no photograph. It was a service section in
   its own right and is now a bridge to the For architects page, so it takes
   about half the vertical room and a headline one step down the scale. */
.sarch { padding: clamp(48px, 5.4vw, 84px) 0; }
.sarch .index-rule { background: var(--navy); opacity: .32; }
.sarch .index-l { color: var(--navy); }
.sarch .index-l .n::after { color: var(--on-orange-2); }
.sarch-g { align-items: start; row-gap: clamp(24px, 2.8vw, 40px);
           margin-top: clamp(28px, 3.2vw, 44px); }
.sarch h2 { grid-column: 1 / 7; font-size: clamp(2.125rem, 4.3vw, 4.25rem); font-weight: 300;
            line-height: 1.04; letter-spacing: var(--ls-display); }
.sarch .side { grid-column: 8 / -1; padding-left: clamp(24px, 3vw, 56px);
               border-left: var(--hair) solid rgba(5,16,79,.3); }
.sarch .side p { font-size: var(--t-lead); line-height: 1.55; color: var(--on-orange-2);
                 max-width: 40ch; }
.sarch .side p + p { margin-top: var(--s-4); }
.sarch .act { margin-top: var(--s-5); border-bottom-color: rgba(5,16,79,.35);
              color: var(--navy); }
.sarch .act:hover { border-bottom-color: var(--navy); }
.sarch .arrow { stroke: var(--navy); }

/* ---- 03 our approach ----------------------------------------------------
   Stone. The documentary frame beside the copy rather than above it, which is
   the single biggest saving on the page: a 21:9 band at full width, then a
   separate row of three columns, cost about 700px that this says in one. */
.sap { background: var(--stone); padding: clamp(56px, 6.4vw, 104px) 0; }
.sap-g { align-items: start; row-gap: clamp(28px, 3.2vw, 44px);
         margin-top: clamp(28px, 3.2vw, 44px); }
.sap-f { grid-column: 1 / 7; }
.sap-f .fig { aspect-ratio: 4 / 3; }
.sap-c { grid-column: 8 / -1; }
.sap-c .lead { margin-top: var(--s-5); max-width: 44ch; }
.sap-3 { list-style: none; margin-top: clamp(26px, 3vw, 40px);
         border-top: var(--hair) solid var(--rule-strong); }
.sap-i { padding: clamp(14px, 1.6vw, 20px) 0;
         border-bottom: var(--hair) solid var(--rule-strong); }
.sap-ih { font-size: var(--t-h3); font-weight: 400; line-height: 1.2;
          letter-spacing: -.012em; color: var(--ink); }
.sap-i p { margin-top: var(--s-2); max-width: 46ch; color: var(--ink-2); }
.sap-cta { margin-top: clamp(24px, 2.8vw, 36px); }

/* ---- 04 one review, at size --------------------------------------------- */
.squ { padding: clamp(56px, 6.4vw, 100px) 0; }
.squ-f { grid-column: 2 / 11; }
.squ-q { font-size: clamp(1.5rem, 2.9vw, 2.625rem); font-weight: 300; line-height: 1.26;
         letter-spacing: -.018em; color: var(--ink); text-indent: -.42em; }
.squ-a { margin-top: clamp(28px, 3.2vw, 44px); padding-top: var(--s-4);
         border-top: var(--hair) solid var(--rule);
         font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
         text-transform: uppercase; color: var(--ink-3); }

/* photo annotation shared by every section on the page */
.ph-note { margin-top: var(--s-3); padding-top: var(--s-3);
           border-top: var(--hair) solid var(--rule);
           font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
           text-transform: uppercase; color: var(--ink-3); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .dhero-t { grid-column: 1 / 6; }
  .dhero-f { grid-column: 6 / -1; }
  .dw-head { grid-column: 1 / 6; }
  .dw-lead { grid-column: 6 / -1; }
  /* Heading and copy hold their row down to 860; only the logo band's top
     margin tightens, since the section is already generous above it. */
  .dco-head { grid-column: 1 / 6; }
  .dco-lead { grid-column: 6 / -1; }
  .dco-mq { margin-top: clamp(36px, 4.4vw, 64px); }
  /* Still three across at this width — a 4:5 frame in a third of the grid
     is about 290px, which the photographs carry. */
  .dx-l { grid-column: 1 / -1; }
  .dx-fig { grid-column: 1 / -1; margin-top: var(--s-7); position: static; }
  .dx-fig .fig { aspect-ratio: 3 / 2; }
  .dap-t, .dap-f, .dap-note { grid-column: 1 / -1; grid-row: auto; }
  .darch .side { grid-column: 1 / -1; }
  .darch h2 { grid-column: 1 / -1; }
  .darch .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); }
  .dc-two { grid-column: 1 / -1; margin-top: var(--s-7); padding-left: 0; border-left: 0; }
  .contact--tight .grid > .h2, .contact--tight .dc-two { grid-column: 1 / -1; }
  /* ---- Our services ----
     The opening keeps its three-part composition down to 860: the offset is
     the idea, and stacking it here would throw the idea away a breakpoint
     early. Everything else gives up a column or two. */
  .sop .dhero-t { grid-column: 1 / 6; }
  .sop .dhero-f { grid-column: 7 / -1; }
  .sx-h { grid-column: 1 / -1; }
  .sx-l { grid-column: 1 / -1; margin-top: var(--s-5); }
  /* The copy takes the column the photograph gives up, so the row keeps its
     three parts rather than dropping one of them early. */
  .sd-t { grid-column: 2 / 8; }
  .sd-a { grid-column: 8 / -1; }
  .sap-f { grid-column: 1 / 7; }
  .sap-c { grid-column: 7 / -1; }
  .sarch h2, .sarch .side { grid-column: 1 / -1; }
  .sarch .side { padding-left: 0; border-left: 0; padding-top: var(--s-5);
                 border-top: var(--hair) solid rgba(5,16,79,.3); }
  .squ-f { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .dco-head, .dco-lead { grid-column: 1 / -1; }
  .dco-lead { margin-top: var(--s-4); }

  .dhero-t { grid-column: 1 / -1; }
  .dhero-f { grid-column: 1 / -1; margin-top: var(--s-6); }
  /* The overlap needs room either side of it. Below this width there is
     none, so the small frame unnests and the two simply stack.

     Unnesting alone put the captions in the wrong order. The small frame
     sits inside the stack and the dominant frame's caption outside it, so
     the column read: big photograph, small photograph, small caption, big
     caption — and "Woodhurst Drive" appeared under a photograph of Lonsdale
     Road. Two different houses with the captions swapped is a misattribution,
     not a layout quibble. Dissolving the stack lets all three be ordered, so
     every caption sits under its own photograph. This fixes the Developments
     homepage hero as well, which has had the same fault on a phone since it
     was built. */
  .dhero-f { display: flex; flex-direction: column; }
  .dhero-stack { display: contents; }
  .dhero-f > .fig { order: 1; }
  .dhero-f > .dhero-note { order: 2; }
  .dhero-f2 { order: 3; position: static; width: auto; transform: none;
              padding: 0; margin-top: var(--s-6); }
  .dhero { padding-bottom: var(--section); }
  .dhero h1 { max-width: none; }
  .dhero .lead { max-width: none; }
  .dw-head, .dw-lead { grid-column: 1 / -1; }
  .dw-lead { margin-top: var(--s-4); }
  /* Two up, then the third beneath the first — better than three full-width
     slabs, which made the section twice as long as it needed to be. */
  .dw-a { grid-column: 1 / 7; }
  .dw-b { grid-column: 7 / -1; }
  .dw-c { grid-column: 1 / 7; margin-top: var(--s-7); }
  .dx-fig .fig, .dap-f .fig { aspect-ratio: 3 / 2; }
  /* ---- Our services ----
     One column. The reading order is already the order the composition
     implies at width, so nothing has to be reordered: copy, then picture. */
  /* The directory keeps its number beside the service on a phone rather than
     spending a whole line on it; the photograph drops underneath both. Two
     columns, not twelve — a 12-column sub-grid at 360px gives the number a
     28px slot and the title breaks after every word. */
  .sd-i { grid-template-columns: auto 1fr; column-gap: var(--s-5);
          row-gap: var(--s-5); padding: var(--s-6) 0; }
  .sd-n { grid-column: 1; grid-row: 1; padding-top: .35em; }
  .sd-t { grid-column: 2; grid-row: 1; }
  /* Capped rather than full width. At 768 an unconstrained 3:2 frame is 700px
     wide and 466 tall, which made the tablet rows taller than the phone's and
     turned the confirming photograph back into the loudest thing in the row. */
  .sd-a { grid-column: 1 / -1; grid-row: 2; max-width: 520px; }
  .sd-a .fig { aspect-ratio: 3 / 2; }
  .sap-f, .sap-c { grid-column: 1 / -1; }
  /* A 2:3 frame at phone width is 560px of photograph and nothing else on
     screen. Both tall frames come back to 4:5, which still reads portrait. */
  /* .dhero's own 860 rules put the hero's two columns full width, but they
     are written at one class and this page's overrides at two, so they have
     to be restated here or the copy stays in a 155px column on a phone.
     A media query adds no specificity of its own. */
  .sop .dhero-t, .sop .dhero-f { grid-column: 1 / -1; }
  /* The portrait comes back to 4:5: 2:3 at 92vw is 520px of photograph with
     nothing else on screen. The overlapped frame unnests and stacks, which
     .dhero already handles, so the hero no longer has anything hanging below
     it and the extra bottom padding goes with it. */
  .sop .dhero-f .fig { aspect-ratio: 4 / 3; }
  .sop { padding-bottom: clamp(48px, 9vw, 72px); }
  .sap-f .fig { aspect-ratio: 3 / 2; }
  .idx--2 { columns: 1; }
  /* The bar carries brand + enquiry CTA + menu on one line, so everything
     tightens rather than anything being dropped: the enquiry route has to
     stay reachable the moment someone arrives. */
  .mast .wrap { gap: var(--s-4); }
  .mast .brand { font-size: .8125rem; letter-spacing: .13em; }
  .mast .nav-cta { margin-left: auto; margin-right: var(--s-4); padding: 8px var(--s-4); }
}

@media (max-width: 540px) {
  /* One project per row. Two columns at this width gave 160px tiles —
     too small to show a room, let alone sell one. */
  .dw-a, .dw-b, .dw-c { grid-column: 1 / -1; margin-top: 0; }
  .dw-b, .dw-c { margin-top: var(--s-7); }
  /* Both frames stay on a phone. This used to hide the second one — fair when
     both showed the same room, but the pair is now a finished house and the
     structural work behind it, and dropping one loses the point. */
  .dhero-f { grid-column: 1 / -1; margin-top: var(--s-6); margin-right: 0; }
  .dhero-f2 { margin-top: var(--s-5); }
  .dhero-cta { flex-direction: column; align-items: stretch; }
  .dhero-cta .btn { justify-content: center; }
  .mast .wrap { gap: var(--s-3); }
  .mast .brand { font-size: .75rem; letter-spacing: .1em; }
  .mast .nav-cta { font-size: var(--t-label); padding: 8px 11px; margin-right: var(--s-3); }
  .mast .nav-cta .arrow { display: none; }
  .idx > li { grid-template-columns: 1.9em 1fr; gap: var(--s-3); }
  .idx--go a { grid-template-columns: 1.9em 1fr auto; gap: var(--s-3); font-size: 1.0625rem; }
}

/* ==========================================================================
   Developments — Our work
   --------------------------------------------------------------------------
   Rebuilt 20 November 2026 to the refinement brief, which supersedes the
   storyboard this page was first built to.

   The page is the audition. Its job is to make the photography look as good
   as it is, which means the grid should be invisible: one shape for the three
   flagships, one for the five supporting projects, nothing staggered, and
   every edge lining up with every other. The earlier version staggered each
   project against the next and gave the lead a full-width 3:2 frame; it read
   as a series of separate decisions rather than a collection.

   THE HIERARCHY IS THE PHOTOGRAPH'S SIZE AND NOTHING ELSE. No labels, no
   ornament, no "featured" badge: a 4:5 frame at four columns against a 16:9
   frame at four columns says it on its own.
   ========================================================================== */
.wkin { padding: clamp(28px, 3vw, 56px) 0 clamp(36px, 4.2vw, 68px); }
.wkin-g { align-items: end; row-gap: var(--s-5); }
.wkin-t { grid-column: 1 / 7; }
.wkin-t h1 { max-width: 9ch; }
.wkin-l { grid-column: 8 / -1; }
.wkin-l .lead { max-width: 42ch; }

.wkf { padding: 0 0 clamp(64px, 7vw, 116px); }
.wkm { padding: 0 0 var(--section); }
.wkm .index { margin-bottom: clamp(24px, 3vw, 44px); }
.prow { align-items: start; row-gap: clamp(40px, 4.6vw, 80px); }
.prow--m2 { margin-top: clamp(40px, 4.6vw, 80px); }

.pfig { display: block; }
.pfig .fig { width: 100%; }

/* The three flagships. 4:5 is portrait enough to be substantial and square
   enough that all three land inside a laptop's first screen, which the brief
   asks for. */
.pw-f1 { grid-column: 1 / 5;  grid-row: 1; }
.pw-f2 { grid-column: 5 / 9;  grid-row: 1; }
.pw-f3 { grid-column: 9 / -1; grid-row: 1; }
.pw-f1 .fig, .pw-f2 .fig, .pw-f3 .fig { aspect-ratio: 4 / 5; }

/* The five supporting projects: three, then two, same columns, same 16:9. */
.pw-m1, .pw-m4 { grid-column: 1 / 5;  grid-row: 1; }
.pw-m2, .pw-m5 { grid-column: 5 / 9;  grid-row: 1; }
.pw-m3          { grid-column: 9 / -1; grid-row: 1; }
.prow--m1 .fig, .prow--m2 .fig { aspect-ratio: 16 / 9; }

/* ---- the caption under every photograph -------------------------------- */
.pcap { margin-top: var(--s-4); padding-top: var(--s-3);
        border-top: var(--hair) solid var(--rule); }
.pcap-top { position: relative; display: flex; align-items: baseline;
            justify-content: space-between; gap: var(--s-4); }
.pcap h3 { font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.02em; }
.pcap .cap-m { margin-top: var(--s-3); }

.pex { display: inline-flex; align-items: center; gap: var(--s-3); flex: 0 0 auto;
       font-size: var(--t-label); font-weight: 600; letter-spacing: var(--ls-label);
       text-transform: uppercase; color: var(--ink-2); }
.pex-t { border-bottom: var(--hair) solid transparent; padding-bottom: 2px;
         transition: border-color var(--t-fast) var(--ease); }
.pex:hover .pex-t { border-bottom-color: var(--orange); }
/* SC 2.5.8. The control's own box is 13px of plus sign and a line of 11px
   type; the hit area is extended over the caption line instead of padding the
   text out of alignment with the photograph above it. */
.pex::before { content: ''; position: absolute; inset: -10px -4px; }

/* The plus that becomes a minus: one element, two strokes, the vertical one
   scaled away. No icon swap and nothing to load. */
.pm { position: relative; width: 13px; height: 13px; flex: 0 0 auto; }
.pm::before, .pm::after { content: ''; position: absolute; background: var(--orange); }
.pm::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.pm::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%);
             transition: transform var(--t-base) var(--ease); transform-origin: 50% 50%; }
.pm--open::after, [aria-expanded="true"] .pm::after { transform: translateX(-50%) scaleY(0); }

/* ---- the expanded case study -------------------------------------------
   One magazine spread rather than a gallery dropped into a portfolio. A
   substantial photograph, everything the project has to say beside it, then
   two authored rows of supporting photography and a way out.

   The collaborators sit in the information column, next to the work they
   helped make. The earlier version put them at the foot of a long gallery,
   which is both the least read position on the page and the opposite of what
   giving someone credit means. */
.cs { grid-column: 1 / -1; }
.cs[hidden] { display: none; }
.cs-in { margin-top: clamp(32px, 3.8vw, 64px); padding-top: clamp(24px, 2.8vw, 40px);
         border-top: var(--hair) solid var(--rule-strong); }
.js .cs-in { animation: cs-in var(--t-slow) var(--ease); }
@keyframes cs-in { from { opacity: 0; transform: translateY(12px); } }

.cs-head { display: flex; align-items: baseline; justify-content: space-between;
           gap: var(--s-5); }
.cs-head h4 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 300;
              line-height: 1.1; letter-spacing: var(--ls-display); color: var(--ink); }
.cs-close { position: relative; display: inline-flex; align-items: center; gap: var(--s-3);
            flex: 0 0 auto; font-size: var(--t-label); font-weight: 600;
            letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-2); }
.cs-close::before { content: ''; position: absolute; inset: -10px -4px; }
.cs-close:hover { color: var(--ink); }

.cs-main { margin-top: clamp(24px, 2.8vw, 40px); row-gap: clamp(24px, 3vw, 40px);
           align-items: start; }
.cs-lead { grid-column: 1 / 9; }
/* 4:3, not 3:2. The information column carries two paragraphs and four
   facts and runs about 870px; a 3:2 lead is 533 and the spread read as one
   tall column beside one short photograph. 4:3 closes most of that and is
   the more substantial frame the brief asks for. */
.cs-lead .fig { aspect-ratio: 4 / 3; }
.cs-info { grid-column: 9 / -1; }
.cs-eyebrow { font-size: var(--t-label); font-weight: 700; letter-spacing: var(--ls-label);
              text-transform: uppercase; color: var(--orange-ink); }
.cs-kind { margin-top: var(--s-4); font-size: var(--t-h3); font-weight: 400;
           line-height: 1.2; letter-spacing: -.014em; color: var(--ink); }
.cs-kind .dot { color: var(--orange-ink); }
.cs-info > p { margin-top: var(--s-4); color: var(--ink-2); }
.cs-dl { margin-top: clamp(20px, 2.4vw, 32px); }
.cs-dl dt { padding-top: var(--s-4); border-top: var(--hair) solid var(--rule);
            font-size: var(--t-label); font-weight: 700; letter-spacing: var(--ls-label);
            text-transform: uppercase; color: var(--ink-3); }
.cs-dl dd { margin: var(--s-2) 0 var(--s-5); color: var(--ink-2); }
.cs-dl dd:last-of-type { margin-bottom: 0; }
/* padding, not just list-style. A <ul> keeps its 40px start padding when the
   marker is removed, so the whole collaborator block sat indented against
   SCOPE OF WORK, LOCATION and COMPLETED directly above it. */
/* A scope given as a list rather than a sentence. Seven short items read as
   a specification; run together in prose they read as a paragraph nobody
   finishes. No bullets: the column already has enough small marks in it. */
.cs-scope { list-style: none; padding: 0; margin: 0; }
/* The marker is a hairline, not a bullet. The system draws with lines
   everywhere else — the index rules, the rule under every caption, the rule
   between facts — so a short orange rule is the brand's own mark rather than
   a new one, and it is quiet enough to sit seven times in one column.
   A grid rather than a text-indent so a wrapping item lines up under itself
   instead of under the rule. */
.cs-scope li { display: grid; grid-template-columns: 12px 1fr; gap: 12px;
               align-items: start; }
.cs-scope li::before { content: ''; height: var(--hair); background: var(--orange);
                       margin-top: .72em; }
.cs-scope li + li { margin-top: 7px; }
.cs-cred { list-style: none; padding: 0; margin: 0; }
.cs-cred li + li { margin-top: var(--s-3); }
.cs-role { display: block; font-size: var(--t-label); font-weight: 600;
           letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-3); }
/* A light hairline rather than the strong rule: on most projects some
   collaborators have a website and some do not, and the heavier underline
   made the ones without look like an omission. */
.cs-cred a { border-bottom: var(--hair) solid var(--rule); padding-bottom: 1px; }
.cs-cred a:hover { border-bottom-color: var(--orange); }

/* The supporting rows. Every frame in a row shares one shape, declared per
   row in the markup as --ar, so a row of portraits and a row of landscapes
   can each be right without either being forced into the other's crop. */
.cs-row { margin-top: clamp(24px, 3vw, 44px); align-items: start; }
.gs { margin: 0; }
.cs-fig { display: block; width: 100%; background: var(--stone);
          aspect-ratio: var(--ar, 3 / 2); }
.cs-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-row--trio > .gs:nth-child(1) { grid-column: 1 / 5; }
.cs-row--trio > .gs:nth-child(2) { grid-column: 5 / 9; }
.cs-row--trio > .gs:nth-child(3) { grid-column: 9 / -1; }
.cs-row--pair > .gs:nth-child(1) { grid-column: 1 / 5; }
.cs-row--pair > .gs:nth-child(2) { grid-column: 5 / -1; }

.cs-foot { display: flex; align-items: center; justify-content: space-between;
           gap: var(--s-5); flex-wrap: wrap;
           margin-top: clamp(28px, 3.4vw, 48px); padding-top: var(--s-5);
           border-top: var(--hair) solid var(--rule); }

@media (max-width: 1080px) {
  .wkin-t { grid-column: 1 / 6; }
  .wkin-l { grid-column: 6 / -1; }
  .cs-lead { grid-column: 1 / 8; }
  .cs-info { grid-column: 8 / -1; }
}

@media (max-width: 860px) {
  .wkin-t, .wkin-l { grid-column: 1 / -1; }
  .wkin-t h1 { max-width: none; }
  .wkin-l .lead { max-width: none; }
  /* Flagships go one to a row and keep their shape: on a phone the point of
     this page is still the size of the photograph. The supporting five pair
     up instead, which is what stops eight stacked projects becoming a scroll
     nobody finishes. */
  .pw-f1, .pw-f2, .pw-f3, .cs { grid-column: 1 / -1; grid-row: auto; }
  .pw-m1, .pw-m2, .pw-m3, .pw-m4, .pw-m5 { grid-column: span 6; grid-row: auto; }
  .prow { row-gap: clamp(40px, 6vw, 64px); }
  .prow--m2 { margin-top: clamp(40px, 6vw, 64px); }
  .cs-lead, .cs-info { grid-column: 1 / -1; }
  .cs-row--trio > .gs:nth-child(1),
  .cs-row--trio > .gs:nth-child(2) { grid-column: span 6; }
  .cs-row--trio > .gs:nth-child(3),
  .cs-row--pair > .gs:nth-child(1),
  .cs-row--pair > .gs:nth-child(2) { grid-column: 1 / -1; }
  .cs-row { margin-top: var(--s-6); row-gap: var(--s-6); }
}

@media (max-width: 620px) {
  .pw-m1, .pw-m2, .pw-m3, .pw-m4, .pw-m5 { grid-column: 1 / -1; }
  .prow--m1 .fig, .prow--m2 .fig { aspect-ratio: 3 / 2; }
  .cs-row--trio > .gs:nth-child(1),
  .cs-row--trio > .gs:nth-child(2) { grid-column: 1 / -1; }
  /* The label goes and the plus stays: at 360px "Explore project" and the
     project name were competing for the same line and the name was losing. */
  .pex-t { position: absolute; width: 1px; height: 1px; overflow: hidden;
           clip-path: inset(50%); white-space: nowrap; }
  /* With the label gone the control is just a 13px plus, and the base hit
     area (-4px each side) left it 21px wide — under SC 2.5.8's 24. Measured
     at 430, 390 and 375 in the QA pass of 20 November. Widening the inset
     rather than the mark, so nothing moves. */
  .pex::before { inset: -10px -9px; }
  .cs-close .pex-t { position: static; width: auto; height: auto; clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .cs-in { animation: none; }
  .pm::after { transition: none; }
}

/* ---- a project's own page ------------------------------------------------
   The same case study, open, with the project's name as the page's H1
   instead of a panel heading. Nothing here is a second component: .cs and
   everything inside it is the markup the portfolio uses, rendered with
   inline=False. */
.pjh { padding: clamp(28px, 3vw, 56px) 0 0; }
.pjh-t { grid-column: 1 / -1; }
.pjh-back { margin-bottom: clamp(20px, 2.4vw, 32px); }
.pjh-t h1 { max-width: 16ch; }
.pjh-t .cap-m { margin-top: var(--s-4); }
.pjb { padding: 0 0 clamp(64px, 7vw, 116px); }
.cs--page .cs-in { margin-top: clamp(24px, 2.8vw, 40px); border-top-color: var(--rule); }

/* ====================================================================
   Extensa Electrical — shared corrections, 20 November.
   Scoped to .el so the Developments pages cannot move.
   ==================================================================== */

/* A heading followed straight by its lead paragraph had ONE PIXEL between
   them on every Electrical page. Developments never hit this because its
   leads sit inside .dx-l, which carries its own margin; the Electrical
   sections put the lead as a direct sibling of the h2. */
.el .h2 + .lead,
.el .h2 + .el-note { margin-top: clamp(18px, 2vw, 28px); }

/* The logo rail sat flush against the paragraph above it for the same
   reason, and its marks take the navy rather than the softer ink the
   shared component defaults to. */
.el .mq-wrap { margin-top: clamp(30px, 3.4vw, 48px); }
.el .mq-item svg { color: var(--navy); }

/* .dx carries a full section's padding below it, and the section after it
   carries a full one above: 259px of nothing under a rail 50px tall. The
   brands band is thin by design, so it does not need a full section's
   clearance underneath. */
.el #brands { padding-bottom: clamp(44px, 5.2vw, 84px); }
