/* ==========================================================================
   Investace Mutual Funds — landing page.
   Wealthcore language (grain panels, glass cards, square controls, hairline
   grids) expressed only through the shared theme variables in
   ../shared/ic-theme.css, so the page is correct in dark AND light.
   ========================================================================== */
:root, [data-theme="dark"] {
  --f: "Geist", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --spring: cubic-bezier(.2, .9, .25, 1);
  --pad: clamp(20px, 4vw, 56px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glass-a: rgba(58,58,60,.62); --glass-b: rgba(22,22,24,.84);
  --glass-hi: rgba(255,255,255,.14); --glass-ring: rgba(255,255,255,.07);
  --nav-solid: rgba(8,8,10,.74);
  --hero-bg: radial-gradient(90% 70% at 30% 40%, #131316 0%, #09090B 70%);
  --k1: var(--signal);
  --k2: #ECECEA;
  --k3: rgba(236,236,234,.46);
  --k4: rgba(236,236,234,.22);
  --grain-blend: overlay; --grain-strength: .38;
  /* audit #3: text greys at WCAG AA (≥4.5:1 on every surface) */
  --mute: rgba(236,236,234,.72); --dim: rgba(236,236,234,.56);
}
[data-theme="light"] {
  --glass-a: rgba(255,255,255,.86); --glass-b: rgba(255,255,255,.64);
  --glass-hi: #FFFFFF; --glass-ring: rgba(14,12,10,.07);
  --nav-solid: rgba(243,242,239,.8);
  --hero-bg: radial-gradient(90% 70% at 30% 40%, #F7F6F3 0%, #ECEBE7 75%);
  --k1: #534C29;
  --k2: #0E0C0A;
  --k3: rgba(14,12,10,.42);
  --k4: rgba(14,12,10,.2);
  --grain-blend: multiply; --grain-strength: .26;
  --mute: rgba(14,12,10,.72); --dim: rgba(14,12,10,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--f); background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .5s ease, color .5s ease; }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; background-image: var(--noise); opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.h1 { font-size: clamp(44px, 5.6vw, 92px); line-height: 1.01; letter-spacing: -.05em; font-weight: 400; }
.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.03; letter-spacing: -.045em; font-weight: 400; }
.chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 26px; padding: 5px 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.lede { font-size: 18px; line-height: 1.62; color: var(--mute); max-width: 470px; }
.fine { font-size: 12.5px; line-height: 1.55; color: var(--dim); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; animation: live 2.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .45; transform: scale(.8); } }

/* ---------- square controls ---------- */
.sq { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; font-size: 15px; font-weight: 500; border-radius: 2px; white-space: nowrap; transition: transform .45s var(--spring), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.sq:active { transform: scale(.97); transition-duration: .1s; }
.sq--solid { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--text) 45%, transparent); }
.sq--solid:hover { box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--text) 55%, transparent); }
.sq--line { border: 1px solid var(--btn-line); color: var(--text); }
.sq--line:hover { border-color: var(--text); background: var(--surface-2); }
.sq--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; transition: background .5s, height .5s var(--spring), box-shadow .5s; }
.nav.is-solid { height: 64px; background: var(--nav-solid); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.nav .ic-logo { justify-self: start; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--mute); transition: color .2s; white-space: nowrap; }
.nav__links a:hover { color: var(--text); }
.nav__end { justify-self: end; display: flex; gap: 12px; align-items: center; }

/* ---------- grain panel ---------- */
.grain { position: relative; overflow: hidden; isolation: isolate; background: var(--panel-base); }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--noise); opacity: var(--grain-strength); mix-blend-mode: var(--grain-blend); }
.blobs { position: absolute; inset: -20%; z-index: 0; filter: blur(64px); }
.blobs i { position: absolute; border-radius: 50%; will-change: transform; }
.blobs i:nth-child(1) { width: 70%; height: 80%; left: -10%; top: -12%; background: radial-gradient(closest-side, var(--panel-a), transparent); animation: d1 24s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 60%; height: 70%; right: -6%; top: 26%; background: radial-gradient(closest-side, var(--panel-b), transparent); animation: d2 28s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 50%; height: 60%; left: 20%; bottom: -16%; background: radial-gradient(closest-side, var(--panel-c), transparent); animation: d3 32s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(18%, 22%) scale(1.15); } }
@keyframes d2 { to { transform: translate(-25%, -10%) scale(1.2); } }
@keyframes d3 { to { transform: translate(10%, -30%) scale(.9); } }

