/* ============================================================================
   ApexEvolv — GLOBAL VISUAL SYSTEM

   One file, one vocabulary. Every page draws from this and adds only what is
   genuinely specific to it.

   Four rules hold the system together:

   1. HAIRLINES, NOT BOXES. A rule under a row says "this is one entry".
      A border around it says "this is the whole set". We are almost always
      saying the former, so a closed rectangle needs a reason. There is one
      radius token and it is 0.

   2. NO CHAMPAGNE GRADIENTS, NO WASHES. A tan at 10-20% over a neutral
      ground shifts the channel spread from 2/255 to 25/255 and lands at
      L*9-18 — a brown haze that reads accidental. Champagne appears at full
      strength, in small crisp shapes, or not at all.

   3. TWO CHAMPAGNES, NEVER INTERCHANGEABLE. --gold (#D6BE93) is a FILL on
      dark grounds and measures 1.8:1 as text on ivory — invisible.
      --goldDeep (#7C5E24) is champagne-coloured TEXT on light grounds.
      Reach for the wrong one and it silently disappears.

   4. RELIEF COMES FROM AN IVORY PANEL, not from glow. Hairlines sit at
      10-18% white; below 8% a 1px rule is invisible on a laptop screen.

   The scales below are role-named rather than level-named. --t-hero is for
   the hero and nothing else; --t-display is for numerals and nothing else.
   A role-named scale is much harder to misuse than h1/h2/h3, which invite
   "this heading feels a bit small" and quietly flatten the hierarchy.
   ============================================================================ */

:root{
  /* ---- ground: neutral, every step >= 3.5 dL* so edges actually read ---- */
  --bg:#050506;          /* L* 1.4  */
  --bg2:#121216;         /* L* 5.4  — row hover on dark */
  --sur:#1C1C22;         /* L* 10.3 — the one raised surface, used sparingly */

  /* ---- relief ---- */
  --ivory:#F4F3EF;
  --ivory2:#E8E6E0;
  --onIvory:#121214;
  --onIvoryMu:#5E5F66;

  /* ---- ink ---- */
  --ink:#FFFFFF;         /* pure white headings — crisp, not off-white */
  --mu:#A5A6AC;          /* body            8.3:1 */
  --mu2:#85868D;         /* labels          5.6:1 */

  /* ---- accent: full strength only, and the two are not interchangeable ---- */
  --gold:#D6BE93;        /* FILL on dark grounds */
  --goldHi:#EBD9B4;      /* the hover step above it */
  --goldDeep:#7C5E24;    /* champagne-coloured TEXT on light grounds */
  --onGold:#12100A;      /* ink that sits on a champagne fill */

  /* ---- hairlines. Named by the ground they sit on, not by weight ---- */
  --line:rgba(255,255,255,.10);   /* on dark  — the default rule */
  --line2:rgba(255,255,255,.18);  /* on dark  — a rule that has to be seen */
  --lineI:rgba(18,18,20,.13);     /* on ivory — the default rule */
  --lineI2:rgba(18,18,20,.22);    /* on ivory — a rule that has to be seen */

  --e:cubic-bezier(.16,1,.3,1);
  --rad:0;

  /* ======================================================================
     TYPE — role-named, fluid, and deliberately far apart at the top end.

     --t-stmt is roughly 1.6x --t-h2. That gap is what separates "this is
     the argument of the page" from "this is the next section", and it has
     to be a real jump or both read as headings.

     THE HERO IS THE LARGEST TYPE ON THE SITE AT EVERY VIEWPORT, which means
     --t-display sits below it at all three terms of the clamp, not merely
     at the cap. An earlier version gave display the larger vw coefficient
     (9vw against the hero's 7.2vw) and it overtook the headline everywhere
     between about 850px and 1450px — numerals rendering 90px against the
     hero's 72px.

     Both are also sized against the width they actually get. The hero's
     longest <br>-separated line measures about 833px at 92px, so at an
     earlier 7.2vw the three intended lines wrapped into five inside a
     570px column. The headline can only be as large as its column allows;
     the copy column was widened to 1.25fr to buy the rest.
     ====================================================================== */
  --t-hero:clamp(2.1rem,5.4vw,5rem);        /* the hero headline. Nothing else. */
  --t-display:clamp(2rem,5.1vw,4.8rem);     /* numerals AS CONTENT. Nothing else. */
  /* An index folio — the 01/02/03 that marks a column or an entry. A
     different role from --t-display: a folio labels a thing, a display
     numeral IS the thing, so a folio must never outrank the heading it sits
     under. Sized to read as large against list type and small against a
     statement. */
  --t-folio:clamp(1.7rem,3.2vw,2.8rem);
  --t-stmt:clamp(2rem,5vw,3.9rem);        /* editorial statements */
  --t-h2:clamp(1.65rem,2.9vw,2.4rem);     /* ordinary section headings */
  --t-h3:clamp(1.12rem,1.35vw,1.3rem);
  --t-h4:1.02rem;
  --t-lede:clamp(1.04rem,1.15vw,1.15rem);
  --t-body:1.0625rem;                     /* 17px */
  --t-sm:.94rem;
  --t-xs:.82rem;
  --t-micro:.74rem;                       /* labels and metadata */

  /* ---- measure: body copy lands in the 45-65ch band at every step ---- */
  --m-body:64ch;
  --m-lede:50ch;
  --m-tight:44ch;    /* captions, table cells, anything set small */
  --m-stmt:17ch;     /* big statements want few words per line */
  --m-h2:16ch;

  /* ---- 8px spacing rhythm. Nothing uses a value off this list. ---- */
  --s1:8px;  --s2:16px; --s3:24px; --s4:32px;
  --s5:48px; --s6:64px; --s7:96px; --s8:128px;

  /* ======================================================================
     PACING — vertical rhythm as an editorial decision, not one padding
     value repeated down the page.

     A band is punctuation. A chapter is the working default. A room is a
     section that wants air around large type. A breath is nearly empty and
     exists to separate two dense things.

     Sections choose one. Two adjacent sections should rarely choose the
     same, which is what stops the page reading as uniform slabs.
     ====================================================================== */
  --pace-band:clamp(52px,7vh,88px);
  --pace-chapter:clamp(88px,12vh,160px);
  --pace-room:clamp(128px,19vh,240px);
  --pace-breath:clamp(150px,25vh,320px);
  /* On the live white page light.css overrides all four: 99px between
     every section (the client's call, 18 Nov 2026). */
}

