/* ═══════════════════════════════════════════════════════════════════════════
   JLO — jlo.css

   ONE layout, THREE directions (DESIGN_DIRECTION §4). Each direction is a token
   block selected by [data-dir] on <html>. Every colour, face and rhythm value in
   the layout below resolves through a token — there is NO hard-coded hex, rgb()
   or font-family outside §2. Changing direction changes one attribute.

   All fonts self-hosted woff2, served from our own origin. No Google Fonts, no
   CDN, no external request on any page: LOOP owns the stack, and a financial
   advisory site should not leak visitor IPs to a third party on load.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- 1. FONTS (self-hosted) ---------- */
@font-face{font-family:'Playfair Display';src:url('../fonts/playfair-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('../fonts/playfair-500.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('../fonts/playfair-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('../fonts/playfair-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/inter-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/inter-500.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/inter-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Manrope';src:url('../fonts/manrope-variable.woff2') format('woff2');font-weight:200 800;font-display:swap}

/* ---------- 2. TOKENS — the three directions ---------- */
/* Shared scaffolding. Direction blocks below override only what differs. */
:root{
  --maxw:1240px;
  --gut:clamp(18px,4.5vw,52px);
  --r:2px;
  --ease:cubic-bezier(.22,.8,.3,1);
  --dur:.6s;
  --hdr-h:76px;

  --f-mono:ui-monospace,SFMono-Regular,Menlo,monospace;

  /* ── SPACING RHYTHM ──────────────────────────────────────────────────
     Everything on the site resolves to one of these. No ad-hoc margins in
     page files: that is how a scale drifts within a week of shipping. */
  --sp-1:clamp(8px,1vw,12px);       /* label -> heading            */
  --sp-2:clamp(14px,1.8vw,22px);    /* intra-block, grid gap       */
  --sp-3:clamp(22px,3vw,36px);      /* block padding, card padding */
  --sp-4:clamp(36px,4.5vw,56px);    /* heading -> content          */
  --sp-5:clamp(56px,7vw,88px);      /* sub-section separation      */
  --sect-y-sm:clamp(48px,6vw,80px);
  --sect-y:clamp(64px,9vw,118px);
  --sect-y-lg:clamp(96px,13vw,180px);

  /* ── TYPE SCALE ──────────────────────────────────────────────────────
     Nine steps, nine jobs. This replaces the seven ad-hoc values that used
     to sit between .93 and 1.075rem — a 15% range carrying seven different
     jobs, which at render is one undifferentiated grey texture and is the
     single loudest "generated site" tell there is. */
  --fs-mono:.75rem;                 /* index / label caps          */
  --fs-xs:.82rem;                   /* legal, captions, role       */
  --fs-sm:.92rem;                   /* card body, meta             */
  --fs-md:1.0625rem;                /* body                        */
  --fs-lg:clamp(1.15rem,1.4vw,1.35rem);   /* lead / standfirst     */
  --fs-h3:1.12rem;                  /* card titles                 */
  --fs-h2:clamp(1.9rem,3.3vw,2.9rem);
  --fs-h1:clamp(2.15rem,3.5vw,3.55rem);
  --fs-hero:clamp(2.4rem,5vw,4.2rem);     /* hero + motto, ONE value */

  --lh-tight:1.08; --lh-head:1.16; --lh-lead:1.5; --lh-body:1.68; --lh-sm:1.55;
  --m-head:20ch; --m-lead:52ch; --m-body:66ch; --m-legal:78ch;

  --hero-glow:0;                    /* the 2020-era radial blob, off */
  /* alias so anything still referencing --h1 keeps working */
  --h1:var(--fs-h1); --h1-lh:var(--lh-tight);
}

/* ══ D1 · CONTINUITY ══ JLO BLUE — the live direction.
   ─────────────────────────────────────────────────────────────────────────
   REBUILT 2026-07-23 (Marxk: "so adopt the logo"). This block used to be navy
   #0B1B33 + gold #C8A55B, sampled from the JLO Partners lockup in Joseph's
   8 June deck. That lockup was a CONCEPT SLIDE. His actual, published,
   in-market identity is the blue mark — jlorg.com, LinkedIn, Facebook,
   Instagram — so the site follows the real brand and the deck palette is
   retired.

   --accent #00498E is sampled from assets/img/logo.png itself. Nothing in
   this block is invented: every blue is that one value or a tint/shade of it,
   and the neutrals are a cool grey ramp built to sit under it.

   WHY A LIGHT GROUND. Not a style preference — the dark ground was an
   INFERENCE from the deck lockup, and adopting the real mark kills the
   inference. Three things decide it:
     1. #00498E carries 8.7:1 on this ground, so JLO's own brand colour can
        carry the label layer, the links, the numerals and the compliance
        text. On a dark ground it drops to ~2:1 and we would have had to
        invent a lighter blue to sit beside his real mark — which is exactly
        the fabricated-brand-colour problem, in the most visible place.
     2. logo.png (blue disc, white ring) is his PRIMARY mark and it is drawn
        for a light ground. On navy we would be reaching for the reversed
        variant to solve a problem we created.
     3. White-with-blue is what his clients and the finexis Marketing
        Department already recognise. A dark private-bank register is a
        positioning claim JLO has not made.
   The register still has to be earned, and it is earned by typography and
   space — Playfair display against a wide Inter body — not by going dark.
   ═════════════════════════════════════════════════════════════════════════ */
[data-dir="continuity"]{
  --bg:#FBFCFD;        /* near-white, faintest blue cast — paper, not screen */
  --surface:#F1F4F8;
  --card:#FFFFFF;
  --card-hi:#F7F9FC;
  --line:#DDE4EC;
  --line-2:#C2CEDC;
  --heading:#0A1F3C;   /* deep shade of the brand blue — 16.1:1  */
  --body:#33445C;      /*  9.6:1 */
  --muted:#56677F;     /*  5.6:1 */
  --faint:#5B6C85;     /*  5.2:1 bg / 4.9 surface / 5.4 card.
                          Renders the finexis PDPA clause and the attribution
                          line. It was 2.4-3.1:1 before today. It does not go
                          back below 4.5 — the mandatory disclosure must never
                          be the least legible text on a licensed surface. */

  --accent:#00498E;    /* JLO brand blue, sampled from logo.png. 8.7:1 */
  --accent-hi:#0A5FB4;
  --accent-soft:color-mix(in oklab,var(--accent) 12%,transparent);
  --accent-tint:color-mix(in oklab,var(--accent) 6%,transparent);
  --accent-line:color-mix(in oklab,var(--accent) 28%,transparent);
  --on-accent:#FFFFFF; /* 9.0:1 on the accent fill */
  --em:var(--accent);
  --accent-txt:var(--accent);

  --f-display:'Playfair Display',Georgia,serif;
  --f-body:'Inter',system-ui,sans-serif;
  --display-w:500;
  --display-ls:-.012em;
  --idx-tt:uppercase;
  --idx-ls:.16em;
}

/* ══ D2 · COLLECTIVE ══ Modern advisory house.
   Near-black + teal, geometric sans. Palette sampled from The JLO Collective
   mark Joseph supplied 8 Jun (teal ring on near-black). Not invented. ══ */
[data-dir="collective"]{
  --bg:#101314;
  --surface:#171B1C;
  --card:#1C2122;
  --card-hi:#232929;
  --line:#262D2E;
  --line-2:#394344;
  --heading:#F2F5F4;
  --body:#BFC9C8;
  --muted:#7F8D8C;
  --faint:#93A3A2;   /* raised 2026-07-22: was #4E5A59 (2.60:1) — renders the PDPA clause + attribution */

  --accent:#17777A;
  --accent-hi:color-mix(in oklab,var(--accent) 62%,#FFFFFF);
  --accent-soft:color-mix(in oklab,var(--accent) 20%,transparent);
  --accent-tint:color-mix(in oklab,var(--accent) 10%,transparent);
  --accent-line:color-mix(in oklab,var(--accent) 52%,transparent);
  --on-accent:#F2F5F4;
  --em:color-mix(in oklab,var(--accent) 66%,#FFFFFF);
  /* #17777A is 3.52:1 — fine as a fill, rule or large mark, but it carries the
     ENTIRE small-caps label layer (.idx .rail-v .card-n .slot-lbl .ftr-col h3)
     which then fails AA everywhere. Same hue, lightness lifted: 6.65:1 on --bg.
     Not a new brand colour — --accent is untouched. */
  --accent-txt:#3FA9AC;

  --f-display:'Manrope','Inter',system-ui,sans-serif;
  --f-body:'Manrope','Inter',system-ui,sans-serif;
  --display-w:700;
  --display-ls:-.032em;
  --idx-tt:uppercase;
  --idx-ls:.2em;
  --r:0;                            /* square corners are part of the mark */
  --fs-mono:.72rem; --fs-md:1.05rem;
  --fs-lg:clamp(1.12rem,1.3vw,1.28rem);
  --fs-h3:1.1rem;
  --fs-h2:clamp(1.8rem,3.1vw,2.7rem);
  --fs-h1:clamp(2.05rem,3.3vw,3.3rem);
  --fs-hero:clamp(2.3rem,4.6vw,3.9rem);
}

/* ══ D3 · CLARITY ══ Light editorial.
   Warm white, ink navy, one restrained accent. The readable, quotable
   register — the one an answer engine parses most cleanly. ══ */
[data-dir="clarity"]{
  --bg:#FBFAF7;
  --surface:#F3F1EC;
  --card:#FFFFFF;
  --card-hi:#F7F5F1;
  --line:#E2DED4;
  --line-2:#CBC5B7;
  --heading:#0B1B33;
  --body:#3D4757;
  --muted:#6B7688;
  --faint:#5A6473;   /* darkened 2026-07-22: was #9BA4B2 (2.41:1) — renders the PDPA clause + attribution */

  --accent:#1B3A67;   /* was #0B1B33 = --heading exactly, so D3 had no accent layer */
  --accent-hi:#2A5390;
  --accent-soft:color-mix(in oklab,var(--accent) 8%,transparent);
  --accent-tint:color-mix(in oklab,var(--accent) 4%,transparent);
  --accent-line:color-mix(in oklab,var(--accent) 22%,transparent);
  --on-accent:#FBFAF7;
  --em:#A8813C;                     /* LARGE display type only — 3.43:1 */
  --accent-txt:#8A6828;             /* D3's real small-text accent: 4.92:1 */

  --f-display:'Playfair Display',Georgia,serif;
  --f-body:'Inter',system-ui,sans-serif;
  --display-w:500;
  --display-ls:-.015em;
  --idx-tt:uppercase;
  --idx-ls:.16em;
  --r:3px;
  --fs-xs:.84rem; --fs-sm:.94rem; --fs-md:1.09rem;
  --fs-lg:clamp(1.2rem,1.5vw,1.42rem);
  --fs-h3:1.14rem;
  --fs-h2:clamp(2rem,3.5vw,3rem);
  --fs-h1:clamp(2.2rem,3.6vw,3.6rem);
  --fs-hero:clamp(2.5rem,5.2vw,4.4rem);
  --m-body:72ch;                    /* the one thing that makes "editorial" true */
}

/* ---------- 3. RESET / BASE ---------- */
*,*::before,*::after{box-sizing:border-box}
html{overflow-x:clip;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--bg);color:var(--body);
  font-family:var(--f-body);font-size:var(--fs-md);
  line-height:var(--lh-body);-webkit-font-smoothing:antialiased;overflow-x:clip;
}
img,video,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;color:var(--heading);font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls);line-height:var(--lh-head)}
p{margin:0 0 1.1em}
ul{margin:0;padding:0;list-style:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--on-accent);padding:12px 18px;z-index:200}
.skip:focus{left:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gut)}

