/* ==========================================================================
   Assured Equity - the design.

   Tokens live in style.css section 1. Every colour here is a var(--token).

   Contents
     1  Base
     2  Motion primitives (all hidden states are scoped to html.js)
     3  Header + takeover navigation
     4  Homepage: hero, intro, focus areas, who we serve, growing or dying
     5  Interior hero
     6  About + team + single bio
     7  Services
     8  Contact
     9  Footer
    10  Generic page + 404
    11  Small screens
    12  Reduced motion
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
:root { --navy: var(--color-primary); --slate: var(--color-secondary); --ink: var(--color-text); --gold: var(--color-accent); --paper: var(--color-paper); --sand: var(--color-sand); }
*, *::before, *::after { box-sizing: border-box; }
/* Anchor links glide to their target instead of jumping (the Services trail, the menu's #history / #team /
   tier links). scroll-padding keeps the target clear of the fixed header and the sticky trail. Section 12
   switches this back to an instant jump for visitors who ask for reduced motion. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--navy); overflow-x: clip; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
p + p { margin-top: 1.1em; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: .005em; text-wrap: balance; }
/* No orphans: headings balance their lines; running copy avoids a one-word last line. main.js also binds the
   last two words of each paragraph and list item with a no-break space, for browsers without text-wrap: pretty. */
