/* ============================================================================
   ApexEvolv — EXPERTISE

   The Expertise page's own styles. Loaded on expertise.html only, last.
   The landing is the shared hero (service-hero.css) with an Expertise
   modifier; the chapter opener, close and warm plate are Our Mission's
   (mission.css); the warm black ground and "Where we work" (the markets and
   the map) are in region-map.css, shared with the home page and loaded just
   before this file. Written 19 Nov 2026 for the client's redesign brief and
   rebuilt in five parts on 23 Nov 2026 from his next one; the facts and the
   copy are the page's own.

   THE RHYTHM, top to bottom, so no two sections share a composition:
     landing       Hong Kong at night across the full width, on warm black;
                   one column of copy, the strip linking to the sections
     industries    five rounded columns; the open one turns black and shows
                   its photograph, name and specialisms
     where we work warm black; the copy left, the map of routes out of
                   Bangkok across the rest
     functions     warm white; the head and an index of the four groups on
                   the left, a spiral stair bleeding off the right edge
     scope         warm black, type only: three statements, two short
                   paragraphs at the right
     close         under the chapter rule, headline left, button right

   NO LIST NUMBERS AND NO JOB TITLES. The client removed 01/02/03 numbering
   from the site on 19 Nov 2026 and confirmed it for this page.

   SPACING keeps the site's 99px between sections. The black and warm
   sections are painted, so they carry 99px inside, and the sections next to
   them carry the full gap on their side.
   ============================================================================ */

/* a supporting line under a section's copy: a step quieter than a heading,
   a step firmer than the paragraph above it */
.ms-copy .ex-note{font-size:var(--t-sm);font-weight:600;color:var(--ink)}

/* ---- the landing: Hong Kong, full width (23 Nov 2026, the client's brief) ----------
   Replaces the split on warm white and its city panorama. Built on the shared
   hero, not beside it: .shero gives the type, the button and the strip, and
   .shero--dark the warm black #12110F with its tokens (white type, the
   champagne #D6BE93, light hairlines), as on the services. The services'
   photo plate (.shero--plate, service-page.css) is not used: it sets its copy
   at the foot of a full first screen over a single veil, with three facts
   in place of the strip and the photograph behind the copy on a phone too,
   which is not this composition. The half-and-half values service-hero.css
   still gives .shero--exp are overridden here.

   960px and up: the photograph fills the section behind everything, in black
   and white, held to the left (4% 50%) so the towers stand to the right of
   the copy. Three fades: across from the left, up from the foot under the
   strip, a little down from the top. The fade across stays at .9 or more as
   far as the copy's right edge at every width (--exCopy, the content edge
   plus the 30rem column); where that edge lies past the brief's 32% the later
   stops move out with it. One column of copy, vertically centred. The
   caption sits on the content edge, 20px above the strip.
   Below 960px: the copy on black, the photograph across the whole screen at
   16:10 with its caption inside it, then the strip, stacked. */
.sec.shero--exp{--shH:clamp(2.4rem,4vw,3.6rem);
  --exCopy:calc((100% - min(1200px,88vw)) / 2 + 30rem);
  position:relative;isolation:isolate;padding:0}