/* index label — the small tracked caps used to number sections */
.idx{
  font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:var(--idx-ls);
  text-transform:var(--idx-tt);color:var(--accent-txt);display:inline-flex;
  align-items:center;gap:.6em;font-weight:500;
}
.idx::before{content:"";width:22px;height:1px;background:var(--accent-line)}

/* ---------- 4. REVIEW ANNOTATIONS ----------
   Notes addressed to Joseph — "why this headline", "we asked for this on
   9 June" — used to render as body copy at reading size, inside the layout.
   Those are arguments WITH the client rendered into the page he is being
   asked to judge as a website. They are still worth saying; they are not
   worth saying in the middle of the hero.

   They now render only under ?review=1, so Joseph can look at the site as a
   site and we can still walk him through it annotated. */
.rev{display:none}
[data-review="1"] .rev{
  display:block;border-left:2px solid var(--accent-line);background:var(--accent-tint);
  padding:var(--sp-2) var(--sp-3);margin-block:var(--sp-3);border-radius:0 var(--r) var(--r) 0;
  font-size:var(--fs-xs);line-height:var(--lh-sm);color:var(--muted);max-width:var(--m-legal);
}
[data-review="1"] .rev b{color:var(--accent-txt);font-weight:600}
.rev-bar{
  background:var(--surface);border-bottom:1px solid var(--accent-line);
  font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:var(--idx-ls);
  text-transform:var(--idx-tt);color:var(--accent-txt);padding-block:10px;
}

/* ---------- 5. HEADER ---------- */
.hdr{position:sticky;top:0;z-index:50;background:color-mix(in oklab,var(--bg) 88%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;gap:28px;min-height:76px}
/* ── THE LOCKUP ───────────────────────────────────────────────────────────
   His actual published mark + the wordmark, separated by a hairline rule.
   That rule is not decoration: the JLO Partners lockup in his own 8 June deck
   is wordmark / short rule / wide-tracked caps, so the divider is the grammar
   of his artwork rather than a designer's flourish.

   The mark is placed UNMODIFIED at 30px. Its source is 95x95 — the largest
   file published anywhere on jlorg.com — so 30px still has 3x of headroom on
   a retina display. It is never scaled up: interpolating a 95px raster into a
   large brand moment is how a mark ends up looking counterfeit. If we need it
   bigger, we need a vector from Joseph, not a better resampler. */
.logo{display:flex;align-items:center;gap:11px;flex-shrink:0;min-width:0}
.logo-img{height:30px;width:30px;flex-shrink:0;border-radius:50%}
.logo-rule{width:1px;height:22px;background:var(--accent-line);flex-shrink:0}
.logo-wm{
  font-family:var(--f-display);font-size:1.02rem;letter-spacing:.15em;
  color:var(--heading);font-weight:var(--display-w);white-space:nowrap;line-height:1;
}
.logo-wm b{color:var(--accent);font-weight:inherit}
.ftr-brand .logo-img{height:38px;width:38px}
.ftr-brand .logo-rule{height:26px}
@media (max-width:420px){
  .logo-wm{font-size:.86rem;letter-spacing:.1em}
  .logo{gap:8px}
}
.nav{display:flex;gap:26px;margin-left:auto;font-size:var(--fs-sm)}
.nav a{color:var(--body);transition:color .2s var(--ease);position:relative;padding-block:4px}
.nav a:hover,.nav a[aria-current="page"]{color:var(--heading)}
.nav a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:var(--accent)}
.hdr-cta{display:flex;align-items:center;gap:12px;margin-left:auto}
.nav + .hdr-cta{margin-left:0}
@media (max-width:960px){
  .nav{position:fixed;inset:128px 0 auto;flex-direction:column;gap:0;background:var(--surface);
       border-block:1px solid var(--line);padding:8px var(--gut) 20px;display:none}
  .nav.open{display:flex}
  .nav a{padding:15px 0;border-bottom:1px solid var(--line);font-size:var(--fs-md)}
}
.burger{display:none;width:42px;height:42px;background:none;border:1px solid var(--line-2);border-radius:2px;cursor:pointer;position:relative}
.burger span,.burger::before,.burger::after{content:"";position:absolute;left:11px;right:11px;height:1.5px;background:var(--heading);transition:.25s var(--ease)}
.burger span{top:20px}.burger::before{top:14px}.burger::after{top:26px}
.burger[aria-expanded="true"] span{opacity:0}
.burger[aria-expanded="true"]::before{top:20px;transform:rotate(45deg)}
.burger[aria-expanded="true"]::after{top:20px;transform:rotate(-45deg)}
@media (max-width:960px){.burger{display:block}}

/* ---------- 6. BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.6em;padding:15px 26px;border-radius:var(--r);
  font-size:var(--fs-sm);font-weight:600;font-family:var(--f-body);letter-spacing:.005em;
  border:1px solid transparent;transition:all .25s var(--ease);cursor:pointer;
}
.btn-sm{padding:11px 19px;font-size:.85rem}
.btn-p{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.btn-p:hover{background:var(--accent-hi);border-color:var(--accent-hi)}
.btn-g{border-color:var(--line-2);color:var(--heading)}
.btn-g:hover{border-color:var(--accent);color:var(--accent)}
.ico-arr{width:15px;height:15px;transition:transform .25s var(--ease)}
.btn:hover .ico-arr{transform:translateX(3px)}
/* Never hide the primary CTA on mobile — it is the whole point of the header.
   The old stylesheet had `display:none` below 520px, which deleted the single
   persistent conversion affordance at exactly the width where a sticky CTA
   earns the most. It shrinks instead.

   Below 560 the label also SHORTENS rather than wrapping to two lines: at 390
   "Speak to an adviser" wrapped and made the header 92px tall, shoving the
   lockup sideways. Both labels are real text and the full one stays in
   aria-label, so nothing is lost to a screen reader. */
.hdr-cta .btn{white-space:nowrap}
.hdr-cta-short{display:none}
@media (max-width:560px){
  .hdr-cta .btn{padding:10px 14px;font-size:.8rem}
  .hdr-cta .btn .ico-arr{display:none}
  .hdr-cta-long{display:none}
  .hdr-cta-short{display:inline}
  .hdr-in{gap:12px}
}

/* ---------- 7. PLACEHOLDERS — the anti-fabrication device ---------- */
.ph{
  display:inline-flex;align-items:baseline;gap:.55em;
  border:1px dashed var(--accent-line);background:var(--accent-tint);
  padding:.25em .7em;border-radius:2px;color:var(--accent);
  font-family:var(--f-body);font-size:.86em;font-style:normal;line-height:1.5;
}
.ph-block{display:flex;margin-block:.5em}
.ph-tag{
  font-family:var(--f-mono);font-size:.56rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--on-accent);background:var(--accent);padding:.25em .5em;border-radius:2px;
  flex-shrink:0;line-height:1.2;position:relative;top:-1px;
}

/* ---------- 8. MEDIA SLOTS ---------- */
.slot{position:relative;overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:var(--r)}
.slot img,.slot video{width:100%;height:100%;object-fit:cover}
.r-16-9{aspect-ratio:16/9}.r-4-3{aspect-ratio:4/3}.r-3-4{aspect-ratio:3/4}
.r-4-5{aspect-ratio:4/5}.r-1-1{aspect-ratio:1/1}.r-21-9{aspect-ratio:21/9}
.slot-in{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;padding:26px;text-align:center;color:var(--faint);
  background-image:repeating-linear-gradient(-45deg,var(--accent-tint) 0 1px,transparent 1px 11px);
}
.slot-ico{width:30px;height:30px;color:var(--accent);opacity:.55}
.slot-lbl{font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:var(--idx-ls);color:var(--accent-txt)}
.slot-txt{font-size:var(--fs-xs);max-width:34ch;line-height:var(--lh-sm);color:var(--muted)}

/* ---------- 9. SECTION SCAFFOLD ---------- */
.sect{padding-block:var(--sect-y);position:relative}
.sect-y-sm{padding-block:var(--sect-y-sm)}
/* SECTION RHYTHM (fixes the "six identical sections" problem). Every section
   used to be --sect-y plus a 1px border-top, six times out of six, so nothing
   on the page said "this one matters more than that one" — and a page with no
   rhythm reads as a template even when every individual part is well made.
   The pattern is now: y -> tone -> y -> y-sm -> band, with the D1 header rule
   carrying the seam. Ground change and border are alternatives, never both. */
.sect-tone{background:var(--surface)}
.sect-tone + .sect,.sect-tone{border-top:0!important}
.sect-hd,.blk-hd{max-width:var(--m-body);margin-bottom:var(--sp-4)}
.sect-hd h2,.blk-hd h2{font-size:var(--fs-h2);line-height:var(--lh-head);margin-block:var(--sp-1) var(--sp-2)}
.sect-hd p,.blk-hd p{font-size:var(--fs-md);color:var(--muted);max-width:var(--m-lead);margin:0}

