/* self-hosted fonts */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }

/* ============================================================
   Aspirean Wealth — paper & sage system
   Direction: restrained coastal letterhead.
   Dials: variance 5 · motion 3 · density 3
   ============================================================ */

:root {
  /* color */
  --paper:      #f6f5ee;
  --mist:       #edecdf;
  --ink:        #17211b;
  --ink-2:      #223028;      /* raised surface on ink */
  --ink-soft:   #46534b;
  --ink-mid:    #5c6a61;
  --ink-faint:  #8b968d;      /* only on ink surfaces */
  --paper-soft: #cfd6cd;      /* muted text on ink */
  --sage:       #5b9e74;
  --sage-deep:  #3c7554;
  --sage-glow:  #9ecbb0;      /* accent on ink */
  --rule:       #dcdacc;
  --rule-ink:   #2c3a31;

  /* type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0:  1rem;
  --step-1:  1.3125rem;
  --step-2:  1.75rem;
  --step-3:  2.625rem;
  --step-4:  clamp(2.75rem, 5.5vw, 4.75rem);

  /* rhythm */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sage-deep); }
::selection { background: var(--sage); color: var(--paper); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose { max-width: var(--measure); color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------- kickers, rules ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--sage-deep);
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 var(--s-3);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sage); flex: none; }
.on-ink .eyebrow { color: var(--sage-glow); }
.on-ink .eyebrow::before { background: var(--sage-glow); }

.horizon { height: 1px; background: var(--sage); transform-origin: left center; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 15px 30px; border: 1px solid transparent; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--sage-deep); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.on-ink .btn, .btn-paper { background: var(--paper); color: var(--ink); }
.on-ink .btn:hover, .btn-paper:hover { background: var(--sage-glow); color: var(--ink); }

.link-quiet {
  font-family: var(--sans); font-size: 0.9375rem;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--sage); padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover { color: var(--sage-deep); }
.link-quiet:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.on-ink .link-quiet { color: var(--paper); border-color: rgba(246,245,238,0.45); }
.on-ink .link-quiet:hover { color: var(--sage-glow); border-color: var(--sage-glow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: 78px; /* must match the -78px hero pull-up, or a sliver of paper shows above the hero */
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(246,245,238,0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.is-solid {
  background: rgba(246,245,238,0.88);
  backdrop-filter: blur(10px);
  border-color: var(--rule);
}
.site-header.header-dark:not(.is-solid) .nav a { color: var(--paper); }
.site-header.header-dark:not(.is-solid) .nav a.nav-cta { color: var(--sage-glow); text-decoration-color: var(--sage-glow); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; height: 30px; flex: none; }
.brand-mark img { height: 100%; width: auto; display: block; transition: opacity 0.35s ease; }
.brand-mark .mk-sage { position: absolute; inset: 0; opacity: 0; }
.brand-words { display: block; overflow: hidden; max-width: 220px; transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.brand-words img { height: 17px; width: auto; max-width: none; display: block; }
.brand-words .ww-ink { display: none; }
/* scrolled: the words collapse into the mark; the mark turns sage for the paper header */
.site-header.is-solid .brand-words { max-width: 0; opacity: 0; transform: translateX(-10px); }
.site-header.is-solid .mk-paper { opacity: 0; }
.site-header.is-solid .mk-sage { opacity: 1; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.01em;
  color: var(--ink-soft); text-decoration: none;
  padding: 11px 2px;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--sage-deep); }
.nav a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.nav a.nav-cta { color: var(--sage-deep); text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); margin-top: -78px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  transform: scale(1.06);
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(23,33,27,0.62) 0%, rgba(23,33,27,0.2) 30%,
    rgba(23,33,27,0.38) 58%, rgba(23,33,27,0.82) 84%, rgba(23,33,27,0.96) 100%);
}
.hero-inner {
  position: relative; min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  padding-top: 160px; padding-bottom: 84px;
}
.hero h1 {
  font-size: var(--step-4); color: var(--paper);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 32px rgba(23,33,27,0.4);
}
.hero h1 em { font-style: italic; color: var(--sage-glow); }
.hero .lead {
  font-size: var(--step-1); line-height: 1.5; color: var(--paper);
  max-width: 34ch; margin: 26px 0 0;
  text-shadow: 0 1px 18px rgba(23,33,27,0.55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 40px; }
.hero .horizon { position: relative; }

/* ---------- generic sections ---------- */
.section { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--paper); }
.section h2 { font-size: var(--step-3); max-width: 20ch; letter-spacing: -0.005em; }
.section-ink h2 { color: var(--paper); }

/* split layout: heading rail left, content right */
.split { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-rail { position: sticky; top: 110px; }

/* service list (What we do) */
.svc { border-top: 1px solid var(--rule); padding: var(--s-4) 0; display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-4); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc h3 { font-size: var(--step-2); font-weight: 400; }
.svc p { color: var(--ink-soft); font-size: 0.9688rem; margin: 0; }

/* who we serve rows */
.cohort { border-top: 1px solid var(--rule); padding: var(--s-6) 0; display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-4); align-items: start; }
.cohort:last-of-type { border-bottom: 1px solid var(--rule); }
.cohort-tag {
  font-family: var(--sans); font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--sage-deep);
}
.cohort h3 { font-size: var(--step-2); font-weight: 400; margin: 10px 0 0; }
.cohort-body p { color: var(--ink-soft); }
.cohort-body .link-quiet { font-size: 0.9063rem; }

