/* ============================================================================
   ApexEvolv — HOME

   The home page (19 Nov 2026, the "homepage only" brief). Loaded on
   index.html only, after mono, nav, light, service-hero, mission and
   region-map. Nothing here can reach another page.

   22 Nov 2026, the second-pass layout: under the hero and the ribbon the
   page runs mission (with the evolution rail), services (an ivory panel),
   expertise (a black panel with the Expertise page's map), approach,
   Managing Partner (an ivory panel) and the close (two doors, links only).
   From the mission down the sections are told apart by their ground, not
   by a rule above each one. The new rules are in the last block of this
   file.

   ONE LANGUAGE WITH THE INNER PAGES. The page is built from the components
   Mission, Expertise and the contact pages already use, so it cannot drift
   from them:
     .ms-ch            the chapter grid (here without its champagne rule)
     .ms-h             headings: 600, tracking -.042em, 31-50px
     .ms-copy          body copy: --t-lede, line-height 1.7
     .ms-evo           the evolution rail of Our Mission
     .ms-who           Our Mission's introduction of the Managing Partner
     .shero__more      the quiet uppercase link with its arrow
     region-map.css    the markets and the map, the Expertise page's own
   This file adds only what the home page has and they do not: the
   photograph hero, the industry ribbon, the inset panels, the services
   cards, the approach columns and the two doors, plus where the
   right-hand column starts.

   ONE RIGHT-HAND EDGE. On the inner pages the copy beside a heading starts
   at the seventh column. Here, where every chapter has a heading beside
   text, it starts at the eighth: the headings get the room to sit on two
   lines at the inner pages' own size, and the copy beside them starts on
   that one line. (22 Nov 2026: the mission's paragraph is the one that
   uses it now.)
   ============================================================================ */

/* ---- the navigation over the photograph --------------------------------------------
   The bar is white and frosted on every page (light.css). Here, while the
   photograph is under it (motion.js takes .hdr--light off over dark ground),
   it goes transparent and its type white: the same bar, the same size and
   spacing, no panel behind it. Not while the phone menu is open. The
   dropdowns keep their dark-on-white type. */
body:not(.mnav-open) .hdr:not(.hdr--light){
  --ink:#FFFFFF; --mu:rgba(244,243,239,.86); --mu2:rgba(244,243,239,.6);
  --gold:#D6BE93; --goldDeep:#D6BE93; --line:rgba(244,243,239,.18);
  background-color:transparent!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
/* once the page scrolls, the cover moves under the bar: it takes the dark
   version of the site's frosted bar, so the headline never runs through the
   logo. Same height, same type. */
body.hm-scrolled:not(.mnav-open) .hdr:not(.hdr--light){
  background-color:rgba(16,16,17,.72)!important;
  -webkit-backdrop-filter:saturate(140%) blur(16px);backdrop-filter:saturate(140%) blur(16px);
  box-shadow:0 1px 0 rgba(244,243,239,.08)}
body:not(.mnav-open) .hdr:not(.hdr--light) .nav__d{
  --ink:#121214; --mu:#5E5F66; --gold:#7C5E24; --goldDeep:#7C5E24; --line:rgba(18,18,20,.12)}

/* ---- labels without the leading line ---------------------------------------------------------
   The client's call (19 Nov 2026): on the home page the small labels stand
   alone, without the 32px champagne line the site draws before them. Home
   only; the inner pages keep it. */
main .lab::before{display:none}

/* ---- the quiet link, with a forward arrow ------------------------------------------------
   .shero__more is drawn for a downward arrow and drops 3px on hover; these
   point forward, so they move forward. */
.hm-go:hover svg,.hm-go:focus-visible svg{transform:translateX(4px)}

/* ---- hero ------------------------------------------------------------------------------------
   88% of the screen, between 640 and 980px. (The photograph is the iceberg
   since the client's brief of 26 Nov 2026, in full colour, with the framing
   and the veil below kept exactly as they were for the office floor before
   it.) The veil: a light overall layer, the top darkens a little
   further under the navigation, and the lower left most of all, where the
   copy sits on the floor of the room. The headline takes the inner pages'
   setting (600, -.045em, 1.04) one step larger, as the cover: 64px at a
   1280 screen, 68px at most. */
.sec.hm-hero{position:relative;display:flex;align-items:flex-end;height:clamp(640px,88svh,980px);
  padding:0;overflow:hidden;background:#151617;color:#FFFFFF;
  --ink:#FFFFFF; --mu:rgba(244,243,239,.84); --gold:#D6BE93; --goldDeep:#D6BE93;
  --goldHi:#EBD9B4; --onGold:#12100A;   /* the service plate's dark-ground pair (25 Nov 2026), so the button reads dark on champagne */
  --line2:rgba(244,243,239,.34)}
.hm-hero__ph{position:absolute;inset:0;margin:0}
.hm-hero__ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.hm-hero__ph::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(9,9,10,.42) 0%,rgba(9,9,10,0) 24%),
    linear-gradient(14deg,rgba(9,9,10,.74) 0%,rgba(9,9,10,.42) 36%,rgba(9,9,10,0) 66%),
    rgba(9,9,10,.18)}