/* .blk-hd — a section header living INSIDE a .split cell, where .sect-hd's
   centred/ruled treatment is wrong. Exists to kill the seven copy-pasted
   inline `style="font-size:clamp(1.85rem,3.3vw,2.9rem)"` attributes that were
   in the page files: every new page repeated the clamp string and the scale
   drifted a little further each time. */
.blk-hd{max-width:none;margin-bottom:var(--sp-3)}
.blk-hd h2{max-width:var(--m-head)}

/* The three utilities that replace the remaining inline styles. */
.t-xs{font-size:var(--fs-xs);color:var(--faint);line-height:var(--lh-sm);max-width:var(--m-legal)}
.t-sm{font-size:var(--fs-sm);color:var(--muted)}
.mb-2{margin-bottom:var(--sp-2)}
.mw-body{max-width:var(--m-body)}
.mt-3{margin-top:var(--sp-3)}
.mt-4{margin-top:var(--sp-4)}

/* ── D1 CONTINUITY section grammar ────────────────────────────────────────
   Read straight off the lockup Joseph supplied: gold serif wordmark, short
   centred rule, wide-tracked caps under it. That is a SYMMETRIC, RULED
   grammar, so the section header is centred with the rule above it and the
   rule replaces the universal .sect + .sect border — which was doing the same
   job six times out of six and giving the page no rhythm at all. */
[data-dir="continuity"] .sect > .wrap > .sect-hd{
  padding-top:var(--sp-4);border-top:1px solid var(--accent-line);
}
/* Centred is a >=720px grammar. At 390 a centred four-line paragraph is
   harder to read than a left-aligned one — ragged on BOTH edges gives the eye
   no return point. The rule above the header stays at every width. */
@media (min-width:720px){
  [data-dir="continuity"] .sect > .wrap > .sect-hd{margin-inline:auto;text-align:center}
}
[data-dir="continuity"] .sect > .wrap > .sect-hd h2{max-width:var(--m-head);margin-inline:auto}
[data-dir="continuity"] .sect > .wrap > .sect-hd p{margin-inline:auto}
[data-dir="continuity"] .sect > .wrap > .sect-hd .idx::before{display:none}
[data-dir="continuity"] .sect + .sect{border-top:0}
[data-dir="collective"] .sect + .sect{border-top:1px solid var(--line)}
[data-dir="clarity"] .sect + .sect{border-top:1px solid var(--line)}

/* ---------- 10. HERO ----------
   IMAGE-LED, NOT A CARD. The old hero put a 460px 4:5 image in a .85fr column
   with no alignment relationship to anything, capped the h1 at 13ch inside a
   640px column so it ragged over five lines, and lit the corner with a radial
   gradient blob — the single most generic element that shipped on every SaaS
   landing page from 2020 to 2023, and badly off-register on a private-wealth
   surface.

   What replaces it: JLO's own photograph, full-bleed, held at scale on the
   right and dissolving into the navy the headline sits on. The dissolve is
   baked into the file (tools/build-images.py) rather than layered in CSS, so
   there is no scrim to mistime and no seam to chase across breakpoints.

   The photograph is the same one the current site uses. What has gone is the
   flat blue diagonal wedge and its white keyline — a 2022 Divi artifact that
   occupied half the frame and is the reason that hero fails.                */
.hero{position:relative;overflow:hidden;isolation:isolate}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  opacity:var(--hero-glow);
  background:radial-gradient(circle at 88% 6%,var(--accent-soft),transparent 62%);
}
/* .hero-pic sits AFTER .hero-grid in the DOM. That single ordering decision is
   what lets the same element be an absolute backdrop on desktop and a stacked
   band under the copy on mobile, with no reordering and no duplicate markup. */
.hero-pic{position:absolute;inset:0;z-index:-2;display:block}
.hero-pic img{width:100%;height:100%;object-fit:cover;object-position:72% 42%}
/* Legibility insurance. The file already dissolves to navy on its left, but
   `cover` crops differently at every viewport width, so this guarantees the
   headline never lands on a bright window frame at some width nobody tested. */
.hero-pic::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,var(--bg) 38%,transparent 78%);
}
.hero-grid{
  position:relative;z-index:1;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.62fr);
  gap:clamp(32px,5vw,76px);align-items:center;
  min-height:clamp(540px,76vh,780px);
  padding-block:clamp(56px,8vw,110px) clamp(56px,8vw,104px);
}
.hero-in{position:relative;z-index:1;max-width:none}
.hero .idx{margin-bottom:var(--sp-2)}
.hero h1{
  font-size:var(--fs-hero);line-height:var(--lh-tight);max-width:16ch;
  margin-block:var(--sp-1) var(--sp-3);text-wrap:balance;
}
.hero h1 em{font-style:normal;color:var(--em)}
.hero-sub{
  font-size:var(--fs-lg);line-height:var(--lh-lead);color:var(--body);
  max-width:46ch;margin-bottom:var(--sp-4);
}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;align-items:center}

/* Below 940 the wide crop becomes a letterbox strip, so <picture> swaps in a
   real 4:5 portrait of the same moment and it stacks UNDER the copy. Only one
   file is ever fetched — the swap is a source media query, not JS. */
@media (max-width:940px){
  .hero-grid{
    grid-template-columns:1fr;min-height:0;
    padding-block:clamp(40px,8vw,64px) var(--sp-4);
  }
  .hero-pic{position:static;display:block}
  .hero-pic img{height:auto;aspect-ratio:4/5;object-position:60% 26%}
  /* Portrait crop, stacked: the horizontal scrim would now sit across a face. */
  .hero-pic::after{background:linear-gradient(180deg,var(--bg),transparent 22%)}
  .hero h1{max-width:none}
  .hero-sub{max-width:none;margin-bottom:var(--sp-3)}
}
@media (max-width:520px){
  .hero-pic img{aspect-ratio:1/1}
}

/* Type-only hero (/collective). No photograph, so the padding lives here
   rather than on .hero-grid, and the motto carries the page on its own.

   CENTRED, because left-ragging an 18ch motto across a 1240px wrap leaves
   ~700px of empty right-hand column with nothing in it and no compositional
   reason for the emptiness — which is not restraint, it is an unfinished
   layout. Centred narrow IS restraint, and it is D1's grammar: the JLO
   Partners lockup is wordmark, short rule, wide-tracked caps, symmetric. */
.hero > .wrap.hero-in{padding-block:clamp(64px,9vw,124px) clamp(48px,7vw,96px)}
.hero > .wrap.hero-in .motto{margin-block:var(--sp-1) var(--sp-3)}
@media (min-width:720px){
  .hero > .wrap.hero-in{max-width:var(--m-body);margin-inline:auto;text-align:center}
  .hero > .wrap.hero-in .motto{margin-inline:auto;max-width:16ch}
  .hero > .wrap.hero-in .hero-sub{margin-inline:auto}
  .hero > .wrap.hero-in .hero-cta{justify-content:center}
  .hero > .wrap.hero-in .idx::before{display:none}
}

/* ---------- 11. THE PROGRESSION RAIL — the signature device ----------
   Grow → Protect → Preserve → Transfer, as one connected run. This is the
   idea from Joseph's own Positioning Option 1 made structural rather than
   decorative: the four pillars read as a sequence, not a menu of four
   unrelated services. It is the single device that carries across all three
   directions and the reason the site explains why investments and estate
   planning belong together.                                                  */
.rail{position:relative}
.rail-track{display:grid;grid-template-columns:repeat(var(--rail-n,4),1fr);gap:0;position:relative;--node-mid:17px}
.rail-track::before{
  content:"";position:absolute;left:0;right:0;top:var(--node-mid);height:1px;
  background:linear-gradient(90deg,var(--accent-line),var(--accent-line) 88%,transparent);
}
/* NO VERTICAL DIVIDERS. There used to be a full-height 1px border between every
   item. One horizontal connector said "continuous run"; three ~200px verticals
   said "four separate cells" — and at 1440 the cells won easily, so the
   signature device rendered as a four-column table. The connector is the whole
   idea; nothing is allowed to out-draw it. */
.rail-i{position:relative;padding:0 clamp(22px,3vw,48px) 0 0}
/* EQUAL COLUMNS. Items 2+ used to carry an extra left padding, so column 1 was
   ~34px wider than the rest. Invisible while the cards were text; the moment
   each card carried a photograph it rendered as three different picture sizes.
   One right-hand gutter on every item, nothing on the left. */
.rail-i + .rail-i{padding-left:0;border-left:0}
.pill-v{
  position:relative;z-index:1;display:inline-flex;align-items:center;
  height:34px;padding:0 .95em;border-radius:999px;
  background:var(--bg);border:1px solid var(--accent-line);
  font-family:var(--f-mono);font-size:var(--fs-mono);font-weight:500;
  letter-spacing:var(--idx-ls);text-transform:uppercase;color:var(--accent-txt);
  margin-bottom:var(--sp-3);white-space:nowrap;
}
.rail-i:hover .pill-v{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.pill-v,.rail-t{transition:all .3s var(--ease)}

/* HIERARCHY INVERTED BACK. "Investment advisory" is the service — it is what a
   client searches, what an answer engine extracts, and what compliance cares
   about. It was set at .82rem, the smallest text in the block, under "Grow" at
   1.85rem serif. The verb is the poetry; it is now the caption. */
.rail-t{
  font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls);
  font-size:var(--fs-h3);color:var(--heading);display:block;
  margin-bottom:var(--sp-1);line-height:var(--lh-head);
}
.rail-l{font-size:var(--fs-sm);color:var(--muted);line-height:var(--lh-sm);margin:0 0 .9em}
/* Pillar photograph on the index card. Sits under the verb node and above the
   service name, so the eye meets the picture, then what it is called. */
.rail-img{margin:0 0 var(--sp-3)}
.rail-img .slot{border-radius:var(--r);overflow:hidden}
.rail-mini .rail-img{display:none}

/* The run now points somewhere. */
.rail-track::after{
  content:"";position:absolute;right:2px;top:calc(var(--node-mid) - 3px);width:7px;height:7px;
  border-top:1px solid var(--accent-line);border-right:1px solid var(--accent-line);
  transform:rotate(45deg);
}