/* ============================================================================
   THE MOBILE SCALE

   Below the 960px layout switch the page is a single column and the type
   needs its own curve — not the desktop curve evaluated at a small number.

   TWO THINGS WERE WRONG BEFORE THIS BLOCK EXISTED.

   1. The hero sat on its 2.1rem MINIMUM at 320, 375 and 390 alike — 33.6px
      on every phone, because 5.4vw does not reach the floor until 622px. A
      430px phone got exactly the same headline as a 320px one, and at 320
      that headline was too wide for its column and wrapped to four lines.
      The vw coefficient is much steeper here, so the hero actually responds
      to the device: 28px at 320 rising to 37px at 430.

   2. THE ORDERING INVERTED AT THE NARROW END. --t-display floors at 2rem
      (32px) and --t-stmt at 2rem, while the hero floored at 33.6 and fell
      below both once it wrapped. A statistic and a section statement were
      larger than the headline on a 320px screen. All four steps now carry
      their own floor and their own slope, and the order holds at every
      width from 320 up to the breakpoint.

   The caps are chosen to MEET the desktop values at 960 so nothing jumps
   across the boundary: hero 51.2 -> 51.84, h2 28 -> 27.84, stmt 48 -> 48.
   ============================================================================ */
@media(max-width:959px){
  :root{
    --t-hero:clamp(1.75rem,8.6vw,3.2rem);
    --t-display:clamp(1.6rem,7.6vw,2.9rem);
    --t-stmt:clamp(1.5rem,7vw,3rem);
    --t-h2:clamp(1.3rem,5.6vw,1.75rem);
    --t-folio:clamp(1.5rem,5.4vw,2.2rem);
  }
}

/* ---------- reset + base ---------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,sans-serif;
  font-size:var(--t-body);line-height:1.62;overflow-x:clip;
  -webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
::selection{background:var(--gold);color:var(--onGold)}

/* keyboard focus must be visible everywhere, and champagne reads on both
   grounds at this weight because it is an outline rather than text */
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* SKIP LINK — off-screen until focused, then the first thing on the page.
   Positioned rather than display:none, because a hidden element cannot
   receive focus and the link would never be reachable. */
.skip{position:fixed;top:0;left:0;z-index:100;
  transform:translateY(-120%);
  background:var(--gold);color:var(--onGold);
  font-size:var(--t-sm);font-weight:600;padding:14px 22px;
  transition:transform .25s var(--e)}
.skip:focus{transform:none}
@media(prefers-reduced-motion:reduce){.skip{transition:none}}

/* ---------- layout ----------
   .wrap is the centred column. .ed is the editorial grid — twelve columns
   at the same width, so a section can range something right, indent it, or
   split it asymmetrically. Sections declare their own spans; there are no
   span utilities here on purpose, because a utility set invites assembling
   layouts rather than composing them. */
.wrap{width:min(1200px,88vw);margin-inline:auto}
/* ---------- type ----------
   Headings are 600 throughout — the brand weight. Tracking tightens as size
   grows, because a face set at 6rem on the tracking that suits 1rem reads
   loose and unresolved. */
h1,h2,h3,h4{font-weight:600;letter-spacing:-.038em;line-height:1.08;
  text-wrap:balance;color:var(--ink)}
h1{font-size:var(--t-hero);letter-spacing:-.052em;line-height:1.02}
h2{font-size:var(--t-h2)}
h3{font-size:var(--t-h3);letter-spacing:-.026em;line-height:1.3}
h4{font-size:var(--t-h4);letter-spacing:-.02em}
p{text-wrap:pretty}

.lede{font-size:var(--t-lede);line-height:1.66;color:var(--mu);
  max-width:var(--m-lede)}
.sm{font-size:var(--t-sm);line-height:1.62;color:var(--mu);max-width:var(--m-body)}
.xs{font-size:var(--t-xs);color:var(--mu2);max-width:var(--m-tight)}
.micro{font-size:var(--t-micro);line-height:1.5;color:var(--mu2);
  max-width:var(--m-tight)}

/* body copy is capped at the top of the 45-65ch band wherever it is not
   already inside a component that sets its own measure */
p.lede,p.sm,p.xs{margin-inline:0}