p, li { text-wrap: pretty; }
.foot .ph > p, .team-card h3, .notfound .body { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.on-light :focus-visible { outline-color: var(--navy); }
.wrap { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.on-light { background: var(--paper); color: var(--ink); }
.on-light h2, .on-light h3 { color: var(--navy); }
.on-sand { background: var(--sand); }
.on-dark { background: var(--navy); color: var(--color-white); }
section { position: relative; z-index: 2; }
section[tabindex="-1"]:focus { outline: none; } /* focus is moved here by an anchor link; the section itself is not a control */

/* the brand's square + rule, used ahead of headings */
.mark { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1.3 var(--font-heading); letter-spacing: .2em; text-transform: uppercase; }
.mark::before { content: ""; width: 10px; height: 10px; background: var(--gold); flex: none; }
.mark::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .5; flex: none; transform-origin: left; transition: transform 1s var(--ease) .2s; }
.sq { position: absolute; border: 3px solid var(--gold); pointer-events: none; aspect-ratio: 1; }
.text-link { font: 600 17px var(--font-heading); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; transition: gap .4s var(--ease), background-size .4s var(--ease); }
.text-link::after { content: ""; width: 10px; height: 10px; border: 2px solid var(--gold); transition: transform .5s var(--ease), background .3s; }
.text-link:hover, .text-link:focus-visible { gap: 18px; }
.text-link:hover::after, .text-link:focus-visible::after { transform: rotate(45deg); background: var(--gold); }

/* 2. Motion primitives --------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.mark:not(.in)::after { transform: scaleX(0); }
.js [data-split] { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.w > i { display: inline-block; font-style: inherit; }
.js .w > i { transform: translateY(115%); transition: transform 1s var(--ease) calc(var(--d, 0s) + var(--i) * 55ms); }
.js .in .w > i { transform: none; }
/* .up: children of an observed .io container, revealed together when it enters */
.up { transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .io .up { opacity: 0; transform: translateY(34px); }
.js .io.in .up { opacity: 1; transform: none; }
@keyframes rise { from { transform: translateY(115%); } }
@keyframes draw-x { from { transform: scaleX(0); } }

/* a layered photo stack that floats in once its images have decoded */
.stack { position: relative; aspect-ratio: 5 / 4; }
.stack .p1 { position: absolute; inset: 0 14% 12% 0; overflow: hidden; }
.stack .p2 { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; overflow: hidden; box-shadow: 0 24px 60px rgba(13, 14, 32, .25); translate: 0 calc((var(--p, .5) - .5) * -110px); }
.stack img { width: 100%; height: 100%; object-fit: cover; }
/* the gold frame: the main photo's own outline, set back and off to one corner, as on the team cards and the menu photo.
   It comes first in the markup, so it sits behind both photographs, and drifts a little as the section scrolls. */
.stack .fr { --fo: clamp(12px, 1.6vw, 24px); position: absolute; inset: 0 14% 12% 0; border: 3px solid var(--gold); pointer-events: none; translate: calc(var(--fo) * -1) calc(var(--fo) * -1 + (var(--p, .5) - .5) * 30px); }
.stack.flip .p1, .stack.flip .fr { inset: 0 0 12% 14%; } .stack.flip .p2 { right: auto; left: 0; } .stack.flip .fr { translate: var(--fo) calc(var(--fo) * -1 + (var(--p, .5) - .5) * 30px); }
.js .stack img { transform: scale(1.14); transition: transform 2.2s var(--ease); }
.js .stack .p1, .js .stack .p2, .js .stack .fr { opacity: 0; transition: opacity 1.2s ease var(--fd, 0s), transform 1.7s var(--ease) var(--fd, 0s); }
.js .stack .p1 { transform: translateY(70px); }
.js .stack .p2 { transform: translate(50px, 130px); --fd: .3s; }
.js .stack.flip .p2 { transform: translate(-50px, 130px); }
.js .stack .fr { transform: translate(var(--fo), calc(var(--fo) + 70px)); --fd: .5s; } /* starts square behind the photo, then slides out */
.js .stack.flip .fr { transform: translate(calc(var(--fo) * -1), calc(var(--fo) + 70px)); }
.js .stack.in .p1, .js .stack.in .p2, .js .stack.in .fr { opacity: 1; transform: none; }
.js .stack.in img { transform: none; }

/* 3. Header + takeover navigation ---------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); transition: background .4s, padding .4s var(--ease); }
.site-header.is-compact { background: rgba(13, 14, 32, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; }
.site-logo { display: block; }
.site-logo img { width: clamp(132px, 13vw, 176px); }
.menu-toggle { display: flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--color-white); cursor: pointer; font: 600 15px/1 var(--font-heading); letter-spacing: .2em; text-transform: uppercase; padding: 10px 0 10px 10px; }
.menu-toggle-sq { position: relative; width: 44px; height: 44px; border: 2px solid var(--gold); transition: transform .5s var(--ease), background .3s; }
.menu-toggle-sq::before, .menu-toggle-sq::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--color-white); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle-sq::before { top: 15px; } .menu-toggle-sq::after { top: 24px; }
.menu-toggle:hover .menu-toggle-sq { transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-sq { transform: rotate(180deg); background: rgba(235, 200, 113, .12); }
.menu-toggle[aria-expanded="true"] .menu-toggle-sq::before { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-sq::after { top: 19px; transform: rotate(-45deg); }
html:not(.js) .menu-toggle { display: none; }

/* the square opens: the panel is clipped to the menu button's square, then to the whole screen */
.site-nav { background: var(--navy); color: var(--color-white); }
.js .site-nav { position: fixed; inset: 0; z-index: 55; visibility: hidden; overflow-y: auto;
  clip-path: inset(18px var(--gutter) calc(100% - 62px) calc(100% - var(--gutter) - 44px));
  transition: clip-path .8s var(--ease), visibility 0s .8s; }
.js .site-nav.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .8s var(--ease), visibility 0s; }
.site-nav-in { min-height: 100%; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 96px); align-items: center; padding: 120px var(--gutter) 40px; max-width: var(--container-max); margin: 0 auto; }
.site-nav-list, .site-nav-list ul { list-style: none; margin: 0; padding: 0; }
.site-nav-list > li { border-top: 1px solid rgba(255, 255, 255, .14); padding: clamp(8px, 1.7vh, 22px) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px; container-type: inline-size; }
.js .site-nav-list > li { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js .site-nav.is-open .site-nav-list > li { opacity: 1; transform: none; transition-delay: .25s; }
.js .site-nav.is-open .site-nav-list > li:nth-child(2) { transition-delay: .33s; }
.js .site-nav.is-open .site-nav-list > li:nth-child(3) { transition-delay: .41s; }
.js .site-nav.is-open .site-nav-list > li:nth-child(4) { transition-delay: .49s; }
.js .site-nav.is-open .site-nav-list > li:nth-child(5) { transition-delay: .57s; }
/* 9.4cqw: five rows have to share the height of a laptop screen */
.site-nav-list > li > a { white-space: nowrap; font: 800 9.4cqw/.9 var(--font-heading); text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .25em; transition: color .3s, transform .5s var(--ease); }
.site-nav-list > li > a::before { content: ""; width: .2em; height: .2em; background: var(--gold); transform: scale(0); transition: transform .4s var(--ease); flex: none; }
.site-nav-list > li > a:hover, .site-nav-list > li > a:focus-visible, .site-nav-list > .current-menu-item > a { color: var(--gold); transform: translateX(10px); }
.site-nav-list > li > a:hover::before, .site-nav-list > li > a:focus-visible::before, .site-nav-list > .current-menu-item > a::before { transform: scale(1); }
.site-nav-list .sub-menu { display: grid; gap: 6px; }
.site-nav-list .sub-menu a { font: 600 16px/1.3 var(--font-heading); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .78); transition: color .2s; }
.site-nav-list .sub-menu a:hover, .site-nav-list .sub-menu a:focus-visible { color: var(--gold); }
.site-nav-list .is-label > a { cursor: default; }
/* Client Logins: its own row, a utility rather than a destination - a small gold label, then each login as a
   square-cornered button that fills gold on hover, the same colour change every other link in the menu makes. */
