/* ==========================================================================
   JEZ Capital — design B (site/v2)
   Re-purposed from The Opus Group concept design: ink + champagne, editorial
   serif display, geometric sans UI. JEZ-specific additions are at the end
   of this file (section 99).
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Ink (dark) */
  --ink-950: #05080f;
  --ink-900: #0a0f1a;
  --ink-850: #0e1521;
  --ink-800: #141b29;
  --ink-700: #1d2637;
  --ink-600: #2a3547;

  /* Champagne / gold — evolved from the legacy #dac88c */
  --gold-100: #f3e9cf;
  --gold-200: #e4d2a3;
  --gold-300: #d3bb82;
  --gold-400: #c9a961;
  --gold-500: #b3924b;
  --gold-600: #8e7134;

  /* Paper (light) */
  --paper: #fcfbf9;
  --paper-2: #f4f2ed;
  --paper-3: #eae7e0;

  /* Text */
  --text: #131c29;
  --text-2: #55627a;
  --text-3: #8b96a8;
  --on-ink: #f2f4f8;
  --on-ink-2: #a7b1c2;
  --on-ink-3: #6f7b8f;

  /* Lines */
  --line-light: #e2ded5;
  --line-dark: rgba(255, 255, 255, 0.11);

  /* Type */
  --serif: "Newsreader", "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --fs-display: clamp(2.75rem, 1.35rem + 5.4vw, 6.25rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.85rem);
  --fs-h3: clamp(1.3rem, 1.08rem + 0.8vw, 1.7rem);
  --fs-lead: clamp(1.06rem, 0.99rem + 0.35vw, 1.32rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.6875rem;

  /* Space */
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);
  --section-y: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --maxw: 1280px;
  --maxw-text: 68ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;

  --radius: 2px;
  --header-h: 84px;
}

/* --- 2. Reset ----------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
video,
svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold-300); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink-900);
  color: var(--on-ink);
  font-size: var(--fs-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 3. Layout ---------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 940px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.section--ink {
  background: var(--ink-900);
  color: var(--on-ink);
}
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: #fff; }

.section--paper-2 { background: var(--paper-2); }

.grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.grid--split { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
  .grid--split.is-reversed > :first-child { order: 2; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- 4. Type utilities -------------------------------------------------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.label::before {
  content: "";
  width: 1.85rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.section--ink .label,
.hero .label { color: var(--gold-300); }

.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-2);
}
.section--ink .lead { color: var(--on-ink-2); }

.prose { max-width: var(--maxw-text); }
.prose p { color: var(--text-2); }
.section--ink .prose p { color: var(--on-ink-2); }

.italic-accent {
  font-style: italic;
  color: var(--gold-500);
}
.section--ink .italic-accent,
.hero .italic-accent { color: var(--gold-300); }

/* Gold hairline rule with diamond */
.rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2.5rem 0;
}
.rule::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--gold-400);
  transform: rotate(45deg);
}
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

/* --- 5. Buttons --------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateY(0); }
.btn:hover { color: var(--ink-900); border-color: var(--gold-400); }

.btn__arrow {
  transition: transform 0.4s var(--ease-out);
  flex: none;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--gold {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  border-color: var(--gold-400);
  background: linear-gradient(100deg, var(--gold-200), var(--gold-400));
}
.btn--gold::after { background: var(--ink-900); }
.btn--gold:hover { color: #fff; border-color: var(--ink-900); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover { color: var(--ink-900); }

.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-light);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* Text link with animated gold underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  color: inherit;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.28;
  transform-origin: left;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.tlink:hover::after { opacity: 1; background: var(--gold-400); }
.tlink:hover .btn__arrow { transform: translateX(4px); }

/* --- 6. Brand lockup ---------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}
/* The gold swirl lifted from the original Opus Group logo
   (tools/extract-logo-mark.py). Near-square, so height follows width. */