/* how we work steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.step-n { font-family: var(--serif); font-weight: 300; font-size: 3.5rem; line-height: 1; color: var(--sage); }
.step-rule { height: 1px; background: var(--rule); margin: 18px 0 20px; }
.step h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.9688rem; margin: 0; }

/* expect list */
.expect { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.expect li { border-top: 1px solid var(--rule); padding: 22px 0; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; }
.expect li:last-child { border-bottom: 1px solid var(--rule); }
.expect .tick { color: var(--sage-deep); font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.expect strong { display: block; color: var(--ink); font-weight: 500; }
.expect span.d { color: var(--ink-soft); font-size: 0.9375rem; }
.on-ink .expect li { border-color: var(--rule-ink); }
.on-ink .expect .tick { color: var(--sage-glow); }
.on-ink .expect strong { color: var(--paper); }
.on-ink .expect span.d { color: var(--paper-soft); }

/* quote band */
.quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.2; color: var(--paper); max-width: 24ch; margin: 0; }
.quote em { font-style: italic; color: var(--sage-glow); }
.quote-cite { margin-top: var(--s-4); font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.office { border-top: 1px solid var(--rule); padding-top: 20px; }
.office h3 { font-size: 1.375rem; font-weight: 400; }
.office p { color: var(--ink-soft); font-size: 0.9063rem; margin: 8px 0 0; }
.office a { color: var(--ink-soft); text-decoration: none; }
.office a:hover { color: var(--sage-deep); }

/* faq */
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-weight: 400; font-size: 1.375rem;
  padding: 24px 40px 24px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.5rem; color: var(--sage-deep);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--sage-deep); }
.faq-item summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.faq-body { padding: 0 0 26px; color: var(--ink-soft); max-width: var(--measure); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mid); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 2px; border-radius: 0;
  transition: border-color 0.2s ease;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-mid); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 1px solid var(--sage-deep); box-shadow: 0 1px 0 var(--sage-deep); }
.field textarea { resize: vertical; min-height: 84px; }
.form-note { font-size: 0.8438rem; color: var(--ink-mid); margin-top: 14px; }
.form-sent { font-family: var(--serif); font-weight: 300; font-size: 1.75rem; border-top: 1px solid var(--sage); padding-top: 24px; }

/* footer */
.site-footer { background: var(--ink); padding: 64px var(--gutter) 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 19px; width: auto; }
.footer-col h4 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.875rem; color: var(--paper-soft); text-decoration: none; margin: 0 0 10px; }
.footer-col a:hover { color: var(--sage-glow); }
.footer-col a:focus-visible { outline: 2px solid var(--sage-glow); outline-offset: 3px; }
.footer-line { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--rule-ink); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-line p { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-faint); margin: 0; }

/* interior page hero (skeleton pages) */
.page-hero { position: relative; background: var(--ink); margin-top: -78px; overflow: hidden; }
.page-hero .hero-inner { min-height: min(56vh, 520px); padding-top: 150px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.75rem); color: var(--paper); max-width: 18ch; letter-spacing: -0.01em; text-shadow: none; }
.page-hero .lead { font-size: 1.125rem; max-width: 52ch; }