.site-nav-list > .is-logins { grid-template-columns: auto minmax(0, 1fr); }
.site-nav-list > .is-logins > a, .site-nav-list > .is-logins > a:hover, .site-nav-list > .is-logins > a:focus-visible { font: 600 16px/1.3 var(--font-heading); letter-spacing: .2em; color: var(--gold); gap: 12px; transform: none; }
.site-nav-list > .is-logins > a::before { width: 10px; height: 10px; transform: none; }
.site-nav-list > .is-logins > .sub-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-nav-list > .is-logins .sub-menu a { display: block; padding: 11px 16px 10px; border: 2px solid var(--gold); font-size: 15px; line-height: 1; color: var(--color-white); transition: background .3s, color .3s; }
.site-nav-list > .is-logins .sub-menu a:hover, .site-nav-list > .is-logins .sub-menu a:focus-visible { background: var(--gold); color: var(--navy); }
.site-nav-art { position: relative; aspect-ratio: 1; justify-self: center; width: min(100%, 60vh); }
.site-nav-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .7s, transform 1.4s var(--ease); }
.site-nav-art img.is-on { opacity: 1; transform: none; }
/* the gold frame is the photograph's own outline, set back and down to the right - not a small square on top of it */
.site-nav-art::after { content: ""; position: absolute; inset: 0; z-index: -1; translate: 24px 24px; border: 3px solid var(--gold); pointer-events: none; transition: translate 1s var(--ease) .3s; }
.js .site-nav:not(.is-open) .site-nav-art::after { translate: 0 0; }
.site-nav-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 15px; color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; }
.site-nav-foot a { text-decoration: none; }
.site-nav-foot a:hover { color: var(--gold); }
html:not(.js) .site-nav-in { padding-top: 120px; } html:not(.js) .site-nav-art { display: none; }

/* 4. Homepage ------------------------------------------------------------ */
/* hero: full-bleed looping video; the headline rises and fades as you scroll. Runs edge to edge by design. */
.hero { height: 185vh; position: relative; z-index: 1; }
.hero .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--navy); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(calc(1.02 + var(--p, 0) * .16)); animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { filter: brightness(.4) saturate(.6); scale: 1.12; } }
.hero .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 14, 32, .45), transparent 35%, rgba(13, 14, 32, .78)); }
/* the headline holds still while the hero is pinned, so the rail has something to arrive at */
.hero h1 { position: absolute; z-index: 2; left: 0; bottom: 7vh; width: 100%; text-align: center; white-space: nowrap; color: var(--color-white); font-size: clamp(50px, 10.8vw, 230px); line-height: .88; }
.js .hero h1 .w > i { animation: rise 1.2s var(--ease) calc(.5s + var(--i) * 45ms) both; transform: none; }
/* the rail: a line down the left edge. Scrolling carries the gold square down it, then round the corner and
   along to the B of "Build", level with the middle of the letters, where it stops. main.js measures the
   headline and sets --rh (the drop), --rw (the run) and --split (how much of the scroll the drop takes). */
.rail { position: absolute; z-index: 2; left: var(--gutter); top: clamp(104px, 17vh, 190px); width: var(--rw, 0px); height: var(--rh, 46vh); pointer-events: none;
  --t: clamp(0, calc(var(--p, 0) / .8), 1);
  --pv: clamp(0, calc(var(--t) / var(--split, .75)), 1);
  --ph: clamp(0, calc((var(--t) - var(--split, .75)) / (1 - var(--split, .75))), 1); }
.rail::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: rgba(255, 255, 255, .3); transform-origin: top; animation: draw-y 2s var(--ease) 1s both; }
.rail-v, .rail-h { position: absolute; left: 0; background: var(--gold); }
.rail-v { top: 0; width: 2px; height: 100%; transform-origin: top; transform: scaleY(var(--pv)); }
.rail-h { bottom: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--ph)); }
.rail-sq { position: absolute; left: -6px; top: -6px; width: 13px; height: 13px; background: var(--gold); translate: calc(var(--ph) * var(--rw, 0px)) calc(var(--pv) * var(--rh, 46vh)); animation: fade 1s ease 1.6s both; }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; } }

/* intro (Tier 1): small type against one oversized, photo-filled figure */
.intro { padding: clamp(80px, 11vw, 170px) 0; }
.intro .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.intro .lead { container-type: inline-size; }
.intro h2 { font-size: 14.2cqw; line-height: .92; margin-top: 22px; }
.intro h2 .ln { display: block; white-space: nowrap; }
.intro h2 .yr { display: block; width: max-content; font-size: 58cqw; line-height: .82; margin: .08em 0 0; color: transparent; background: center / cover; background-position: 50% calc(var(--p, .5) * 100%); -webkit-background-clip: text; background-clip: text; }
/* the year comes alive as it enters: main.js counts it up to 1989 while the photograph inside pulls back from a
   close crop, then keeps drifting slowly from side to side behind the numerals */