/* ---------- label: a hairline and a word. No pill, no fill. ----------
   Small, tracked, and quiet. This used to be set at 1.06rem/700 with a 2px
   rule, which is a heading pretending to be a label — at that size it
   competes with the h2 directly beneath it instead of introducing it.
   Back to a hairline and a caption. */
.lab{display:inline-flex;align-items:center;gap:14px;
  font-size:var(--t-micro);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold)}
.lab::before{content:"";width:32px;height:1px;background:var(--gold);flex:none}

/* ---------- logo ----------
   A brand asset, not a heading. Its weight does not follow the type scale
   and must not be swept along when heading weights change. */
.logo{display:inline-flex;align-items:baseline;line-height:1;
  white-space:nowrap;font-size:19px}
.logo__c{height:.74em;width:auto;fill:currentColor;margin-right:.03em;
  overflow:visible}
.logo__c .acc{fill:var(--gold)}
.logo__t{font-weight:700;letter-spacing:0}

/* ---------- buttons: flat. No coloured shadow, no radius. ----------
   The outline button fills champagne from its bottom edge on hover.

   The fill is the button's OWN background-image — a solid-colour gradient
   pinned to the bottom edge and grown from 0% to 100% height. It is a
   two-stop gradient of one colour, which is a technique for painting a
   rectangle, not a visual gradient.

   background-size is a paint property, so growing it repaints but never
   reflows — the label does not move and neither does the page.

   Because the fill lives in background-image, NO other rule may use the
   background SHORTHAND on this button: `background:transparent` resets
   background-image to none and silently deletes the fill. Every rule below
   uses background-color.

   The label flip is timed off the fill rather than guessed. Under this
   easing the fill sweeps past the cap-height band between 36ms and 62ms, so
   the flip is a .07s crossfade at .02s, which lands inside that window. A
   longer delay leaves a white label sitting on champagne, which measures
   1.8:1. */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;
  border-radius:var(--rad);font-size:var(--t-sm);font-weight:600;
  letter-spacing:-.01em;white-space:nowrap;
  background:var(--gold);color:var(--onGold);
  transition:background-color .35s var(--e),color .35s var(--e)}
.btn:hover:not(.btn--line){background:var(--goldHi)}
.btn--lg{padding:17px 30px;font-size:1rem}
.btn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;flex:none;
  transition:transform .35s var(--e)}
.btn:hover svg{transform:translateX(3px)}

.btn--line{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line2);
  background-color:transparent;
  background-image:linear-gradient(var(--gold),var(--gold));
  background-repeat:no-repeat;
  background-position:left bottom;
  background-size:100% 0%}
/* .btn.btn--line, not .btn--line: motion.css loads afterwards and its
   [data-magnet] rule has equal specificity, so it would win the transition
   property on the magnetic buttons. transform is repeated in the list for
   the same reason — drop it and the magnet stops easing back. */
.btn.btn--line{transition:background-size .4s var(--e),color .07s linear .02s,
  box-shadow .3s var(--e),transform .4s var(--e)}
@media(hover:hover){
  .btn.btn--line:hover,.btn.btn--line:focus-visible{
    background-size:100% 100%;color:var(--onGold);
    box-shadow:inset 0 0 0 1px var(--gold)}
}
/* touch has no hover to leave, so :hover would stick after a tap */
@media(hover:none){
  .btn--line:active{background-size:100% 100%;color:var(--onGold)}
}

.tlink{display:inline-flex;align-items:center;gap:9px;font-size:var(--t-sm);
  font-weight:600;color:var(--gold);white-space:nowrap}
.tlink svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;flex:none;
  transition:transform .35s var(--e)}
a:hover .tlink svg,.tlink:hover svg{transform:translateX(4px)}

/* ---------- collapsed disclosure panels ----------
   A panel at grid-template-rows:0fr with overflow:hidden is INVISIBLE BUT
   STILL FOCUSABLE. Fourteen form controls inside the two closed contact
   forms were reachable by Tab, so a keyboard reader fell into fields they
   could not see. overflow:hidden clips paint; it does nothing to the tab
   order.

   visibility:hidden removes them from both the tab order and the
   accessibility tree, and unlike display:none it can be delayed — so it
   waits out the closing transition and applies the instant one opens. */
.svc__panel > div,.acts__p > div{visibility:hidden;
  transition:visibility 0s linear .58s}
.svc.on .svc__panel > div,.acts__p.on > div{visibility:visible;
  transition:visibility 0s}
@media(prefers-reduced-motion:reduce){
  .svc__panel > div,.acts__p > div{transition:none}
}

/* ---------- forms: underlined, not boxed ----------
   A bordered input is four sides drawn around empty space. One rule under
   the field says the same thing and matches every other rule on the page. */
.frm{display:grid;gap:var(--s3)}
.frm__2{display:grid;gap:var(--s3)}
@media(min-width:460px){.frm__2{grid-template-columns:1fr 1fr}}
.frm label{display:grid;gap:8px;font-size:var(--t-micro);font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--mu2)}
.frm input,.frm textarea{font:inherit;font-size:var(--t-sm);color:var(--ink);
  background:transparent;border:0;border-bottom:1px solid var(--line2);
  border-radius:0;padding:9px 0;width:100%;
  transition:border-color .3s var(--e)}
.frm textarea{resize:vertical;min-height:64px}
.frm input::placeholder,.frm textarea::placeholder{color:var(--mu2)}
.frm input:focus,.frm textarea:focus{outline:none;border-bottom-color:var(--gold)}
/* The rule doubles rather than the outline appearing: a 1px underline
   changing colour is a thin indicator for a focus state. box-shadow adds a
   second pixel without changing the border-width, so nothing reflows. */
