/* ============================================================================
   ApexEvolv — WHITE PAGE, IVORY CARDS

   Loaded LAST on every page. The site used to step between near-black and
   ivory sections, with hairlines rather than boxes. The client chose a white
   site in the manner of Apple's store: one plain white page from top to
   bottom — no section has a ground of its own — with the small boxes
   (cards) in ivory, and every landing the same centred stack.

   light-boxes.css is the alternative the client also kept: the same page
   with each former dark section as a large inset ivory panel and the cards
   inside it white. It loads after this file and changes only that.

   How it works, so it can be reasoned about (and removed in one line):

   1. TOKENS. Both of the site's token sets — the dark set (--bg, --ink, --mu,
      --gold, --line) and the ivory set (--ivory, --onIvory, --onIvoryMu,
      --goldDeep, --lineI) — resolve to white-ground values, so every
      component reads correctly without being rewritten.

   2. ONE GROUND. Every section, dark or light before, stands on white, and
      the hairline seams between sections are gone, so the page reads as
      one continuous sheet. Only the photographs are inset and rounded.

   3. CARDS. A group of items (pillars, principles, columns, stats, contact
      options, facts, a list of rows, a form) is an ivory card with rounded
      corners — the --card token.

   Contrast on an ivory card (#F4F3EF): ink 17:1, body 5.6:1, labels 5.0:1,
   bronze accent 5.4:1. On white each is higher.
   ============================================================================ */

:root{
  --page:#FFFFFF;
  --box:#F4F3EF;
  --card:var(--box);
  --boxM:clamp(8px,1.4vw,20px);      /* how far a box sits in from the edge */
  --boxR:clamp(18px,2vw,28px);       /* box corners */
  --cardR:clamp(14px,1.4vw,20px);    /* card and image corners */

  --bg:#FFFFFF; --bg2:#F4F3EF; --sur:#ECEAE4;
  --ivory:#FFFFFF; --ivory2:#FFFFFF;
  --ink:#121214; --onIvory:#121214;
  --mu:#5E5F66; --onIvoryMu:#5E5F66; --mu2:#66676E;
  --gold:#7C5E24; --goldDeep:#7C5E24; --goldHi:#6A5020; --onGold:#FFFFFF;
  --line:rgba(18,18,20,.12); --line2:rgba(18,18,20,.20);
  --lineI:var(--line); --lineI2:var(--line2);
  --rad:980px;                        /* buttons become pills */
}
body{background:var(--page)}

/* ---- one continuous white page ------------------------------------------
   No seams: a hairline between two sections would give each its own space. */
.sec + .sec,.sec--d + .sec,.sec + .sec--d{border-top:0}
/* the photo strips are images, so they are inset and rounded like images */
.band{margin-inline:var(--boxM);border-radius:var(--boxR);overflow:clip}

/* ---- the bar: white and frosted, whatever is beneath it ------------------
   motion.js still writes the ground colour as an inline style; !important
   holds the bar white so it reads as one object across boxes and white. */
.hdr{background-color:rgba(255,255,255,.84)!important;
  -webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);
  box-shadow:0 1px 0 var(--line)}
.hdr .logo,body.mnav-open .hdr .logo{color:var(--ink)}
.nav,.nav__i{background-color:transparent}
.nav__d{background-color:#FFFFFF}
.dots{color:var(--ink)}

/* ---- one button style ------------------------------------------------------
   Light sections used to fill their primary button with ink and dark ones
   with champagne. On one ground that is two systems, so every primary
   button takes the bronze. background-COLOR, never the shorthand: the
   outline button's hover fill is a background-image. */
body .btn:not(.btn--line){background-color:var(--gold);color:var(--onGold)}
body .btn:not(.btn--line):hover{background-color:var(--goldHi)}
body .btn--line{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line2)}