.js .intro h2 .yr { background-size: 135% auto; }
.js .intro h2.in .yr { animation: yr-zoom 2.8s var(--ease) both, yr-pan 18s ease-in-out infinite alternate; }
@keyframes yr-zoom { from { background-size: 300% auto; } }
@keyframes yr-pan { from { background-position-x: 0%; } to { background-position-x: 100%; } }
.intro .body { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.8; }

/* focus areas (Tier 2): gates that swing open. Caps at 1700px, wider than the shared container, by design. */
.focus { padding: clamp(70px, 9vw, 130px) var(--gutter); }
.gates { display: flex; gap: 10px; height: min(82vh, 820px); max-width: 1700px; margin: 0 auto; }
.gate { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .9s var(--ease); }
.gate.is-open { flex-grow: 6.5; }
.gate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); filter: grayscale(.7) brightness(.55); transition: transform 1.6s var(--ease), filter .9s; }
.gate.is-open > img { transform: scale(1.04); filter: brightness(.82); }
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 14, 32, .15), rgba(13, 14, 32, .88)); opacity: .55; transition: opacity .8s; pointer-events: none; }
.gate.is-open::after { opacity: 1; background: linear-gradient(90deg, rgba(13, 14, 32, .93) 0, rgba(13, 14, 32, .78) 46%, rgba(13, 14, 32, .1)); }
.gate-tab { position: absolute; z-index: 3; inset: 0; width: 100%; padding: 26px 0; border: 0; background: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: opacity .4s; }
.gate-tab:focus-visible { outline-offset: -6px; }
.gate-tab b { font: 600 24px/1 var(--font-heading); color: var(--gold); letter-spacing: .06em; }
.gate-tab em { writing-mode: vertical-rl; rotate: 180deg; font: 800 clamp(26px, 2.5vw, 42px)/1 var(--font-heading); font-style: normal; text-transform: uppercase; white-space: nowrap; letter-spacing: .02em; }
.gate-tab i { width: 14px; height: 14px; border: 2px solid var(--gold); transition: transform .6s var(--ease); }
.gate-tab:hover i { transform: rotate(90deg) scale(1.3); }
.gate.is-open .gate-tab { opacity: 0; pointer-events: none; }
.gate-leaf { position: absolute; z-index: 2; inset: 0 auto 0 0; width: min(660px, 56vw); padding: clamp(28px, 3.6vw, 60px); display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateX(-30px); transition: opacity .35s, transform .6s var(--ease), visibility 0s .6s; visibility: hidden; }
.gate.is-open .gate-leaf { opacity: 1; transform: none; visibility: visible; transition: opacity .7s .35s, transform .9s var(--ease) .3s, visibility 0s; }
.gate-leaf .mark { color: var(--gold); }
/* sized for the longest title, "Executive & Retirement Benefits", to wrap inside the panel's text column */
.gate h2 { font-size: clamp(44px, 4.5vw, 78px); margin: 18px 0 20px; }
.gate-leaf .body { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .94); }
.gate .corner { position: absolute; z-index: 3; top: 22px; right: 22px; width: 64px; height: 64px; border: 3px solid var(--gold); opacity: 0; transform: scale(.3) rotate(-90deg); transition: opacity .5s, transform .9s var(--ease); pointer-events: none; }
.gate.is-open .corner { opacity: 1; transform: none; }
/* without JavaScript every panel is simply open, stacked */
html:not(.js) .gates { flex-direction: column; height: auto; }
html:not(.js) .gate { min-height: 520px; } html:not(.js) .gate-tab { display: none; }
html:not(.js) .gate-leaf { position: relative; opacity: 1; transform: none; visibility: visible; width: 100%; min-height: 520px; }

/* who we serve (Tier 3): runs gutter to gutter, ignoring the shared container cap, by design */
.who { padding: clamp(90px, 12vw, 190px) 0; overflow-x: clip; }
.who .wrap { max-width: none; }
.who .grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 130px); align-items: center; }
.who .txt { container-type: inline-size; }
.who h2 { font-size: 16.5cqw; white-space: nowrap; margin: 24px 0 28px; }
.who .body { font-size: clamp(18px, 1.2vw, 23px); }