/* MOBILE: the connector becomes a vertical spine instead of being deleted.
   It used to be `display:none` below 900px — which removed the one device that
   explains why investments and estate planning belong together, on the
   viewport where most of this traffic actually lands. Deleting the device on
   mobile is deleting the argument. */
@media (max-width:900px){
  .rail-track{grid-template-columns:1fr;gap:0}
  .rail-track::before{
    display:block;left:12px;right:auto;top:8px;bottom:30px;width:1px;height:auto;
    background:linear-gradient(180deg,var(--accent-line),var(--accent-line) 88%,transparent);
  }
  .rail-track::after{right:auto;left:9px;top:auto;bottom:22px;transform:rotate(135deg)}
  .rail-i{display:block;padding:0 0 var(--sp-4) 34px;border:0;position:relative}
  .rail-i:last-child{padding-bottom:0}
  .rail-i::before{ /* the node on the spine */
    content:"";position:absolute;left:8px;top:12px;width:9px;height:9px;border-radius:50%;
    background:var(--bg);border:1px solid var(--accent-line);
  }
  .rail-i:hover::before{background:var(--accent);border-color:var(--accent)}
  .pill-v{margin-bottom:var(--sp-2)}
}
@media (max-width:560px){
  .rail-i{padding-left:28px}
  .rail-i::before{left:5px}
  .rail-track::before{left:9px}
  .rail-track::after{left:6px}
}

/* Placeholders inside the rail stop out-shouting the content they stand in for. */
.rail-i .ph{background:transparent}

.rail-note{
  margin-top:var(--sp-5);padding:var(--sp-3);border:1px solid var(--accent-line);
  background:var(--accent-tint);border-radius:var(--r);font-size:var(--fs-md);
  color:var(--heading);max-width:var(--m-legal);line-height:1.62;
}
.rail-note b{color:var(--accent-txt);font-weight:600}

/* ---------- 12. SPLIT / EDITORIAL BLOCKS ---------- */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(34px,5vw,80px);align-items:center}
.split.is-reversed > *:first-child{order:2}
/* A fixed-ratio slot centred in a taller text column leaves ~120px of dead
   space above and below it and reads as an unfinished layout — the same
   "dead right half" problem the section headers had. Stretch it instead. */
.split-fill{align-items:stretch}
.split-fill .slot{height:100%;aspect-ratio:auto;min-height:360px}
@media (max-width:880px){.split-fill .slot{height:auto;aspect-ratio:4/3;min-height:0}}
@media (max-width:880px){.split{grid-template-columns:1fr;gap:36px}.split.is-reversed > *:first-child{order:0}}
.lead{font-size:var(--fs-lg);color:var(--heading);line-height:var(--lh-lead);font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls)}

/* ---------- 13. CARD GRIDS ---------- */
.grid{display:grid;gap:clamp(14px,1.6vw,22px)}
.g-2{grid-template-columns:repeat(2,1fr)}
.g-3{grid-template-columns:repeat(3,1fr)}
.g-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.g-3,.g-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.g-2,.g-3,.g-4{grid-template-columns:1fr}}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  padding:clamp(22px,2.6vw,32px);transition:all .28s var(--ease);position:relative;
}
.card:hover{background:var(--card-hi);border-color:var(--accent-line);transform:translateY(-2px)}
.card h3{font-size:var(--fs-h3);margin-bottom:.5em}
.card p{font-size:var(--fs-sm);color:var(--muted);line-height:var(--lh-sm);margin:0}
.card-n{font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:var(--idx-ls);color:var(--accent-txt);display:block;margin-bottom:1.1em}

/* partner category chips */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{
  padding:11px 20px;border:1px solid var(--line-2);border-radius:999px;font-size:var(--fs-sm);
  color:var(--body);transition:all .25s var(--ease);
}
.chip:hover{border-color:var(--accent);color:var(--accent-txt);background:var(--accent-tint)}

/* ── COLLABORATION PARTNER CATEGORIES ─────────────────────────────────────
   Seven unlabelled pills is not a section — it was the weakest block on the
   home page and at 390 it wrapped to four rows of undifferentiated capsules.
   Same seven categories from Joseph's slide, VERBATIM and none dropped, now
   given the hairline register treatment: countable, scannable, and it reads as
   a considered list rather than as tag soup. No invented descriptions. */
.cats{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:0 clamp(24px,3vw,48px);
  border-top:1px solid var(--accent-line);
}
.cat-i{
  display:flex;align-items:baseline;gap:.9em;position:relative;
  border-bottom:1px solid var(--line);padding-block:var(--sp-2);
}
.cat-i b{
  font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls);
  font-size:var(--fs-h3);color:var(--heading);line-height:var(--lh-head);
}
@media (max-width:980px){.cats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.cats{grid-template-columns:1fr}}

/* ── VALUE MARKS (/collective heritage) ───────────────────────────────────
   JLO's OWN four value icons, published on jlorg.com against People Matter /
   Purpose / Partnership / Progression — the exact four principles this block
   renders. Placed unmodified: the file is his artwork and we do not have a
   brand guide that would let us recolour it. The navy disc it is drawn on is
   close enough to --card that it seats without a halo; the gold hairline ring
   is ours and belongs to the card, not to his mark. */
.val-ico{
  width:54px;height:54px;border-radius:50%;flex-shrink:0;
  border:1px solid var(--accent-line);background:var(--card);
  padding:7px;object-fit:contain;
}

/* ---------- 14. TRACK SPLIT — the two-brand device ---------- */
.tracks{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
@media (max-width:820px){.tracks{grid-template-columns:1fr}}
.track{background:var(--bg);padding:clamp(30px,4vw,52px);display:flex;flex-direction:column;transition:background .3s var(--ease)}
.track:hover{background:var(--surface)}
.track h3{font-size:clamp(1.4rem,2.2vw,1.9rem);margin-block:.7em .5em}
.track p{color:var(--muted);font-size:var(--fs-sm);line-height:var(--lh-sm);flex:1}
.track-for{font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:var(--idx-ls);text-transform:var(--idx-tt);color:var(--accent-txt)}
.track-cta{margin-top:1.4em;display:inline-flex;align-items:center;gap:.5em;color:var(--heading);font-weight:600;font-size:var(--fs-sm);border-bottom:1px solid var(--accent-line);padding-bottom:5px;align-self:flex-start}
.track-cta:hover{color:var(--accent-txt)}

/* ---------- 15. PRINCIPLES (Collective) ---------- */
.prin{border-top:1px solid var(--line);padding-top:var(--sp-3)}
.prin h3{font-size:var(--fs-h3);margin-bottom:.55em}
.prin p{color:var(--muted);font-size:var(--fs-sm);line-height:var(--lh-sm);margin:0}
.prin-r{display:block;width:22px;height:2px;background:var(--accent);opacity:.55;margin-bottom:1.4em}
.prin:hover .prin-r{width:34px;opacity:1;transition:width .3s var(--ease),opacity .3s var(--ease)}
/* Heritage variant: his own value mark replaces the numeral. */
.prin-v{display:flex;gap:var(--sp-2);align-items:flex-start}
.prin-v > div{min-width:0}

/* ---------- 16. PULLQUOTE / MOTTO ----------
   Folded into --fs-hero. There are no longer two competing "largest thing on
   the page" values (--h1 3.55rem vs .motto 3.5rem) drifting apart. */
.motto{
  font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls);
  font-size:var(--fs-hero);color:var(--heading);line-height:var(--lh-tight);text-wrap:balance;
  max-width:18ch;
}
.motto em{font-style:normal;color:var(--em)}

/* ---------- 17. CTA BAND ---------- */
.band{background:var(--surface);border-top:1px solid var(--line)}
.band-in{padding-block:clamp(56px,7vw,96px);display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(30px,4vw,60px);align-items:center}
@media (max-width:860px){.band-in{grid-template-columns:1fr}}
.band h2{font-size:var(--fs-h2);margin-block:var(--sp-1) var(--sp-2);max-width:18ch}
.band p{color:var(--muted);margin-bottom:0;max-width:var(--m-lead)}

/* ---------- 18. FORM ---------- */
.form{display:grid;gap:14px}
.fld{display:grid;gap:7px}
.fld label{font-size:var(--fs-xs);color:var(--muted);letter-spacing:.02em}
.fld input,.fld textarea,.fld select{
  background:var(--card);border:1px solid var(--line-2);border-radius:var(--r);padding:14px 16px;
  color:var(--heading);font-family:var(--f-body);font-size:var(--fs-sm);width:100%;
}
.fld input:focus,.fld textarea:focus{border-color:var(--accent);outline:none}
.fld-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:560px){.fld-2{grid-template-columns:1fr}}

/* COMPLIANCE TEXT. The finexis PDPA clause was the LEAST legible text on the
   site — .76rem at 3.06:1 — and it is on the page precisely because
   compliance requires it. "We styled the mandatory disclosure to be hard to
   read" is a bad sentence to have to say to a Marketing reviewer. It is now on
   the type scale at --fs-xs against the raised --faint. Wording and link
   target are untouched and must stay untouched. */
.consent{
  display:flex;gap:12px;align-items:flex-start;font-size:var(--fs-xs);color:var(--faint);
  line-height:var(--lh-sm);border:1px solid var(--line);border-radius:var(--r);
  padding:16px;background:var(--card);max-width:var(--m-legal);
}
.consent input{margin-top:3px;flex-shrink:0;accent-color:var(--accent)}
.consent a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:2px}