/* ---- photography ---------------------------------------------------------- */
.fig{border-radius:var(--cardR)}
.band__place{color:#D6BE93}           /* sits on the photograph, not the page */
/* the evolution drawing is champagne hairlines, drawn for black; on ivory it
   needs to be the bronze to be seen at all */
.traj__f{filter:brightness(.55) saturate(1.25)}
/* the ghosted NEXT behind the homepage close was set for black; on ivory it
   reads as a smudge rather than a texture */
.cta__g{display:none}

/* ---- the landing: one centred stack on every page ------------------------ */
/* bottom was clamp(48px,7vh,90px) — see SPACING at the end */
.mast{padding:clamp(124px,18vh,190px) 0 calc(var(--sec-gap) / 2)}

/* the homepage joins it: headline, sentence, buttons, then the industry
   line (the globe was removed on 19 Nov 2026; its leftover rules are inert) */
.pane--full.pane--intro{min-height:0}
.pane--intro,
.pane--intro.pane--full{display:block;padding:clamp(120px,17vh,180px) 0 calc(var(--sec-gap) / 2)}
/* (bottom was clamp(32px,5vh,56px) — see SPACING at the end) */
.pane--intro .intro__grid{position:static;display:flex;flex-direction:column;
  align-items:center;text-align:center;min-height:0;max-width:none;margin:0}
.pane--intro .copy{padding:0 clamp(16px,4vw,32px);max-width:none;text-align:center}
.pane--intro .copy h1{max-width:none;margin-inline:auto}
.pane--intro .copy .lede{margin-inline:auto}
.pane--intro .copy .prow{justify-content:center}
.pane--intro .globe{position:relative;top:auto;right:auto;justify-self:auto;
  --gd:min(360px,42vh,74vw);margin:clamp(36px,5vh,56px) auto 0}
.pane--intro .pract{position:static;margin-top:clamp(32px,5vh,52px)}

/* ---- cards ---------------------------------------------------------------- */
.pil > div,.prin > div,.mani > div,.kit li,.num,.door,.exp__col,
body .cols > div:nth-child(n),body .facts > div:nth-child(n){
  background:var(--card);border-radius:var(--cardR);
  padding:clamp(22px,2.6vw,34px);border:0}
.pil,.prin,.mani{gap:clamp(12px,1.4vw,18px)}
.kit{border-top:0;gap:clamp(12px,1.4vw,18px)}
.cols{gap:clamp(12px,1.4vw,18px)}
.facts{border-top:0;gap:clamp(10px,1.2vw,14px)}
.facts > div:nth-child(n){padding:clamp(18px,2vw,24px)}
.mani > div h3,.pil h3{margin-top:0}

/* homepage stats: three equal cards rather than a ruled strip */
.nums{border:0;padding:0;gap:clamp(12px,1.4vw,18px);
  grid-template-columns:repeat(3,minmax(0,1fr))}
body .num:nth-child(n){padding:clamp(24px,3vw,40px)}
@media(max-width:559px){
  .nums{grid-template-columns:minmax(0,1fr)}
  body .num:nth-child(n){border-top:0}
}

/* homepage expertise: three cards */
.exp{gap:clamp(12px,1.4vw,18px)}
body .exp__col:nth-child(n){border:0;padding:clamp(22px,2.6vw,34px)}
.exp__l li:last-child{border-bottom:0}

/* homepage contact: two cards */
.doors{border-top:0;gap:clamp(12px,1.4vw,18px)}
body .door:nth-child(n){padding:clamp(28px,4vw,52px);border:0}
/* padding-bottom spaced the rule that closed the block; with the rule gone it
   was only empty space under the cards (was clamp(40px,6.5vh,76px)) */
.acts{border-bottom:0;padding-bottom:0}

/* lists of rows: the list is the card, the rows keep their hairlines */
.idx,.svcs,.know{background:var(--card);border-radius:var(--cardR);
  border-top:0;padding-inline:clamp(18px,2.6vw,36px)}
.idx > .row:last-child,.svc:last-child,.know__r:last-child{border-bottom:0}
.idx > .row:last-child::after,.svc:last-child::after,.know__r:last-child::after{display:none}

/* forms sit in a card too */
.frm{background:var(--card);border-radius:var(--cardR);padding:clamp(22px,3vw,40px)}
.acts__in{border-top:0}

/* ---- SPACING: 99px between every section ----------------------------------
   The client's call (18 Nov 2026): too much empty space between sections.
   The pace scale in mono.css gave each section 52–320px of padding by type,
   so two sections met at 170–450px. Now every section meets the next at
   99px, on every page and at every screen size.

   Each section carries half the gap at its top and bottom, so any two meet
   at 99px. Where the edge is a photo band or the footer's hairline, the
   section beside it carries the whole gap on that side. Space that used to
   trail inside a section (a last paragraph's margin, a last row's padding)
   is taken out, or it would add to the gap.

   To undo: delete this block and restore the three values marked "was"
   above (.mast, .pane--intro, .acts). */
:root{
  --sec-gap:99px;
  --pace-band:calc(var(--sec-gap) / 2);
  --pace-chapter:calc(var(--sec-gap) / 2);
  --pace-room:calc(var(--sec-gap) / 2);
  --pace-breath:calc(var(--sec-gap) / 2);
}
.cta{padding:calc(var(--sec-gap) / 2) 0}

/* beside a photo band, whose edge is the photo itself */
.band + section{padding-top:var(--sec-gap)}
section:has(+ .band),
.pane--intro.pane--full:has(+ .band){padding-bottom:var(--sec-gap)}

/* above the footer, whose edge is its hairline */
main > section:last-of-type{padding-bottom:var(--sec-gap)}

/* nothing left trailing or leading inside a section */
.prose:last-child{margin-bottom:0}
.fun li:last-child{padding-bottom:0}
.pane .nums__hd{margin-top:0}  /* .nums__hd asked for margin:0; .pane h2 overrode it */
/* The small gold label sat on a line of body text, which put its top about
   10px below the top of its section. As a block it starts at the top; its
   distance to the heading under it is unchanged. (The homepage intro sets
   its own label back to inline-flex.) */
.lab{display:flex;width:fit-content}
.cta .lab{margin-inline:auto}

/* ---- ONE LEFT EDGE (20 Nov 2026, the client's choice "D") -----------------
   The logo and the menu sit in line with the page: the bar takes the same
   measure as .wrap (min(1200px, 88vw)), so the logo starts on the line
   every headline and section starts on, 120px in on a laptop and further
   on a large screen, and the menu ends on the content's right edge. The
   footer takes the same measure (in mono.css since the dark footer of
   23 Nov 2026). Only the side padding changes: the bar keeps its 59px
   height, which the inner pages' heroes rely on.
   To undo, delete this block. */
.hdr{padding-inline:max(20px, calc((100% - min(1200px, 88vw)) / 2))}