.frm input:focus-visible,.frm textarea:focus-visible{
  outline:none;border-bottom-color:var(--gold);box-shadow:0 1px 0 0 var(--gold)}
.frm__go{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:center}
.frm__msg{font-size:var(--t-xs);color:var(--gold);margin:0}
.frm__note{font-size:var(--t-xs);color:var(--mu2);line-height:1.6;
  max-width:var(--m-tight)}

/* ---------- sections ---------- */
.sec{padding:var(--pace-chapter) 0}

/* ============================================================================
   GROUND CONTEXTS

   Two grounds, and everything that has to flip between them. mono.css is
   dark-first — --ink is pure white and every heading inherits it — so the
   light contexts have to cancel that explicitly or they render white on
   near-white.

   The dark rules are listed AFTER the ivory ones and at matching
   specificity, so a dark band nested inside a light page resolves correctly
   by later-wins. Without that guard, `.pane--i .stat b` painted numerals
   #121214 onto black.
   ============================================================================ */

/* ---- ivory ground ---- */
.pane--i{background:var(--ivory);color:var(--onIvory)}
.pane--i h1,.pane--i h2,.pane--i h3,.pane--i h4{color:var(--onIvory)}
.pane--i .lede,.pane--i .sm,.pane--i p{color:var(--onIvoryMu)}
.pane--i .xs,.pane--i .micro{color:var(--onIvoryMu)}
.pane--i .lab{color:var(--goldDeep)}
.pane--i .lab::before{background:var(--goldDeep)}
.pane--i .tlink{color:var(--goldDeep)}
.pane--i .btn{background:var(--onIvory);color:var(--ivory)}
.pane--i .btn:hover:not(.btn--line){background:#000}
.pane--i .btn--line{background-color:transparent;color:var(--onIvory);
  box-shadow:inset 0 0 0 1px var(--lineI2)}
/* champagne on ivory is only a 1.31:1 step, so the light grounds keep a dark
   hairline on hover — without it the filled button has no defined edge and
   reads as a smudge rather than a block */
.pane--i .btn.btn--line:hover,.pane--i .btn.btn--line:focus-visible{
  color:var(--onGold);box-shadow:inset 0 0 0 1px rgba(18,18,20,.34)}
.pane--i .frm input,.pane--i .frm textarea{color:var(--onIvory);
  border-bottom-color:var(--lineI2)}
.pane--i .frm label{color:var(--onIvoryMu)}
.pane--i .frm input:focus,.pane--i .frm textarea:focus{
  border-bottom-color:var(--goldDeep)}

/* ---- dark ground. Listed second so a dark band inside a light page wins. ---- */
.pane--d,.sec--d{background:var(--bg);color:var(--ink)}
.pane--d h1,.pane--d h2,.pane--d h3,.pane--d h4,
.sec--d h1,.sec--d h2,.sec--d h3,.sec--d h4{color:var(--ink)}
.pane--d p,.pane--d .lede,.pane--d .sm,.pane--d li,.pane--d dd,
.sec--d p,.sec--d .lede,.sec--d .sm,.sec--d li,.sec--d dd{color:var(--mu)}
.pane--d .xs,.pane--d .micro,.sec--d .xs,.sec--d .micro{color:var(--mu2)}
.pane--d .lab,.sec--d .lab{color:var(--gold)}
.pane--d .lab::before,.sec--d .lab::before{background:var(--gold)}
.pane--d .tlink,.sec--d .tlink{color:var(--gold)}
.pane--d .btn,.sec--d .btn{background:var(--gold);color:var(--onGold)}
.pane--d .btn:hover:not(.btn--line),
.sec--d .btn:hover:not(.btn--line){background:var(--goldHi)}
.pane--d .btn--line,.sec--d .btn--line{background-color:transparent;
  color:var(--ink);box-shadow:inset 0 0 0 1px var(--line2)}
.pane--d .btn.btn--line:hover,.pane--d .btn.btn--line:focus-visible,
.sec--d .btn.btn--line:hover,.sec--d .btn.btn--line:focus-visible{
  color:var(--onGold);box-shadow:inset 0 0 0 1px var(--gold)}
/* ---------- restoring the outline button's champagne fill ----------
   .btn--line fills on hover by growing a background-IMAGE from 100% 0% to
   100% 100%. Both ground blocks above set `background` on .btn as a
   SHORTHAND — .pane--i sets ink, .pane--d sets champagne — and a shorthand
   resets every background longhand it does not name, including
   background-image. Each block then puts background-COLOR back to transparent
   on .btn--line, which restores the transparency but not the gradient.

   The result was an outline button with nothing to grow: on ivory the text
   still turned near-black and merely looked like a colour change, but on the
   dark grounds it turned near-black on near-black and the button vanished
   under the cursor.

   Restated here, after both blocks, at the same specificity so source order
   decides. The :hover rules are more specific still, so they keep winning. */
.pane--i .btn--line,.pane--d .btn--line,.sec--d .btn--line{
  background-image:linear-gradient(var(--gold),var(--gold));
  background-repeat:no-repeat;
  background-position:left bottom;
  background-size:100% 0%}

.pane--d .frm input,.pane--d .frm textarea,
.sec--d .frm input,.sec--d .frm textarea{color:var(--ink);
  border-bottom-color:var(--line2)}

/* ============================================================================
   HEADER

   A solid bar whose ground is READ off the section directly beneath it, so
   the two always match. That is what lets it be opaque without ever looking
   like a slab bolted onto the page: content can no longer scroll through the
   nav, but the bar never announces an edge of its own. The script that does
   the reading is at the end of motion.js.

   The colour set here is only what the bar shows before the script's first
   frame. A page that opens on ivory overrides it in its own <style> so
   there is no flash of the wrong ground.

   left/right:0 rather than width:100vw — 100vw counts the scrollbar and
   would push a horizontal scroll on Windows.
   ============================================================================ */
.hdr{position:fixed;top:0;left:0;right:0;z-index:80;
  display:flex;align-items:center;justify-content:space-between;gap:var(--s5);
  padding:20px clamp(20px,4vw,32px);background-color:var(--bg);
  transition:background-color .4s var(--e),color .4s var(--e)}
.hdr .logo{color:#fff;transition:color .4s var(--e)}
.hdr .logo__c .acc{fill:var(--gold);transition:fill .4s var(--e)}
.hdr--light .logo{color:var(--onIvory)}
.hdr--light .logo__c .acc{fill:var(--goldDeep)}

/* NAVIGATION — metadata, not a menu bar.

   Set at the label step in caps with the system's tracking, so it reads as
   the same kind of thing as every other small marker on the site rather
   than as application chrome. The logo stays the loudest thing in the bar
   by a wide margin, which is the point: it is the navigation identity.

   COLOUR COMES FROM THE MUTED TOKENS, NOT FROM OPACITY. An earlier pass
   dimmed white to 50% and looked right on the dark panels; on ivory the
   same rule resolved to roughly #8A8A8C against #F4F3EF, which is 3.3:1 and
   fails at 12px. --mu and --onIvoryMu already carry measured contrast on
   their own grounds (8.3:1 and 5.8:1), so the quiet is deliberate rather
   than a side effect of a number that happened to look right on one half of
   the site. */
.nav{display:flex;gap:clamp(20px,2.6vw,38px)}
.nav a,.nav .nav__t{font-size:var(--t-micro);font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mu);
  transition:color .4s var(--e)}
.nav a:hover,.nav a[aria-current],.nav .nav__t:hover,.nav .nav__i.on .nav__t{color:var(--ink)}
.hdr--light .nav a,.hdr--light .nav .nav__t{color:var(--onIvoryMu)}
.hdr--light .nav a:hover,.hdr--light .nav a[aria-current],
.hdr--light .nav .nav__t:hover,.hdr--light .nav .nav__i.on .nav__t{color:var(--onIvory)}
@media(max-width:920px){.nav{display:none}}

/* a jump link must not land with its heading hidden behind the bar */
section[id]{scroll-margin-top:clamp(84px,11vh,104px)}

@media(prefers-reduced-motion:reduce){.hdr{transition:none}}

/* ============================================================================
   MOBILE NAVIGATION

   Below 920px the desktop nav hides and, until now, NOTHING replaced it. On
   a phone the only way to reach Process or Expertise was to scroll the
   entire homepage or find the footer. That is the single largest gap the
   site had.

   The replacement is not an app drawer. It is a full-screen INDEX: the
   sections set large, one per line, on hairlines — the same object the rest
   of the site is built from, at the one moment it gets the whole screen.

   The toggle is a word, not a hamburger. Three stacked lines are an
   application convention and this bar has spent a lot of effort not looking
   like an application.
   ============================================================================ */
.mtog{display:none;font-size:var(--t-micro);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mu);
  padding:12px 0 12px 14px;margin:-12px 0;
  transition:color .3s var(--e)}
