/*
  MHW Website Phase 3 — shared visual system.
  Extracted from the owner-approved Pass 2 baseline:
  Career/01_RIA_Launch/tmp/MHW_Website_Pass_2_Reference_System_Correction_2026-08-12/style.css
  (sha256 c9882448de5dd7b3a056e98e2ca8333ab4a286d1357620ba52891ea7f7dd52bd)
  Tokens, type scale, section rhythm, header/footer, and CTA/button treatment are carried
  forward unchanged in value. Structure reorganized for multi-page reuse; this is not
  required to be byte-identical to the source file (visual-regression equivalence only).
*/
:root {
  --paper: #fbfaf7;
  --paper-deep: #f2eee5;
  --ink: #123047;
  --ink-2: #315d7c;
  --body: #334b5b;
  --muted: #64737e;
  --line: #d9dedc;
  --copper: #a8531e;
  --copper-deep: #7d3c14;
  --gold: #e8c77b;
  --sage: #5f6f5c;
  --white: #ffffff;
  --max: 1160px;
  --serif: Charter, "Iowan Old Style", Georgia, serif;
  --sans: Optima, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 48, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 48, 71, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--copper-deep); }
.cta-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, label:focus-within {
  outline: 3px solid rgba(168, 83, 30, 0.45);
  outline-offset: 4px;
}
img { max-width: 100%; display: block; }
p, h1, h2, h3, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg text { font-family: var(--sans); }
.diagram-serif { font-family: var(--serif); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand-mark { width: auto; height: 84px; }
.site-header .site-nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.site-header .site-nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.site-header .site-nav a[aria-current="page"] { color: var(--copper-deep); font-weight: 700; }

/* Mobile menu: real <button>, keyboard-operable, state driven by aria-expanded + JS */
.menu-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  border-radius: 4px;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.menu-toggle-bars { display: grid; gap: 5px; width: 24px; }
.menu-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle-btn[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle-btn[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle-btn[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle-btn:focus-visible {
  outline: 3px solid rgba(168, 83, 30, 0.45);
  outline-offset: 2px;
}

.page-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
}
.kicker, .section-label {
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}
h1 {
  max-width: 16ch;
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
}
h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
}
h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
}
.hero-sub, .body-large {
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.62;
}
.hero-sub { max-width: 54ch; margin-top: 24px; }
.body-large { margin-top: 22px; }

/*
  Two-column hero (Home only) — extracted unchanged in value from the Pass 2
  baseline's representative-pages/home.html, sha256
  88fd4e13d65e2c9c9960236629395ee5cb8e148a024fd3a506fb80420615a611.
  Distinct from the single-column .page-hero used on the other six pages
  because this is the approved Home reference composition, not redesigned.
*/
.hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-top: 18px; }
.hero-system figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 238, 229, 0.62)),
    radial-gradient(circle at 72% 28%, rgba(232, 199, 123, 0.2), transparent 30%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-panel .diagram-svg { width: 100%; height: auto; overflow: visible; }
.cta-row, .decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 650;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #0b2335; color: var(--white); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.54); color: var(--ink); }

.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section.compact-top { padding-top: 56px; }
.tonal { background: var(--paper-deep); }
.section-intro { max-width: 760px; margin-bottom: 42px; }
.section-intro p:last-child { color: var(--body); font-size: 18px; margin-top: 18px; }
.section-intro.compact { margin-bottom: 28px; }

/*
  Relationship/V-model and grammar-figure rules below are extracted unchanged
  in value from the owner-approved Pass 2 baseline
  (Career/.../MHW_Website_Pass_2_Reference_System_Correction_2026-08-12/style.css,
  sha256 c9882448de5dd7b3a056e98e2ca8333ab4a286d1357620ba52891ea7f7dd52bd),
  the same six-stage desktop V + accessible numbered mobile V used on How We Work.
  Not redesigned — reused verbatim.
*/
.diagram-svg { width: 100%; height: auto; overflow: visible; display: block; }
.diagram-serif { font-family: var(--serif); }
.diagram-desktop-only { display: block; }

.vmodel-panels-solo { margin-top: 0; }
.vmodel-panel .diagram-svg { margin-top: 12px; }

.relationship-model {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px) 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}
.relationship-list { display: grid; gap: 16px; }
.relationship-list li {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}
.relationship-list span {
  display: block;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.relationship-list strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.relationship-list p { color: var(--body); margin-top: 12px; }
.relationship-core { display: grid; justify-items: center; gap: 10px; }
.relationship-core .vmini { width: 96px; height: auto; }
.relationship-core p {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  text-align: center;
}

.grammar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grammar {
  background: var(--white);
  padding: 28px;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}
.grammar > p { color: var(--body); margin-top: 12px; }
.grammar-figure { margin: 14px 0 4px; }
.grammar-figure .diagram-svg { width: 100%; height: auto; display: block; }
.grammar-figure-wide { overflow-x: auto; }
.grammar-figure-wide .diagram-svg { min-width: 640px; }
/* When Life Changes (How We Work): the tightened viewBox above already
   reduces blank vertical margin; this bump gives the same diagram more
   physical pixels so its labels render larger without changing layout
   elsewhere ("increase diagram scale... improve readability... reduce
   blank space" per the 2026-08-31 diagram-refinement directive). Scoped to
   hww-state's figure only — the generic .grammar-figure-wide rule above
   stays the shared default for any other wide diagram. */
[data-focus-scene="hww-state"] .grammar-figure-wide .diagram-svg { min-width: 760px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  padding: 30px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.card-row-center { align-content: center; }
.card span.num {
  display: block;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.card h3 { margin-top: 2px; }
/* Scoped for the Fees & Fit detailed-profile cards only (ER-1 Amendment E heading-semantics
   correction): h4 has no sitewide base rule, so profile headings need this to keep the same
   visual treatment as sibling .card h3 category headings while being a semantically
   subordinate heading level. Does not affect h3 or any h4 outside .card. */
.card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  margin-top: 2px;
}
.card p { color: var(--body); }

.card-diagram {
  justify-content: center;
  background: var(--white);
}
.card-diagram-wide { grid-column: span 2; }
.card-diagram .diagram-svg { width: 100%; height: auto; display: block; }
.card-diagram:not(.card-diagram-wide) .diagram-svg { max-width: 272px; margin: 0 auto; }
.card-diagram:not(.card-diagram-wide) { padding: 12px; gap: 3px; }
.card-diagram:not(.card-diagram-wide) figcaption { margin-top: 0; text-align: center; }
.card-diagram figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.diagram-mobile-only { display: none; }

.boundary-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  background: var(--white);
  padding: 26px 28px;
  display: grid;
  gap: 10px;
}
.boundary-box p:first-child { color: var(--copper-deep); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.boundary-box p { color: var(--body); }

.two-col {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) 1.28fr;
  gap: 56px;
  align-items: start;
}
.founder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1.28fr;
  gap: 64px;
  align-items: center;
}
.founder-frame { display: grid; gap: 14px; max-width: 380px; margin: 0 auto; width: 100%; }
.founder-frame-emphasis { max-width: 440px; }
.founder-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-size: 18px;
  margin: 10px 0 0;
}
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(49, 93, 124, 0.12), rgba(232, 199, 123, 0.17)),
    var(--white);
}
.portrait-placeholder span { font-family: var(--serif); font-size: 26px; }
.portrait-placeholder small { color: var(--muted); font-size: 13px; }
.founder-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.credential-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.credential-strip span {
  background: var(--white);
  color: var(--body);
  font-size: 12px;
  padding: 12px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}