/* ---------- 19. FOOTER ---------- */
.ftr{background:var(--surface);border-top:1px solid var(--line);padding-block:clamp(52px,6vw,80px) 34px;margin-top:0}
.ftr-top{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:clamp(28px,4vw,52px);padding-bottom:clamp(38px,5vw,58px)}
@media (max-width:900px){.ftr-top{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.ftr-top{grid-template-columns:1fr}}
.ftr-tag{color:var(--muted);font-size:var(--fs-sm);margin-block:1.1em 1.4em;max-width:34ch}
.ftr-soc{display:flex;gap:16px;font-size:var(--fs-xs)}
.ftr-soc a{color:var(--muted)}.ftr-soc a:hover{color:var(--accent-txt)}
.ftr-col h3{font-size:var(--fs-mono);font-family:var(--f-mono);letter-spacing:var(--idx-ls);text-transform:var(--idx-tt);color:var(--accent-txt);margin-bottom:1.3em;font-weight:500}
.ftr-col li{margin-bottom:.75em;font-size:var(--fs-sm)}
.ftr-col a{color:var(--body)}.ftr-col a:hover{color:var(--accent-txt)}
.ftr-legal{border-top:1px solid var(--line);padding-top:26px;display:flex;gap:22px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.ftr-legal-links{display:flex;gap:20px;font-size:var(--fs-xs)}
.ftr-legal-links a{color:var(--muted)}.ftr-legal-links a:hover{color:var(--accent-txt)}
/* Mandatory finexis attribution — on the scale, at the raised --faint. */
.ftr-attr{font-size:var(--fs-xs);color:var(--faint);margin:0;max-width:var(--m-legal);line-height:var(--lh-sm)}

/* ---------- 20. REVEAL ----------
   THREE belts, because content visibility must never depend on a script.

   1. .rv-on — the inline head script arms a 2.5s timer that reveals
      everything if jlo.js never boots at all (404, blocked, offline).
   2. rv-failsafe — a pure-CSS animation that reveals everything at 3s
      REGARDLESS of whether jlo.js booted. This is the one that matters:
      without it, anything that RENDERS BUT DOES NOT SCROLL sees a blank page
      below the hero, because the IntersectionObserver never fires. That is
      not a hypothetical — it is what a full-page screenshot shows, and it is
      what a crawler or an AI answer engine that renders without scrolling
      would index. On a site whose whole strategy is being quotable, shipping
      a page that reads as empty to a non-scrolling renderer is the worst
      possible failure. The reveal is decoration; the content is the point.
   3. prefers-reduced-motion — no reveal at all, everything visible.        */
.js .rv{opacity:0;transform:translateY(16px);animation:rv-failsafe 1ms linear 3s forwards}
.js.rv-on .rv{opacity:1;transform:none;animation:none}
.js .rv.in{opacity:1;transform:none;animation:none;transition:opacity var(--dur) var(--ease),transform var(--dur) var(--ease)}
@keyframes rv-failsafe{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .js .rv{opacity:1;transform:none;animation:none;transition:none}
}

/* ---------- 21. 404 ---------- */
.nf{padding-block:clamp(90px,14vw,190px);text-align:center}
.nf .idx{justify-content:center}
.nf .ph{margin-inline:auto}
.nf h1{font-size:var(--fs-hero);margin-bottom:.4em}
.nf p{color:var(--muted);max-width:46ch;margin-inline:auto;margin-bottom:2em}

/* pillar body paragraph — sits under the one-line summary in the rail.
   Slightly smaller and quieter than .rail-l so the four-verb progression
   still reads as the primary structure at a glance. */
.rail-b{font-size:var(--fs-sm);color:var(--body);line-height:var(--lh-sm);margin:0}

/* ── Tap targets (qa-sweep cycle 1, mobile) ──────────────────────────────
   Ours that failed the 44px minimum: the finexis PDPA consent link (90x27 —
   compliance text, again, the hardest thing to interact with), the
   "Enter the Collective" / "See the client side" links, and the footer
   link rows. Give links a real touch area without changing the visual. */
@media (max-width:900px){
  /* 44px tap target via an overlay, NOT via min-height on the inline box:
     min-height forced the line box open and tore a visible gap through the
     middle of the PDPA clause. The hit area is now invisible and the
     compliance paragraph reads as one continuous block again. */
  .consent a{position:relative}
  .consent a::after{
    content:"";position:absolute;left:0;right:0;top:50%;height:44px;
    transform:translateY(-50%);
  }
  .track-cta{min-height:44px;padding-block:10px}
  .ftr-col li a,.ftr-legal-links a,.ftr-soc a{display:inline-block;min-height:44px;line-height:44px}
  .ftr-col li{margin-bottom:.15em}
  .nav a{min-height:44px;display:flex;align-items:center}
}

/* Form error summary. A form that silently refuses to submit is the same
   defect as a form that posts into nothing — the visitor learns nothing
   either way. Announced to screen readers via role=alert. */
.form-err{
  border:1px solid var(--accent-line);border-left:3px solid var(--accent);
  background:var(--accent-tint);border-radius:var(--r);padding:14px 16px;
  font-size:var(--fs-sm);color:var(--heading);
}
.form-err strong{display:block;margin-bottom:.4em}
.form-err ul{margin:0;padding-left:1.1em;list-style:disc;color:var(--body)}
.form-err li{margin-bottom:.25em}

/* ---------- 22. TESTIMONIAL RAIL ----------
   The rebuilt widget. The old site needed jQuery + jquery-migrate + Slick +
   a bespoke `adviser-testimonials` WP plugin to render a list of quotes —
   four moving parts, three of them third-party, for text.

   This is CSS scroll-snap. Native scrolling, native touch, native keyboard,
   nothing to load. The arrows in jlo.js are an enhancement; with JS off the
   rail is still fully readable and fully scrollable. (Slick with JS off dumps
   every slide stacked and unstyled.)                                        */
.trail{position:relative}
.trail-track{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,var(--tq-w,360px));
  gap:var(--sp-2);overflow-x:auto;scroll-snap-type:x mandatory;
  padding:2px 2px var(--sp-2);margin-inline:calc(var(--gut) * -1);
  padding-inline:var(--gut);scrollbar-width:none;overscroll-behavior-x:contain;
}
.trail-track::-webkit-scrollbar{display:none}
.trail-track:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.tq{
  scroll-snap-align:start;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:var(--sp-3);display:flex;flex-direction:column;
  gap:var(--sp-2);transition:border-color .25s var(--ease);
}
.tq:hover{border-color:var(--accent-line)}
.tq-q{margin:0;flex:1;position:relative;padding-top:34px}
/* A real typographic quote mark, not an icon font. It sits ABOVE the text on
   its own band — overlapping the first line looked like a rendering fault. */
.tq-q::before{
  content:"\201C";position:absolute;top:0;left:-2px;
  font-family:var(--f-display);font-size:3rem;line-height:.78;
  color:var(--accent-line);pointer-events:none;
}
.tq-q p{
  position:relative;margin:0;font-size:var(--fs-sm);line-height:var(--lh-sm);
  color:var(--body);
}
.tq-more{display:block;margin-top:var(--sp-2)}
.tq-by{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--line);padding-top:var(--sp-2)}
.tq-by b{font-family:var(--f-display);font-weight:var(--display-w);font-size:var(--fs-h3);color:var(--heading)}
.tq-by span{font-size:var(--fs-xs);color:var(--muted)}
.tq-by em{
  font-style:normal;font-family:var(--f-mono);font-size:var(--fs-mono);
  letter-spacing:var(--idx-ls);text-transform:var(--idx-tt);color:var(--accent-txt);margin-top:4px;
}

.trail-nav{display:flex;gap:8px;margin-top:var(--sp-2)}
.trail-btn{
  width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line-2);border-radius:var(--r);background:var(--bg);
  color:var(--heading);cursor:pointer;transition:all .2s var(--ease);
}
.trail-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent-txt)}
.trail-btn:disabled{opacity:.32;cursor:default}
.trail-btn svg{width:15px;height:15px}
@media (prefers-reduced-motion:reduce){.trail-track{scroll-behavior:auto}}

/* ---------- 23. INTERIOR PAGES ----------
   Components the interior pages needed. All specced in FORMAT_SPEC §6.7 and
   built here now that those pages exist. Nothing new in colour or scale. */

/* Compact page head — no image, no glow. Every interior page opens with it. */
.hero-pg{padding-block:clamp(48px,6vw,88px) var(--sp-4)}
/* A section directly under the page head does not need its own top padding —
   the head already carries the space, and doubling it left ~170px of dead air
   between the h1 and the first real content. */
.hero-pg + .sect{padding-top:0}
.hero-pg .idx{margin-bottom:var(--sp-2)}
.hero-pg h1{font-size:var(--fs-h1);line-height:var(--lh-tight);max-width:var(--m-head);
            margin-bottom:var(--sp-3);text-wrap:balance}
.hero-pg p{font-size:var(--fs-lg);line-height:var(--lh-lead);color:var(--muted);
           max-width:var(--m-lead);margin:0}

/* "What this covers" — a register of client questions. */
.needs{display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(24px,3vw,48px);
       border-top:1px solid var(--accent-line)}
.needs li{position:relative;border-bottom:1px solid var(--line);padding-block:var(--sp-3)}
/* The mark that opens each item. It was an 01/02/03 numeral — but this is a set
   of questions, not a sequence, so the number ordered something that has no
   order while taking the most prominent slot in the row. A short accent rule
   marks the start of an item without asserting a rank, and it draws the eye
   down the column the way the numerals never did. */
.needs li::before{
  content:"";position:absolute;top:calc(var(--sp-3) + .5em);left:0;width:18px;height:2px;
  background:var(--accent);opacity:.55;transition:width .3s var(--ease),opacity .3s var(--ease);
}
.needs li:hover::before{width:30px;opacity:1}
.needs b{display:block;color:var(--heading);font-family:var(--f-display);
         font-weight:var(--display-w);letter-spacing:var(--display-ls);
         font-size:var(--fs-h3);line-height:var(--lh-head);margin-bottom:.45em;
         padding-left:34px}
.needs p{margin:0 0 0 34px;font-size:var(--fs-sm);line-height:var(--lh-sm);color:var(--muted)}
@media (max-width:720px){.needs{grid-template-columns:1fr}}

/* ── GROUP HEAD — photograph beside the section heading. Joseph's 28 Jul ask
   ("could we make it more appealing? maybe with pictures?") answered on the
   grid he asked it about. Every photograph is one he already publishes. */
.grp-hd{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
        gap:clamp(26px,4vw,60px);align-items:center;margin-bottom:var(--sp-4)}
.grp-img .slot{border-radius:var(--r);overflow:hidden}
.grp-tx .idx{margin-bottom:var(--sp-1)}
.grp-tx h2{margin-bottom:var(--sp-2)}
.grp-tx .lead{margin:0}
@media (max-width:860px){
  .grp-hd{grid-template-columns:1fr;gap:var(--sp-3)}
  .grp-img{max-width:520px}
}

/* Pull quote — Joseph's own sentence, given room. */
.pq{border-left:2px solid var(--accent);padding:var(--sp-2) 0 var(--sp-2) var(--sp-3);
    margin:var(--sp-5) 0;max-width:var(--m-body)}