.brand__mark { width: 48px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__the {
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.28rem;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__tag {
  font-family: var(--sans);
  font-size: 0.4375rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 0.34rem;
}
.brand--dark { color: var(--ink-900); }
.brand--dark .brand__tag { color: var(--gold-600); }

@media (max-width: 560px) {
  :root { --header-h: 74px; }
  .brand { gap: 0.6rem; }
  .brand__mark { width: 38px; }
  .brand__name { font-size: 1.05rem; }
  .brand__the { font-size: 0.44rem; margin-bottom: 0.22rem; }
  .brand__tag { font-size: 0.4rem; letter-spacing: 0.15em; margin-top: 0.28rem; }
  .burger { width: 42px; height: 42px; }
}

/* --- 7. Header ---------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), background 0.4s var(--ease),
    border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.55), rgba(5, 8, 15, 0));
  opacity: 1;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.header.is-stuck {
  height: 68px;
  background: rgba(8, 12, 20, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.header.is-stuck::before { opacity: 0; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.nav { display: none; }
@media (min-width: 1000px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 0.4rem + 1.6vw, 2.6rem);
    margin-left: auto;
  }
}

.nav__link {
  position: relative;
  padding: 0.5rem 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); opacity: 0.9; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: clamp(0.5rem, 2vw, 2rem);
}

.login-btn {
  display: none;
  padding: 0.7rem 1.2rem;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
}
@media (min-width: 720px) { .login-btn { display: inline-flex; } }

/* Hamburger */
.burger {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.burger:hover { border-color: var(--gold-400); }
.burger__lines { display: grid; gap: 5px; width: 18px; }
.burger__lines span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}
.burger__lines span:last-child { width: 62%; margin-left: auto; }
.burger[aria-expanded="true"] .burger__lines span:first-child { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:last-child {
  width: 100%;
  transform: translateY(-6.5px) rotate(-45deg);
}
@media (min-width: 1000px) { .burger { display: none; } }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink-950);
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.25rem);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease-out),
    visibility 0.45s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__nav { display: grid; gap: 0.35rem; }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.2rem + 3.4vw, 2.9rem);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.3s var(--ease), opacity 0.5s var(--ease),
    transform 0.5s var(--ease-out);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover { color: var(--gold-300); }
.drawer__link span {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-500);
}
.drawer__foot {
  display: grid;
  gap: 0.9rem;
  font-size: var(--fs-sm);
  color: var(--on-ink-2);
}
.drawer__foot a:hover { color: var(--gold-300); }

/* --- 8. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(94svh, 900px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--page {
  /* One fixed height for every interior page's motion header, so The Firm,
     Services, Who We Are and Contact all give their footage the same space. */
  height: clamp(560px, 72svh, 720px);
  min-height: 0;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

/* The dusk/night footage is dark at source, so lift it. Photo heroes are
   already bright — they get the lighter scrim only, no filter, or the
   highlights clip and white text loses contrast against them. */
.hero__media video { filter: brightness(1.3) saturate(1.06); }
.hero__media video.is-ready,
.hero__media img.is-ready,
.hero__media img { opacity: 1; }

.hero__media--zoom img { animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-1.5%, -1.5%, 0); }
}

/* Two stacked gradients: a vertical one that anchors the header and the bottom
   edge, and a diagonal one that darkens only behind the left-aligned copy.
   Kept deliberately light — the text sits in the lower-left, so that is the
   only region that needs real contrast. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.42) 0%, rgba(5, 8, 15, 0.06) 38%, rgba(5, 8, 15, 0.72) 100%),
    linear-gradient(75deg, rgba(5, 8, 15, 0.62) 0%, rgba(5, 8, 15, 0.04) 58%);
}

.hero__inner { position: relative; width: 100%; }
.hero__body { max-width: 62ch; }

/* Background brightness varies across a video loop, so hold the copy legible
   with a soft shadow instead of darkening the footage. Wide and low-opacity —
   it reads as depth, not as a drop shadow. */
.hero__inner :is(h1, p, .crumbs, .hero__meta) {
  text-shadow: 0 1px 26px rgba(5, 8, 15, 0.6), 0 1px 3px rgba(5, 8, 15, 0.32);
}

.hero .display { color: #fff; }
.hero__lead {
  max-width: 56ch;
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.82);
}

/* Hero bottom meta bar */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 2.25rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  /* leave room for the vertical scroll cue pinned to the right gutter */
  max-width: calc(100% - 4.5rem);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.hero__meta strong {
  color: var(--gold-300);
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 2rem + 5vw, 6rem);
  display: none;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}