.hdr--light .mtog{color:var(--onIvoryMu)}
@media(max-width:920px){.mtog{display:block}}

.mnav{position:fixed;inset:0;z-index:79;background:var(--bg);
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(84px,14vh,120px) clamp(20px,6vw,40px) clamp(32px,6vh,56px);
  opacity:0;visibility:hidden;
  transition:opacity .4s var(--e),visibility 0s linear .4s}
.mnav.on{opacity:1;visibility:visible;transition:opacity .4s var(--e),visibility 0s}
/* CHILD combinator, not descendant. As `.mnav a` these rules also caught the
   contact link inside .mnav__at — and `.mnav a:first-of-type` (0,2,1) outranks
   the `.mnav__at a` reset (0,1,1), so the email drew a stray 157px rule above
   itself, starting mid-column and aligning with nothing. */
.mnav > a,.mnav > .has-sub{display:block;color:var(--ink);
  font-size:clamp(1.5rem,7vw,2.4rem);font-weight:600;letter-spacing:-.038em;
  padding:clamp(14px,2.4vh,22px) 0;border-bottom:1px solid var(--line)}
.mnav > a:first-of-type{border-top:1px solid var(--line2)}
.mnav__at{margin-top:clamp(28px,5vh,48px);font-size:var(--t-sm);color:var(--mu2)}
.mnav__at a{display:inline;font-size:inherit;font-weight:400;letter-spacing:0;
  padding:0;border:0;color:var(--gold)}
/* The bar sits ABOVE the panel so the toggle stays reachable to close it —
   which means it also has to join the panel. Left on the ground it reads
   off the section behind, an ivory strip sat on top of a near-black index
   and the two looked like different screens.

   !important because the ground colour is written as an INLINE style by
   paintHeader on every scroll frame, and an overlay state has to win
   against it. Clearing the inline style from JS instead would race the next
   scroll frame and flicker. */