.pq p{font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls);
      font-size:var(--fs-lg);line-height:var(--lh-lead);color:var(--heading);margin:0}
.pq cite{display:block;margin-top:var(--sp-2);font-family:var(--f-mono);
         font-size:var(--fs-mono);letter-spacing:var(--idx-ls);text-transform:var(--idx-tt);
         color:var(--accent-txt);font-style:normal}

/* Register total — the one number worth stating on its own. The 7 count tiles
   that stood here were a 4-column grid of the same names and numbers the
   register list carries, and 7 items in a 4-wide grid always left a dead cell. */
.reg-total{font-size:var(--fs-md);color:var(--muted);margin:var(--sp-3) 0 0}
.reg-total b{font-family:var(--f-display);font-weight:var(--display-w);
             letter-spacing:var(--display-ls);font-size:var(--fs-h3);line-height:1;
             color:var(--heading)}

/* As-of stamp — load-bearing on a disclosure, so it is a real dated element. */
.asof{display:inline-flex;align-items:center;gap:.6em;margin-top:var(--sp-3);
      padding:9px 15px;border:1px solid var(--accent-line);border-radius:var(--r);
      background:var(--accent-tint);font-family:var(--f-mono);font-size:var(--fs-mono);
      letter-spacing:var(--idx-ls);color:var(--accent-txt)}

/* Compliance strip — AA contrast, generous measure. */
.legal-strip{border-top:1px solid var(--line);padding-top:var(--sp-3);margin-top:var(--sp-5);
             font-size:var(--fs-xs);line-height:var(--lh-sm);color:var(--faint);max-width:var(--m-legal)}
.legal-strip a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:2px}

/* Cross-reference pointer. */
.xref{display:inline-flex;align-items:center;gap:.6em;padding:var(--sp-2) var(--sp-3);
      border:1px solid var(--line-2);border-radius:var(--r);font-size:var(--fs-sm);color:var(--body)}
.xref:hover{border-color:var(--accent);color:var(--accent-txt)}

/* Numbered process / "what happens next". */
.steps{display:grid;gap:var(--sp-2);counter-reset:s;max-width:var(--m-body)}
.steps li{counter-increment:s;display:grid;grid-template-columns:34px 1fr;gap:var(--sp-2);
          align-items:start;border-top:1px solid var(--line);padding-top:var(--sp-2);
          font-size:var(--fs-sm);color:var(--body);line-height:var(--lh-sm)}
.steps li::before{content:counter(s,decimal-leading-zero);font-family:var(--f-mono);
                  font-size:var(--fs-mono);letter-spacing:var(--idx-ls);color:var(--accent-txt)}

/* Jump links (partners page has two distinct sections that must not merge). */
.jump{display:flex;gap:10px;flex-wrap:wrap;margin-top:var(--sp-3)}
.jump a{padding:9px 16px;border:1px solid var(--line-2);border-radius:999px;
        font-size:var(--fs-sm);color:var(--body)}
.jump a:hover{border-color:var(--accent);color:var(--accent-txt)}

/* Empty state (insights has no posts migrated yet). */
.empty{border:1px dashed var(--line-2);border-radius:var(--r);padding:var(--sp-5) var(--sp-3);
       text-align:center;color:var(--muted);font-size:var(--fs-sm)}

/* ---------- 24. RAIL-MINI — the step indicator on every pillar page ----------
   This is what turns the rail from decoration on the home page into a
   structural device: the same Grow -> Protect -> Preserve -> Transfer run
   appears at the top of all four pillar pages with the current one filled, so
   a reader always knows where they are in the progression. */
.rail-mini{margin-block:0 var(--sp-2)}
.rail-mini .rail-l,.rail-mini .rail-b,.rail-mini .rail-note,.rail-mini .ph{display:none}
.rail-mini .pill-v{height:30px;margin-bottom:var(--sp-2)}
.rail-mini .rail-track{--node-mid:15px}


.rail-mini .rail-t{font-size:var(--fs-sm)}
.rail-mini .rail-i{padding-bottom:0}
/* Current step — filled marker, and the label stops being a link to itself. */
.rail-mini [aria-current="step"] .pill-v{
  background:var(--accent);color:var(--on-accent);border-color:var(--accent);
}
.rail-mini [aria-current="step"] .rail-t{color:var(--accent-txt)}
.rail-mini a.rail-t:hover{color:var(--accent-txt)}
@media (max-width:900px){
  .rail-mini .rail-track{
    grid-auto-flow:column;grid-auto-columns:minmax(140px,1fr);grid-template-columns:none;
    overflow-x:auto;scrollbar-width:none;padding-bottom:var(--sp-2);
    margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);
  }
  .rail-mini .rail-track::-webkit-scrollbar{display:none}
  .rail-mini .rail-track::before{left:var(--gut);right:var(--gut);top:15px;bottom:auto;
    width:auto;height:1px;background:var(--accent-line)}
  .rail-mini .rail-track::after{display:none}
  .rail-mini .rail-i{display:block;padding:0 var(--sp-2) 0 0}
  .rail-mini .rail-i::before{display:none} /* mini stays horizontal on mobile — no spine, no dots */
}

/* Visually-hidden text. Used to announce that a link opens a new tab — the
   compliance links are exactly the ones a careful reader clicks, and a
   screen-reader user otherwise gets no warning that focus has moved. */
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ── §23 REGULATORY REGISTER ─────────────────────────────────────────────
   109 named entities. A <details> per register keeps the page navigable
   without hiding anything from the document — the names are in the DOM
   whether the disclosure is open or shut, because a disclosure that only
   exists after a click is not published. Columns, not grid: the registers
   are alphabetical and grid's row-major order breaks alpha scanning. */
/* THE REGISTER LEDGER. One row per register: the count in a fixed left column
   so all seven numbers align and can be read down as a column, the register
   name and its qualifier, and a +/− marker. This is the whole disclosure — a
   list of names with counts — so it is built as a document, not as tiles. */
.reg-full{margin-block:var(--sp-4)}
.reg{border-top:1px solid var(--line)}
.reg:last-of-type{border-bottom:1px solid var(--line)}
.reg > summary{
  display:grid;grid-template-columns:clamp(58px,6vw,84px) 1fr 22px;
  align-items:baseline;gap:var(--sp-2);
  padding:var(--sp-3) 0;cursor:pointer;list-style:none;min-height:44px;
}
.reg > summary::-webkit-details-marker{display:none}
.reg > summary:hover .reg-nm,.reg[open] > summary .reg-nm{color:var(--accent-txt)}
.reg-ct{
  font-family:var(--f-display);font-weight:var(--display-w);letter-spacing:var(--display-ls);
  font-size:var(--fs-h3);line-height:1;color:var(--heading);
  text-align:right;font-variant-numeric:tabular-nums;
}
.reg-id{display:block}
.reg-nm{display:block;font-weight:600;color:var(--heading);transition:color .3s var(--ease)}
.reg-note{display:block;margin-top:3px;font-size:var(--fs-xs);color:var(--faint)}
/* +/− drawn in CSS: two rules, the vertical one rotated away when open. No icon
   font, no SVG, and it animates from the same token as everything else. */
.reg-x{position:relative;display:block;width:13px;height:13px;justify-self:end;align-self:center}
.reg-x::before,.reg-x::after{
  content:"";position:absolute;left:0;top:6px;width:13px;height:1px;background:var(--accent-txt);
  transition:transform .3s var(--ease);
}
.reg-x::after{transform:rotate(90deg)}
.reg[open] .reg-x::after{transform:rotate(0)}
.reg-list{
  columns:3;column-gap:var(--sp-4);margin:0 0 var(--sp-3);
  padding-left:calc(clamp(58px,6vw,84px) + var(--sp-2) + 1.2em);
  list-style:decimal;font-size:var(--fs-sm);color:var(--body);
}
.reg-list li{break-inside:avoid;margin-bottom:.3em;padding-left:.2em}
@media (max-width:900px){.reg-list{columns:2;padding-left:calc(clamp(58px,6vw,84px) + var(--sp-2) + 1.2em)}}
@media (max-width:560px){.reg-list{columns:1;padding-left:1.6em}}

/* ── §24 ADVISERS ────────────────────────────────────────────────────────
   Built around the constraint: 17 portraits from 2022 at 272px, inconsistent
   crops and backgrounds. A fixed 1:1 frame + object-fit makes them read as
   one set; a monogram fallback means a missing file never renders a gap. */
.adv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-3);margin-top:var(--sp-4);list-style:none;padding:0}
@media (max-width:1000px){.adv-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:720px){.adv-grid{grid-template-columns:repeat(2,1fr)}}
.adv-lk{display:flex;flex-direction:column;gap:var(--sp-1);min-height:44px}
.adv-ph{
  display:block;aspect-ratio:1;overflow:hidden;border-radius:50%;
  background:var(--surface);border:1px solid var(--line);margin-bottom:var(--sp-2);
}
.adv-ph img{width:100%;height:100%;object-fit:cover;object-position:center center;
  transition:transform .4s var(--ease)}
.adv-lk:hover .adv-ph img{transform:scale(1.03)}
.adv-lk:hover .adv-nm{color:var(--accent-txt)}
.adv-mono{
  display:flex;align-items:center;justify-content:center;aspect-ratio:1;
  font-family:var(--f-display);font-size:2.4rem;color:var(--accent-txt);
  background:var(--accent-tint);border:1px solid var(--accent-line);border-radius:50%;
}
.adv-mono-lg{font-size:4rem}
.adv-nm{font-weight:600;color:var(--heading);line-height:1.3}
.adv-sp{font-size:var(--fs-xs);color:var(--muted)}
.adv-rnf{display:block;margin-top:.15em;font-size:var(--fs-xs);color:var(--muted);letter-spacing:.02em}
.adv-rnf-line{color:var(--muted);font-size:var(--fs-xs);margin:-.2em 0 1em;letter-spacing:.02em}
.adv-ask{font-style:normal;color:var(--accent-txt);opacity:.85}

.adv-hero-in{display:grid;grid-template-columns:200px 1fr;gap:var(--sp-4);align-items:center}
@media (max-width:640px){.adv-hero-in{grid-template-columns:1fr;gap:var(--sp-3)}
  .adv-hero-ph{max-width:170px}}