@media (min-width: 1100px) { .scroll-cue { display: flex; } }
.scroll-cue::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(180deg, var(--gold-400), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Breadcrumb on page heroes */
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.crumbs a:hover { color: var(--gold-300); }
.crumbs span[aria-hidden] { color: var(--gold-500); }

/* --- 9. Stat strip ------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat {
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem) clamp(1.1rem, 0.6rem + 1.4vw, 2rem);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.stat__value em {
  font-style: normal;
  color: var(--gold-500);
}
.stat__label {
  margin-top: 0.85rem;
  font-size: var(--fs-xs);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

a.stat {
  position: relative;
  transition: background 0.4s var(--ease);
}
a.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
a.stat:hover { background: rgba(201, 169, 97, 0.06); }
a.stat:hover::after { transform: scaleX(1); }
a.stat:hover .stat__value { color: var(--gold-600); }

.section--ink .stats { border-color: var(--line-dark); }
.section--ink .stat { border-color: var(--line-dark); }
.section--ink .stat__value { color: #fff; }
.section--ink .stat__value em { color: var(--gold-300); }
.section--ink .stat__label { color: var(--on-ink-2); }

/* --- 10. Figures / media blocks ---------------------------------------- */

.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.figure img,
.figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }
.figure:hover img { transform: scale(1.045); }

/* Gold frame offset accent */
.figure-frame { position: relative; isolation: isolate; }
.figure-frame::before {
  content: "";
  position: absolute;
  inset: auto -1.1rem -1.1rem auto;
  width: 55%; height: 55%;
  border: 1px solid var(--gold-400);
  opacity: 0.5;
  z-index: 0;
  border-radius: var(--radius);
  pointer-events: none;
}
.figure-frame.is-left::before { inset: -1.1rem auto auto -1.1rem; }
.figure-frame > .figure { position: relative; z-index: 1; }

.caption {
  margin-top: 0.9rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* Ambient full-width video band */
.band {
  position: relative;
  min-height: clamp(340px, 46vh, 520px);
  display: grid;
  place-items: center;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media video,
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media video { filter: brightness(1.26) saturate(1.05); }
.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(5, 8, 15, 0.62) 0%, rgba(5, 8, 15, 0.34) 60%, rgba(5, 8, 15, 0.5) 100%);
}
.band blockquote,
.band cite {
  text-shadow: 0 1px 26px rgba(5, 8, 15, 0.6), 0 1px 3px rgba(5, 8, 15, 0.32);
}
.band blockquote {
  margin: 0;
  max-width: 26ch;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.band .band__wide { max-width: 34ch; }
.band cite {
  display: block;
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: clamp(1rem, .9rem + .35vw, 1.2rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* one step lighter than the usual on-ink gold — the band footage sits
     brighter behind it than a flat ink section would */
  color: var(--gold-200);
}

/* --- 11. Cards --------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -28px rgba(10, 15, 26, 0.35);
  border-color: var(--paper-3);
}
.card:hover::before { transform: scaleX(1); }

.card__index {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  color: var(--gold-500);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.85rem; }
.card p { color: var(--text-2); font-size: var(--fs-sm); }
.card .tlink { margin-top: auto; padding-top: 1.5rem; }

.card--ink {
  background: var(--ink-850);
  border-color: var(--line-dark);
  color: var(--on-ink);
}
.card--ink h3 { color: #fff; }
.card--ink p { color: var(--on-ink-2); }
.card--ink:hover { border-color: rgba(201, 169, 97, 0.4); box-shadow: none; }

/* Icon badge */
.badge {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  color: var(--gold-600);
}
.badge svg { width: 20px; height: 20px; }
.card--ink .badge { color: var(--gold-300); }

/* --- 12. Accordion ----------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--line-light);
}
.section--ink .accordion { border-color: var(--line-dark); }

.ac {
  border-bottom: 1px solid var(--line-light);
  transition: background 0.4s var(--ease);
}
.section--ink .ac { border-color: var(--line-dark); }
.ac.is-open { background: rgba(201, 169, 97, 0.05); }

.ac__trigger {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.85rem);
  width: 100%;
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.7rem) clamp(0.5rem, 0.2rem + 1vw, 1.35rem);
  text-align: left;
}

.ac__portrait {
  position: relative;
  width: clamp(58px, 4.5vw + 40px, 82px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 0 0 1px var(--line-light), 0 0 0 5px rgba(201, 169, 97, 0);
  transition: box-shadow 0.45s var(--ease);
}
.ac__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transition: filter 0.6s var(--ease), transform 0.7s var(--ease-out);
}
.ac__trigger:hover .ac__portrait img,
.ac.is-open .ac__portrait img { filter: grayscale(0%) contrast(1); transform: scale(1.05); }
.ac.is-open .ac__portrait { box-shadow: 0 0 0 1px var(--gold-400), 0 0 0 5px rgba(201, 169, 97, 0.16); }

.ac__heading { flex: 1; min-width: 0; }
.ac__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem);
  letter-spacing: -0.015em;
  color: var(--ink-900);
  transition: color 0.3s var(--ease);
}
.section--ink .ac__name { color: #fff; }
.ac__trigger:hover .ac__name { color: var(--gold-600); }
.section--ink .ac__trigger:hover .ac__name { color: var(--gold-300); }

.ac__role {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.section--ink .ac__role { color: var(--gold-300); }

.ac__icon {
  position: relative;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
    transform 0.5s var(--ease-out);
}
.section--ink .ac__icon { border-color: var(--line-dark); }
.ac__icon::before,
.ac__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.ac__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.ac__trigger:hover .ac__icon { border-color: var(--gold-400); transform: rotate(90deg); }
.ac.is-open .ac__icon { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-900); }
.ac.is-open .ac__icon::after { opacity: 0; }

.ac__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.ac.is-open .ac__panel { grid-template-rows: 1fr; }
.ac__panel > div {
  overflow: hidden;
  min-height: 0;
  /* Keep links inside a collapsed panel out of the tab order. The delay lets the
     collapse animation finish before visibility flips. */
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}
.ac.is-open .ac__panel > div {
  visibility: visible;
  transition-delay: 0s;
}
.ac__inner {
  padding: 0 clamp(0.5rem, 0.2rem + 1vw, 1.35rem) clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
}

@media (min-width: 860px) {
  .ac__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: clamp(2rem, 1rem + 3vw, 3.5rem);
    padding-left: calc(clamp(58px, 4.5vw + 40px, 82px) + clamp(1rem, 0.5rem + 1.6vw, 1.85rem) + clamp(0.5rem, 0.2rem + 1vw, 1.35rem));
  }
}