/* growing or dying (Tier 4) */
.growing { color: var(--color-white); padding: clamp(100px, 13vw, 210px) 0 clamp(90px, 11vw, 170px); overflow: hidden; background: var(--navy); }
.growing > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; opacity: .5; translate: 0 calc((var(--p, .5) - .5) * -14%); }
.growing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 14, 32, .5), rgba(13, 14, 32, .93) 62%); }
.growing .wrap { position: relative; z-index: 1; container-type: inline-size; }
.growing h2 { font-size: 14.2cqw; text-align: center; }
.growing h2 span { display: block; white-space: nowrap; }
.js .growing h2 span { opacity: 0; transition: opacity 1.6s ease; }
.growing h2 .l2 { color: transparent; -webkit-text-stroke: 2px var(--gold); transition-delay: .35s; }
.js .growing h2.in span { opacity: 1; }
.js .growing h2.rv { opacity: 1; transform: none; }
.growing .duo { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(28px, 5vw, 90px); margin-top: clamp(48px, 7vw, 110px); text-align: center; }
.growing .col p { max-width: 54ch; margin-inline: auto; }
.growing .rule { background: var(--gold); transform-origin: top; }
.js .growing .rule.rv { opacity: 1; transform: scaleY(0); transition: transform 1.4s var(--ease); } .js .growing .rule.rv.in { transform: none; }
.growing h3 { font-size: clamp(30px, 3.3vw, 56px); white-space: nowrap; margin-bottom: 18px; display: inline-block; padding-bottom: 8px; background: linear-gradient(var(--gold), var(--gold)) 50% 100% / 100% 4px no-repeat; }
.js .growing h3 { background-size: 0 4px; transition: background-size .8s var(--ease) .3s; }
.js .growing .col.in h3 { background-size: 100% 4px; }

/* 5. Interior hero ------------------------------------------------------- */
.page-hero { position: relative; z-index: 1; min-height: clamp(460px, 78vh, 820px); display: grid; align-items: end; overflow: hidden; color: var(--color-white); background: var(--navy); }
.page-hero > img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; translate: 0 calc(var(--p, .5) * 12%); animation: settle 2.2s var(--ease) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 14, 32, .6), rgba(13, 14, 32, .15) 40%, rgba(13, 14, 32, .86)); }
.page-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(36px, 5vw, 80px); padding-top: 150px; container-type: inline-size; }
.page-hero h1 { font-size: clamp(60px, 13cqw, 250px); margin-top: 22px; }
.page-hero-long h1 { font-size: clamp(40px, 7.2cqw, 132px); max-width: 17ch; line-height: .92; }
.js .page-hero h1 .w > i { animation: rise 1.2s var(--ease) calc(.35s + var(--i) * 80ms) both; transform: none; }
.page-hero .mark::after { animation: draw-x 1.4s var(--ease) .6s both; }
/* the bio page: no photograph behind the name */
.page-hero-plain { min-height: 0; }
.page-hero-plain .wrap { padding-top: clamp(150px, 16vw, 230px); }
.page-hero-plain h1 { font-size: clamp(40px, 6.4cqw, 116px); text-transform: none; line-height: .96; }

/* 6. About + team -------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 170px) 0; overflow-x: clip; } /* clip: stacks and gold frames start off-canvas before they float in */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.split .txt { container-type: inline-size; }
.split h2 { font-size: clamp(56px, 20cqw, 190px); margin: 24px 0 28px; }
.family { color: var(--color-white); text-align: center; overflow: hidden; background: var(--navy); padding: clamp(100px, 13vw, 200px) 0; }
.family > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; opacity: .42; translate: 0 calc((var(--p, .5) - .5) * -14%); }
.family::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 14, 32, .78), rgba(13, 14, 32, .55) 50%, rgba(13, 14, 32, .9)); }
.family .wrap { position: relative; z-index: 1; container-type: inline-size; }
.family h2 { font-size: clamp(48px, 10.4cqw, 190px); margin: 24px 0 34px; }
.family .body { font-size: clamp(19px, 1.5vw, 25px); max-width: 62ch; margin: 0 auto; }
.team .head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.team .head > div:first-child { container-type: inline-size; }
.team h2 { font-size: clamp(54px, 19cqw, 170px); margin-top: 24px; }
.team-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 60px); }
.team-card { position: relative; }
.team-card-photo { display: block; position: relative; aspect-ratio: 2 / 3; }
.team-card-photo .fr { position: absolute; inset: 0; border: 3px solid var(--gold); translate: 14px 14px; transition: translate .7s var(--ease); z-index: 0; }
.team-card-photo .im { position: absolute; inset: 0; overflow: hidden; z-index: 1; background: var(--sand); }
/* scale(1.035): the supplied headshots have rounded corners baked into the files; the slight over-scale crops
   them off inside the square frame. Harmless on a square-cornered file. */
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform 1.4s var(--ease), filter .6s; }
.team-card:hover .team-card-photo .fr, .team-card:focus-within .team-card-photo .fr { translate: 26px 26px; }
.team-card:hover .team-card-photo img, .team-card:focus-within .team-card-photo img { transform: scale(1.085); }
.team-card h3 { font-size: clamp(26px, 2.3vw, 38px); text-transform: none; line-height: 1.02; margin: 36px 0 14px; }
.team-card h3 a { text-decoration: none; }