.adv-hero-ph img,.adv-hero-ph .adv-mono{
  width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center center;
  border-radius:50%;border:1px solid var(--line);background:var(--surface);
}
.adv-role{color:var(--muted);margin-bottom:.4em}
.adv-quote-sect{padding-block:var(--sp-4)}
.adv-quote{
  font-family:var(--f-display);font-size:var(--fs-lg);line-height:1.4;color:var(--heading);
  border-left:2px solid var(--accent);padding-left:var(--sp-3);margin:0;max-width:52ch;
}
.adv-body{display:grid;grid-template-columns:1.2fr .8fr;gap:var(--sp-4)}
@media (max-width:820px){.adv-body{grid-template-columns:1fr}}
.adv-creds{list-style:none;padding:0;margin:var(--sp-2) 0 var(--sp-2)}
.adv-creds li{
  padding:var(--sp-2) 0;border-bottom:1px solid var(--line);
  font-size:var(--fs-sm);color:var(--body);
}
.adv-creds li:first-child{border-top:1px solid var(--line)}

/* ── §25 TESTIMONIAL WIDGET (his adviser-testimonials plugin, rebuilt) ────
   Adds what the old Slick slider had and the first rebuild dropped: the star
   rating and the testimonial headline. Data is his own — 66 client-written,
   consented, 5-star testimonials from the WordPress DB. No jQuery, no Slick. */
.stars{display:inline-flex;gap:2px;margin-bottom:var(--sp-1)}
.star{width:16px;height:16px;fill:var(--line-2);flex:none}
.star.on{fill:#E8A93B}          /* a warm gold, review-star convention — not a brand colour, so it reads as a rating not decoration */
.tq-h{
  font-family:var(--f-display);font-weight:var(--display-w);font-size:var(--fs-h3);
  color:var(--heading);line-height:var(--lh-sm);margin:0;
}
/* With a headline present the big quote-mark band is redundant — pull the body up. */
.tq:has(.tq-h) .tq-q{padding-top:var(--sp-1)}
.tq:has(.tq-h) .tq-q::before{display:none}
.tq:has(.stars) .tq-q p{color:var(--body)}

/* ── §25b TESTIMONIAL PHOTO + VARIANTS ────────────────────────────────────
   The "picture" the original widget showed, plus the two shapes Marxk asked
   for: FULL (adviser page — photo left, whole quote, roomy so it's never a
   crowded 4-up) and COMPACT (home — a tight review card, truncated). All new
   selectors are namespaced under .trail--full / .trail--compact / .tq-* so
   nothing else can regress. */
/* Fixed track widths — minmax() lets wrappable text collapse a card to its
   280px min, which is exactly the crowded 4-up we're fixing. Pin the width so
   FULL is genuinely roomy (one card + a peek) and COMPACT is a tidy strip. */
.trail--full    .trail-track{grid-auto-columns:min(92vw,540px)}
.trail--compact .trail-track{grid-auto-columns:min(84vw,360px)}

.tq-ph{
  width:88px;height:88px;border-radius:50%;object-fit:cover;object-position:center 22%;
  flex:none;background:var(--surface);border:1px solid var(--line);
}
.tq-ph--mono{                    /* no-photo fallback — a clean initials ring, never a broken img */
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--f-display);font-weight:var(--display-w);font-size:var(--fs-h2);
  color:var(--accent-txt);background:var(--accent-tint);border-color:var(--accent-line);
}

/* FULL — photo on the left, the complete quote (the widget Joseph built). */
.trail--full .tq{flex-direction:row;align-items:flex-start;gap:var(--sp-3)}
.trail--full .tq-face{flex:none}
.trail--full .tq-main{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0;flex:1}
@media(max-width:560px){
  .trail--full .tq{flex-direction:column}
  .trail--full .tq-ph{width:64px;height:64px}
}

/* COMPACT — tight review card: stars, a clamped quote, face beside the name. */
.trail--compact .tq-main{display:flex;flex-direction:column;gap:var(--sp-2)}
.trail--compact .tq-q{padding-top:0}
.trail--compact .tq-q::before{display:none}
.trail--compact .tq-q p{
  display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;
}
.trail--compact .tq-by{flex-direction:row;align-items:center;gap:var(--sp-2)}
.trail--compact .tq-ph{width:48px;height:48px}
.trail--compact .tq-ph--mono{font-size:var(--fs-h3)}
.trail--compact .tq-id{display:flex;flex-direction:column;gap:2px;min-width:0}

/* ── §26 TEAM FACES (home specialists) — replaces the repeated hero photo ── */
.team-faces{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-1);max-width:420px}
.tf{aspect-ratio:1;overflow:hidden;border-radius:var(--r);background:var(--surface);border:1px solid var(--line)}
.tf img{width:100%;height:100%;object-fit:cover;object-position:center 20%;transition:transform .4s var(--ease)}
.team-faces:hover .tf img{transform:scale(1.04)}
.tf-more{display:flex;align-items:center;justify-content:center;font-family:var(--f-display);
  font-size:var(--fs-h2);color:var(--accent-txt);background:var(--accent-tint);border-color:var(--accent-line)}

/* ── §27 BRAND — the design-system reference page (/brand) ─────────────────
   Layout used ONLY by pages/brand.php. ADDITIVE: touches no existing selector,
   so nothing else on the site can regress. Every value resolves through an
   existing token — the swatch FILLS, the type specimens and the spacing bars
   are all var(--*), set inline on the element from PHP, so this page can never
   drift from the live system: edit a token in §2 and /brand repaints with it.
   All new selectors are namespaced .bd-* to guarantee no collision. */

/* Intro system-map — the three directions, one live. */
.bd-map{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:var(--sp-4)}
@media(max-width:720px){.bd-map{grid-template-columns:1fr}}
.bd-map-i{background:var(--bg);padding:var(--sp-3)}
.bd-map-i b{display:block;font-family:var(--f-display);font-weight:var(--display-w);
  letter-spacing:var(--display-ls);font-size:var(--fs-h3);color:var(--heading);margin-bottom:.4em}
.bd-map-i span{font-size:var(--fs-sm);color:var(--muted);line-height:var(--lh-sm)}
.bd-map-i em{display:block;margin-top:.8em;font-style:normal;font-family:var(--f-mono);
  font-size:var(--fs-mono);letter-spacing:var(--idx-ls);text-transform:uppercase;color:var(--accent-txt)}

/* Shared caption + note + inline mono, reused across the page. */
.bd-cap{display:block;font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:var(--idx-ls);
  text-transform:uppercase;color:var(--accent-txt)}
.bd-note{font-size:var(--fs-xs);color:var(--faint);line-height:var(--lh-sm);max-width:var(--m-legal);margin-top:var(--sp-2)}
.bd-mono{font-family:var(--f-mono);font-size:.9em;color:var(--accent-txt)}

/* Spec table — logo rules, line-height. */
.bd-tbl{width:100%;border-collapse:collapse;margin-top:var(--sp-3);font-size:var(--fs-sm)}
.bd-tbl th,.bd-tbl td{text-align:left;padding:var(--sp-2);border-top:1px solid var(--line);
  vertical-align:baseline;color:var(--body);line-height:var(--lh-sm)}
.bd-tbl thead th{border-top:0;font-family:var(--f-mono);font-size:var(--fs-mono);
  letter-spacing:var(--idx-ls);text-transform:uppercase;color:var(--accent-txt);font-weight:500}
.bd-tbl td:first-child{color:var(--heading);font-weight:600;white-space:nowrap}

/* Logo lockup demos — mark on light and on the accent fill. */
.bd-lockups{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-2)}
@media(max-width:640px){.bd-lockups{grid-template-columns:1fr}}
.bd-lockup{border:1px solid var(--line);border-radius:var(--r);padding:var(--sp-4) var(--sp-3);
  display:flex;align-items:center;justify-content:center;min-height:120px}
.bd-lockup--light{background:var(--card)}
.bd-lockup--accent{background:var(--accent);border-color:var(--accent)}
.bd-lockup--accent .logo-wm{color:var(--on-accent)}
.bd-lockup--accent .logo-wm b{color:var(--on-accent)}
.bd-lockup--accent .logo-rule{background:color-mix(in oklab,var(--on-accent) 45%,transparent)}

/* Accent hero — the #00498E story panel. */
.bd-accent-hero{display:grid;grid-template-columns:210px 1fr;gap:0;align-items:stretch;
  border:1px solid var(--accent-line);border-radius:var(--r);overflow:hidden;
  background:var(--card);margin-bottom:var(--sp-4)}
@media(max-width:640px){.bd-accent-hero{grid-template-columns:1fr}}
.bd-accent-chip{min-height:170px;display:flex;align-items:flex-end;padding:var(--sp-3)}
.bd-accent-chip b{font-family:var(--f-mono);font-size:var(--fs-sm);color:var(--on-accent);letter-spacing:.03em}
.bd-accent-txt{padding:var(--sp-3)}
.bd-accent-txt p{margin:0 0 .8em;font-size:var(--fs-sm);color:var(--body);line-height:var(--lh-body);max-width:var(--m-body)}
.bd-accent-txt p:last-child{margin-bottom:0}
.bd-accent-txt b{color:var(--heading)}