.hdr{z-index:80}
body.mnav-open .hdr{background-color:var(--bg)!important}
body.mnav-open .hdr .logo{color:#fff}
body.mnav-open .hdr .logo__c .acc{fill:var(--gold)}
body.mnav-open .mtog{color:var(--mu)}
body.mnav-open{overflow:hidden}
/* Above the breakpoint the panel is gone AND the scroll lock is released,
   declaratively. The JS resize handler does the same thing, but a body left
   at overflow:hidden because an event did not fire is an unscrollable page —
   too severe a failure to leave to a listener. The CSS cannot miss. */
@media(min-width:921px){
  .mnav{display:none}
  body.mnav-open{overflow:visible}
}
@media(prefers-reduced-motion:reduce){
  .mnav{transition:opacity .001ms,visibility 0s linear .001ms}
  .mnav.on{transition:opacity .001ms,visibility 0s}
}

/* A long button label cannot stay on one line on a 320px screen. "See the
   whole process, stage by stage" measured 365px against a 320px viewport
   and was clipped. white-space:nowrap is right on desktop, where it stops
   short labels breaking awkwardly, and wrong at the narrow end. */
@media(max-width:479px){
  .btn{white-space:normal}
  .btn--lg{padding:15px 22px}
}

/* ---------- touch targets ----------
   A 19px link is not a target on a phone. These expand their hit area with
   a pseudo-element rather than padding, so nothing in the layout moves. */
@media(max-width:920px){
  .hdr .logo,.exp__t,.tlink,.ft .logo,.ft__brand .logo,.crumb a{position:relative}
  .hdr .logo::after,.exp__t::after,.tlink::after,.ft .logo::after,
  .ft__brand .logo::after,.crumb a::after{content:"";
    position:absolute;inset:-13px -10px}
  /* The footer is a column of fifteen 24px links — the densest run of
     targets on the site. Padding rather than a pseudo here, because these
     are stacked and overlapping hit areas would steal each other's taps.
     The margin comes off to keep the visual rhythm roughly where it was. */
  .ft__col a{padding:9px 0;margin-bottom:1px}
  .ft__at a,.mnav__at a{display:inline-block;padding:9px 0}
  .ft__nav a{display:inline-block;padding:9px 0}
}

/* ============================================================================
   FIGURES — the editorial image system

   Images are punctuation on this site, not paragraphs. Three of them exist on
   the home page and every other section stays typographic on purpose; the
   reader should notice an image BECAUSE it is rare. See docs/image-direction.md
   for the visual language, the placement reasoning and the prompt library.

   Two properties matter more than the rest:

   1. A FIGURE THAT CANNOT LOAD LEAVES NO TRACE. motion.js removes it outright
      on error, so a missing or not-yet-produced asset renders as nothing at
      all — never a broken icon, never a grey box. That is the same rule the
      art direction states in words: no image beats a bad image. It also means
      this system can ship before the photography does.

   2. THE CROP IS AUTHORED, NOT INHERITED. object-fit:cover with a default
      centre crop throws away the composition on narrow screens. Every figure
      declares a focal point, and can redeclare it — and its aspect ratio —
      for tablet and phone, so the dominant form is never cropped out.
   ============================================================================ */
/* The block margin is the image's own breathing room. Where a figure is
   followed by a component that already sets a top margin (.proc does), the two
   collapse to the larger of the pair rather than stacking — .pane's
   overflow:hidden stops that collapse escaping the section, which is why a
   figure opening a section zeroes its own top margin instead. */
.fig{display:block;margin:var(--figM,clamp(44px,7vh,84px)) 0;
  position:relative;overflow:hidden;
  aspect-ratio:var(--figR,3/2);
  max-width:var(--figW,100%)}
.fig:first-child{margin-top:0}
.fig img{display:block;width:100%;height:100%;
  object-fit:cover;object-position:var(--fx,50%) var(--fy,50%)}

/* ---- ratios ----
   Deliberately not one ratio site-wide. The portrait sits in a column beside
   type, the wide one spans a chapter, and the difference between them is part
   of the page's pacing. */
.fig--45{--figR:4/5}
.fig--11{--figR:1/1}
.fig--43{--figR:4/3}
.fig--32{--figR:3/2}
.fig--169{--figR:16/9}

/* ---- placement helpers ---- */
.fig--half{--figW:min(46%,520px)}
.fig--two3{--figW:min(66%,760px)}
.fig--end{margin-left:auto}

/* ---- authored crop, per breakpoint ----
   --fx/--fy is the desktop focal point. --fxT/--fyT and --fxM/--fyM override
   it for tablet and phone, each falling back to the step above, so a figure
   only declares the breakpoints it actually needs to correct. A wide image
   can also become a squarer one on a phone via --figRM rather than being
   cropped to a letterbox sliver. */
@media(max-width:959px){
  .fig{aspect-ratio:var(--figRT,var(--figR,3/2))}
  .fig img{object-position:var(--fxT,var(--fx,50%)) var(--fyT,var(--fy,50%))}
}
@media(max-width:599px){
  .fig{aspect-ratio:var(--figRM,var(--figRT,var(--figR,3/2)))}
  .fig img{object-position:var(--fxM,var(--fxT,var(--fx,50%)))
                           var(--fyM,var(--fyT,var(--fy,50%)))}
  /* full measure on a phone — a half-width figure at 46% of 390px is a stamp */
  .fig--half,.fig--two3{--figW:100%}
}

/* ---- entrance ----
   A figure carrying data-rv arrives like everything else (motion.css,
   motion.js): it fades and rises. Its own entrance, a clip that opened from
   the bottom edge, was retired with the reveal rebuild of 25 Nov 2026,
   which animates opacity and transform only. */

/* ---- optional depth on hover ----
   OFF by default and applied to nothing today, because none of the three
   figures is a link and movement on a thing you cannot click is noise. It is
   kept because the art direction specifies it: add .fig--depth to a figure
   that becomes interactive. The scale exists only to cover the edge the
   translate would otherwise expose — it is not a zoom. */
@media(hover:hover){
  .fig--depth img{transition:transform 1.2s var(--e)}
  .fig--depth:hover img{transform:scale(1.025) translate(-1%,-1%)}
}

@media(prefers-reduced-motion:reduce){
  .fig--depth img,.fig--depth:hover img{transition:none;transform:none}
}

/* ============================================================================
   FOOTER — see SITE FOOTER at the foot of this file.

   The old .ft lived here: two shapes, a column grid on the home page and a
   one-line strip everywhere else, both on the dark ground. All eleven pages
   carry one shared footer now, so both shapes and their rules are gone rather
   than left here unused.
   ============================================================================ */

/* ==========================================================================
   SITE FOOTER

   Repeated in every page's HTML, not injected: change it on all nine.

   Since 23 Nov 2026 (the client's brief) the footer is the floor of one dark
   block. Where the closing section (section#close, mission.css) sits directly
   above it, the step from the close's #12110F to this deeper #0C0B0A is the
   divide, so there is no rule. Where it follows a white page (Home, Contact,
   Photo credits) a champagne hairline opens it.

   Two rows on the site's twelve-column grid, a hairline between them. Row
   one: the firm (logo, descriptor, licence) in columns 1-5 and a direct line
   (the email address large, the telephone under it) in 8-12. Row two: the
   office address in 1-4, Services in 8-10, Firm in 11-12. Under them the
   legal line: the copyright, then LinkedIn, Photo credits and Back to top.
   The dark tokens are set on the footer, so focus outlines and selection
   take the champagne fill rather than the white page's bronze.
   ========================================================================== */
.site-ft{
  --ink:#FFFFFF; --onIvory:#FFFFFF;
  --mu:rgba(244,243,239,.74); --onIvoryMu:rgba(244,243,239,.74);
  --gold:#D6BE93; --goldDeep:#D6BE93; --goldHi:#EBD9B4; --onGold:#12100A;
  --line:rgba(244,243,239,.12); --line2:rgba(244,243,239,.16);
  background:#0C0B0A;color:#FFFFFF;border-top:1px solid rgba(214,190,147,.5)}
/* directly under the dark close, the change of ground is the divide */
main:has(> .ms-close:last-child) + .site-ft{border-top:0}
/* the content's measure, so the footer starts on the line every headline
   starts on (the 20 Nov 2026 alignment, formerly in light.css) */
.site-ft__in,.site-ft__util .in{width:min(1200px,88vw);margin-inline:auto}
.site-ft__in{padding:64px 0 52px}
.site-ft__top,.site-ft__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:clamp(16px,2.2vw,32px);align-items:start}
.site-ft__top{padding-bottom:40px;border-bottom:1px solid rgba(244,243,239,.12)}
.site-ft__grid{padding-top:40px}

/* the small uppercase label: "Speak directly" */
.site-ft__k{display:block;font-size:.7rem;font-weight:700;letter-spacing:.14em;
  line-height:1.4;text-transform:uppercase;color:rgba(244,243,239,.62)}

/* row one, left: the firm */
.site-ft__brand{grid-column:1 / 6}
.site-ft .logo{display:inline-flex;align-items:center;color:#FFFFFF}
.site-ft .logo__c{fill:#FFFFFF}
.site-ft .logo__c .acc{fill:#D6BE93}
.site-ft__blurb{margin:18px 0 0;max-width:32ch;font-size:var(--t-sm);color:rgba(244,243,239,.74)}

/* row one, right: a direct line */
.site-ft__talk{grid-column:8 / -1}
/* 34px; it is ten times its size wide, so from 960 to 970px, where columns
   8-12 are a pixel or two short of 340, it eases down (3.5vw) to stay on one
   line inside them */
.site-ft__mail{display:block;width:fit-content;margin-top:12px;white-space:nowrap;
  font-size:min(34px,3.5vw);font-weight:500;letter-spacing:-.03em;line-height:1.2;color:#FFFFFF;
  text-decoration:underline 1px rgba(214,190,147,.55);text-underline-offset:9px;
  transition:text-decoration-color .2s var(--e)}
.site-ft__mail:hover{text-decoration-color:#D6BE93}
.site-ft__tel{display:block;width:fit-content;margin-top:16px;white-space:nowrap;
  font-size:20px;font-weight:500;letter-spacing:-.01em;line-height:1.3;color:rgba(244,243,239,.9);
  transition:color .2s var(--e)}
.site-ft__tel:hover{color:#FFFFFF}

/* row two: Services and Firm, under the direct line. The office address and
   the licence line under the firm's blurb were taken out of the footer at the
   client's request (26 Nov 2026), along with "Co., Ltd." in the legal line. */
.site-ft__col{grid-column:8 / 11}
.site-ft__col + .site-ft__col{grid-column:11 / -1}
/* Column heads are labels with a rule under them, not small bold headings.
   The rule is what tells the eye these are parallel lists. */
.site-ft__col h3{font-size:var(--t-micro);font-weight:700;letter-spacing:.15em;
  text-transform:uppercase;color:rgba(244,243,239,.62);margin:0 0 var(--s2);
  padding-bottom:9px;border-bottom:1px solid rgba(244,243,239,.16)}
.site-ft__col a{display:block;font-size:var(--t-sm);color:rgba(244,243,239,.88);
  padding:5px 0;border-bottom:1px solid transparent;width:fit-content;
  transition:color .2s var(--e),border-color .2s var(--e)}
.site-ft__col a:hover{color:#FFFFFF;border-bottom-color:#D6BE93}

/* the legal line: furniture, not content, in the smallest type on the page */
.site-ft__util{border-top:1px solid rgba(244,243,239,.12)}
.site-ft__util .in{padding:16px 0;display:flex;flex-wrap:wrap;gap:8px var(--s4);
  align-items:center;justify-content:space-between;
  font-size:var(--t-xs);color:rgba(244,243,239,.62)}
.site-ft__util nav{display:flex;flex-wrap:wrap;gap:8px var(--s3)}
.site-ft__util a{display:inline-flex;align-items:center;gap:7px;color:rgba(244,243,239,.78);
  border-bottom:1px solid transparent;transition:color .2s var(--e),border-color .2s var(--e)}
.site-ft__util a:hover{color:#FFFFFF;border-bottom-color:#D6BE93}
/* Back to top: href="#top", which the browser takes to the top of the page
   with the site's own smooth scroll (html in this file), instant when the
   reader prefers reduced motion (motion.css) */
.site-ft__up svg{width:11px;height:11px;fill:none;stroke:#D6BE93;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}

/* tablet: the direct line goes under the firm, so the email address keeps
   its full size on one line; the second row keeps its two columns where they were */
@media(max-width:959px){
  .site-ft__brand,.site-ft__talk{grid-column:1 / -1}
  .site-ft__talk{margin-top:40px}
  .site-ft__mail{font-size:34px}
  .site-ft__col{grid-column:6 / 10}
  .site-ft__col + .site-ft__col{grid-column:10 / -1}
}
/* phone: one column, in reading order; the legal line wraps */
@media(max-width:620px){
  .site-ft__top,.site-ft__grid{grid-template-columns:minmax(0,1fr);row-gap:36px}
  .site-ft__top > *,.site-ft__grid > *,.site-ft__col + .site-ft__col{grid-column:1 / -1}
  .site-ft__talk{margin-top:4px}
  .site-ft__mail{font-size:24px}
  .site-ft__util .in{justify-content:flex-start}
}




/* ============================================================================
   THE EVOLUTION RAIL

   The firm's argument as a typographic object: a hairline with points on it
   and a word at each point. Used twice — the home page's story section and
   the mission page — so it lives here rather than in either.

   It is NOT a process diagram. There are no boxes, no arrows and no
   connectors between labelled shapes: one line, a few points, and words set
   as the site sets every other small label. The direction is carried by the
   line's own travel and by the fact that the last word is the only one in
   champagne — the eye arrives there and stops.

   Grounds are not interchangeable. The dark version uses --gold and --mu;
   the ivory version, --goldDeep and --onIvoryMu.
   ============================================================================ */
.evo{list-style:none;margin:0;padding:0;--evoG:clamp(26px,2.6vw,34px)}
.evo__i{position:relative;padding:0 0 clamp(26px,3.4vh,40px) var(--evoG)}
.evo__i:last-child{padding-bottom:0}
/* the rail, drawn per item so it stops at the last point instead of running
   past it into nothing */
.evo__i::before{content:"";position:absolute;left:4px;top:8px;bottom:0;
  width:1px;background:var(--lineI2)}
.evo__i:last-child::before{display:none}
/* the point */
.evo__i::after{content:"";position:absolute;left:1px;top:8px;
  width:7px;height:7px;border-radius:50%;
  border:1px solid var(--goldDeep);background:var(--ivory2)}
.evo__i:last-child::after{background:var(--goldDeep)}
.evo__w{display:block;font-size:var(--t-micro);font-weight:700;
  letter-spacing:.2em;text-transform:uppercase;line-height:1;
  color:var(--onIvory)}
.evo__i:last-child .evo__w{color:var(--goldDeep)}
.evo__s{display:block;margin-top:9px;font-size:var(--t-xs);line-height:1.5;
  color:var(--onIvoryMu);max-width:26ch}

/* on the dark ground */
.pane--d .evo__i::before,.sec--d .evo__i::before{background:var(--line2)}
.pane--d .evo__i::after,.sec--d .evo__i::after{
  border-color:var(--gold);background:var(--bg)}
.pane--d .evo__i:last-child::after,.sec--d .evo__i:last-child::after{
  background:var(--gold)}
.pane--d .evo__w,.sec--d .evo__w{color:var(--ink)}
.pane--d .evo__i:last-child .evo__w,.sec--d .evo__i:last-child .evo__w{
  color:var(--gold)}
.pane--d .evo__s,.sec--d .evo__s{color:var(--mu2)}