.bio .grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.bio .portrait { position: sticky; top: 120px; aspect-ratio: 2 / 3; max-width: 460px; }
.bio .portrait .im { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.bio .portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); } /* crops the rounded corners baked into the file */
.bio .portrait .sq { width: 46%; right: -22px; bottom: -22px; }
.bio .body { font-size: clamp(18px, 1.25vw, 21px); }
.bio .body a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bio .back { margin-top: 44px; }

/* 7. Services ------------------------------------------------------------ */
.svc-intro { padding: clamp(70px, 9vw, 140px) 0; text-align: center; }
.svc-intro h2 { font-size: clamp(40px, 5.4vw, 92px); max-width: 16em; margin: 22px auto 0; }
.svc-intro .body { font-size: clamp(19px, 1.5vw, 25px); line-height: 1.6; max-width: 40em; margin: clamp(26px, 3vw, 44px) auto 0; }
/* the trail: a sticky index of the five tiers; the gold square rides to whichever one you are reading */
.svc-nav { position: sticky; top: 64px; z-index: 30; background: var(--navy); color: var(--color-white); border-block: 1px solid rgba(255, 255, 255, .14); }
.svc-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--container-max); display: flex; gap: clamp(18px, 3vw, 48px); overflow-x: auto; position: relative; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
/* centred with auto margins, not justify-content: when the row is too wide for a phone the margins collapse
   to zero and it scrolls from its first item instead of clipping it */
.svc-nav li:first-child { margin-left: auto; }
.svc-nav li:nth-last-child(2) { margin-right: auto; }
.svc-nav a { display: block; padding: 20px 0 18px; font: 600 15px/1.2 var(--font-heading); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: rgba(255, 255, 255, .74); transition: color .3s; }
.svc-nav a:hover, .svc-nav a:focus-visible, .svc-nav a[aria-current] { color: var(--color-white); }
.svc-nav .pin { position: absolute; bottom: 0; left: 0; height: 3px; width: var(--w, 0); translate: var(--x, 0) 0; background: var(--gold); transition: translate .6s var(--ease), width .6s var(--ease); }
.svc-tier { padding: clamp(80px, 10vw, 160px) 0; overflow-x: clip; }
.svc-tier .grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 120px); align-items: start; }
.svc-tier .side { position: sticky; top: 160px; container-type: inline-size; }
.svc-tier h2 { font-size: clamp(46px, 15.5cqw, 132px); margin: 22px 0 0; }
.svc-tier .pic { position: relative; margin-top: clamp(28px, 3.4vw, 56px); aspect-ratio: 16 / 10; }
.svc-tier .pic .im { position: absolute; inset: 0; overflow: hidden; }
.svc-tier .pic img { width: 100%; height: 120%; object-fit: cover; translate: 0 calc(var(--p, .5) * -16%); }
.svc-tier .pic .sq { width: 28%; right: -18px; bottom: -18px; z-index: -1; }
.svc-tier .body { font-size: clamp(18px, 1.25vw, 21px); }
.svc-tier .lead { font-weight: 600; margin: 40px 0 6px; padding-top: 26px; border-top: 3px solid var(--gold); }
.svc-list { list-style: none; padding: 0; display: grid; gap: 0 40px; }
.svc-list.two { grid-template-columns: 1fr 1fr; }
.svc-list li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid rgba(27, 34, 56, .14); font-size: 17px; line-height: 1.4; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; background: var(--gold); transition: transform .5s var(--ease); }
.svc-list li:hover::before { transform: rotate(45deg) scale(1.2); }
.js .svc-list li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease) calc(var(--n, 0) * 60ms), transform .7s var(--ease) calc(var(--n, 0) * 60ms); }
.js .svc-list.in li { opacity: 1; transform: none; }
.svc-tier.on-dark { background: var(--navy); }
.svc-tier.on-dark .svc-list li { border-color: rgba(255, 255, 255, .18); }
/* the S-curve the copy describes, drawn as you scroll */
.scurve { margin-top: clamp(28px, 3.4vw, 56px); width: 100%; height: auto; overflow: visible; }
.scurve path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p, 1) - .18) * 2.2, 1)); }
.scurve .base { stroke: rgba(27, 34, 56, .16); stroke-width: 1; stroke-dasharray: 4 6; stroke-dashoffset: 0; }
.scurve rect { fill: var(--gold); offset-rotate: 0deg; offset-distance: calc(clamp(0, (var(--p, 1) - .18) * 2.2, 1) * 100%); }