.ac__bio p {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.section--ink .ac__bio p { color: var(--on-ink-2); }

.ac__aside {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding-top: 0.3rem;
}
.ac__creds {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
}
.section--ink .ac__creds { border-color: var(--line-dark); }
.ac__creds dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ac__creds dd {
  margin: 0 0 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.section--ink .ac__creds dd { color: var(--on-ink-2); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  padding: 0.34rem 0.7rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.32);
  border-radius: 100px;
}

.icon-links { display: flex; gap: 0.5rem; }
.icon-link {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--text-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover {
  color: var(--ink-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}
.section--ink .icon-link { border-color: var(--line-dark); color: var(--on-ink-2); }

/* --- 13. Press strip --------------------------------------------------- */

.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 1rem + 4vw, 4.75rem);
}
.press > * {
  opacity: 0.5;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
  filter: grayscale(100%);
}
.press > *:hover { opacity: 1; filter: grayscale(0%); }
.press img {
  height: clamp(24px, 1.1rem + 1.6vw, 34px);
  width: auto;
}
.press img[data-tall] { height: clamp(30px, 1.4rem + 2vw, 44px); }
.press .press__word {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--ink-900);
  white-space: nowrap;
}

/* --- 14. Numbered list / process --------------------------------------- */

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  gap: 0.6rem 2rem;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem) 0;
  border-top: 1px solid var(--line-light);
}
.section--ink .step { border-color: var(--line-dark); }
.step:last-child { border-bottom: 1px solid var(--line-light); }
.section--ink .step:last-child { border-color: var(--line-dark); }

@media (min-width: 780px) {
  .step { grid-template-columns: 5.5rem minmax(0, 20ch) minmax(0, 1fr); align-items: baseline; }
}
.step__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}
.step h3 { font-size: var(--fs-h3); }
.step p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.step h3 + p { margin-top: 0.55rem; }
.section--ink .step p { color: var(--on-ink-2); }

/* --- 15. Contact ------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input,
.field textarea,
.field select {
  padding: 0.95rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.16);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #b4453b; }
.field__error {
  font-size: var(--fs-xs);
  color: #b4453b;
  display: none;
}
.field[data-invalid="true"] .field__error { display: block; }

@media (min-width: 620px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; } }

.form__note { font-size: var(--fs-xs); color: var(--text-3); }
.form__status {
  display: none;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--gold-400);
  background: rgba(201, 169, 97, 0.1);
  font-size: var(--fs-sm);
  color: var(--text);
}
.form__status.is-visible { display: block; }
.form__status[data-state="error"] {
  border-color: #b4453b;
  background: rgba(180, 69, 59, 0.08);
}

.info-card {
  padding: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  background: var(--ink-900);
  color: var(--on-ink);
  border-radius: var(--radius);
}
.info-list { display: grid; gap: 1.5rem; margin-top: 1.75rem; list-style: none; }
.info-list li { display: flex; gap: 1rem; }
.info-list svg { width: 17px; height: 17px; flex: none; margin-top: 0.3rem; color: var(--gold-300); }
.info-list span { display: block; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 0.25rem; }
.info-list a, .info-list p { font-size: var(--fs-sm); color: #fff; margin: 0; }
.info-list a:hover { color: var(--gold-300); }

/* --- 16. Disclosure content -------------------------------------------- */