.copy-section h2 { font-size: var(--step-2); font-weight: 400; margin: var(--s-6) 0 var(--s-3); max-width: 26ch; }
.copy-section h2:first-child { margin-top: 0; }
.copy-section h3 { font-size: 1.375rem; font-weight: 400; margin: var(--s-4) 0 var(--s-2); }
.copy-section ul { color: var(--ink-soft); max-width: var(--measure); padding-left: 1.1em; }
.copy-section li { margin-bottom: 8px; }
.cta-band { text-align: left; }

/* reveal default state handled in JS; keep visible if JS fails */
.reveal { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-rail { position: static; }
  .svc, .cohort { grid-template-columns: 1fr; gap: var(--s-2); }
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .offices { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-top: var(--s-7); padding-bottom: var(--s-7); }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1rem; color: var(--ink); }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; cursor: pointer;
    font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink); padding: 10px 0;
  }
  .header-dark:not(.is-solid) .nav-toggle { color: var(--paper); }
  .nav-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
  .site-header.is-open { background: var(--paper); border-color: var(--rule); }
  .site-header.is-open .nav-toggle { color: var(--ink) !important; }
  .site-header.header-dark:not(.is-solid) .nav a { color: var(--ink); }
  .site-header.header-dark:not(.is-solid) .nav a.nav-cta { color: var(--sage-deep); text-decoration-color: var(--sage); }
  .site-header.is-open .mk-paper { opacity: 0; }
  .site-header.is-open .mk-sage { opacity: 1; }
  .site-header.is-open .brand-words .ww-paper { display: none; }
  .site-header.is-open .brand-words .ww-ink { display: block; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media img { transform: none; }
}

/* ---------- team marquee ---------- */
.team-band { overflow: hidden; margin-top: 64px; }
.team-track { display: flex; gap: 24px; width: max-content; animation: team-scroll 55s linear infinite; }
.team-band:hover .team-track,
.team-track:focus-within { animation-play-state: paused; }
@keyframes team-scroll { to { transform: translateX(calc(-50% - 12px)); } }
.team-card {
  border: 0; padding: 0; background: none; cursor: pointer;
  text-align: left; width: 240px; flex: none;
  font-family: var(--sans);
}
.team-card .team-photo {
  width: 240px; height: 290px; object-fit: cover; display: block;
  background: var(--mist);
  filter: grayscale(1);
  transition: filter 0.35s ease;
}
.team-card:hover .team-photo,
.team-card:focus-visible .team-photo { filter: grayscale(0); }
.team-card:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.team-name { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin: 14px 0 2px; }
.team-role { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-mid); margin: 0; }
.team-hint { font-size: 0.8438rem; color: var(--ink-mid); margin-top: 20px; }

/* ---------- team modal ---------- */
.team-modal[hidden] { display: none; }
.team-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.team-modal-backdrop { position: absolute; inset: 0; background: rgba(23,33,27,0.72); cursor: pointer; }
.team-modal-panel {
  position: relative; background: var(--paper); max-width: 880px; width: 100%;
  max-height: min(84vh, 720px); overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; border-top: 2px solid var(--sage);
}
.team-modal-panel .tm-photo { width: 100%; height: 100%; object-fit: cover; background: var(--mist); }
.tm-body { padding: 40px 44px; overflow-y: auto; }
.tm-body h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 4px; }
.tm-role { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 24px; }
.tm-bio p { color: var(--ink-soft); font-size: 0.9688rem; }
.team-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 2px;
  background: var(--paper); color: var(--ink); font-size: 1.4rem; line-height: 1;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.team-modal-close:hover { background: var(--sage-deep); color: var(--paper); }