/* Swatch grid — every chip fill is a live token, set inline. */
.bd-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-2)}
@media(max-width:900px){.bd-swatches{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.bd-swatches{grid-template-columns:1fr}}
.bd-sw{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--card)}
.bd-sw-chip{height:88px;display:flex;align-items:flex-start;justify-content:flex-end;padding:9px}
.bd-sw-chip span{font-family:var(--f-mono);font-size:.6rem;letter-spacing:.06em;padding:2px 6px;border-radius:2px}
.bd-sw--ink-light .bd-sw-chip span{color:var(--on-accent);background:color-mix(in oklab,#000 26%,transparent)}
.bd-sw--ink-dark .bd-sw-chip span{color:var(--heading);background:color-mix(in oklab,#fff 55%,transparent)}
.bd-sw-meta{padding:var(--sp-2);border-top:1px solid var(--line)}
.bd-sw-role{display:block;font-weight:600;color:var(--heading);font-size:var(--fs-sm);margin-bottom:2px}
.bd-sw-hex{font-family:var(--f-mono);font-size:var(--fs-xs);color:var(--muted)}
.bd-sw-ratio{display:block;margin-top:.5em;font-family:var(--f-mono);font-size:var(--fs-mono);
  letter-spacing:var(--idx-ls);color:var(--accent-txt)}

/* Type specimen rows — sample rendered at the live token size. */
.bd-type-row{display:grid;grid-template-columns:212px 1fr;gap:var(--sp-3);align-items:baseline;
  padding:var(--sp-3) 0;border-top:1px solid var(--line)}
@media(max-width:720px){.bd-type-row{grid-template-columns:1fr;gap:var(--sp-1);align-items:start}}
.bd-type-spec b{display:block;font-family:var(--f-mono);font-size:var(--fs-xs);color:var(--heading);letter-spacing:.02em}
.bd-type-spec span{display:block;font-family:var(--f-mono);font-size:var(--fs-mono);
  letter-spacing:var(--idx-ls);text-transform:uppercase;color:var(--accent-txt);margin-top:4px}
.bd-type-spec em{display:block;font-style:normal;font-size:var(--fs-xs);color:var(--muted);
  margin-top:6px;line-height:var(--lh-sm)}
.bd-type-sample{color:var(--heading);min-width:0;overflow-wrap:break-word;margin:0}

/* Measure bars. */
.bd-measures{display:grid;gap:var(--sp-3);margin-top:var(--sp-1)}
.bd-measure b{font-family:var(--f-mono);font-size:var(--fs-xs);color:var(--heading)}
.bd-measure-bar{height:10px;background:var(--accent-soft);border:1px solid var(--accent-line);
  border-radius:2px;margin-top:7px}

/* Spacing bars — drawn at the live token width. */
.bd-space{display:grid;gap:var(--sp-3);margin-top:var(--sp-1)}
.bd-space-row{display:grid;grid-template-columns:212px 1fr;gap:var(--sp-3);align-items:center}
@media(max-width:720px){.bd-space-row{grid-template-columns:1fr;gap:var(--sp-1)}}
.bd-space-spec b{display:block;font-family:var(--f-mono);font-size:var(--fs-xs);color:var(--heading)}
.bd-space-spec span{font-family:var(--f-mono);font-size:var(--fs-mono);letter-spacing:.1em;color:var(--accent-txt)}
.bd-space-spec em{display:block;font-style:normal;font-size:var(--fs-xs);color:var(--muted);margin-top:4px}
.bd-space-bar{height:22px;max-width:100%;background:var(--accent);border-radius:2px}
.bd-space-bar--y{height:38px;background:var(--accent-line)}

/* ══ j-0904 (mei, 2026-10-15) · Joseph 14 Sep: "words are too much and still a bit plain" ══
   Additive only. Existing tokens only (--heading is the brand navy #0A1F3C, --accent
   the logo blue); no new colours, no gold (there is no gold token in this direction).
   1. .sect-ink: one dark navy ground per page, so the rhythm alternates
      light / tone / DARK instead of near-white sections stacked one after another.
   2. Pillar cards end on the same "Read more" line, so the three columns align.
   3. MOBILE RAIL FIX: `.rail-i + .rail-i{padding-left:0}` (0,2,0) beat the mobile
      `.rail-i` indent (0,1,0), so items 2+ sat ON the vertical spine at 390. */
.sect-ink{background:var(--heading);border-top:0}
.sect-ink > .wrap{
  --heading:#FFFFFF;
  --body:color-mix(in oklab,#FFFFFF 86%,transparent);
  --muted:color-mix(in oklab,#FFFFFF 74%,transparent);
  --faint:color-mix(in oklab,#FFFFFF 66%,transparent);
  --line:color-mix(in oklab,#FFFFFF 16%,transparent);
  --accent-line:color-mix(in oklab,#FFFFFF 34%,transparent);
  --accent-txt:color-mix(in oklab,var(--accent-hi) 38%,#FFFFFF);
  --bg:color-mix(in oklab,#FFFFFF 4%,transparent);
  --surface:color-mix(in oklab,#FFFFFF 9%,transparent);
  color:var(--body);
}
.sect-ink h2,.sect-ink h3{color:var(--heading)}
.sect-ink .idx::before{background:var(--accent-line)}
.sect-ink .tracks{background:transparent;border:0;gap:var(--sp-2);overflow:visible}
.sect-ink .track{background:var(--bg);border:1px solid var(--line);border-radius:var(--r)}
.sect-ink .track:hover{background:var(--surface)}
.sect-ink .track-cta{color:var(--heading)}
.sect-ink .legal-strip{color:var(--muted);border-top-color:var(--line)}
.sect-ink .legal-strip a,.sect-ink .xref{color:var(--heading)}
.sect-ink .xref{border-color:var(--accent-line)}
.sect-ink .sect-hd h2{max-width:22ch}
.sect-tone + .sect-ink,.sect-ink + .sect-tone{border-top:0}

.rail-i{display:flex;flex-direction:column}
.rail-i > .pill-v,.rail-i > .rail-t{align-self:flex-start}
.rail-more{margin:var(--sp-2) 0 0;margin-top:auto;padding-top:var(--sp-2)}
.rail-b{font-size:var(--fs-md);line-height:var(--lh-body)}
@media (max-width:900px){
  .rail-i,.rail-i + .rail-i{padding-left:34px}
  .rail-more{margin-top:var(--sp-2);padding-top:0}
}
@media (max-width:560px){
  .rail-i,.rail-i + .rail-i{padding-left:28px}
}
/* ...but never on the horizontal mini rail (pillar pages): it keeps its own spacing. */
@media (max-width:900px){.rail-mini .rail-i,.rail-mini .rail-i + .rail-i{padding:0 var(--sp-2) 0 0}}
.rail-more .track-cta{margin-top:0}

/* ══ 2026-11 · LANGUAGE TOGGLE + CHINESE (zh-Hans) TYPOGRAPHY ═════════════════
   Additive only; existing tokens only; nothing here applies to <html lang="en-SG">
   except the toggle itself.

   TOGGLE. "EN / 中文" sits at the end of .nav, so it rides the desktop row and
   the mobile dropdown and adds nothing to the 390px header bar (the bar is
   already spent: lockup + short CTA + burger — see the .hdr-cta-short note in §6).
   The current language is a marked <span aria-current>; the other is the link.
   No flags, no colour of its own.

   CHINESE. Zero external requests, no new font files: a system CJK stack is
   APPENDED behind the existing families, so Latin (names, brand, figures) still
   renders in Inter / Playfair and only the Han glyphs fall through to the system.
   Tracking, uppercase and tight line-heights that suit Latin caps damage Han
   text, so they are relaxed. `ch` is the advance of "0", about half a Han glyph,
   so the measure tokens are widened to keep ~18 / ~35 / ~38 characters a line. */
.lang{
  display:inline-flex;align-items:center;gap:.45em;margin-left:6px;padding-left:22px;
  border-left:1px solid var(--line);font-size:var(--fs-xs);letter-spacing:.06em;line-height:1;white-space:nowrap;
}
.nav .lang a{padding-block:4px;color:var(--muted)}
.nav .lang a:hover{color:var(--heading)}
.lang [aria-current]{color:var(--heading);font-weight:600;padding-block:4px}
.lang-sep{color:var(--line-2)}
@media (min-width:961px) and (max-width:1180px){
  .nav{gap:18px}
  .lang{margin-left:0;padding-left:14px}
}
@media (max-width:960px){
  .nav .lang{margin:0;padding:15px 0;border-left:0;font-size:var(--fs-sm);gap:.7em}
  .nav .lang a{padding:0;border-bottom:0;min-height:44px;display:inline-flex;align-items:center;font-size:var(--fs-sm)}
  .lang [aria-current]{padding:0}
}
/* j-2366-u5 (mei) fixes, found by real-browser renders on staging-jlo.
   1) English header at 961-1060px: the toggle (+~80px) pushes the nav past its row, one link wraps (header 77 -> 83px) and the
      long CTA ends 8px past the viewport at 961px. Same range, the short CTA label (already used under 960px) and tighter nav fit.
      Chinese already fits (short labels). */
@media (min-width:961px) and (max-width:1060px){
  .nav{gap:14px}
  .nav > a{white-space:nowrap}
  .lang{padding-left:10px}
  .hdr-cta-long{display:none}
  .hdr-cta-short{display:inline}
}
/* 2) Toggle tap target: the EN link is 18x21 on desktop and 20x44 in the 390px menu. Give both at least 24x24 (WCAG 2.5.8) and
      44x44 inside the mobile menu, without moving the layout: padding grows, negative margin takes it back. */
.nav .lang a,.lang [aria-current]{padding:6px 5px;margin:-6px -5px}
@media (max-width:960px){
  .nav .lang a{min-width:44px;justify-content:center;padding:0;margin:0}
  .lang [aria-current]{padding:0;margin:0}
}

html[lang^="zh"][data-dir="continuity"],
html[lang^="zh"][data-dir="clarity"]{
  --f-display:'Playfair Display',Georgia,"Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif;
  --f-body:'Inter',system-ui,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
}
html[lang^="zh"][data-dir="collective"]{
  --f-display:'Manrope','Inter',system-ui,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
  --f-body:'Manrope','Inter',system-ui,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
}
html[lang^="zh"]{
  --f-mono:ui-monospace,SFMono-Regular,Menlo,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",monospace;
  --idx-ls:.06em;          /* eyebrow labels: .16em tracking spaces Han glyphs apart */
  --idx-tt:none;           /* no forced caps on mixed Han / Latin eyebrows */
  --display-ls:0;          /* Latin display faces track negative; Han glyphs collide */
  --lh-tight:1.25; --lh-head:1.32; --lh-lead:1.7; --lh-body:1.85; --lh-sm:1.7;
  --m-head:32ch; --m-lead:64ch; --m-body:70ch; --m-legal:84ch;
  line-break:strict;
}
html[lang^="zh"] :is(h1,h2,h3,.lead,.hero-sub){text-wrap:balance}
html[lang^="zh"] em,html[lang^="zh"] i,html[lang^="zh"] cite{font-style:normal}
/* 3) Chinese paragraphs: 18 of them end on a one- or two-character last line ("人。", "的。") at 390 and 1440. text-wrap:pretty (Chrome 117+,
      Safari 26; ignored elsewhere, harmless) rebalances the last lines: 18 -> 3 measured on the live pages. */
html[lang^="zh"] :is(p,li,blockquote,figcaption){text-wrap:pretty}