.doc { max-width: 78ch; }
.doc h2 { margin-top: 3rem; margin-bottom: 1.1rem; font-size: var(--fs-h3); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-2); font-size: var(--fs-sm); }
.doc ul { display: grid; gap: 1.1rem; margin: 1.5rem 0; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 1.6rem; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  background: var(--gold-400);
  transform: rotate(45deg);
}
.doc .footnote { font-size: var(--fs-xs); color: var(--text-3); }
.doc strong { color: var(--text); font-weight: 600; }

.doc-links { display: grid; gap: 0.75rem; margin-top: 1rem; }
.doc-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.doc-link:hover { border-color: var(--gold-400); transform: translateX(4px); }
.doc-link svg { width: 18px; height: 18px; flex: none; color: var(--gold-600); }
.doc-link strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.doc-link em { font-style: normal; font-size: var(--fs-xs); color: var(--text-3); }
.doc-link .btn__arrow { margin-left: auto; color: var(--text-3); }

/* --- 17. CTA ----------------------------------------------------------- */

.cta {
  position: relative;
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.18), transparent 62%);
}
.cta__inner { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cta h2 { max-width: 22ch; }
.cta p { max-width: 46ch; margin-top: 1.25rem; color: var(--on-ink-2); }

/* --- 18. Footer -------------------------------------------------------- */

.footer {
  background: var(--ink-950);
  color: var(--on-ink-2);
  font-size: var(--fs-sm);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
}
.footer__top {
  display: grid;
  gap: 2.75rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 3rem; }
}
.footer h3 {
  margin-bottom: 1.35rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.footer ul { list-style: none; display: grid; gap: 0.75rem; }
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--gold-300); }
.footer__blurb { max-width: 34ch; margin-top: 1.5rem; }

.footer__brokercheck {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  margin-top: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
}
.footer__brokercheck img { height: 26px; width: auto; }

.footer__legal {
  padding-block: 2.5rem;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--on-ink-3);
}
.footer__legal p { max-width: none; }
.footer__legal a { color: var(--on-ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  color: var(--on-ink-3);
}
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* --- 19. Reveal animation ---------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="mask"] {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: none;
  transition: clip-path 1.1s var(--ease-out);
}
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

[data-reveal="fade"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* --- 20. Misc ---------------------------------------------------------- */

.split-head { display: grid; gap: 1.75rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
}

.notice {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--paper-2);
  border-left: 2px solid var(--gold-400);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 0.25rem; color: var(--gold-600); }

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink-950);
  color: #fff;
  padding: var(--gutter);
}


/* --- 99. JEZ Capital additions ------------------------------------------ */

/* Logo: the full JEZ lockup (light version for the dark header and footer) */
.brand__logo { height: 56px; width: auto; transition: height 0.4s var(--ease); }
.header.is-stuck .brand__logo { height: 46px; }
.footer .brand__logo { height: 54px; }
@media (max-width: 560px) {
  .brand__logo, .header.is-stuck .brand__logo { height: 40px; }
}

/* Figures that must never crop (the three-pillars infographic) */
.figure--natural { display: block; aspect-ratio: auto; }
.figure--natural img { height: auto; object-fit: contain; }

/* Three-pillars preview: the whole framed picture links to Services */
.pillars-link { display: block; }
.pillars-link__tag {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(10, 15, 26, 0.86); color: var(--gold-200);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pillars-link:hover .pillars-link__tag { background: var(--gold-400); color: var(--ink-900); }
.pillars-link:hover .figure img { transform: scale(1.03); }

/* Compact step list: numeral + (title, text) */
.steps--compact { margin-top: 2rem; }
.steps--compact .step { grid-template-columns: 3.25rem minmax(0, 1fr); padding: 1.25rem 0; gap: 0.4rem 1rem; }
.steps--compact .step h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); }
.steps--compact .step h3 + p { margin-top: 0.3rem; }

/* Footer BrokerCheck badge (official artwork carries its own frame) */
.footer__brokercheck { padding: 0; background: none; }
.footer__brokercheck img { height: 50px; width: auto; border-radius: var(--radius); }