.team-modal-close:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .team-modal-panel { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .team-modal-panel .tm-photo { height: 300px; }
  .tm-body { padding: 28px 24px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .team-track { animation: none; }
  .team-band { overflow-x: auto; padding-bottom: 10px; }
}


/* ---------- parallax ---------- */
.hero-media img[data-parallax],
[data-parallax-wrap] img[data-parallax] { position: relative; top: -8%; height: 116%; will-change: transform; }
[data-parallax-wrap] { overflow: hidden; position: relative; }

/* ---------- perspectives / post list ---------- */
.post { border-top: 1px solid var(--rule); padding: var(--s-5) 0; display: grid; grid-template-columns: 160px 1fr; gap: var(--s-4); align-items: baseline; }
.post:last-of-type { border-bottom: 1px solid var(--rule); }
.post-date { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mid); }
.post h3 { font-size: var(--step-2); font-weight: 400; margin: 0 0 10px; }
.post h3 a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.post h3 a:hover { color: var(--sage-deep); }
.post h3 a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.post p { color: var(--ink-soft); font-size: 0.9688rem; max-width: 60ch; margin: 0; }
.post .link-quiet { font-size: 0.9063rem; }
@media (max-width: 900px) {
  .post { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ---------- client portal button ---------- */
.nav a.nav-portal {
  border: 1px solid var(--ink-mid); border-radius: 2px;
  padding: 9px 18px; color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav a.nav-portal:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.site-header.header-dark:not(.is-solid) .nav a.nav-portal {
  border-color: rgba(246,245,238,0.55); color: var(--paper);
}
.site-header.header-dark:not(.is-solid) .nav a.nav-portal:hover {
  background: var(--paper); border-color: var(--paper); color: var(--ink);
}
@media (max-width: 720px) {
  .nav a.nav-portal { display: inline-block; margin-top: 12px; padding: 10px 20px; }
  .site-header.header-dark:not(.is-solid) .nav a.nav-portal { border-color: var(--ink-mid); color: var(--ink); }
  .site-header.header-dark:not(.is-solid) .nav a.nav-portal:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
}

/* ---------- founding principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); margin-top: 56px; }
.principle { border-top: 1px solid var(--rule); padding-top: 20px; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 10px; }
.principle p { color: var(--ink-soft); font-size: 0.9688rem; margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* ---------- compact offices strip ---------- */
.offices-mini { background: var(--mist); padding: 44px var(--gutter); }
.offices-mini-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.offices-mini h3 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.offices-mini p { font-family: var(--sans); font-size: 0.8438rem; line-height: 1.55; color: var(--ink-mid); margin: 0; }
.offices-mini a { color: var(--ink-mid); text-decoration: none; }
.offices-mini a:hover { color: var(--sage-deep); }
@media (max-width: 720px) { .offices-mini-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- duo: two equal columns (what we do / expect) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.duo .svc { grid-template-columns: 1fr; gap: 8px; }
.duo .expect { max-width: none; }
.duo-head { margin-bottom: var(--s-4); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- tighter section variant ---------- */
.section-tight { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.on-ink .prose { color: var(--paper-soft); }

/* ---------- expandable cohorts with question links ---------- */
details.cohort { display: block; padding: 0; }
details.cohort > summary {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-4); align-items: start;
  padding: var(--s-6) 0; cursor: pointer; list-style: none; position: relative;
}
details.cohort > summary::-webkit-details-marker { display: none; }
details.cohort > summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.cohort-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-deep);
}
.cohort-more::after { content: "+"; font-size: 1.05rem; line-height: 1; transition: transform 0.3s ease; }
details.cohort[open] .cohort-more::after { transform: rotate(45deg); }
details.cohort > summary:hover .cohort-more { color: var(--ink); }
.cohort-qs { padding: 0 0 var(--s-6); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-4); }
.cohort-qs > .qs-rail { border: 0; }
.qs-list { display: grid; gap: 0; }
a.qa {
  display: block; text-decoration: none; border-top: 1px solid var(--rule);
  padding: 22px 0; transition: background 0.2s ease;
}
a.qa:last-child { border-bottom: 0; }
a.qa .qa-q {
  display: block; font-family: var(--serif); font-size: var(--step-1); font-weight: 400;
  color: var(--ink); line-height: 1.3; transition: color 0.2s ease;
}
a.qa:hover .qa-q { color: var(--sage-deep); }
a.qa:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
a.qa .qa-blurb { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 0.9375rem; max-width: 62ch; }
a.qa .qa-read {
  display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep);
  border-bottom: 1px solid var(--sage); padding-bottom: 2px;
}
@media (max-width: 900px) {
  details.cohort > summary, .cohort-qs { grid-template-columns: 1fr; gap: var(--s-2); }
  .cohort-qs > .qs-rail { display: none; }
}

/* ---------- quote on paper (section thesis) ---------- */
.quote-ink { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.22; color: var(--ink); max-width: 26ch; margin: 0; }
.quote-ink em { font-style: italic; color: var(--sage-deep); }
.quote-cite-ink { margin-top: var(--s-3); font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mid); }