.shero--exp .shero__copy{max-width:30rem}
.shero--exp .shero__ph img{filter:grayscale(1) contrast(1.08) brightness(.92)}
/* the caption: the label's voice, a 7px champagne point in place of its rule */
.ex-cap{display:flex;align-items:center;gap:10px;width:fit-content;
  font-size:var(--t-micro);font-weight:700;letter-spacing:.14em;line-height:1;text-transform:uppercase;
  color:var(--gold);text-shadow:0 0 6px #12110F,0 0 12px #12110F}
.ex-cap::before{content:"";width:7px;height:7px;border-radius:50%;background:#D6BE93;flex:none}
/* the strip: each item a link to its section, with a small champagne arrow
   at the right of its cell. It stands at the foot of the first screen and
   carries data-rv: since the reveal rebuild of 25 Nov 2026 it arrives with
   the copy on load (its own on-load animation is gone). */
.shero--exp .shero__strip{border-top-color:rgba(244,243,239,.3)}
.shero__strip.ex-scope{grid-template-columns:repeat(4,minmax(0,1fr))}
.shero--exp .shero__strip li{padding:0}
.shero--exp .shero__strip li + li{border-left-color:rgba(244,243,239,.2)}
.ex-scope a{display:flex;align-items:center;justify-content:space-between;gap:14px;height:100%;
  padding:clamp(20px,2.8vh,28px) clamp(16px,2vw,28px);color:inherit;transition:color .3s var(--e)}
.ex-scope li:first-child a{padding-left:0}
.ex-scope svg{width:13px;height:13px;flex:none;fill:none;stroke:#D6BE93;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--e)}
.ex-scope a:hover,.ex-scope a:focus-visible{color:#FFFFFF}
.ex-scope a:hover svg,.ex-scope a:focus-visible svg{transform:translateY(3px)}
@media(min-width:960px){
  /* the figure steps out of the way: the image fills the section, the
     caption stays in the flow above the strip */
  .shero--exp .shero__ph{position:static;width:auto;aspect-ratio:auto;overflow:visible;background:none;
    display:flex;justify-content:flex-end;margin:0 0 20px}
  .shero--exp .shero__ph img{z-index:-2;object-position:4% 50%}
  .shero--exp::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
    background:
      linear-gradient(0deg,rgba(18,17,15,.88) 0,rgba(18,17,15,.4) 16%,rgba(18,17,15,0) 34%),
      linear-gradient(180deg,rgba(18,17,15,.45) 0,rgba(18,17,15,0) 22%),
      linear-gradient(90deg,rgba(18,17,15,.95) 0,rgba(18,17,15,.9) max(32%,var(--exCopy)),
        rgba(18,17,15,.5) max(50%,calc(var(--exCopy) + 8%)),rgba(18,17,15,0) max(72%,calc(var(--exCopy) + 30%)))}
  .shero--exp .shero__copy{display:grid;align-content:center;min-height:clamp(540px,72vh,680px);
    padding-block:clamp(64px,10vh,110px)}
}

/* ---- industries: expanding columns (20 Nov 2026, the client's choice) ---------------
   Five rounded warm-white columns side by side. The open one (.is) widens
   and turns black, its name grows and its specialisms fade up at its foot;
   the others narrow to their names. Which column is open is set by a small
   script in expertise.html (point, click or tab). The lists stay in the
   page, only faded, so screen readers always reach them.
   The gap and the paddings are variables (23 Nov 2026) because the
   photograph layer below is sized from them. */
.ex-cols{--colGap:8px;--colPad:clamp(18px,1.6vw,22px);--colPadOpen:clamp(20px,2vw,28px);
  container-type:inline-size;
  grid-column:1 / -1;grid-row:3;list-style:none;margin:clamp(52px,7.4vh,84px) 0 0;padding:0;
  display:flex;gap:var(--colGap);height:clamp(380px,48vh,440px)}
.ex-col{position:relative;isolation:isolate;
  flex:1 1 0;min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:20px;
  padding:var(--colPad);border-radius:var(--cardR);background:var(--box);cursor:pointer;outline:none;
  transition:flex-grow .7s var(--e),background-color .5s var(--e)}
.ex-col h3{margin:0;font-size:clamp(.94rem,1.25vw,1.125rem);font-weight:600;letter-spacing:-.025em;line-height:1.22;
  color:var(--ink);transition:color .4s var(--e),font-size .5s var(--e)}
.ex-col.is{flex-grow:2.6;background:#12110F;cursor:default;padding:var(--colPadOpen)}
.ex-col.is h3{color:#FFFFFF;font-size:clamp(1.3rem,1.8vw,1.7rem)}
.ex-col__x{list-style:none;margin:0;padding:0;display:grid;gap:8px;min-width:240px;
  opacity:0;transform:translateY(8px);transition:opacity .35s var(--e),transform .5s var(--e)}
.ex-col__x li{font-size:clamp(1.05rem,1.35vw,1.3rem);font-weight:500;letter-spacing:-.02em;line-height:1.3;color:#FFFFFF}
.ex-col.is .ex-col__x{opacity:1;transform:none;transition-delay:.2s}
.ex-col:focus-visible{box-shadow:0 0 0 2px var(--goldDeep)}

/* the photograph in the open column (23 Nov 2026, the client's brief). A
   decorative layer behind the name and the list, shown only while its
   column is open. It is always as wide as an OPEN column and centred on its
   own column, so while the column widens the picture is uncovered rather
   than squashed. That width: the row (100cqw, .ex-cols is the container)
   less its four gaps and the five columns' padding, shared 2.6 to 1 between
   the open column and each of the four closed ones (their flex-grow), plus
   the open column's own padding. Each column sets its crop, tone and lift
   on the layer (--phPos, contrast --phC, brightness --phB, --phY moves the
   picture up so its subject sits between the name and the list). A dark
   wash over it keeps the name and the list legible.
   The five photographs (later on 23 Nov 2026, the client's brief) replaced the first
   set (expertise-ind-*.jpg); see assets/img/README.md. */
.ex-col__ph{position:absolute;top:0;bottom:0;left:50%;z-index:-1;pointer-events:none;
  width:calc((100cqw - 4 * var(--colGap) - 8 * var(--colPad) - 2 * var(--colPadOpen)) * 2.6 / 6.6 + 2 * var(--colPadOpen));
  transform:translateX(-50%);opacity:0;transition:opacity .6s var(--e)}
.ex-col.is .ex-col__ph{opacity:1}
.ex-col__ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--phPos,50% 50%);
  transform:translateY(var(--phY,0));filter:grayscale(1) contrast(var(--phC,1.06)) brightness(var(--phB,1))}
.ex-col__ph::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,17,15,.84) 0%,rgba(18,17,15,.3) 36%,rgba(18,17,15,.34) 52%,rgba(18,17,15,.94) 100%)}
/* Industrial: the foot of the picture fades out */
.ex-col__ph--fade img{
  -webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 96%);mask-image:linear-gradient(180deg,#000 62%,transparent 96%)}
/* the cue on a closed column: a hairline circle with a bronze plus, at the
   foot on the left; gone on the open column */
.ex-col::after{content:"";position:absolute;left:var(--colPad);bottom:var(--colPad);width:36px;height:36px;
  border:1px solid rgba(124,94,36,.4);border-radius:50%;pointer-events:none;
  background:linear-gradient(var(--goldDeep),var(--goldDeep)) 50% 50% / 13px 1.4px no-repeat,
             linear-gradient(var(--goldDeep),var(--goldDeep)) 50% 50% / 1.4px 13px no-repeat;
  transition:opacity .3s var(--e)}
.ex-col.is::after{opacity:0}
/* stacked below 1100px: every column a card, every list showing, no
   photographs and no cue */
@media(max-width:1099px){
  .ex-cols{flex-direction:column;height:auto}
  .ex-col,.ex-col.is{flex:none;background:var(--box);cursor:default;gap:14px}
  .ex-col.is h3,.ex-col h3{color:var(--ink);font-size:clamp(1.15rem,2.6vw,1.4rem)}
  .ex-col__x,.ex-col.is .ex-col__x{opacity:1;transform:none;min-width:0;display:flex;flex-wrap:wrap;gap:6px 22px}
  .ex-col__x li{font-size:var(--t-sm);font-weight:400;color:var(--mu)}
  .ex-col__ph,.ex-col::after{display:none}
}
@media(prefers-reduced-motion:reduce){.ex-col,.ex-col h3,.ex-col__x,.ex-col__ph,.ex-col::after{transition:none}}
/* the statement after the list, given its own room */
.ex-also{grid-column:1 / 10;grid-row:4;margin-top:clamp(52px,7.4vh,80px);
  display:flex;align-items:baseline;gap:18px;
  font-size:clamp(1.2rem,1.9vw,1.6rem);font-weight:500;letter-spacing:-.02em;line-height:1.4;
  color:var(--ink)}
.ex-also::before{content:"";flex:none;width:32px;height:1px;background:var(--goldDeep);
  transform:translateY(-.32em)}

/* ---- where we work: in region-map.css ----------------------------------------------
   The warm black ground (.ex-dark, also "The scope of our work" below), the
   markets and the map moved to assets/css/region-map.css on 22 Nov 2026,
   unchanged, so the home page can show the same map. This page loads it
   just before this file.
   23 Nov 2026 (the client's brief), this page only, 960px and up: the copy
   takes columns 1-4 and the map 5-12 at its full width, and the market
   chips are hidden, since the map names every market. Tablet and phone keep
   the chips. The home page keeps its own sizing. The routes are curves since
   the same day, from tools/region-map/build.py on both pages. */
@media(min-width:960px){
  .ex-reg__txt{grid-column:1 / 5}
  .ex-map{grid-column:5 / -1;max-width:none}
  .ex-reg .ex-chips{display:none}
}

/* ---- functions: an index and one blended photograph (23 Nov 2026) ----------------
   The client's brief, replacing the four groups in two columns. On the warm
   white: the head and, under it, an index of the four groups on hairlines,
   the name left and its disciplines as one line right, in columns 1-7.
   Columns 9-12 hold one photograph, a white spiral stair, built as the dark
   chapter's photograph on the service pages (.svc-run__ph) but for a light
   ground: the full height of the section, bleeding to the window's right
   edge, fading in from the left, and multiplied, so its whites become the
   warm white. The multiply works because the figure carries the ground
   colour itself. */
.ex-funcs{position:relative;overflow:hidden}
.ex-fn{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2.2vw,32px)}
.ex-fn__hd{grid-column:1 / 8;grid-row:1;align-self:start}
.ex-fn__hd .lab{margin:0}
.ex-fn__hd .ms-copy{margin-top:clamp(24px,3.4vh,32px);max-width:50ch}
.ex-fx{grid-column:1 / 8;grid-row:2;align-self:start;list-style:none;margin:clamp(44px,6.4vh,64px) 0 0;padding:0;
  border-top:1px solid rgba(124,94,36,.5)}
.ex-fx li{display:grid;grid-template-columns:minmax(0,15.5rem) minmax(0,1fr);column-gap:clamp(20px,2.6vw,40px);
  align-items:baseline;padding:clamp(20px,2.9vh,26px) 0;border-bottom:1px solid var(--line2)}
.ex-fx h3{margin:0;font-size:clamp(1.25rem,1.7vw,1.5rem);font-weight:600;letter-spacing:-.025em;line-height:1.2;color:var(--ink)}
.ex-fx p{margin:0;font-size:var(--t-sm);line-height:1.6;color:var(--mu)}
.ex-fn__ph{grid-column:9 / -1;grid-row:1 / 3;align-self:stretch;position:relative;min-height:520px;
  margin:calc(var(--sec-gap) * -1) calc((100vw - min(1200px,88vw)) / -2) calc(var(--sec-gap) * -1) 0;
  overflow:hidden;background:var(--box);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 30%);mask-image:linear-gradient(90deg,transparent 0,#000 30%)}
.ex-fn__ph img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;
  filter:grayscale(1) contrast(1.1);mix-blend-mode:multiply}

/* ---- the scope of our work: warm black, type only ----------------------------------
   The client's final brief for this section (21 Nov 2026), replacing
   "Experience across levels" and its photograph. The page's warm black
   (.ex-dark), three statements as the whole picture: warm white, large,
   one to a line, flush left with no steps between them, so they read as
   breadth rather than a ladder. The champagne is the label and one short
   hairline over the copy, which sits small at the right, in the column
   where the close's copy and button sit just below. One quiet reveal, the
   site's own; nothing moves line by line. */
.ex-sw__in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2.2vw,32px)}
.ex-sw__in > *{grid-column:1 / -1}
.ex-sw .lab{margin:0}
.ex-sw__h{margin:clamp(40px,6vh,64px) 0 0;max-width:none;
  font-size:clamp(1.75rem,7.6vw,5.1rem);font-weight:600;letter-spacing:-.045em;line-height:1.04;color:#F4F3EF}
/* one size rule from phone to desktop: the longest statement takes about
   nine tenths of the column until the cap, so each stays on one line */
.ex-sw__h span{display:block;text-wrap:balance}
.ex-sw__h span + span{margin-top:.16em}
.ex-sw__copy{grid-column:8 / -1;margin:clamp(56px,8.4vh,96px) 0 0;max-width:36ch;
  padding-top:clamp(20px,2.8vh,26px);border-top:1px solid rgba(214,190,147,.5);
  font-size:clamp(.95rem,1vw,1.02rem);line-height:1.7;color:var(--mu)}
/* the second paragraph (23 Nov 2026, the client's brief): the first one's
   column, measure, size and colour, 16px under it and with no hairline of
   its own. Its opening sentence is set in the statements' warm white. At
   959px and below it follows the first paragraph's rule, so it too runs
   from the left edge at 40ch. */
.ex-sw__copy + .ex-sw__copy{margin-top:16px;padding-top:0;border-top:0}
.ex-sw__copy b{font-weight:600;color:#F4F3EF}

/* ---- tablet and phone --------------------------------------------------------------- */
/* 960 to 1199px: the strip's four links no longer fit one row, so they go
   two by two */
@media(max-width:1199px){
  .shero__strip.ex-scope{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shero--exp .shero__strip li:nth-child(3){border-left:0}
  .ex-scope li:nth-child(3) a{padding-left:0}
  .shero--exp .shero__strip li:nth-child(n+3){border-top:1px solid rgba(244,243,239,.2)}
}
@media(max-width:959px){
  /* the landing: the copy on black, then the photograph across the whole
     screen at 16:10 (the body clips the overflow, so nothing scrolls
     sideways), its caption inside it on the content edge, then the strip,
     one link to a row */
  .sec.shero--exp{padding-top:clamp(40px,6vh,64px)}
  .shero--exp .shero__copy{padding:0 0 clamp(40px,6vh,56px)}
  .shero--exp .shero__ph{width:100vw;max-width:none;aspect-ratio:16/10;
    margin:0 0 0 calc((100vw - min(1200px,88vw)) / -2)}
  .shero--exp .shero__ph img{object-position:62% 50%}
  .ex-cap{position:absolute;right:calc((100vw - min(1200px,88vw)) / 2);bottom:16px}
  .shero__strip.ex-scope{grid-template-columns:minmax(0,1fr)}
  .shero--exp .shero__strip li,.shero--exp .shero__strip li:nth-child(n){border-left:0}
  .shero--exp .shero__strip li + li{border-top:1px solid rgba(244,243,239,.2)}
  .ex-scope a,.ex-scope li:first-child a,.ex-scope li:nth-child(3) a{padding:18px 0}

  /* functions: the head, the index, the photograph, all full width; each
     group's line comes 6px under its name; the photograph a plain 4:3
     block, no bleed and no fade */
  .ex-fn{grid-template-columns:minmax(0,1fr)}
  .ex-fn > *{grid-column:1 / -1 !important;grid-row:auto !important}
  .ex-fx li{grid-template-columns:minmax(0,1fr);row-gap:6px}
  .ex-fn__ph{min-height:0;aspect-ratio:4/3;margin:clamp(36px,5vh,52px) 0 0;
    -webkit-mask-image:none;mask-image:none}

  /* the copy comes under the statements, from the left edge */
  .ex-sw__copy{grid-column:1 / -1;max-width:40ch}
}
@media(max-width:620px){
  /* a little more air between the statements at phone size */
  .ex-sw__h span + span{margin-top:.22em}
}
@media(prefers-reduced-motion:reduce){.shero--exp .shero__strip{animation:none}.ex-scope a,.ex-scope svg{transition:none}}