/* Advisor monogram (stands in for a portrait until a photo is available) */
.ac__portrait--mark { background: var(--ink-900); display: grid; place-items: center; }
.ac__portrait--mark img { width: 72%; height: auto; filter: none !important; transform: none !important; }
.monogram-card {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--ink-700), var(--ink-950) 70%);
  display: grid; place-items: center; text-align: center; color: var(--on-ink);
}
.monogram-card__inner { display: grid; justify-items: center; gap: 1.1rem; padding: 2.5rem; }
.monogram-card img { width: 96px; height: auto; }
.monogram-card strong {
  font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 2rem + 4vw, 4.8rem);
  letter-spacing: 0.08em; line-height: 1;
}
.monogram-card span { color: var(--on-ink-2); font-size: var(--fs-sm); max-width: 28ch; }

/* BrokerCheck badge inside a bio */
.bio-brokercheck { display: inline-block; margin-top: 1.5rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.bio-brokercheck img { width: 172.5px; height: auto; }
.bio-brokercheck:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(5, 8, 15, 0.16); }

/* Home headline: two longer lines instead of the template's short stack */
.hero__body--wide { max-width: min(62rem, 100%); }
.display--two-line { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.6rem); }

/* Coastal legacy films — a shared frame and treatment across all five pages. */
.hero__media video, .band__media video,
.hero__media .video-poster, .band__media .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--film-position, 50% 50%);
  filter: none;
}
.hero__media .video-poster, .band__media .video-poster { opacity: 1; }
.hero__media video, .band__media video { opacity: 0; }
.hero__media video.is-ready, .band__media video.is-ready { opacity: 1; }
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(5, 12, 20, .46), rgba(5, 12, 20, .08) 35%, rgba(5, 12, 20, .79)),
    linear-gradient(75deg, rgba(5, 12, 20, .58), rgba(5, 12, 20, .04) 72%);
}
.motion-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 2px;
  background: rgba(5,12,20,.66);
  color: #fff;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: rgba(5,12,20,.9); border-color: var(--gold-300); }