/* ---------- article pages ---------- */
.article-hero { background: var(--ink); margin-top: -78px; padding: 170px 0 72px; }
.article-hero .eyebrow { color: var(--sage-glow); }
.article-hero .eyebrow::before { background: var(--sage-glow); }
.article-hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); color: var(--paper); max-width: 24ch; letter-spacing: -0.01em; font-weight: 300; }
.article-hero .article-meta { margin-top: 22px; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.article { max-width: 68ch; }
.article p { color: var(--ink-soft); margin: 0 0 1.4em; }
.article h2 { font-size: var(--step-2); font-weight: 400; margin: 2.2em 0 0.7em; }
.article .article-close { font-style: italic; color: var(--ink-soft); }
.article .article-disclaimer { font-style: italic; color: var(--ink-mid); font-size: 0.9063rem; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 40px; }
.article-back { display: inline-block; margin-bottom: 28px; }

/* ---------- what we do: photo split + compact services ---------- */
.wwd-media { position: relative; overflow: hidden; border-radius: 2px; min-height: 460px; height: 100%; }
.wwd-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.svc-compact { border-top: 1px solid var(--rule); padding: 18px 0; }
.svc-compact:last-of-type { border-bottom: 1px solid var(--rule); }
.svc-compact h3 { font-size: 1.25rem; font-weight: 400; margin: 0 0 6px; }
.svc-compact p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; max-width: 52ch; }
@media (max-width: 900px) { .wwd-media { min-height: 320px; } }

/* ---------- expect band: five short promises ---------- */
.expect-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 1040px) { .expect-band { grid-template-columns: repeat(5, 1fr); gap: 28px; } }
.expect-band > div { border-top: 2px solid var(--sage); padding-top: 16px; }
.expect-band strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; color: var(--ink); margin-bottom: 8px; }
.expect-band span { color: var(--ink-soft); font-size: 0.9063rem; line-height: 1.55; }

/* ---------- case studies ---------- */
.case { border-top: 1px solid var(--rule); padding: var(--s-6) 0; display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-4); }
.case:last-of-type { border-bottom: 1px solid var(--rule); }
.case h3 { font-size: var(--step-2); font-weight: 400; margin: 10px 0 0; }
.case-body h4 { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; margin: 26px 0 10px; }
.case-body h4:first-child { margin-top: 0; }
.case-body p { color: var(--ink-soft); max-width: 62ch; margin: 0 0 14px; }
.case-note { margin-top: var(--s-5); color: var(--ink-mid); font-size: 0.9063rem; font-style: italic; max-width: 72ch; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: var(--s-2); } }

/* ---------- perspectives: topic hub ---------- */
.topic { padding: var(--s-6) 0; border-top: 1px solid var(--rule); }
.topic:last-of-type { border-bottom: 1px solid var(--rule); }
.topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: 10px; }
.topic-head h2 { font-size: var(--step-3); font-weight: 400; margin: 0; }
.topic-head h2 a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.topic-head h2 a:hover { color: var(--sage-deep); }
.topic-desc { color: var(--ink-soft); max-width: 60ch; margin: 0 0 26px; }
.q-row {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--rule);
  text-decoration: none;
}
.q-row .q-arrow { color: var(--sage-deep); font-family: var(--sans); transition: transform 0.25s ease; }
.q-row:hover .q-arrow { transform: translateX(6px); }
.q-row .q-text { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); line-height: 1.35; transition: color 0.2s ease; }
.q-row:hover .q-text { color: var(--sage-deep); }
.q-row:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.q-row .q-date { display: block; margin-top: 6px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mid); }
.topic .link-quiet { font-size: 0.9063rem; }