/* ---------- glass cards ---------- */
.gcard { position: relative; z-index: 2; width: 100%; padding: 18px 20px 20px; border-radius: 16px; background: linear-gradient(180deg, var(--glass-a), var(--glass-b)); backdrop-filter: blur(20px) saturate(120%); -webkit-backdrop-filter: blur(20px) saturate(120%); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-ring), var(--shadow); color: var(--text); }
.gcard__label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tag { margin-left: auto; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; background: var(--surface-2); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.ring { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; flex: none; }
.ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--text); }
.gcard__fine { margin-top: 12px; font-size: 10px; color: var(--dim); letter-spacing: .02em; }

.plan { position: relative; margin: 16px auto 4px; width: 150px; height: 150px; }
.donut { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut__track { stroke: var(--line); }
.donut__seg { stroke-dasharray: 0 100; stroke-dashoffset: calc(var(--off) * -1); transition: stroke-dasharray 1.6s var(--spring); }
.donut.is-drawn .donut__seg { stroke-dasharray: calc(var(--len) - 1.2) calc(101.2 - var(--len)); }
.donut__seg.s1 { stroke: var(--k1); } .donut__seg.s2 { stroke: var(--k2); } .donut__seg.s3 { stroke: var(--k3); } .donut__seg.s4 { stroke: var(--k4); }
.donut.is-drawn .s2 { transition-delay: .15s; } .donut.is-drawn .s3 { transition-delay: .3s; } .donut.is-drawn .s4 { transition-delay: .45s; }
.plan__sum { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.plan__sum b { font-size: 22px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan__sum small { font-size: 10.5px; color: var(--mute); }
.legend { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.legend li:last-child { border-bottom: 0; padding-bottom: 0; }
.legend span { color: var(--mute); font-variant-numeric: tabular-nums; }
.legend i, .allocbar i { display: block; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.k1 { background: var(--k1); } .k2 { background: var(--k2); } .k3 { background: var(--k3); } .k4 { background: var(--k4); }

.band { width: 100%; height: 118px; margin-top: 14px; overflow: visible; }
.band__grid path { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.band__area { fill: color-mix(in srgb, var(--k1) 26%, transparent); }
.band__mid { fill: none; stroke: var(--k1); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

.panel__cap { position: relative; z-index: 2; margin-top: 34px; text-align: center; }
.panel__cap p { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.panel__cap small { display: block; margin-top: 8px; font-size: 13px; color: var(--mute); max-width: 280px; margin-inline: auto; }

/* ---------- hero (split) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: var(--hero-bg); overflow: hidden; }
.hero__left { min-width: 0; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 120px var(--pad) 60px; }
.hero .h1 { margin-top: 26px; }
.hero__sub { margin-top: 22px; max-width: 540px; font-size: 16px; line-height: 1.6; color: var(--mute); }
.hero__btns { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.facts { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: 11px; color: var(--dim); }
.facts dd { margin-top: 3px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.hero__panel { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 104px clamp(24px, 3vw, 48px) 48px; }
.stack { position: relative; z-index: 2; width: min(340px, 100%); display: grid; gap: 12px; }
.reg { padding: 18px var(--pad); text-align: center; font-size: 14px; line-height: 1.55; color: var(--mute); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.head .h2 { margin-top: 20px; }
.head .lede { margin-top: 20px; }
.head--row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }

/* four steps */
.steps4 { list-style: none; margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps4 li { background: var(--bg); padding: 30px 26px 34px; display: flex; flex-direction: column; min-height: 280px; transition: background .4s; }
.steps4 li:hover { background: var(--bg-2); }
.steps4 span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.steps4 h3 { margin-top: auto; padding-top: 40px; font-size: 19px; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.steps4 p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--mute); }

/* goals */
.goals { margin-top: 60px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.goal { padding: 24px 22px 26px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; min-height: 320px; }
.goal__bar { height: 120px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.goal__bar i { display: block; width: 36%; height: var(--h); background: linear-gradient(180deg, var(--k1), color-mix(in srgb, var(--k1) 20%, transparent)); transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.3s var(--spring); }
.goals.is-in .goal__bar i { transform: scaleY(1); }
.goals.is-in .goal:nth-child(2) .goal__bar i { transition-delay: .1s; }
.goals.is-in .goal:nth-child(3) .goal__bar i { transition-delay: .2s; }
.goals.is-in .goal:nth-child(4) .goal__bar i { transition-delay: .3s; }
.goal__tag { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.goal h3 { margin-top: 10px; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.goal p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--mute); }
.goals__note { margin-top: 18px; }

/* allocation philosophy */
.alloc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.alloc-grid .h2 { margin-top: 20px; }
.alloc-grid .lede { margin-top: 20px; }
.layers { margin-top: 36px; display: grid; gap: 8px; max-width: 470px; }
.layer { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 16px 18px 20px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.layer b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.layer span { font-size: 13.5px; color: var(--mute); }
.layer i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--k1); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s var(--spring); }
.is-in .layer i { transform: scaleX(1); }
.is-in .layer:nth-child(2) i { transition-delay: .12s; } .is-in .layer:nth-child(3) i { transition-delay: .24s; }
.rules { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rules li { background: var(--bg); padding: 26px 26px 28px; }
.rules b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.rules p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--mute); }

/* trust */
.trust { margin-top: 60px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust article { background: var(--bg); padding: 30px 26px 32px; min-height: 230px; display: flex; flex-direction: column; }
.trust h3 { margin-top: auto; font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.trust p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--mute); }

/* sample plan document */
.sample-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sample-grid .h2, .sample-grid .lede { margin-top: 20px; }
.doc { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); padding: 26px 28px 24px; }
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.doc__head .tag { margin-left: 0; }
.doc__block { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc__label { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.doc__muted { margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.doc__fine { padding-top: 16px; font-size: 11px; color: var(--dim); }
.checklist { list-style: none; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 26px; font-size: 13.5px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--positive) 18%, transparent); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 6px; width: 6px; height: 3.5px; border-left: 1.5px solid var(--positive); border-bottom: 1.5px solid var(--positive); transform: rotate(-45deg); }
.allocbar { display: flex; gap: 3px; height: 10px; }
.allocbar i { width: var(--w); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--spring); }
.doc.is-in .allocbar i { transform: scaleX(1); }
.doc.is-in .allocbar i:nth-child(2) { transition-delay: .1s; } .doc.is-in .allocbar i:nth-child(3) { transition-delay: .2s; } .doc.is-in .allocbar i:nth-child(4) { transition-delay: .3s; }

/* lanes */
.lanes { margin-top: 60px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.lane { border-radius: 18px; padding: 30px 30px 32px; box-shadow: inset 0 0 0 1px var(--line); background: transparent; display: flex; flex-direction: column; }
.lane--on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.lane__tag { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.lane h3 { margin-top: 18px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.04em; }
.lane__desc { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--mute); }
.lane ul { list-style: none; margin-top: 22px; display: grid; }
.lane ul li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.lane__catch { margin-top: auto; padding-top: 22px; font-size: 13px; line-height: 1.6; color: var(--mute); }
.lane__catch b { color: var(--text); font-weight: 500; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .h2 { margin-top: 20px; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--text), var(--text)) center/12px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center/1.5px 12px no-repeat; transition: transform .5s var(--spring); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 40px 22px 0; font-size: 16px; line-height: 1.65; color: var(--mute); }


/* services */
.svc { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc__card { background: var(--bg); padding: 30px 28px 32px; display: flex; flex-direction: column; min-height: 250px; transition: background .4s; }
.svc__card:hover { background: var(--bg-2); }
.svc__card--wide { grid-column: span 2; grid-row: span 2; }
.svc__card:last-child { grid-column: span 2; }
.svc__tag { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.svc__card h3 { margin-top: 16px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: -.035em; line-height: 1.15; }
.svc__card > p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--mute); }
.svc__card--wide h3 { font-size: clamp(26px, 2.6vw, 38px); }
.svc__list { list-style: none; margin-top: auto; padding-top: 32px; display: grid; }
.svc__list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--mute); }
.svc__list b { color: var(--text); font-weight: 500; }
.svc__link { margin-top: auto; padding-top: 20px; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.svc__links { margin-top: auto; padding-top: 20px; display: flex; gap: 16px; font-size: 13.5px; font-weight: 500; }
.svc__links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.svc__link:hover, .svc__links a:hover { text-decoration-color: var(--text); }

/* principles */
.principles { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.principles article { padding: 28px 26px 30px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.principles span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.principles h3 { margin-top: 40px; font-size: 21px; font-weight: 400; letter-spacing: -.03em; }
.principles p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--mute); }

/* fund selection */
.select { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(30px, 5vw, 80px); }
.select__head h3 { margin-top: 18px; font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
.select__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.select__label { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.select ul { list-style: none; display: grid; }
.select li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }

/* tools teaser */
.toolidx { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.toolidx > div { background: var(--bg); padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 2px; }
.toolidx p { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toolidx a:not(.sq) { position: relative; padding: 8px 0 8px 16px; font-size: 15px; letter-spacing: -.01em; border-bottom: 1px solid var(--line); transition: padding .4s var(--spring), color .2s; }
.toolidx a:not(.sq)::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--line-2); transition: background .25s; }
.toolidx a:not(.sq):hover { padding-left: 22px; }
.toolidx a:not(.sq):hover::before { background: var(--signal); }
.toolidx__cta { margin-top: auto; align-self: flex-start; }

/* team strip */
.section--tight { padding: clamp(80px, 9vw, 120px) 0; }
.people { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.people > * { display: grid; gap: 6px; padding: 22px 22px 24px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; }
.people a:hover { background: var(--surface-2); }
.people b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.people span { font-size: 12.5px; color: var(--mute); }

/* registrations */
.regs { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0; }
.regs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 24px 32px; }
.regs__k { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.regs__v { margin-top: 6px; font-size: 13.5px; }
.regs__links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--mute); }
.regs__links a:hover { color: var(--text); }
.regs__disc { grid-column: 1 / -1; font-size: 11.5px; line-height: 1.6; color: var(--dim); max-width: 1000px; }

/* CTA */
.cta { padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.cta__panel { max-width: 1320px; margin: 0 auto; min-height: 460px; display: grid; place-items: center; text-align: center; }
.cta__in { position: relative; z-index: 2; padding: 64px 24px; display: grid; justify-items: center; }
.cta__in::before { content: ""; position: absolute; inset: -12% -24%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 72%, transparent), transparent); pointer-events: none; }
.cta__in p { margin-top: 20px; max-width: 460px; font-size: 15px; color: var(--mute); }
.cta__in .hero__btns { justify-content: center; }
.ic-foot .wrap { max-width: 1320px; }

/* ---------- reveal (JS adds .is-in) ---------- */
.js [data-in], .js [data-rise], .js [data-stagger] > * { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 1.1s var(--spring), transform 1.3s var(--spring), filter 1s var(--spring); }
.js [data-card] { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity 1.2s var(--spring), transform 1.4s var(--spring); }
.js .is-in, .js [data-stagger].is-in > * { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__left { min-height: auto; padding-top: 130px; }
  .hero__panel { min-height: 680px; }
  .steps4, .trust { grid-template-columns: 1fr 1fr; }
  .goals { grid-template-columns: 1fr 1fr; }
  .head--row, .alloc-grid, .sample-grid, .faq, .lanes, .select { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: 1fr 1fr; } .svc__card--wide { grid-column: span 2; grid-row: auto; }
  .toolidx, .people { grid-template-columns: 1fr 1fr; }
  .regs__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .h1 { font-size: 40px; }
  .steps4, .trust, .goals, .svc, .principles, .toolidx, .people, .select__cols, .regs__grid { grid-template-columns: minmax(0, 1fr); }
  .svc__card--wide, .svc__card:last-child { grid-column: auto; }
  .svc__card { min-height: auto; }
  .principles h3 { margin-top: 22px; }
  .steps4 li, .trust article { min-height: auto; }
  .steps4 h3, .trust h3 { padding-top: 22px; }
  .goal { min-height: auto; }
  .layer { grid-template-columns: 1fr; gap: 4px; }
  .doc { padding: 20px 18px; }
  .doc__row { grid-template-columns: 1fr; }
  .facts { gap: 16px 28px; }
  .hero__panel { min-height: 620px; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-in], .js [data-rise], .js [data-stagger] > *, .js [data-card] { opacity: 1; transform: none; filter: none; }
  .donut__seg { stroke-dasharray: calc(var(--len) - 1.2) calc(101.2 - var(--len)); }
  .goal__bar i, .allocbar i, .layer i { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .gcard, .nav.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gcard { background: var(--surface); }
}

/* ==========================================================================
   Audit fixes (2026-09-22): global nav + menu sheet, touch targets.
   ========================================================================== */
.nav__links { gap: 26px; }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__login { font-size: 15px; color: var(--mute); padding: 0 6px; transition: color .2s; white-space: nowrap; }
.nav__login:hover { color: var(--text); }
.nav.is-open { height: 64px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; flex: none; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .45s var(--spring), top .45s var(--spring); }
.menu-btn i:first-child { top: 18px; } .menu-btn i:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 21.5px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 64px 0 0 0; z-index: 49; padding: 12px var(--pad) 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.sheet[hidden] { display: none; }
.sheet__links { display: grid; }
.sheet__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -.03em; display: grid; gap: 2px; }
.sheet__links a[aria-current="page"] { color: var(--text); }
.sheet__links small { font-size: 14px; letter-spacing: 0; color: var(--mute); }
.sheet .sq { width: 100%; flex: none; }
@media (max-width: 1280px) { .nav__links { gap: 20px; } .nav__login { display: none; } }
@media (max-width: 1180px) {
  .nav { grid-template-columns: 1fr auto; height: 64px; }
  .nav__links { display: none; }
  .menu-btn { display: block; }
  .nav__end { gap: 8px; }
}
@media (max-width: 699px) { .nav__book { display: none; } }

/* touch: every interactive target ≥44px */
@media (pointer: coarse) {
  .sq, .sq--sm { min-height: 44px; }
  .nav__links a, .nav__login { display: inline-flex; align-items: center; min-height: 44px; }
  .sheet__links a { min-height: 56px; }
  .ic-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .ic-foot__cols a { display: flex; }
  .ic-toggle::after { content: ""; position: absolute; inset: -8px -2px; }
}

/* Oct 2026: black / white / greys only across the MF sub-pages (tools/, risk-profiler/).
   The moss accent is neutralised here so every var(--signal) use turns monochrome. */
:root, [data-theme="dark"] { --signal: #ECECEA; --signal-ink: #0A0A0B; --k1: #ECECEA; --k2: rgba(236,236,234,.62); --k3: rgba(236,236,234,.36); --k4: rgba(236,236,234,.18); --positive: #ECECEA; }
[data-theme="light"] { --signal: #0E0C0A; --signal-ink: #FFFFFF; --k1: #0E0C0A; --k2: rgba(14,12,10,.62); --k3: rgba(14,12,10,.36); --k4: rgba(14,12,10,.18); --positive: #0E0C0A; }