.motion-toggle:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }
.motion-toggle__icon { width: 12px; text-align: center; }
.motion-paused .scroll-cue::after, .motion-paused .hero__media--zoom img { animation-play-state: paused; }
/* Reserve room for the control without changing the shared interior height. */
.hero--page { padding-bottom: 88px; }
@media (max-width: 600px) {
  .hero--page { height: 640px; padding-top: calc(var(--header-h) + 32px); }
  .hero--page .display { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .hero--page .hero__lead { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media video, .band__media video { display: none; }
  .motion-toggle { display: none; }
}

.hero--legacy-home .hero__media > * { transform: scaleX(-1); }

/* A single continuous advisor biography, with the portrait aligned to its start. */
.advisor-bio { align-items: start; }
.advisor-bio .prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Prominent navigation branding and the homepage signature below the hero. */
:root { --header-h: 108px; }
.header .brand__logo { height: 80px; }
.header.is-stuck { height: 88px; }
.header.is-stuck .brand__logo { height: 64px; }
@media (max-width: 560px) {
  :root { --header-h: 88px; }
  .header .brand__logo { height: 60px; }
  .header.is-stuck { height: 78px; }
  .header.is-stuck .brand__logo { height: 52px; }
}

/* Homepage identity sits beneath the introduction. */
.hero__brand {
  display: block;
  width: clamp(180px, 19vw, 250px);
  height: auto;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.hero--legacy-home { min-height: max(680px, 82svh); padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
@media (max-width: 560px) {
  .hero__brand { width: 180px; margin-bottom: 24px; }
  .hero--legacy-home { min-height: 82svh; padding-bottom: 64px; }
}

/* Investments: concise editorial rows in place of product chips. */
.investment-focus { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.investment-focus__item { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.investment-focus__item h3 { margin: 0 0 .45rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--gold-300); }
.investment-focus__item p { margin: 0; color: var(--on-ink-2); line-height: 1.65; max-width: 48ch; }

/* Provider choice for client account access. */
.client-login { position: relative; }
.client-login summary { cursor: pointer; list-style: none; }
.client-login summary::-webkit-details-marker { display: none; }
.client-login summary:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }
.client-login__options { padding: .5rem; background: var(--ink-900, #0a0f1a); border: 1px solid rgba(180,159,111,.45); }
.client-login__options a { display: block; padding: .8rem 1rem; color: #fff; white-space: nowrap; }
.client-login__options a:hover, .client-login__options a:focus-visible { background: rgba(255,255,255,.12); }
.client-login--header .client-login__options { position: absolute; top: calc(100% + .5rem); right: 0; min-width: 210px; z-index: 100; box-shadow: 0 12px 30px #0004; }
.client-login--card summary.doc-link { display: flex; justify-content: space-between; }

.custodian-logos { display: flex; align-items: center; gap: clamp(2rem, 6vw, 4rem); margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line, #ddd); }
.custodian-logos a { display: flex; align-items: center; padding: .5rem; }
.custodian-logos img { display: block; object-fit: contain; }
.custodian-logos__schwab { width: 80px; height: 80px; }
.custodian-logos__axos { width: 140px; height: 48px; }
.custodian-logos a:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }

/* Shared soft coastal color beneath each page hero. */
main {
  background: linear-gradient(155deg, #dce7eb 12%, #e6ebe5 46%, #ece5d7 78%, #e1e7e9 100%);
}
main > .section--paper-2 { background: transparent; }

/* Home custody pairs editorial copy with a separate custodian panel. */
.home-custody { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.home-custody__partners { padding: clamp(1.5rem, 3vw, 3rem); background: rgba(255,255,255,.45); border: 1px solid rgba(139,119,72,.22); border-top: 3px solid var(--gold-400); }
.home-custody__partner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 0; }
.home-custody__partner + .home-custody__partner { border-top: 1px solid var(--line); }
.home-custody__partner img { object-fit: contain; flex-shrink: 0; }
.home-custody__partner > span { font-size: .85rem; max-width: 12ch; }
.home-custody__partner:hover > span { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .home-custody { grid-template-columns: 1fr; } }

.home-stats { padding-bottom: clamp(1.25rem, 2vw, 2rem); }
.home-stats .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-home #our-focus { padding-top: clamp(1.25rem, 2vw, 2rem); }
@media (max-width: 560px) { .home-stats .stats { grid-template-columns: 1fr; } }

/* Position the homepage logo over the open water above the sailboat. */
.hero__brand--corner {
  position: absolute;
  top: calc(var(--header-h) + 2rem);
  right: max(var(--gutter), 7vw);
  margin: 0;
  width: clamp(180px, 19vw, 250px);
}
@media (max-width: 700px) {
  .hero--legacy-home { padding-top: calc(var(--header-h) + 160px); }
  .hero__brand--corner { top: calc(var(--header-h) + 1.25rem); right: var(--gutter); width: 160px; }
}

.stat__custodians { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.stat__custodians img { object-fit: contain; flex-shrink: 0; }

/* Quiet crossfades without zooming or changing the frame size. */
.retirement-slideshow img { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease-in-out; }
.retirement-slideshow img.is-active { opacity: 1; }
.retirement-slideshow:hover img { transform: none; }
@media (prefers-reduced-motion: reduce) { .retirement-slideshow img { transition: none; } }

/* Warm office card with a separate photographic strip below. */
.info-card--office { position: relative; isolation: isolate; overflow: hidden; background: #f1efe7; border: 1px solid rgba(139,119,72,.24); box-shadow: 0 12px 32px rgba(25,40,47,.06); }
.info-card--office .label, .info-card--office .info-list svg { color: var(--gold-600); }
.info-card--office .h3, .info-card--office .info-list p, .info-card--office .info-list a { color: var(--ink-900); }
.info-card--office .info-list span { color: var(--text-2); }
.info-card--office .info-list a:hover { color: var(--gold-600); }
.office-contact { display: grid; gap: .35rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(139,119,72,.24); }
.office-contact h3 { margin: 0 0 .25rem; color: var(--ink-900); font-size: 1.2rem; }
.office-contact a { color: var(--ink-900); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.office-contact a:hover { color: var(--gold-600); }

.office-slideshow { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e5dfd3; }
.office-slideshow img, .office-slideshow video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.5s ease-in-out; }
.office-slideshow img:nth-child(2) { object-position: center 45%; }
.office-slideshow .is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .office-slideshow img.is-active { animation: none; } .office-slideshow img, .office-slideshow video { transition: none; } }

/* An editorial welcome: clear photos beside, rather than behind, the heading. */
.office-welcome { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1rem, 2vw, 1.75rem); align-items: center; padding: 1.25rem; background: rgba(245,241,232,.6); border: 1px solid rgba(139,119,72,.22); }
.office-welcome .office-slideshow { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; border: 6px solid #f7f3eb; outline: 1px solid rgba(139,119,72,.3); box-shadow: 0 6px 18px rgba(25,40,47,.08); }
.office-welcome .office-slideshow img { filter: saturate(.85); }
.office-welcome .office-slideshow img:first-child { object-fit: contain; }
.office-welcome .h2 { grid-column: 1; grid-row: 1; margin: 0; color: var(--ink-900); font-size: clamp(1.6rem, 2.2vw, 2.2rem); text-wrap: balance; }
@media (max-width: 560px) {
  .office-welcome { grid-template-columns: 1fr; gap: 1.5rem; }
  .office-welcome .h2 { grid-column: 1; grid-row: 1; }
  .office-welcome .office-slideshow { grid-column: 1; grid-row: 2; width: 100%; max-width: 320px; justify-self: center; }
}

/* Custodian names replace logos; home custody copy stands on its own. */
.stat__custodians { flex-direction: column; align-items: flex-start; gap: .55rem; font-size: .9rem; }
.stat__custodians a, .home-custody .prose a { text-decoration: underline; text-underline-offset: 3px; }
.home-custody { display: block; max-width: 940px; text-align: center; }
.home-custody .prose { margin-inline: auto; }
.home-custody .rule { margin-inline: auto; }
.custody-footnote { margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(139,119,72,.24); font-size: var(--fs-xs); line-height: 1.65; color: var(--text-2); scroll-margin-top: calc(var(--header-h) + 2rem); }

/* Editorial highlights beneath the homepage film. */
.home-stats .home-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; padding-block: 1rem; }
.home-highlights .stat { border: 0; padding: 1rem clamp(1rem, 2vw, 2rem); text-align: center; }
.home-highlights .stat + .stat { border-left: 1px solid rgba(139,119,72,.35); }
.home-highlights .stat__value { font-size: clamp(2.8rem, 4.8vw, 4.5rem); letter-spacing: -.04em; }
.home-highlights .stat__label { max-width: 36ch; margin: 1.2rem auto 0; font-size: .95rem; line-height: 1.65; letter-spacing: .01em; }
@media (max-width: 560px) {
  .home-stats .home-highlights { grid-template-columns: 1fr; }
  .home-highlights .stat { padding: 1.75rem 1rem; }
  .home-highlights .stat + .stat { border-left: 0; border-top: 1px solid rgba(139,119,72,.35); }
}

/* Important information and downloadable disclosures. */
.page-disclosures .header { background: var(--ink-900); }
.page-disclosures main { background: #f6f1e5; }
.disclosures-section { padding-top: calc(var(--header-h) + 4rem); }
.disclosures-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin: 2rem 0 3.5rem; }
.disclosures-intro .h1 { font-size: clamp(3.5rem, 7vw, 6.5rem); margin: 0; }
.disclosures-intro a, .compliance-card a { text-decoration: underline; text-decoration-color: var(--gold-600); text-underline-offset: 4px; }
.disclosure-row { display: grid; grid-template-columns: .2fr .8fr 2fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.disclosure-row:last-child { border-bottom: 1px solid var(--line); }
.disclosure-row h2 { font-size: 1.6rem; line-height: 1.15; margin: 0; }
.disclosure-row p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.disclosure-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.disclosure-links a { border: 1px solid rgba(139,119,72,.3); border-radius: 2rem; padding: .85rem 1.2rem; font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.disclosure-links a:hover { background: #eae1cf; }
.disclosures-support__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.compliance-card { min-width: 0; }
.compliance-card p, .compliance-card dd { font-size: var(--fs-sm); }
.compliance-card dl { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; margin: 1.5rem 0 0; }
.compliance-card dt { font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-600); }
.compliance-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
 .disclosures-intro { grid-template-columns: 1fr; gap: 1.5rem; }
 .disclosure-row { grid-template-columns: 2rem 1fr; gap: 1rem; }
 .disclosure-row > div { grid-column: 2; }
 .disclosures-support__inner { flex-direction: column; align-items: flex-start; }
 .compliance-card { width: 100%; }
 .compliance-card dl { grid-template-columns: 1fr; gap: .5rem; }
}

.firm-brokercheck { display: grid; gap: .75rem; width: 201px; flex: none; color: #1d6ca5; font-size: .85rem; line-height: 1.4; text-align: center; }
.firm-brokercheck img { width: 201px; height: auto; }
.firm-brokercheck:hover span { text-decoration: underline; }