.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.fee-table caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 10px; }
.fee-table th, .fee-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.fee-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fee-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.straight-tier-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  background: var(--paper-deep);
  padding: 22px 24px;
  margin-top: 20px;
  display: grid;
  gap: 8px;
}
.straight-tier-note p:first-child { color: var(--sage); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.straight-tier-note p { color: var(--body); font-size: 15px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-standalone { max-width: 480px; }
.contact-method { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: none; }
.contact-method span.label { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-method a, .contact-method p { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.step-list { display: grid; gap: 0; counter-reset: step; }
.step-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--copper-deep);
  font-size: 15px;
}

.decision-section { padding: 72px 0; background: var(--ink); color: var(--paper); }
.decision-section .section-label, .decision-section p { color: #d8c9b4; }
.decision-section .btn-primary { background: var(--paper); color: var(--ink); }
.decision-section .btn-secondary { border-color: rgba(251, 250, 247, 0.28); color: var(--paper); background: transparent; }
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.site-footer { padding: 36px 0 52px; background: #0d2436; color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { color: #d8c9b4; margin-top: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #d8c9b4; }
.site-footer a:hover { color: var(--gold); }

.reveal { animation: rise-in 680ms ease both; }
.reveal:nth-child(2) { animation-delay: 120ms; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/*
  Prototype P3 (GSAP + ScrollTrigger, Home Hero / #domains / Who-we-help —
  threshold-triggered discrete reveal/recede, no pinning, no scroll-scrubbing).
  Superseded P2's continuous scrub-curve model after owner visual review
  found it "effectively absent" — reference forensics on the actual EcheliX
  site (02_qualification/records/
  MHW_Website_Motion_EcheliX_Reference_Interaction_Forensics_2026-08-30.md)
  found its real mechanism is a single one-shot CSS opacity transition per
  section (700ms, cubic-bezier(0.4,0,0.2,1), full 0→1 range, no scale, no
  scroll-scrubbing) triggered once via IntersectionObserver — not a
  continuous per-pixel curve. P3 adopts that "bold, complete, discrete
  event" grammar for both entry AND the owner's separately-requested recede
  behavior (kept discrete/triggered rather than continuous, for grammar
  consistency, per independent review), while going beyond the literal
  EcheliX site — which does not recede its predecessor sections — because
  the owner has repeatedly and explicitly asked for that specific behavior.

  Every visual rule below is scoped under .focus-active, added per-section
  only after a desktop-eligible ScrollTrigger has actually been created
  inside gsap.matchMedia(). With JS absent, disabled, or ineligible (mobile,
  reduced motion), .focus-active is never added, so the unconditional
  baseline directly below (opacity 1, no transform) applies and every
  .focus-target renders exactly as the ordinary static page — no rule here
  can degrade the no-JS/static baseline.
*/

/* Unconditional baseline: fully visible/positioned regardless of JS state. */
[data-focus-scene] .focus-target { opacity: 1; transform: none; }

/* Once a desktop-eligible scene is running: start each module in a clearly
   hidden pending state (full opacity-0, a real fade-in target, not a subtle
   floor — matching the reference's full 0→1 range) plus a modest translateY
   so the arrival reads as a distinct visible event. JS adds .in-view via
   ScrollTrigger onEnter/onLeaveBack (a threshold trigger, not scrub) once
   the module crosses into its focal band. */
.focus-active[data-focus-scene] .focus-target {
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active[data-focus-scene] .focus-target.in-view {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Retired: added the moment the successor scene activates (see
   shared/motion.js), not an independent threshold — guarantees a section
   can never stay competing once the next one has taken focus, regardless
   of viewport/section height. Owner visual correction (2026-08-30): the
   prior 0.42 floor was found, on direct owner review, to still compete for
   attention; retired modules now go effectively fully hidden, matching the
   EcheliX reference's own opacity-0 pending state more closely, with only
   a hairline residual (not literal 0) so a section that's still partially
   in the viewport doesn't produce a jarring dead gap — confirmed by direct
   browser comparison, not assumed. pointer-events disabled, matching
   pending, since a retired module should not intercept interaction either.
   Written after .in-view so it wins when both classes are present (same
   specificity, source order). */
.focus-active[data-focus-scene] .focus-target.receded {
  opacity: 0.04;
  transform: translateY(-14px);
  pointer-events: none;
}

/* Domains internal diagram (Layer 2): a short, staggered reveal of the
   diagram's own child groups, triggered slightly after the whole module's
   own entry (a later threshold, not a scroll-linked scrub), so the module
   arrives first and the diagram's relationships resolve a beat behind it —
   fast, fixed-duration, never gating scroll pace. Baseline stays fully
   visible until JS confirms an eligible running scene, matching every
   other no-JS/static guarantee on this page. */
[data-motion-part] { opacity: 1; transform: none; }
.domain-connectors, .domain-cross-links, .domain-hub, .domain-nodes, .domain-node-labels {
  opacity: 1;
}
.focus-active .domain-cross-links,
.focus-active .domain-hub,
.focus-active .domain-nodes,
.focus-active .domain-node-labels {
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1), transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .domain-hub { transform: scale(0.7); transform-origin: 350px 210px; }
.focus-active .domain-nodes { transition-delay: 180ms; }
.focus-active .domain-cross-links { transition-delay: 300ms; }
.focus-active .domain-hub { transition-delay: 380ms; }
.focus-active .domain-node-labels { transition-delay: 460ms; }
.focus-active .diagram-in-view .domain-cross-links,
.focus-active .diagram-in-view .domain-hub,
.focus-active .diagram-in-view .domain-nodes,
.focus-active .diagram-in-view .domain-node-labels { opacity: 1; transform: none; }

/* Connectors (Layer 2 refinement): a short stroke-draw trace rather than a
   plain fade, so the six domain lines visibly connect into the hub instead
   of just materializing — "lines trace, hub anchors the sequence" per the
   diagram-animation directive. pathLength="1" (set on each <line> in the
   markup) normalizes dasharray/dashoffset math so every connector, despite
   differing pixel lengths, draws over the same fixed duration. Threshold-
   triggered like everything else here, not scroll-scrubbed. */
.focus-active .domain-connectors line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .diagram-in-view .domain-connectors line { stroke-dashoffset: 0; }

/* Domains diagram: constrained from its P1 full-.wrap-width footprint
   (measured ~1102px) down to a size subordinate to the whole module,
   selected by direct browser evaluation during the P2 sprint. */
/* Domains only. Scoped by #domains, not by class alone — the original
   selector here (.grammar-figure.diagram-desktop-only) unintentionally
   also matched How We Work's "When Life Changes" diagram, which also
   carries both classes, silently capping its width to 660px too. Found via
   direct browser testing during the 2026-08-31 diagram-refinement pass
   (a widened min-width on that diagram was clipping inside this cap). */
#domains .grammar-figure.diagram-desktop-only { width: 100%; max-width: 660px; margin-inline: auto; }

/* Domains-only: with the diagram now width-constrained, tighten the label/
   heading-to-diagram gap so the whole module reads as one grouped unit
   rather than a heading followed by a separately-scaled graphic. Scoped to
   #domains only — .section-intro.compact is shared with other pages. */
#domains .section-intro.compact { margin-bottom: 20px; }
#domains .grammar-figure { margin: 8px 0 2px; }

/* ---------------------------------------------------------------------
   Diagram Animation & Scroll-Cue Refinement (2026-08-31)
   Layer 2 (diagram explanation) sits ON TOP of Layer 1 (section focus) and
   must never dominate it: every rule below is still gated on .diagram-
   in-view, which shared/motion.js only adds after the section's own
   .in-view has already resolved (see the createNonInitialTriggers/initial-
   reveal onEnter callbacks) — so a diagram never starts animating before
   its own module has visibly arrived. All transitions are short, threshold-
   triggered, and resolve immediately to their end state under fast/reverse
   scroll (CSS transitions jump to the current target value the instant the
   triggering class changes; there is no scroll-linked scrub to desync).
   --------------------------------------------------------------------- */

/* Scroll cue: shown only on the page's first (initial) focal module, only
   before the user's first genuine scroll, only when JS/desktop/motion is
   actually active — injected by shared/motion.js, never present in the
   static/no-JS markup, so no-JS/reduced-motion/mobile users never see a cue
   promising an interaction that isn't running for them. */
/* Secondary-page heroes (.page-hero) are short — found by direct browser
   review to leave the cue crowding the hero-sub paragraph without a little
   extra breathing room below it. Home's own hero (.hero, not .page-hero)
   already has enough natural whitespace and is left untouched. */
.page-hero.focus-active { padding-bottom: 64px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .scroll-cue.cue-armed, .focus-active-mobile .scroll-cue.cue-armed { opacity: 0.65; }
.scroll-cue-chevron {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  animation: scroll-cue-bob 1800ms ease-in-out infinite;
}
@keyframes scroll-cue-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}

/* Technical Professionals (Who We Help) — convergence diagram, Layer 2.
   Lines trace inward first, dots/labels resolve as they land, the
   convergence point and "ONE PLAN" endpoint anchor the sequence last —
   deliberately quick (sub-500ms total) so it reads as crisp confirmation,
   not a performance. pathLength="1" set on each traced path/line in the
   markup, matching the Domains connector technique above. */
.focus-active .tp-lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 340ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .tp-nodes, .focus-active .tp-labels, .focus-active .tp-hub, .focus-active .tp-final {
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1), transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .tp-hub, .focus-active .tp-final { transform: scale(0.6); transform-origin: 430px 101px; }
.focus-active .diagram-in-view .tp-lines path { stroke-dashoffset: 0; }
.focus-active .diagram-in-view .tp-nodes { opacity: 1; transition-delay: 160ms; }
.focus-active .diagram-in-view .tp-labels { opacity: 1; transition-delay: 200ms; }
.focus-active .diagram-in-view .tp-hub { opacity: 1; transform: none; transition-delay: 300ms; }
.focus-active .diagram-in-view .tp-final { opacity: 1; transform: none; transition-delay: 380ms; }

/* Integrated Financial Planning (What We Do) — the diagram card begins
   visually dominant (scaled up, arriving first) then settles to its normal
   grid role while the surrounding planning-area cards reveal a beat behind
   it, per the owner's "center concept dominates, then settles, then the
   grid reveals around it" direction. No separate diagram-in-view threshold
   needed — this rides the section's own existing .in-view state, just with
   per-card stagger layered on top of it. */
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1), transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card-diagram {
  position: relative;
  z-index: 2;
  /* Toned down from an initial 1.3 per Codex design-critique feedback
     (2026-08-31 Pass 2): 1.3 read as showier than the path-trace diagrams
     elsewhere on the site; 1.16 still reads as clearly dominant on arrival
     without feeling like a UI flourish. */
  transform: scale(1.16);
  transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1), transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active[data-focus-scene="hwh-planning"] .focus-target.in-view .card-grid .card { opacity: 1; transform: translateY(0); }
.focus-active[data-focus-scene="hwh-planning"] .focus-target.in-view .card-grid .card-diagram { opacity: 1; transform: scale(1); }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(1) { transition-delay: 160ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(2) { transition-delay: 200ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(3) { transition-delay: 240ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(4) { transition-delay: 280ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(6) { transition-delay: 320ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(7) { transition-delay: 360ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(8) { transition-delay: 400ms; }
.focus-active[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(9) { transition-delay: 440ms; }

/* When Life Changes (How We Work) — path traces across the planning-state
   timeline, event markers resolve in order, caption rests last. Diagram
   sizing/readability (viewBox, min-width, font sizes) improved directly in
   how-we-work/index.html, not here. */
.focus-active .wlc-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 420ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .wlc-nodes, .focus-active .wlc-event, .focus-active .wlc-branch, .focus-active .wlc-caption {
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.focus-active .diagram-in-view .wlc-path { stroke-dashoffset: 0; }
.focus-active .diagram-in-view .wlc-nodes { opacity: 1; transition-delay: 280ms; }
.focus-active .diagram-in-view .wlc-event-1 { opacity: 1; transition-delay: 340ms; }
.focus-active .diagram-in-view .wlc-event-2 { opacity: 1; transition-delay: 400ms; }
.focus-active .diagram-in-view .wlc-event-3 { opacity: 1; transition-delay: 460ms; }
.focus-active .diagram-in-view .wlc-branch { opacity: 1; transition-delay: 480ms; }
.focus-active .diagram-in-view .wlc-event-4 { opacity: 1; transition-delay: 560ms; }
.focus-active .diagram-in-view .wlc-caption { opacity: 1; transition-delay: 620ms; }

/* ---------------------------------------------------------------------
   Mobile Focus-System & Diagram-Animation Integration (2026-08-31)

   Mobile previously never ran the motion system at all (shared/motion.js
   gated the whole thing to `(min-width: 921px)`), so the block this
   replaces was a blanket static override — safe at the time because JS
   never added .focus-active below 921px in the first place. Now that
   shared/motion.js registers a SECOND, separately-tuned gsap.matchMedia()
   branch for `(max-width: 920px)`, that blanket override would incorrectly
   cancel legitimate mobile motion, so it's replaced with a real mobile
   configuration below instead of just being deleted.

   Desktop's own rules (keyed off .focus-active, further up this file) are
   completely untouched — mobile scenes get a DIFFERENT class,
   .focus-active-mobile, added by the mobile matchMedia branch in
   shared/motion.js, so the two configurations can never collide or bleed
   into one another regardless of viewport-transition timing.

   Values here are deliberately lighter/faster than desktop, per direct
   mobile-viewport review: smaller translateY (less vertical travel on a
   short viewport), shorter transition duration (touch scrolling feels
   faster than a trackpad/wheel, so a 700ms desktop reveal reads as sluggish
   on a phone), and a shorter initial-module minimum-visible window.

   True no-JS and prefers-reduced-motion fallbacks are unaffected: neither
   matchMedia branch (desktop or mobile) ever adds ANY .focus-active* class
   in those cases, so the unconditional baseline further up this file
   (opacity 1, no transform, outside any .focus-active* scope) is what
   renders — identical guarantee to desktop, not a mobile-specific rule.
   --------------------------------------------------------------------- */
@media (max-width: 920px) {
  .focus-active-mobile[data-focus-scene] .focus-target {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 420ms cubic-bezier(0.4, 0, 0.2, 1), transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile[data-focus-scene] .focus-target.in-view {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .focus-active-mobile[data-focus-scene] .focus-target.receded {
    opacity: 0.04;
    transform: translateY(-8px);
    pointer-events: none;
  }

  /* Mobile scroll cue: same element/behavior as desktop (see
     shared/motion.js), positioned clear of the module's own bottom edge.
     Kept after direct mobile review found it legible and unobtrusive on
     every tested viewport (390×844, 430×932, ~360px, tablet widths) — not
     removed, per the "retain if useful" instruction. */
  .scroll-cue { bottom: 14px; font-size: 10.5px; }
  .page-hero.focus-active-mobile,
  .hero.focus-active-mobile { padding-bottom: 52px; }

  /* Mobile diagram animation (Layer 2) — same .diagram-in-view class as
     desktop (shared/motion.js toggles it identically regardless of mode),
     scoped here under .focus-active-mobile so these rules never combine
     with desktop's own diagram CSS further up this file. Delays are
     compressed relative to desktop's, matching the faster overall
     transition duration above. */

  /* Domains (mobile-native vertical composition, shared/index.html's
     .diagram-mobile-only SVG — NOT the desktop radial one, which is
     display:none here per the breakpoint swap above). */
  .focus-active-mobile .domain-m-spine {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 320ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile .domain-m-hub, .focus-active-mobile .domain-m-row {
    opacity: 0;
    transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1), transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-6px);
  }
  .focus-active-mobile .diagram-in-view .domain-m-hub { opacity: 1; transform: none; }
  .focus-active-mobile .diagram-in-view .domain-m-spine { stroke-dashoffset: 0; transition-delay: 80ms; }
  .focus-active-mobile .diagram-in-view .domain-m-row-1 { opacity: 1; transform: none; transition-delay: 160ms; }
  .focus-active-mobile .diagram-in-view .domain-m-row-2 { opacity: 1; transform: none; transition-delay: 210ms; }
  .focus-active-mobile .diagram-in-view .domain-m-row-3 { opacity: 1; transform: none; transition-delay: 260ms; }
  .focus-active-mobile .diagram-in-view .domain-m-row-4 { opacity: 1; transform: none; transition-delay: 310ms; }
  .focus-active-mobile .diagram-in-view .domain-m-row-5 { opacity: 1; transform: none; transition-delay: 360ms; }
  .focus-active-mobile .diagram-in-view .domain-m-row-6 { opacity: 1; transform: none; transition-delay: 410ms; }

  /* Technical Professionals — legibility fix, independent of motion state
     (applies whether or not JS/animation is active): the diagram's native
     11px labels, rendered at the ~326-380px mobile card width this
     diagram now uses (viewBox 620 wide, ~0.55-0.6x scale), came out around
     6-7 effective px — confirmed too small by direct Codex design review.
     Bumped in SVG-viewBox units so the effective on-screen size lands
     around 10-11px again. */
  .tp-labels { font-size: 17px; }
  .tp-final text { font-size: 16px; }

  /* Technical Professionals — same convergence concept as desktop (lines
     trace inward, hub/endpoint resolve), same class names, just re-enabled
     at mobile widths and re-timed. */
  .focus-active-mobile .tp-lines path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile .tp-nodes, .focus-active-mobile .tp-labels, .focus-active-mobile .tp-hub, .focus-active-mobile .tp-final {
    opacity: 0;
    transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1), transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile .tp-hub, .focus-active-mobile .tp-final { transform: scale(0.7); transform-origin: 430px 101px; }
  .focus-active-mobile .diagram-in-view .tp-lines path { stroke-dashoffset: 0; }
  .focus-active-mobile .diagram-in-view .tp-nodes { opacity: 1; transition-delay: 130ms; }
  .focus-active-mobile .diagram-in-view .tp-labels { opacity: 1; transition-delay: 160ms; }
  .focus-active-mobile .diagram-in-view .tp-hub { opacity: 1; transform: none; transition-delay: 230ms; }
  .focus-active-mobile .diagram-in-view .tp-final { opacity: 1; transform: none; transition-delay: 290ms; }

  /* Integrated Financial Planning — lighter dominance effect than desktop
     (a phone screen is already narrow; 1.16 would crowd the card's own
     edges), settling into the natural single-column stack. */
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card-diagram {
    position: relative;
    z-index: 2;
    transform: scale(1.08);
    transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1), transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .focus-target.in-view .card-grid .card { opacity: 1; transform: translateY(0); }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .focus-target.in-view .card-grid .card-diagram { opacity: 1; transform: scale(1); }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(1) { transition-delay: 90ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(2) { transition-delay: 120ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(3) { transition-delay: 150ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(4) { transition-delay: 180ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(6) { transition-delay: 210ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(7) { transition-delay: 240ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(8) { transition-delay: 270ms; }
  .focus-active-mobile[data-focus-scene="hwh-planning"] .card-grid .card:nth-child(9) { transition-delay: 300ms; }

  /* When Life Changes (mobile-native vertical timeline SVG — same
     .diagram-mobile-only swap as Domains, above). Path traces top-to-
     bottom (the mobile SVG's reading direction), event markers resolve in
     order, caption rests last. */
  .focus-active-mobile .wlc-m-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 340ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile .wlc-m-nodes, .focus-active-mobile .wlc-m-event, .focus-active-mobile .wlc-m-branch, .focus-active-mobile .wlc-m-caption {
    opacity: 0;
    transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .focus-active-mobile .diagram-in-view .wlc-m-path { stroke-dashoffset: 0; }
  .focus-active-mobile .diagram-in-view .wlc-m-nodes { opacity: 1; transition-delay: 220ms; }
  .focus-active-mobile .diagram-in-view .wlc-m-event-1 { opacity: 1; transition-delay: 270ms; }
  .focus-active-mobile .diagram-in-view .wlc-m-event-2 { opacity: 1; transition-delay: 320ms; }
  .focus-active-mobile .diagram-in-view .wlc-m-event-3 { opacity: 1; transition-delay: 370ms; }
  .focus-active-mobile .diagram-in-view .wlc-m-branch { opacity: 1; transition-delay: 390ms; }
  .focus-active-mobile .diagram-in-view .wlc-m-event-4 { opacity: 1; transition-delay: 440ms; }
  .focus-active-mobile .diagram-in-view .wlc-m-caption { opacity: 1; transition-delay: 490ms; }
}

@media (max-width: 920px) {
  /* Feedback-loop / state-change grammar diagrams swap to their dedicated
     mobile-native SVGs at the whole mobile-eligible breakpoint (moved from
     560px during the 2026-08-31 mobile-integration stage) — squeezing the
     wide desktop SVG into a 561-920px "tablet zone" produced horizontal
     scroll/clipping risk; the mobile-native vertical composition is the
     correct one everywhere the mobile motion system is also eligible. */
  .diagram-desktop-only { display: none; }
  .diagram-mobile-only { display: block; }

  .header-inner { justify-content: space-between; }
  .two-col, .founder-grid, .contact-grid, .decision-grid, .hero-grid { grid-template-columns: 1fr; }
  .two-col, .contact-grid { gap: 28px; }
  .section.section-no-visible-label { padding-top: 28px; padding-bottom: 28px; }
  .invest-body { margin-top: 0; }
  .hero-grid { gap: 36px; }
  .hero-panel { min-height: 340px; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
  /* 2026-08-31 targeted mobile correction: .card-diagram-wide's desktop
     grid-column: span 2 (unconditional, further up this file) was still
     active on mobile's 1-column grid. Since the explicit grid only has one
     1fr track, a card requesting span 2 forced the browser to create an
     implicit second (content-sized) column to satisfy it — which then
     pulled the OTHER cards into uneven auto-placed pairs sharing that
     extra column, rather than each stacking full-width in its own row
     (the actual reported defect: narrow, squeezed "left-side" cards on
     Who We Help's Technical Professionals grid, and the same risk on any
     other .card-grid using a wide diagram card). Resetting the span here
     removes the implicit column entirely, restoring true single-column
     stacking for every card, diagram included. */
  .card-diagram-wide { grid-column: auto; }
  h1 { max-width: 15ch; }

  /* 2026-08-31 mobile-integration stage: the Technical Professionals and
     Integrated Financial Planning diagrams (both .card-diagram) are no
     longer omitted on mobile — they now participate in the mobile diagram-
     animation layer, sized for a single-column stacked card. See the
     "Mobile diagram animation" block below for their animated state. */
  .card-diagram { max-width: 100%; }
  .card-diagram-wide .diagram-svg { max-width: 380px; margin: 0 auto; }

  /* Mobile relationship model, unchanged from Pass 2: the full desktop V
     composition is hidden below 921px; only the list + numbered mobile V
     glyph (.relationship-core .vmini) remains, stacked single-column. */
  .vmodel-panels-solo { display: none; }
  .relationship-model { grid-template-columns: 1fr; margin-top: 20px; }
  .relationship-core { max-width: 360px; margin: 0 auto; }
  .grammar-grid { grid-template-columns: 1fr; }

  .menu-toggle-btn { display: inline-flex; }
  .site-header .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: none;
    padding: 10px 20px 18px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 220ms ease;
  }
  .site-header .site-nav a { padding: 10px 0; font-size: 14px; width: 100%; border-bottom: 1px solid var(--line); }
  .site-header .site-nav a:last-child { border-bottom: none; }
  /* .is-open is toggled by JS in sync with aria-expanded on the menu button.
     visibility:hidden (default, above) removes the closed links from the
     Tab order without per-link tabindex bookkeeping; visibility:visible
     restores normal keyboard order while open. */
  .site-header .site-nav.is-open {
    max-height: 360px;
    visibility: visible;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .site-header { position: relative; }
  .header-inner { min-height: 0; padding: 14px 0; }
  .brand-mark { height: 60px; }
  .page-hero { padding: 40px 0 28px; }
  .hero { min-height: auto; padding: 46px 0 30px; }
  .hero-panel { min-height: 280px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero-sub, .body-large { font-size: 17px; }
  .section { padding: 58px 0; }
  .card { padding: 22px; }
  .credential-strip { grid-template-columns: 1fr; }
  .fee-table th, .fee-table td { padding: 10px 12px; font-size: 13.5px; }

  .grammar-figure-wide { overflow-x: visible; }
  .grammar { padding: 22px; }
  .relationship-core { justify-items: start; border-left: 3px solid var(--copper); padding-left: 16px; margin: 8px 0 18px; }
  .relationship-core .vmini { width: 104px; }
  .relationship-core p { font-size: 13px; text-align: left; }
}

@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;
  }
}