/* ---------- who we serve: numbered persona blocks ---------- */
details.persona { display: block; border-top: 1px solid var(--rule); }
details.persona:last-of-type { border-bottom: 1px solid var(--rule); }
details.persona > summary {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-5) 0; cursor: pointer; list-style: none;
}
details.persona > summary::-webkit-details-marker { display: none; }
details.persona > summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.persona-n { font-family: var(--serif); font-weight: 300; font-size: 2rem; color: var(--sage-deep); line-height: 1; padding-top: 6px; }
.persona-main .cohort-tag { margin-bottom: 12px; }
.persona-main h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 400; line-height: 1.2; margin: 0 0 16px; max-width: 26ch; letter-spacing: -0.01em; }
.persona-main .persona-body { color: var(--ink-soft); max-width: 58ch; margin: 0; }
.persona-qs { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding-bottom: var(--s-5); }
.persona-qs > .qs-rail { border: 0; }
@media (max-width: 900px) {
  details.persona > summary, .persona-qs { grid-template-columns: 1fr; gap: var(--s-2); }
  .persona-n { padding-top: 0; }
  .persona-qs > .qs-rail { display: none; }
}

/* ---------- the cost of complexity (ink band) ---------- */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
.cost { border-top: 2px solid var(--sage); padding-top: 20px; }
.cost h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--paper); margin: 0 0 12px; }
.cost p { color: var(--paper-soft); font-size: 0.9688rem; margin: 0; }
.cost-turn { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(246,245,238,0.18); }
.cost-turn p { font-family: var(--serif); font-weight: 300; font-size: var(--step-2); line-height: 1.3; color: var(--paper); margin: 0; max-width: 32ch; }
.cost-turn div:last-child { text-align: right; }
@media (max-width: 900px) {
  .cost-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .cost-turn { grid-template-columns: 1fr; }
  .cost-turn div:last-child { text-align: left; }
}

details.persona > summary:hover .cohort-more { color: var(--ink); }
details.persona[open] .cohort-more::after { transform: rotate(45deg); }

/* ---------- contact: single-viewport hero with form ---------- */
.contact-hero .hero-inner.contact-inner { min-height: 100vh; padding-top: 140px; padding-bottom: 72px; display: flex; align-items: center; }
.contact-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; width: 100%; }
.contact-hero h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.contact-card { background: var(--paper); padding: clamp(28px, 3.4vw, 44px); border-radius: 2px; box-shadow: 0 24px 60px rgba(10, 18, 14, 0.35); }
@media (max-width: 900px) {
  .contact-hero .hero-inner.contact-inner { min-height: 0; padding-top: 130px; }
  .contact-split { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- persona: hook left, copy right ---------- */
.persona-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.persona-main h3 { margin-bottom: 0; }
.persona-copy .persona-body { margin: 4px 0 0; }
@media (max-width: 900px) {
  .persona-main { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- client portal: one quiet room, four doors ---------- */
.portal-hero .hero-inner.portal-inner { min-height: 100vh; padding-top: 140px; padding-bottom: 80px; display: flex; align-items: center; }
.portal-content { width: 100%; }
.portal-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.portal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.portal-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  min-height: 176px; padding: 26px 24px 22px;
  background: var(--paper); border-radius: 2px; text-decoration: none;
  box-shadow: 0 18px 50px rgba(10, 18, 14, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.portal-card:hover { transform: translateY(-5px); box-shadow: 0 28px 64px rgba(10, 18, 14, 0.45); }
.portal-card:focus-visible { outline: 2px solid var(--sage-glow); outline-offset: 4px; }
.portal-logo { display: flex; align-items: center; justify-content: center; height: 72px; }
.portal-logo img { height: 38px; width: auto; max-width: 100%; object-fit: contain; }
.portal-card--schwab .portal-logo img { height: 40px; }
.portal-card--fidelity .portal-logo img { height: 26px; }
.portal-name {
  display: flex; align-items: flex-start; justify-content: center; text-align: center; gap: 10px;
  height: 68px;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-mid); border-top: 1px solid var(--rule); padding-top: 14px; line-height: 1.5;
}
.portal-arrow { color: var(--sage-deep); transition: transform 0.3s ease; }
.portal-card:hover .portal-arrow { transform: translateX(5px); }
.portal-card:hover .portal-name { color: var(--ink); }
.portal-help { margin-top: 36px; color: var(--paper-soft); font-size: 0.9375rem; }
.portal-help a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sage-glow); }
@media (max-width: 1000px) { .portal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .portal-grid { grid-template-columns: 1fr; } .portal-hero .hero-inner.portal-inner { min-height: 0; } }

/* ---------- two-up variant of the ink service grid ---------- */
.cost-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cost-grid--two { grid-template-columns: 1fr; } }