/* 8. Contact ------------------------------------------------------------- */
.contact { padding: 0; }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(80vh, 760px); }
.contact .side { padding: clamp(48px, 6vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.rows a { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: clamp(18px, 2.2vw, 30px) 0; border-top: 1px solid rgba(27, 34, 56, .18); position: relative; text-decoration: none; transition: padding .6s var(--ease), opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.rows a:last-child { border-bottom: 1px solid rgba(27, 34, 56, .18); }
.rows a::before { content: ""; position: absolute; inset: 0 -100vw 0 calc(var(--gutter) * -1); background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: 0; }
.rows a > * { position: relative; z-index: 1; transition: color .3s; }
.rows a:hover, .rows a:focus-visible { padding-left: 14px; }
.rows a:hover::before, .rows a:focus-visible::before { transform: none; }
.rows a:hover > *, .rows a:focus-visible > * { color: var(--navy); }
.rows .k { font: 600 15px var(--font-heading); letter-spacing: .2em; text-transform: uppercase; color: var(--color-gold-ink); }
.rows .v { font: 800 clamp(26px, 2.9vw, 50px)/1 var(--font-heading); text-transform: uppercase; overflow-wrap: anywhere; }
.rows .v.sm { font-size: clamp(20px, 2.1vw, 36px); }
.rows .ar { width: 14px; height: 14px; border: 2px solid currentColor; transition: transform .6s var(--ease); }
.rows a:hover .ar { transform: rotate(45deg); }
.contact .side { overflow: hidden; }
.contact .map { position: relative; min-height: 460px; background: var(--sand); }
.contact .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* 9. Footer -------------------------------------------------------------- */
/* The footer is a full-bleed split, not a contained block, by design. */
.site-footer { position: relative; z-index: 2; background: var(--navy); color: var(--color-white); }
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: min(86vh, 820px); overflow: hidden; }
.foot a { text-decoration: none; }
.foot .ph { position: relative; overflow: hidden; display: grid; align-content: end; padding: clamp(28px, 4vw, 64px); }
.foot .ph img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; translate: 0 calc((var(--p, .5) - .5) * -14%); filter: grayscale(1) contrast(1.15) brightness(.7); z-index: 0; }
/* heavy blue cast: the photo is pulled to monochrome, then washed in blue and sunk toward navy */
.foot .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-cast); mix-blend-mode: color; }
.foot .ph::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13, 24, 54, .74), rgba(13, 14, 32, .95)); }
.foot .ph > p { position: relative; z-index: 2; font: 800 clamp(34px, 3.9vw, 68px)/.95 var(--font-heading); text-transform: uppercase; max-width: 15ch; }
.foot .ph .fsq { position: absolute; z-index: 2; top: clamp(24px, 4vw, 60px); left: clamp(24px, 4vw, 60px); width: 86px; height: 86px; border: 3px solid var(--gold); rotate: calc(var(--q, 0) * 360deg); } /* --q: 0 as the footer appears, 1 once it is fully in view - one whole turn */
.foot .side { padding: clamp(32px, 4.5vw, 76px); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.foot .rows a { border-color: rgba(255, 255, 255, .16); }
.foot .rows a::before { inset: 0 -100vw 0 calc(clamp(32px, 4.5vw, 76px) * -1); }
.foot .rows .k { color: var(--gold); }
.foot .low { display: grid; grid-template-columns: auto 1fr; gap: 26px clamp(24px, 4vw, 60px); align-items: center; }
.foot .logo { width: 190px; }
.foot .low nav { justify-self: end; }
.foot .foot-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px clamp(28px, 3.2vw, 56px); font: 600 16px var(--font-heading); letter-spacing: .16em; text-transform: uppercase; }
.foot .foot-menu a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-bottom: 2px; }
.foot .foot-menu a:hover, .foot .foot-menu a:focus-visible { background-size: 100% 1px; color: var(--gold); }
/* the legal row: the Disclosures button on the left, Form CRS and BrokerCheck on the right */
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(20px, 2.4vw, 36px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font: 600 14px/1 var(--font-heading); letter-spacing: .16em; text-transform: uppercase; }
.foot .legal a { color: rgba(255, 255, 255, .78); padding-bottom: 2px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.foot .legal a:first-of-type { margin-left: auto; }
.foot .legal a:hover, .foot .legal a:focus-visible { background-size: 100% 1px; color: var(--gold); }
.disclosure-toggle { display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px 11px; border: 2px solid var(--gold); background: none; color: var(--color-white); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: background .3s, color .3s; }
.disclosure-toggle:hover, .disclosure-toggle[aria-expanded="true"] { background: var(--gold); color: var(--navy); }
.disclosure-toggle i { position: relative; width: 12px; height: 12px; transition: transform .5s var(--ease); }
.disclosure-toggle i::before, .disclosure-toggle i::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: currentColor; }
.disclosure-toggle i::after { transform: rotate(90deg); }
.disclosure-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
html:not(.js) .disclosure-toggle { display: none; } /* no script: the disclosure below is simply open */
.disclosure { grid-column: 1 / -1; font: 400 13px/1.6 var(--font-body); color: rgba(255, 255, 255, .72); }
.disclosure-in { overflow: hidden; min-height: 0; }
.js .disclosure { display: grid; grid-template-rows: 0fr; margin-top: -26px; visibility: hidden; transition: grid-template-rows .6s var(--ease), margin .6s var(--ease), visibility 0s .6s; }
.js .disclosure.is-open { grid-template-rows: 1fr; margin-top: 0; visibility: visible; transition: grid-template-rows .6s var(--ease), margin .6s var(--ease), visibility 0s; }
.disclosure p + p { margin-top: .8em; }
.disclosure a { text-decoration: underline; }