.hm-hero__in{position:relative;z-index:1;padding-bottom:clamp(72px,11vh,120px)}
.hm-hero__in > .lab{margin:0}
/* The label above the headline, set to stand out over the photograph (the
   client's brief of 26 Nov 2026): larger, wider, a lighter gold, and a soft
   shadow under it. This label only; the others on the site are unchanged.
   No line before it, as everywhere on this page. */
.hm-hero .lab{font-size:15px;letter-spacing:.22em;color:#E9D5AC;
  text-shadow:0 1px 14px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.35)}
.hm-hero .lab::before{display:none}
/* under 600px, smaller and closer, so it stays on one line */
@media(max-width:599.98px){
  .hm-hero .lab{font-size:13px;letter-spacing:.16em}
}
.hm-hero h1{margin:clamp(22px,3vh,30px) 0 0;max-width:none;
  font-size:clamp(2.3rem,1rem + 3.75vw,4.25rem);font-weight:600;letter-spacing:-.045em;line-height:1.04;
  color:#FFFFFF}
.hm-hero__l{margin-top:clamp(20px,2.8vh,26px);font-size:var(--t-lede);line-height:1.6;color:var(--mu)}
/* 25 Nov 2026: the primary action is the service heroes' filled button (see
   the note in index.html); the gap is the service hero's own, 16px 34px, so
   the button and the quiet link sit as they do there, and wrap to button
   over link on a phone the same way. */
.hm-hero__acts{display:flex;flex-wrap:wrap;align-items:center;gap:16px 34px;margin-top:clamp(28px,4vh,40px)}
.hm-hero .shero__more{color:#FFFFFF}
.hm-hero .shero__more svg{stroke:currentColor}

/* ---- the industry ribbon ------------------------------------------------------------------
   A detail of the hero, not a section: about 55px of black, the five
   industry groups in the label voice, warm white, each followed by a short
   champagne hairline, the site's own mark (the line before every label).
   The client's brief of 26 Nov 2026 set the motion, which
   assets/js/home-ribbon.js runs: 35 pixels a second, opening with the first
   name whole on the page's left margin, easing to a stop under the mouse or
   with focus inside, paused off screen and in a hidden tab. The edges fade
   into the band's own black over --rib-fade, so names drift in and out
   rather than being sliced off. Without scripting the plain CSS loop below
   runs instead, at much the same pace and from much the same place, and
   holds still under the mouse. */
.hm-rib{position:relative;overflow:hidden;background:#12110F;color:rgba(244,243,239,.82);
  border-top:1px solid rgba(244,243,239,.08);
  --rib-fade:64px;
  --rib-m:clamp(24px,2.8vw,40px);            /* either side of each hairline */
  --rib-sep:calc(18px + 2 * var(--rib-m))}   /* one hairline with its space */
.hm-rib::before,.hm-rib::after{content:"";position:absolute;z-index:1;top:0;bottom:0;
  width:var(--rib-fade);pointer-events:none}
/* eased rather than straight, so a name dissolves with no visible edge */
.hm-rib::before,.hm-rib::after{background:linear-gradient(var(--rib-dir),#12110F 0%,
  rgba(18,17,15,.94) 15%,rgba(18,17,15,.78) 35%,rgba(18,17,15,.5) 55%,
  rgba(18,17,15,.22) 75%,rgba(18,17,15,.06) 90%,rgba(18,17,15,0) 100%)}
.hm-rib::before{left:0;--rib-dir:90deg}
.hm-rib::after{right:0;--rib-dir:270deg}
.hm-rib__mq{overflow:hidden}
/* --rib-x: where the first name starts, the page's left margin (the .wrap
   edge), or the inside of the fade where the margin is narrower */
.hm-rib__t{display:flex;width:max-content;will-change:transform;
  --rib-x:max(var(--rib-fade),calc((100vw - min(1200px,88vw)) / 2));
  animation:hmRib 60s linear infinite}
.hm-rib--js .hm-rib__t{animation:none}
@keyframes hmRib{
  from{transform:translate3d(calc(var(--rib-x) - 100% / 3),0,0)}
  to{transform:translate3d(calc(var(--rib-x) - 200% / 3),0,0)}}
.hm-rib__l{display:flex;flex:none;align-items:center;list-style:none;margin:0;padding:0}
/* every item, the last of each list included, carries its separator and the
   same spacing: otherwise the rhythm breaks exactly at the seam */
.hm-rib__l li{display:flex;align-items:center;flex:none;white-space:nowrap;
  padding:clamp(16px,2.2vh,19px) 0;
  font-size:var(--t-micro);font-weight:600;letter-spacing:.16em;line-height:1.5;text-transform:uppercase}
.hm-rib__l li::after{content:"";flex:none;width:18px;height:1px;margin:0 var(--rib-m);
  background:#D6BE93;opacity:.75}
@media(hover:hover){.hm-rib:hover .hm-rib__t{animation-play-state:paused}}
.hm-rib + section{padding-top:var(--sec-gap)}

/* ---- chapters: heading left, copy from the eighth column ----------------------------------- */
.hm-side .ms-h{grid-column:1 / 8;grid-row:2}
.hm-side .ms-copy{grid-column:8 / -1;grid-row:2;align-self:start;max-width:none;
  margin-top:clamp(24px,3.2vh,34px)}

/* ---- the close: two doors (20 Nov 2026, the client's choice) ------------------------------
   Two panels side by side: black for organisations, the other for
   professionals. The doors' inner edges follow the page: the black door's
   text starts on the page's left edge and the other door's ends on its
   right edge (container units, so the measure is the section's own width).
   22 Nov 2026, the second-pass layout: each door is now one link to its
   contact page, with no form, inset and rounded on the page's warm white
   (.hm-doors--links, in the last block of this file). The rules that
   opened a door and laid out its form are gone. Since 26 Nov 2026 the two
   doors are equal, with the same padding ("the two doors, equal"). */
.sec.hm-doors{padding:0}
.hm-doors__in{display:flex;container-type:inline-size;
  --edge:max(20px, calc((100cqw - min(1200px, 88cqw)) / 2))}
.hm-door{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;
  gap:clamp(24px,3.4vh,32px);padding:clamp(56px,7.5vh,76px) clamp(28px,3vw,48px);background:#FFFFFF;
  border-top:1px solid var(--line);cursor:pointer;overflow:hidden;transition:flex-grow .8s var(--e)}
.hm-door:first-child{padding-left:var(--edge)}
.hm-door:last-child{padding-right:var(--edge)}
.hm-door--dk{background:#12110F;border-top-color:#12110F;
  --ink:#FFFFFF; --mu:rgba(244,243,239,.72); --gold:#D6BE93; --goldDeep:#D6BE93;
  --line:rgba(244,243,239,.14); --line2:rgba(244,243,239,.3);
  --goldHi:#EBD9B4; --onGold:#12110F}   /* the round arrow's hover takes these: champagne, dark type */
.hm-door__t .lab{margin:0}
.hm-door__h{margin:clamp(14px,2vh,20px) 0 0;max-width:none;font-size:clamp(1.7rem,2.6vw,2.4rem);font-weight:600;
  letter-spacing:-.045em;line-height:1.04;color:var(--ink)}
/* a round arrow under the title: the sign that the door is a way in */
.hm-door__go{display:inline-grid;place-items:center;width:44px;height:44px;margin-top:18px;
  border-radius:50%;border:1px solid var(--line2);color:var(--goldDeep);transition:background-color .4s var(--e),border-color .4s var(--e),color .4s var(--e)}
.hm-door__go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hm-door:hover .hm-door__go{background:var(--goldDeep);border-color:var(--goldDeep);color:var(--onGold,#fff)}

/* ---- small laptops: the right-hand column moves to the seventh -----------------------------
   Between 960 and 1180px the eighth column is narrow for the copy beside
   the headings. Every right-hand column moves together, so the page still
   reads down one edge. */
@media(min-width:960px) and (max-width:1180px){
  .hm-side .ms-h{grid-column:1 / 7}
  .hm-side .ms-copy{grid-column:7 / -1}
}

/* ---- reduced motion: the ribbon stands still -------------------------------------------------
   One copy, no fades, as a centred row on the page's own measure that wraps
   onto further lines as it needs to: the same type, the same hairlines
   between names. No hairline is drawn at the end of a line
   (home-ribbon.js marks those names .is-eol; the last name is always one).
   The row is one hairline wider than the measure, hanging off to the
   right, so a line breaks only where the names themselves would not fit,
   and an undrawn hairline at its end still keeps its room: each line then
   comes out exactly centred on the measure. */
@media(prefers-reduced-motion:reduce){
  .hm-rib::before,.hm-rib::after{display:none}
  .hm-rib__t{display:block;animation:none;width:auto}
  .hm-rib__l[aria-hidden]{display:none}
  .hm-rib__l{flex-wrap:wrap;justify-content:center;
    width:calc(min(1200px,88vw) + var(--rib-sep));margin-left:calc((100% - min(1200px,88vw)) / 2);
    padding:calc(clamp(16px,2.2vh,19px) - 4px) 0;text-align:center}
  .hm-rib__l li{flex:0 1 auto;min-width:0;max-width:100%;white-space:normal;padding:4px 0}
  .hm-rib__l li:last-child::after,.hm-rib__l li.is-eol::after{visibility:hidden}
  .hm-go svg,.hm-door{transition:none}
}

/* ---- tablet --------------------------------------------------------------------------------
   mission.css already stacks every chapter below 960px. */
@media(max-width:959px){
  .hm-side .ms-copy{margin-top:clamp(24px,3.4vh,32px)}
  /* the doors stack */
  .hm-doors__in{flex-direction:column;min-height:0}
  .hm-door{flex:none}   /* stacked: each door is as tall as its content */
  .hm-door{padding:clamp(44px,6vh,60px) var(--edge);gap:22px}
}

/* ---- phone ------------------------------------------------------------------------------------
   Its own version of the photograph, and a veil that rises evenly from the
   bottom, since the copy runs the full width here. The phone file is a tall
   portrait with the whole iceberg near its top, so it is pinned to the top
   edge: the iceberg keeps its place under the bar, centred, at every phone
   size, and only the dark water at the foot is cropped. */
@media(max-width:760px){
  .sec.hm-hero{height:auto;min-height:max(580px,88svh)}
  .hm-hero__ph img{object-position:50% 0%}
  .hm-hero__ph::after{background:
    linear-gradient(180deg,rgba(9,9,10,.5) 0%,rgba(9,9,10,0) 22%),
    linear-gradient(0deg,rgba(9,9,10,.86) 0%,rgba(9,9,10,.66) 46%,rgba(9,9,10,.3) 68%,rgba(9,9,10,0) 84%),
    rgba(9,9,10,.14)}
  .hm-hero h1{font-size:clamp(2.1rem,9vw,2.6rem)}
  .hm-rib{--rib-m:22px}
}
/* The headline masks stop being separate lines and flow as one sentence,
   balanced, so a line that has to wrap keeps the same leading as the rest. */
@media(max-width:620px){
  main [data-lines] .mline,main [data-lines] .mline > span{display:inline}
  main [data-lines] .mline + .mline::before{content:" "}
  .hm-hero h1,main .ms-h{text-wrap:balance}
}

/* ============================================================================
   THE SECOND-PASS LAYOUT (22 Nov 2026)

   The client's approved preview, as supplied with the brief: mission,
   services, expertise, approach, Managing Partner and the close under the
   hero and the ribbon. It sits after every rule above, the doors' included,
   so where the two meet these win. The expertise panel's chips and map are
   styled by region-map.css, shared with the Expertise page; this block only
   places them in the panel.
   ============================================================================ */

/* sections are told apart by their ground, not by a rule above each one */
.hm-flat.ms-ch{border-top:0;padding-top:0}

/* mission: the evolution rail (.ms-evo, mission.css) sits under the statement */
.hm-side .ms-evo{grid-row:3}
/* 26 Nov 2026, the client's request: the last stage, Advisory, no longer takes
   champagne here; all four stage names are the same ink (mission.css colours
   the last one for the service pages' rails, which keep it) */
.hm-side .ms-evo li:last-child h3{color:var(--ink)}

/* inset rounded panels */
.hm-panel{margin-inline:var(--boxM);border-radius:var(--boxR);background:var(--box)}
.sec.hm-panel{padding:clamp(56px,6.4vw,92px) 0}
.hm-panel + .hm-panel{margin-top:var(--boxM)}
section:has(+ .hm-panel){padding-bottom:clamp(56px,6.4vw,92px)}
.hm-panel + section:not(.hm-panel){padding-top:clamp(64px,7vw,99px)}

/* section header with its action on the right */
.hm-hd{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px 40px}
.hm-hd .lab{margin:0}
.hm-btn{display:inline-flex;align-items:center;gap:12px;padding:17px 28px;border-radius:980px;background:#7C5E24;color:#FFFFFF;font-size:.76rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;transition:background-color .35s var(--e)}
.hm-btn:hover{background:#6A5020}
.hm-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--e)}
.hm-btn:hover svg{transform:translateX(4px)}

/* services: one lead card and three rows */
.hm-svc{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;margin-top:clamp(36px,5vh,52px)}
.hm-lead{grid-column:1 / 7;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:48px;padding:clamp(28px,3vw,44px);border-radius:var(--cardR);background:#12110F;color:#FFFFFF}
.hm-lead h3{position:relative;max-width:11ch;font-size:clamp(1.9rem,2.9vw,2.7rem);font-weight:600;letter-spacing:-.042em;line-height:1.04;color:#FFFFFF}
.hm-lead p{position:relative;margin-top:18px;max-width:34ch;font-size:var(--t-lede);line-height:1.6;color:rgba(244,243,239,.76)}
.hm-lead__mark{position:absolute;right:-7%;bottom:-22%;width:64%;height:auto;overflow:visible;fill:none;stroke:rgba(214,190,147,.2);stroke-width:.5;pointer-events:none;transition:stroke .6s var(--e),transform .9s var(--e)}
.hm-lead:hover .hm-lead__mark{stroke:rgba(214,190,147,.42);transform:translateY(-10px)}
.hm-lead__go{position:relative;display:inline-flex;align-items:center;gap:10px;font-size:var(--t-micro);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#D6BE93}
.hm-lead__go svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--e)}
.hm-lead:hover .hm-lead__go svg{transform:translateX(4px)}
.hm-rows{grid-column:7 / -1;display:grid;gap:12px}
.hm-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:24px;padding:clamp(20px,2.1vw,28px) clamp(22px,2.4vw,32px);border-radius:var(--cardR);background:#FFFFFF;transition:background-color .5s var(--e)}
.hm-row h3{font-size:clamp(1.2rem,1.6vw,1.45rem);font-weight:600;letter-spacing:-.03em;line-height:1.15;color:var(--ink);transition:color .5s var(--e)}
.hm-row p{margin-top:8px;max-width:38ch;font-size:var(--t-sm);line-height:1.6;color:var(--mu);transition:color .5s var(--e)}
.hm-row__go{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line2);color:var(--goldDeep);transition:background-color .4s var(--e),border-color .4s var(--e),color .4s var(--e)}
.hm-row__go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover){.hm-row:hover{background:#12110F}.hm-row:hover h3{color:#FFFFFF}.hm-row:hover p{color:rgba(244,243,239,.74)}.hm-row:hover .hm-row__go{background:#D6BE93;border-color:#D6BE93;color:#12110F}}
@media(max-width:959px){.hm-lead,.hm-rows{grid-column:1 / -1}.hm-lead{min-height:300px}}

/* expertise: the dark panel takes the region block of the Expertise page (see the brief) */
.hm-panel .ex-reg .ms-link{margin-top:clamp(28px,4vh,40px)}

/* how we work: the heading beside three columns ----------------------------------------------
   The client's brief of 26 Nov 2026 rebalanced it. From 1100px the heading
   takes a third of the measure (4 of the 12 columns, on three lines) and
   the three principles the other two thirds, so each description runs to
   about three lines at laptop widths instead of six or seven. The label
   sits on its own row above; the heading and the columns share the row
   below it, and the columns are dropped just far enough that the capitals
   of the column titles line up with the capitals of the heading's first
   line: the heading's margin, plus the gap from the top of each line to
   its capitals (Plus Jakarta Sans: ascender 1.04em, descender 0.22em, cap
   height 0.745em, so .195em of the heading at its 1.06 leading and .24em of
   a title at 1.15), less the 2px at the top of each column. The size
   clamps are those of .ms-h (mission.css) and .hm-pr h3 below; change them
   together. Below 1100px the heading goes above and the three columns run
   across the full measure under it; below 621px they stack as rows. */
.hm-how{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--msGap);align-items:start}
.hm-how__hd{display:contents}
.hm-how__hd .lab{grid-column:1 / -1;grid-row:1;margin:0}
.hm-how .ms-h{grid-column:1 / 5;grid-row:2}
.hm-pr{grid-column:5 / -1;grid-row:2;list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto;
  margin-top:calc(clamp(20px,2.8vh,28px) + .195 * clamp(1.9rem,3.4vw,3.1rem) - .24 * clamp(1.25rem,1.7vw,1.55rem) - 2px)}
.hm-pr li{display:grid;grid-template-rows:subgrid;grid-row:1 / span 2;padding:2px clamp(16px,1.8vw,28px) 4px;border-left:1px solid var(--line2)}
.hm-pr h3{grid-row:1;font-size:clamp(1.25rem,1.7vw,1.55rem);font-weight:600;letter-spacing:-.03em;line-height:1.15;color:var(--ink)}
/* balance rather than the site's usual pretty (kept on phones): at every
   width from 768 to 1440 it leaves no word alone on a last line, where
   pretty left "requirements." or "appointment." on their own at several */
.hm-pr p{grid-row:2;margin-top:10px;font-size:var(--t-sm);line-height:1.6;color:var(--mu);text-wrap:balance}
@media(max-width:1099.98px){.hm-how .ms-h{grid-column:1 / -1}.hm-pr{grid-column:1 / -1;grid-row:3;margin-top:36px}}
/* heading above (621-1099px): one sentence, balanced and capped at 12em, so
   it falls into the two lines it had here before ("Every search starts /
   with understanding") rather than the three of the side-by-side layout;
   the phone rule further up does the same below 621px */
@media(min-width:621px) and (max-width:1099.98px){
  .hm-how .ms-h{max-width:12em;text-wrap:balance}
  .hm-how .ms-h .mline,.hm-how .ms-h .mline > span{display:inline;line-height:inherit}
  .hm-how .ms-h .mline + .mline::before{content:" "}
}
@media(max-width:620px){.hm-pr{grid-template-columns:minmax(0,1fr);grid-template-rows:none}.hm-pr li{display:block;grid-row:auto;border-left:0;border-top:1px solid var(--line);padding:20px 0 18px}
  .hm-pr p{text-wrap:pretty}}   /* phones wrap as they did before */

/* who you work with: actions under the bio */
.hm-acts{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;margin-top:14px}

/* contact: two rounded doors as links, no forms */
a.hm-door{color:inherit;cursor:pointer}
.hm-door__d{margin-top:clamp(12px,1.8vh,16px);max-width:40ch;font-size:var(--t-lede);line-height:1.6;color:var(--mu)}
.sec.hm-doors.hm-doors--links{padding:var(--boxM) 0 clamp(40px,5vw,64px)}
.hm-doors--links .hm-doors__in{margin-inline:var(--boxM);gap:var(--boxM)}
.hm-doors--links .hm-door{border-top:0;border-radius:var(--boxR);background:var(--box)}
.hm-doors--links .hm-door--dk{background:#12110F}

/* ---- the two doors, equal (26 Nov 2026) ----------------------------------------------------
   The client's brief of 26 Nov 2026. The black door was 1.6 times the
   width of the warm-white one and each had its own padding, so the round
   arrows sat at different heights. Now:
     - two equal columns, the same gap between them as between every box
       and the page edge (--boxM);
     - both doors take the same padding: the page margin (--edge) on both
       sides, so up to 1440px the black door's text still starts on the
       page's left edge, held at 120px at most so the warm-white door's
       text keeps its width on wide screens;
     - inside, the same four rows in both: label, heading, description,
       arrow. Side by side they share those rows (subgrid), so the labels,
       headings and descriptions start level and the arrows sit on one
       line at the bottom, however many lines a description takes;
     - stacked (below 768px) the doors are rows of equal height, the arrow
       on the bottom of each, so it sits in the same place in both.
   Without subgrid, the doors are still equal and the arrows still on the
   bottom (the flex column under the @supports). The minimum gap above the
   arrow is now the description's bottom margin. */
.hm-doors--links .hm-doors__in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
.hm-doors--links .hm-door{padding-inline:min(var(--edge),120px)}
.hm-doors--links .hm-door__t{flex:1 0 auto;display:flex;flex-direction:column}
.hm-doors--links .hm-door__t .lab,.hm-doors--links .hm-door__go{align-self:start}
.hm-doors--links .hm-door__d{margin-bottom:clamp(22px,3vh,28px)}
.hm-doors--links .hm-door__go{margin-top:auto}
@media(min-width:768px){
  @supports(grid-template-rows:subgrid){
    .hm-doors--links .hm-doors__in{grid-template-rows:auto auto 1fr auto;grid-auto-rows:auto}
    .hm-doors--links .hm-door{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;justify-content:normal}
    .hm-doors--links .hm-door__t{display:grid;grid-row:1 / -1;grid-template-rows:subgrid}
  }
}
@media(max-width:767.98px){
  .hm-doors--links .hm-doors__in{grid-template-columns:minmax(0,1fr)}
}

/* ---- beyond the preview (22 Nov 2026) ----------------------------------------------------
   Two small additions to the approved block above, no visible change at
   rest. The black door's focus ring would take its own champagne, which
   sits on the white page around the door at under 2:1, so it takes the
   page's bronze, as the warm-white door's does. With reduced motion the
   new cards, rows and buttons change at once, and the logo mark in the
   lead card no longer lifts on hover. */
.hm-doors--links .hm-door--dk:focus-visible{outline-color:#7C5E24}
@media(prefers-reduced-motion:reduce){
  .hm-btn,.hm-btn svg,.hm-lead__mark,.hm-lead__go svg,.hm-row,.hm-row h3,.hm-row p,.hm-row__go{transition:none}
  .hm-lead:hover .hm-lead__mark{transform:none}
}

/* ---- the Managing Partner's photograph (26 Nov 2026) --------------------------------------
   The client's brief of 26 Nov 2026 turned the panel from name-left /
   biography-right into photograph-left / everything else right.
   The photograph is daniel-original-face-waist-up.png, a transparent cut-out from
   the waist up, with a WebP copy served first. It sits straight on the
   ivory with no box, in full colour, 560px wide in the 1200px wrap
   (46.667%, so it scales with the wrap below that) and at least 56px under
   the panel's top. It stands on the panel's bottom edge, which hides its
   straight cut: the panel has no padding of its own and clips its corners.
   The column beside it, 32px away, keeps the panel's own padding above and
   below. The two columns meet at the bottom. Below 960px they stack, text
   first, the photograph under it at the column's width up to 420px, still
   on the panel's edge. Type is untouched; the biography starts 36px under
   the role's hairline and runs to 584px. */
.sec.hm-panel.hm-mp{padding:0;overflow:hidden}
.hm-mp__in{display:grid;grid-template-columns:min(560px,46.667%) minmax(0,1fr);column-gap:32px;align-items:end}
.hm-mp__txt{grid-column:2;grid-row:1;padding:clamp(56px,6.4vw,92px) 0}
.hm-mp__ph{grid-column:1;grid-row:1;margin:0;padding-top:56px}
.hm-mp__ph img{display:block;width:100%;height:auto}
.hm-mp .ms-who__bio{max-width:584px;padding-top:36px}
@media(max-width:959px){
  .hm-mp__in{grid-template-columns:minmax(0,1fr)}
  .hm-mp__txt,.hm-mp__ph{grid-column:1;grid-row:auto}
  .hm-mp__txt{padding-bottom:48px}
  .hm-mp__ph{width:100%;max-width:420px;padding-top:0}
}