/* 10. Generic page + 404 ------------------------------------------------- */
.plain { padding: clamp(70px, 9vw, 140px) 0; }
.wysiwyg-content { max-width: 46em; margin: 0 auto; }
.wysiwyg-content h2 { font-size: clamp(36px, 4vw, 64px); margin: 1.4em 0 .5em; }
.wysiwyg-content h3 { font-size: clamp(26px, 2.6vw, 38px); margin: 1.4em 0 .5em; }
.wysiwyg-content ul, .wysiwyg-content ol { margin: 1.1em 0; padding-left: 1.3em; }
.wysiwyg-content a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.notfound { text-align: center; }
.notfound .body { font-size: clamp(19px, 1.6vw, 26px); max-width: 34em; margin: 0 auto 36px; }

/* 11. Small screens ------------------------------------------------------ */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .site-nav-in { grid-template-columns: 1fr; padding-top: 96px; }
  .site-nav-art { display: none; }
  .site-nav-list > li { grid-template-columns: 1fr; gap: 12px; }
  .site-nav-list > li > a { font-size: 16cqw; }
  .intro .grid, .who .grid, .split, .team .head, .bio .grid, .svc-tier .grid, .contact .grid, .foot, .foot .low { grid-template-columns: 1fr; }
  .gates { flex-direction: column; height: auto; }
  .gate, .gate.is-open { flex: none; min-height: 560px; }
  .gate-tab { display: none; }
  .gate-leaf { position: relative; opacity: 1; transform: none; visibility: visible; width: 100%; min-height: 560px; }
  .gate::after, .gate.is-open::after { opacity: 1; background: linear-gradient(180deg, rgba(13, 14, 32, .3), rgba(13, 14, 32, .94) 55%); }
  .gate > img, .gate.is-open > img { filter: brightness(.8); transform: none; }
  .gate .corner { opacity: 1; transform: none; }
  .growing .duo { grid-template-columns: 1fr; } .growing .rule { display: none; }
  .growing h3 { white-space: normal; }
  .team-row { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 56px; }
  .bio .portrait, .svc-tier .side { position: relative; top: auto; }
  .svc-list.two { grid-template-columns: 1fr; }
  .svc-nav { top: 60px; }
  .foot .ph { min-height: 60vh; }
  .rows a { grid-template-columns: 1fr auto; } .rows .k { grid-column: 1 / -1; }
  .stack .p2 { translate: none; }
  .stack .fr, .stack.flip .fr { translate: calc(var(--fo) * -1) calc(var(--fo) * -1); }
  .site-nav-list > .is-logins > .sub-menu { justify-content: flex-start; }
  .foot .low nav { justify-self: start; } .foot .foot-menu { justify-content: flex-start; }
  .foot .legal a:first-of-type { margin-left: 0; } .disclosure-toggle { width: 100%; justify-content: space-between; }
}

/* 12. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .w > i, .js .stack .p1, .js .stack .p2, .js .stack .fr, .js .stack img, .js .io .up, .js .svc-list li, .js .growing h2 span, .js .growing .rule.rv { opacity: 1 !important; transform: none !important; }
  .js .growing h3 { background-size: 100% 4px; }
  .rail { --t: 1; } /* the rail is shown finished, already at the B */
  .js .intro h2.in .yr { animation: none; }
  .hero video, .page-hero > img, .growing > img, .family > img, .foot .ph img, .svc-tier .pic img, .stack .p2 { translate: none !important; rotate: none !important; transform: none !important; }
}
