/* =====================================================================
   FinTechPatriot Wealth — site styles (v2)
   Two palettes at once: sections are .tone-light or .tone-dark.
   html[data-mode="dark"] turns light sections dark too (visitor toggle).
   Palette, fonts and radius come from Admin → Theme (<style id="theme-vars">).
   ===================================================================== */

:root {
  --l-surface-2: color-mix(in srgb, var(--l-text) 5%, var(--l-surface));
  --d-surface-2: color-mix(in srgb, var(--d-text) 7%, var(--d-surface));
  --d-bg-alt: color-mix(in srgb, var(--d-text) 3.5%, var(--d-bg));
  --up: #22B573;
  --down: var(--alert);
  --r-sm: calc(var(--radius) * .55);
  --r-md: var(--radius);
  --r-lg: calc(var(--radius) * 1.6);
  --header-h: 76px;
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- tones ---------- */
.tone-light, .tone-dark { background: var(--bg); color: var(--text); }
.tone-light {
  --bg: var(--l-bg); --surface: var(--l-surface); --surface-2: var(--l-surface-2);
  --text: var(--l-text); --muted: var(--l-muted);
  --line: color-mix(in srgb, var(--l-text) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--l-text) 20%, transparent);
  --accent-text: var(--primary);
  --shadow: 0 1px 2px rgb(10 17 34 / .05), 0 24px 48px -28px rgb(10 17 34 / .28);
  color-scheme: light;
}
.tone-dark, html[data-mode="dark"] .tone-light {
  --bg: var(--d-bg); --surface: var(--d-surface); --surface-2: var(--d-surface-2);
  --text: var(--d-text); --muted: var(--d-muted);
  --line: color-mix(in srgb, var(--d-text) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--d-text) 22%, transparent);
  --accent-text: color-mix(in srgb, var(--primary) 62%, var(--d-text));
  --shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
  color-scheme: dark;
}
html[data-mode="dark"] .tone-light { --bg: var(--d-bg-alt); }
.tone-light, .tone-dark { --primary-soft: color-mix(in srgb, var(--primary) 13%, transparent); --secondary-soft: color-mix(in srgb, var(--secondary) 16%, transparent); --alert-soft: color-mix(in srgb, var(--alert) 13%, transparent); }
html { transition: background-color .4s; }
.tone-light, .tone-dark { transition: background-color .45s var(--ease), color .45s var(--ease); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-weight: 650; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -0.03em; }
h3 { font-weight: 600; font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: .12em .45em; border-radius: 6px; background: var(--primary-soft); color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: var(--on-primary); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1em; height: 1em; }
.fine { font-size: .875rem; color: var(--muted); }
.fine a, .prose a { color: var(--accent-text); text-underline-offset: 3px; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-text); font-weight: 600; font-size: .95rem; margin-bottom: 20px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--secondary-soft); }
.prose { color: color-mix(in srgb, var(--text) 82%, var(--muted)); max-width: 68ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: .75em 0 0; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; background: none; transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s; will-change: transform; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 86%, #fff); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--primary) 90%, transparent); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: color-mix(in srgb, var(--surface) 40%, transparent); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); }
.btn--text { color: var(--muted); padding-inline: 10px; }
.btn--text:hover { color: var(--text); }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1.03rem; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translate(2px, -2px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.actions--center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link .icon { transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

/* ---------- admin bar ---------- */
.admin-bar { position: relative; z-index: 60; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px var(--gutter); background: var(--secondary); color: #111; font-size: .85rem; font-weight: 600; }
.admin-bar__links { display: flex; gap: 16px; }
.admin-bar a { color: inherit; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent; color: var(--text); transition: background-color .35s, box-shadow .35s, transform .35s var(--ease), color .35s; }
.has-admin-bar .site-header { top: 30px; }
.site-header.is-solid, .site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; flex: none; }
.brand__mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: var(--on-primary); }
.brand__mark svg { width: 20px; height: 20px; }
.brand__logo { height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid var(--line); }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer; text-decoration: none; font-weight: 500; font-size: .95rem; color: color-mix(in srgb, var(--text) 82%, var(--muted)); transition: background-color .2s, color .2s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--text); background: var(--surface-2); }
.nav__link .icon { transition: transform .2s; }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 12px); left: 50%; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-menu.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a { display: block; padding: 11px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--primary-soft); color: var(--accent-text); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.mode-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 50%, transparent); cursor: pointer; display: grid; place-items: center; overflow: hidden; flex: none; }
.mode-toggle:hover { border-color: var(--text); }
.mode-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .5s var(--ease), opacity .3s; }
.mode-toggle .sun { transform: translateY(0) rotate(0); }
.mode-toggle .moon { transform: translateY(140%) rotate(-60deg); opacity: 0; }
html[data-mode="dark"] .mode-toggle .sun { transform: translateY(-140%) rotate(60deg); opacity: 0; }
html[data-mode="dark"] .mode-toggle .moon { transform: none; opacity: 1; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- 3D scene containers ---------- */
.scene { position: relative; isolation: isolate; }
.scene__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.is-live .scene__canvas { opacity: 1; }
.scene[data-drag] { cursor: grab; }
.scene.is-dragging { cursor: grabbing; }
.scene--fallback, .no-3d .scene { background: radial-gradient(60% 60% at 60% 45%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%), radial-gradient(40% 40% at 35% 70%, color-mix(in srgb, var(--secondary) 25%, transparent), transparent 70%); }
.scene-hint { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.scene-hint::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; background: radial-gradient(circle, currentColor 2px, transparent 3px); }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 24px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero__text { position: relative; z-index: 2; padding-block: 24px 40px; }
.hero__title { font-size: clamp(2.7rem, 5.3vw, 5.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 750; max-width: 13ch; }
.hero .lead { margin-top: 26px; }
.hero__visual { position: relative; align-self: stretch; min-height: 520px; margin-right: calc(var(--gutter) * -1); }
.hero__visual .scene { position: absolute; inset: 0 -6% 0 -4%; }
.hero__photo { position: absolute; inset: 6% 0 6% 6%; border-radius: var(--r-lg); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__hint { position: absolute; left: 6%; bottom: 8%; z-index: 2; }
.credential { position: absolute; z-index: 3; right: 6%; top: 14%; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.credential__text { display: grid; line-height: 1.25; }
.credential__label { font-size: .74rem; color: var(--muted); }
.credential__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; }
.credential__id { font-size: .8rem; color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 40px 0 0; }
.proof li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 45%, transparent); font-size: .88rem; color: var(--muted); }
.proof .icon { color: var(--secondary); }
.proof strong { color: var(--text); font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 84px; z-index: 2; width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line-strong); transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--text); transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- live price band ---------- */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); overflow: hidden; font-size: .88rem; height: 56px; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 56px; width: max-content; padding-left: 56px; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; gap: 10px; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker__sym { color: var(--muted); font-weight: 500; }
.ticker__px { font-weight: 650; font-family: var(--font-display); font-size: 1rem; }
.ticker__ch.is-up { color: var(--up); }
.ticker__ch.is-down { color: var(--down); }
.ticker__note { color: var(--muted); font-size: .78rem; }

/* ---------- sub-page hero (dark, 3D right) ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: 440px; }
.page-hero__text { position: relative; z-index: 2; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero__visual { position: relative; align-self: stretch; min-height: 380px; }
.page-hero__visual .scene { position: absolute; inset: -14% -10% -14% -10%; }
.page-hero__visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.page-hero--compact .page-hero__grid { min-height: 0; grid-template-columns: minmax(0, 1fr); }
.page-hero--bg .page-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 360px; }
.page-hero--bg .scene-bg { position: absolute; inset: 0 0 0 32%; opacity: .95; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
@media (max-width: 900px) { .page-hero--bg .scene-bg { inset: 0; opacity: .45; -webkit-mask-image: none; mask-image: none; } }
.page-hero--bg .page-hero__text { max-width: 760px; }
.fact-rail { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(32px, 4vw, 56px) 0 0; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(10px); }
.fact-rail > div { padding: 18px 22px; }
.fact-rail > div + div { border-left: 1px solid var(--line); }
.fact-rail dt { font-size: .8rem; color: var(--muted); }
.fact-rail dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 136px); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }
.section-head__intro { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.section-head__intro p + p { margin-top: .8em; }
.section-foot { margin-top: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__title { max-width: 16ch; }

/* ---------- scroll-lit statement ---------- */
.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch; }
.statement .w { opacity: .16; transition: opacity .1s; }
.no-motion .statement .w { opacity: 1; }
.statement-foot { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.statement-foot p { color: var(--muted); max-width: 56ch; }

/* ---------- platform switcher ---------- */
.switcher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.seg-tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 36px; }
.seg-tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); transition: color .3s; }
.seg-tabs button[aria-selected="true"] { color: var(--on-primary); }
.seg-tabs__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--primary); transition: transform .45s var(--ease), width .45s var(--ease); }
.sw-panel[hidden] { display: none; }
.sw-panel__market { color: var(--accent-text); font-weight: 600; }
.sw-panel h3 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -0.04em; margin: 8px 0 16px; }
.sw-panel > p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.sw-points { list-style: none; margin: 28px 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.sw-points li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.sw-points span { color: var(--muted); }
.sw-points strong { font-weight: 600; text-align: right; }
.switcher__visual { position: relative; aspect-ratio: 1; max-height: 620px; overflow: clip; overflow-clip-margin: 40px; }
.switcher__visual .scene { position: absolute; inset: -6%; }
.switcher__ring { position: absolute; inset: 10%; border-radius: 50%; border: 1px dashed var(--line-strong); }

/* ---------- bento with cursor spotlight ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 28px; min-height: 210px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 18%, transparent), transparent 45%); }
.tile:hover::before { opacity: 1; }
.tile__n { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--muted); }
.tile__glyph { position: absolute; top: 24px; left: 26px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--accent-text); }
.tile__glyph svg { width: 22px; height: 22px; }
.tile p { color: var(--muted); font-size: .97rem; }
.tile--wide { grid-column: span 2; }
.tile--accent { background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--secondary))); color: var(--on-primary); border-color: transparent; }
.tile--accent p { color: color-mix(in srgb, var(--on-primary) 82%, transparent); }
.tile--accent .tile__glyph { background: rgb(255 255 255 / .18); color: var(--on-primary); }
.tile--accent .tile__n { color: color-mix(in srgb, var(--on-primary) 70%, transparent); }
.tile--alert { border-color: color-mix(in srgb, var(--alert) 35%, var(--line)); }
.tile--alert .tile__glyph { background: var(--alert-soft); color: var(--alert); }

/* ---------- horizontal pinned steps (GSAP) ---------- */
.hsteps { overflow: hidden; }
.hsteps__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.hsteps__progress { width: 220px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hsteps__progress span { display: block; height: 100%; width: 0; background: var(--secondary); }
.hsteps__track { display: flex; gap: 24px; width: max-content; padding-right: var(--gutter); }
.hstep { position: relative; width: min(560px, 78vw); min-height: 360px; padding: 36px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hstep__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 12vw, 10rem); line-height: .85; letter-spacing: -0.05em; color: transparent; background: linear-gradient(180deg, var(--line-strong), transparent 92%); -webkit-background-clip: text; background-clip: text; }
.hstep:nth-child(1) .hstep__n, .hstep.is-on .hstep__n { background-image: linear-gradient(180deg, var(--secondary), color-mix(in srgb, var(--secondary) 10%, transparent) 95%); }
.hstep h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.hstep p { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.no-motion .hsteps__track, .is-static .hsteps__track { width: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-right: 0; }
.no-motion .hstep, .is-static .hstep { width: auto; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc__controls { display: grid; gap: 22px; align-content: start; }
.range { display: grid; gap: 10px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: .95rem; }
.range__top output { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--primary) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); outline: none; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; box-shadow: 0 4px 12px rgb(0 0 0 / .25); transition: transform .15s; }
.range input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; }
.range input[type="range"]:focus-visible { outline: 2px solid var(--secondary); outline-offset: 6px; }
.range small { color: var(--muted); font-size: .82rem; }
.calc__result { display: grid; gap: 18px; align-content: start; }
.calc__net { padding: 22px 24px; border-radius: var(--r-md); background: var(--surface-2); }
.calc__net span { display: block; color: var(--muted); font-size: .9rem; }
.calc__net strong { display: block; font-family: var(--font-display); font-weight: 750; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; transition: color .3s; }
.calc__net.is-loss strong { color: var(--alert); }
.calc__net.is-gain strong { color: var(--up); }
.calc__net em { font-style: normal; font-size: .92rem; color: var(--muted); }
.waterfall { display: grid; gap: 10px; }
.wf { display: grid; grid-template-columns: 130px 1fr 92px; gap: 12px; align-items: center; font-size: .9rem; }
.wf__bar { position: relative; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wf__bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; background: var(--primary); width: 0; transition: width .5s var(--ease); }
.wf--cost .wf__bar i { background: var(--alert); }
.wf--net .wf__bar i { background: var(--up); }
.wf--net.is-loss .wf__bar i { background: var(--alert); }
.wf b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc .fine { margin-top: 6px; }

/* ---------- band / inline form ---------- */
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), var(--primary), var(--secondary), transparent 40%, var(--primary)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
.band h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.band__text p { margin-top: 12px; color: var(--muted); }
.inline-form__row { display: flex; gap: 10px; }
.inline-form__row input { flex: 1; min-width: 0; }
.inline-form .fine { margin-top: 12px; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], select, textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); transition: border-color .15s, box-shadow .15s, background-color .3s; }
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--alert); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.req { color: var(--accent-text); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 4px; }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); cursor: pointer; line-height: 1.5; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.checkline + .checkline { margin-top: 14px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.form-status { font-size: .93rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--alert); }
.form-status.is-ok { color: var(--up); }
.form .fine { margin-top: 16px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 500; }
.alert--ok { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.alert--error { background: var(--alert-soft); color: var(--alert); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 44px); box-shadow: var(--shadow); }

/* ---------- referral ---------- */
.referral { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%), var(--surface); border: 1px solid var(--line); }
.referral h2 { max-width: 18ch; }
.referral__text > p { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.referral__meta { display: flex; gap: 32px; margin: 26px 0 0; }
.referral__meta dt { font-size: .8rem; color: var(--muted); }
.referral__meta dd { margin: 2px 0 0; font-weight: 600; }
.referral .actions { margin-top: 26px; }
.referral .fine { margin-top: 14px; }
.referral__qr { margin: 0; text-align: center; }
.referral__qr img { width: 200px; height: 200px; padding: 12px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); }
.referral__qr figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }

/* ---------- CTA with particle field ---------- */
.cta-block { position: relative; overflow: hidden; text-align: center; padding-block: clamp(96px, 12vw, 180px); }
.cta-block .scene-bg { position: absolute; inset: 0; }
.cta-block .wrap { position: relative; z-index: 2; max-width: 820px; }
.cta-block h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.cta-block p { margin: 18px auto 0; color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
.cta-block .btn, .cta-block .actions { margin-top: 34px; }
.cta-block .actions .btn { margin-top: 0; }

/* ---------- notes ---------- */
.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding: 18px 22px; border-radius: var(--r-md); background: var(--secondary-soft); border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent); font-size: .95rem; }
.note .icon { color: var(--secondary); margin-top: 2px; }
.note strong { display: block; margin-bottom: 4px; }
.note p { color: color-mix(in srgb, var(--text) 80%, var(--muted)); }
.note--risk { background: var(--alert-soft); border-color: color-mix(in srgb, var(--alert) 32%, transparent); }
.note--risk .icon { color: var(--alert); }

/* ---------- scrollytelling (sticky 3D + steps) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); }
.story__visual { position: sticky; top: calc(var(--header-h) + 20px); height: calc(100svh - var(--header-h) - 40px); min-height: 420px; border-radius: var(--r-lg); background: radial-gradient(70% 60% at 50% 50%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); overflow: hidden; }
.story__visual .scene { position: absolute; inset: 0; }
.story__badge { position: absolute; left: 22px; top: 20px; z-index: 2; display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.story__badge b { color: var(--secondary); font-family: var(--font-display); }
.story__steps { list-style: none; margin: 0; padding: 0; }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: .35; transition: opacity .4s; }
.story__step.is-active { opacity: 1; }
.story__step:first-child { min-height: 60vh; }
.story__n { font-family: var(--font-display); font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.story__step h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.story__step p { color: var(--muted); font-size: 1.08rem; max-width: 44ch; }
.no-motion .story__step { opacity: 1; min-height: 0; }

/* ---------- flip cards ---------- */
.flips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flip { display: block; width: 100%; perspective: 1200px; min-height: 250px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; min-height: 250px; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line); background: var(--surface); }
.flip__face--back { transform: rotateY(180deg); background: color-mix(in srgb, var(--alert) 9%, var(--surface)); border-color: color-mix(in srgb, var(--alert) 30%, var(--line)); }
.flip__face h3 { font-size: 1.3rem; }
.flip__face > * { display: block; }
.flip__face .flip__cue { display: inline-flex; }
.flip__face p { color: var(--muted); }
.flip__tag { font-size: .78rem; font-weight: 700; color: var(--accent-text); }
.flip__face--back .flip__tag { color: var(--alert); }
.flip__cue { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; font-weight: 600; color: var(--muted); }
.flip:hover .flip__face--front { border-color: var(--line-strong); }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.profile__avatar { width: clamp(160px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--primary), var(--secondary), var(--primary)); padding: 6px; }
.profile__avatar > span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-family: var(--font-display); font-weight: 750; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.04em; overflow: hidden; }
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__text h2 { margin-bottom: 18px; }
.kv { display: grid; margin: 28px 0; border-top: 1px solid var(--line); max-width: 560px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- simple steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; background: var(--primary); color: var(--on-primary); font-family: var(--font-display); font-weight: 700; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- pillars / seeds / table / timeline ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pillar { padding: 32px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pillar__sub { display: block; color: var(--accent-text); font-size: .85rem; font-weight: 600; margin-bottom: 40px; }
.pillar h3 { font-size: 1.6rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tier__panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tier__amount { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.045em; line-height: 1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.tier__name { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--secondary-soft); color: var(--text); font-weight: 650; margin-top: 22px; }
.tier__name b { color: var(--secondary); font-family: var(--font-display); font-size: 1.1rem; }
.fee-list { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fee-list > div { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.fee-list dt { color: var(--muted); font-size: .8rem; }
.fee-list dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.fee-list small { display: block; color: var(--muted); font-size: .75rem; font-family: var(--font-body); font-weight: 400; margin-top: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); transition: background-color .3s, color .3s; }
.table thead th { font-size: .82rem; font-weight: 600; color: var(--muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-family: var(--font-display); font-weight: 600; }
.table td.num { text-align: right; font-weight: 600; }
.table tr.is-active > * { background: var(--primary-soft); }
.table tr.is-active th { color: var(--accent-text); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline__line { position: absolute; left: 118px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__line i { position: absolute; inset: 0; transform-origin: top; background: linear-gradient(var(--primary), var(--secondary)); transform: scaleY(0); }
.no-motion .timeline__line i { transform: none; }
.timeline li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 40px; padding-block: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 112px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--secondary); }
.timeline__year { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent-text); padding-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 6px; font-size: 1.35rem; }
.timeline p { color: var(--muted); max-width: 62ch; }

/* ---------- AI & FinTech ---------- */
.limits { list-style: none; margin: 0; padding: 0; display: grid; }
.limits li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.limits li:first-child { padding-top: 0; }
.limits__x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--alert-soft); color: var(--alert); flex: none; }
.limits h3 { font-size: 1.15rem; margin-bottom: 4px; }
.limits p { color: var(--muted); }
.claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.claim { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.claim h3 { font-size: 1.7rem; }
.claim__row { display: grid; gap: 4px; }
.claim__label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.claim__row:nth-of-type(2) .claim__label { color: var(--accent-text); }
.claim .link { margin-top: auto; }
.qlist { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.qlist li::before { content: counter(q, decimal-leading-zero); font-weight: 700; color: var(--secondary); }

/* ---------- digital assets ---------- */
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.asset { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: transform .4s var(--ease), border-color .3s; }
.asset:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.asset--focus { border-color: color-mix(in srgb, var(--primary) 55%, transparent); background: linear-gradient(160deg, var(--primary-soft), var(--surface) 60%); }
.asset__sym { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 26px; color: transparent; background: linear-gradient(180deg, var(--muted), color-mix(in srgb, var(--muted) 15%, transparent)); -webkit-background-clip: text; background-clip: text; }
.asset--focus .asset__sym { background-image: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 20%, transparent)); }
.asset h3 { margin-bottom: 6px; }
.asset p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.stat { padding: 30px 30px 0 0; }
.stat + .stat { padding-left: 30px; border-left: 1px solid var(--line); }
.stat dt { color: var(--muted); font-size: .9rem; }
.stat dd { margin: 8px 0 0; display: grid; gap: 12px; }
.stat__value { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
.stat__text { color: var(--muted); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; gap: 16px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rules .icon { width: 28px; height: 28px; color: var(--secondary); flex: none; margin-top: 2px; }
.rules h3 { margin-bottom: 6px; }
.rules p { color: var(--muted); }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.themes > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.themes > div:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
.themes h3 { margin-bottom: 8px; }
.themes p { color: var(--muted); }

/* ---------- education ---------- */
.lessons-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lesson { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.lesson[open] { border-color: var(--line-strong); }
.lesson summary { display: flex; align-items: center; gap: 18px; padding: 20px 22px; cursor: pointer; list-style: none; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson__n { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-display); font-weight: 700; color: var(--muted); transition: all .3s; }
.lesson.is-read .lesson__n { background: var(--up); border-color: var(--up); color: #fff; }
.lesson__head { display: grid; gap: 4px; flex: 1; }
.lesson__head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.lesson__meta { color: var(--muted); font-size: .9rem; }
.lesson__chev { color: var(--muted); transition: transform .3s; }
.lesson[open] .lesson__chev { transform: rotate(180deg); }
.lesson__body { padding: 0 22px 24px 82px; }
.lesson__done { margin-top: 18px; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.4rem; }
.side-card p { margin: 10px 0 20px; color: var(--muted); }
.side-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 16px; }
.side-card .fine { margin: 0; }
.ring-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ring-progress svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ring-progress circle { fill: none; stroke-width: 7; }
.ring-progress .bg { stroke: var(--line); }
.ring-progress .fg { stroke: var(--up); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring-progress b { font-family: var(--font-display); font-size: 1.4rem; display: block; }
.ring-progress span { color: var(--muted); font-size: .88rem; }
.glossary-tools { margin-bottom: 28px; max-width: 420px; position: relative; }
.glossary-tools .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.glossary-tools input { padding-left: 46px; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.glossary > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.glossary > div[hidden] { display: none; }
.glossary dt { font-family: var(--font-display); font-weight: 600; }
.glossary dd { margin: 0; color: var(--muted); }
.glossary mark { background: var(--secondary-soft); color: inherit; border-radius: 3px; }
.glossary-empty { color: var(--muted); padding: 20px 0; }

/* ---------- research ---------- */
.checklist-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.check-group { border: 0; padding: 0; margin: 0 0 40px; }
.check-group legend { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 14px; padding: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid var(--line); background: var(--surface); margin-top: 8px; transition: background-color .2s, border-color .2s; }
.check:hover { border-color: var(--line-strong); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); flex: none; color: transparent; margin-top: 1px; transition: all .2s; }
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: scale(1.06); }
.check input:checked ~ span:last-child { color: var(--muted); }
.check:has(input:checked) { background: var(--primary-soft); border-color: transparent; }
.check input:focus-visible + .check__box { outline: 2px solid var(--secondary); outline-offset: 2px; }
.gauge-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.gauge { position: relative; width: 200px; margin: 0 auto 6px; }
.gauge svg { width: 100%; height: auto; }
.gauge .bg { stroke: var(--line); }
.gauge .fg { stroke: var(--primary); transition: stroke-dashoffset .7s var(--ease), stroke .4s; }
.gauge__value { position: absolute; left: 0; right: 0; bottom: 6px; font-family: var(--font-display); font-weight: 750; font-size: 2.4rem; letter-spacing: -0.04em; }
.gauge__value small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.gauge-card__verdict { font-weight: 600; margin: 8px 0 4px; }
.gauge-card .fine { margin-top: 8px; }
.gauge-card__actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.flags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.flags li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); background: var(--alert-soft); border: 1px solid color-mix(in srgb, var(--alert) 25%, transparent); font-weight: 500; }
.flags .icon { color: var(--alert); width: 22px; height: 22px; }
.resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.resource { position: relative; display: grid; gap: 8px; height: 100%; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .2s, transform .3s var(--ease); }
.resource::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 16%, transparent), transparent 50%); }
.resource:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.resource:hover::before { opacity: 1; }
.resource__org { font-size: .8rem; color: var(--accent-text); font-weight: 600; }
.resource strong { display: flex; gap: 8px; align-items: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.resource strong .icon { color: var(--muted); }
.resource > span:last-child { color: var(--muted); font-size: .95rem; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.research-note { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.research-note h3 { font-size: 1.6rem; margin-bottom: 18px; }
.research-note dl { margin: 0; display: grid; gap: 16px; }
.research-note dt { font-size: .82rem; font-weight: 600; color: var(--muted); }
.research-note dd { margin: 4px 0 0; }
.research-note__open { padding: 14px 16px; border-radius: var(--r-sm); background: var(--alert-soft); }
.research-note__open dt { color: var(--alert); }

/* ---------- legal ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc__title { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: .93rem; color: var(--muted); }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent-text); border-left-color: var(--primary); font-weight: 600; }
.legal__section { padding-block: 40px; border-top: 1px solid var(--line); }
.legal__section:first-child { border-top: 0; padding-top: 0; }
.legal__section h2 { font-size: 1.7rem; margin-bottom: 16px; }
.legal .prose { max-width: 72ch; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.contact-list .icon { color: var(--accent-text); margin-top: 3px; }
.contact-list span { display: block; font-size: .82rem; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }
.contact-side .btn { justify-self: start; }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--muted); transition: transform .3s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item .prose { padding: 0 24px 22px; }

/* ---------- funnel ---------- */
.funnel-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 100svh; }
.funnel-side { position: relative; overflow: hidden; padding: calc(var(--header-h) + 48px) clamp(24px, 4vw, 64px) 48px; display: flex; flex-direction: column; justify-content: center; }
.funnel-side .scene-bg { position: absolute; inset: 0; opacity: .5; -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 70%); mask-image: linear-gradient(180deg, transparent 10%, #000 70%); }
.funnel-side__inner { position: relative; z-index: 2; max-width: 520px; }
.funnel-side h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.funnel-side .lead { margin-top: 18px; }
.funnel-aside { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.funnel-aside h2 { font-size: 1.1rem; margin-bottom: 14px; }
.funnel-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.funnel-aside li { display: flex; gap: 10px; color: var(--muted); }
.funnel-aside .icon { color: var(--secondary); margin-top: 4px; }
.funnel-main { padding: calc(var(--header-h) + 48px) clamp(20px, 4vw, 64px) 64px; display: flex; align-items: center; }
.funnel { width: 100%; max-width: 640px; margin-inline: auto; }
.funnel__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 0 0 36px; padding: 0; }
.funnel__progress li { display: grid; gap: 8px; font-size: .8rem; color: var(--muted); }
.funnel__progress li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background-color .4s; }
.funnel__progress li.is-done::before, .funnel__progress li.is-current::before { background: var(--primary); }
.funnel__progress li.is-current { color: var(--text); font-weight: 600; }
.funnel__progress span { display: none; }
.funnel__progress em { font-style: normal; }
.funnel__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .funnel__step { display: none; }
.js .funnel__step.is-active { display: block; }
.no-js .funnel__step + .funnel__step { margin-top: 40px; }
.funnel__step legend { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.025em; margin-bottom: 24px; padding: 0; }
.funnel__sub { font-weight: 600; margin: 30px 0 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__body { display: grid; gap: 4px; height: 100%; padding: 20px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.choice__body small { color: var(--muted); font-size: .88rem; }
.choice:hover .choice__body { border-color: color-mix(in srgb, var(--primary) 60%, var(--line-strong)); transform: translateY(-2px); }
.choice input:checked + .choice__body { border-color: var(--primary); background: var(--primary-soft); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--secondary); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .93rem; transition: all .2s; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--secondary); outline-offset: 2px; }
.segmented { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; min-height: 52px; }
.segmented label { flex: 1; position: relative; display: flex; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { flex: 1; display: grid; place-items: center; font-size: .92rem; cursor: pointer; padding: 0 8px; }
.segmented label + label span { border-left: 1px solid var(--line-strong); }
.segmented input:checked + span { background: var(--primary-soft); color: var(--accent-text); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--secondary); outline-offset: -2px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); font-size: .94rem; }
.summary:empty { display: none; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.funnel__nav { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.funnel__nav [data-next], .funnel__nav [data-submit] { margin-left: auto; }
.js .funnel [data-submit] { display: none; }
.js .funnel.is-last [data-submit] { display: inline-flex; }
.js .funnel.is-last [data-next] { display: none; }
.no-js .funnel [data-next], .no-js .funnel [data-prev] { display: none; }

/* ---------- thank you / 404 ---------- */
.thanks { position: relative; overflow: hidden; min-height: 86svh; display: flex; align-items: center; text-align: center; padding-block: calc(var(--header-h) + 48px) 80px; }
.thanks .scene-bg { position: absolute; inset: 0; opacity: .8; }
.thanks .wrap { position: relative; z-index: 2; max-width: 760px; }
.thanks__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--on-primary); margin-bottom: 26px; box-shadow: 0 0 0 10px var(--primary-soft); }
.thanks__icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.thanks .lead { margin: 20px auto 0; }
.next-card { margin: 40px auto 24px; text-align: left; }
.next-card h2 { font-size: 1.5rem; }
.next-card p { color: var(--muted); margin: 8px 0 22px; }

/* ---------- footer ---------- */
.site-footer { overflow: hidden; padding-block: clamp(64px, 8vw, 104px) 36px; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 44ch; }
.footer-col h2 { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .socials a { text-decoration: none; }
.footer-col a:hover, .socials a:hover { color: var(--accent-text); }
.socials { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.socials a { color: var(--muted); font-size: .9rem; }
.footer-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 7.6vw, 7.8rem); letter-spacing: -0.045em; line-height: 1; padding-bottom: .06em; margin: 48px 0 0; color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--text) 16%, transparent), transparent 88%); -webkit-background-clip: text; background-clip: text; white-space: nowrap; overflow: hidden; }
.footer-disclaimer { margin-top: 32px; font-size: .84rem; color: var(--muted); max-width: 120ch; line-height: 1.6; }
.footer-copy { margin-top: 16px; font-size: .84rem; color: var(--muted); }

/* ---------- reveal (set up by GSAP; visible without JS) ---------- */
.js.motion .rv { opacity: 0; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; }

/* ---------- responsive ---------- */
@media (hover: hover) and (min-width: 1101px) {
  .has-menu:hover .nav__menu, .has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
@media (max-width: 1240px) {
  .nav__actions .btn--ghost { display: none; }
}
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .site-header .nav { position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); flex-direction: column; align-items: stretch; gap: 24px; padding: 96px 24px 32px; background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; overflow-y: auto; z-index: 60; }
  .site-header .nav.is-open { transform: none; visibility: visible; box-shadow: var(--shadow); }
  .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; border: 0; background: none; padding: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.08rem; border-radius: var(--r-sm); }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none !important; box-shadow: none; border: 0; background: none; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .has-menu.is-open .nav__menu { display: block; }
  .nav__actions { flex-direction: column; align-items: stretch; }
  .nav__actions .btn, .nav__actions .btn--ghost { display: inline-flex; width: 100%; }
  .nav__actions .mode-toggle { display: none; }
  .header-tools { display: flex; gap: 10px; margin-left: auto; align-items: center; }
  .menu-btn { margin-left: 0; position: relative; z-index: 61; }
  .bento, .resources, .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__visual { position: sticky; top: var(--header-h); height: 42svh; min-height: 280px; z-index: 1; }
  .story__step { min-height: 56vh; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (min-width: 1101px) { .header-tools { display: contents; } .header-tools .mode-toggle--mobile { display: none; } }
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .hero { min-height: auto; }
  .hero__grid, .page-hero__grid, .split, .band, .referral, .profile, .tier, .lessons-layout, .checklist-layout, .contact-layout, .claims, .notes, .switcher, .calc { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { min-height: 380px; margin: 0 calc(var(--gutter) * -1); order: -1; }
  .hero__visual .scene { inset: -6% 0 -10%; }
  .hero__text { padding-top: 0; }
  .credential { right: auto; left: var(--gutter); top: auto; bottom: 0; }
  .hero__hint { display: none; }
  .scroll-cue { display: none; }
  .page-hero__grid { min-height: 0; }
  .page-hero__visual { min-height: 300px; order: -1; margin: 0 calc(var(--gutter) * -1); }
  .fact-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-rail > div:nth-child(3) { border-left: 0; }
  .fact-rail > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .switcher__visual { max-height: 380px; width: 100%; aspect-ratio: auto; height: 360px; order: -1; }
  .pillars, .assets, .stats, .themes, .flags { grid-template-columns: minmax(0, 1fr); }
  .themes > div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .side-card, .gauge-card { position: static; }
  .gauge-card { order: -1; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .referral__qr { justify-self: start; }
  .profile { justify-items: start; }
  .funnel-page { grid-template-columns: minmax(0, 1fr); }
  .funnel-side { padding-bottom: 40px; }
  .funnel-main { padding-top: 40px; }
  .fee-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .bento, .resources, .rules, .steps, .choices, .choices--3, .form-grid, .flips { grid-template-columns: minmax(0, 1fr); }
  .tile--wide { grid-column: auto; }
  .inline-form__row { flex-direction: column; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline__line { left: 6px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 0; }
  .timeline__year { text-align: left; }
  .glossary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lesson__body { padding-left: 22px; }
  .referral__meta { flex-direction: column; gap: 12px; }
  .actions .btn { flex: 1 1 auto; }
  .wf { grid-template-columns: 96px 1fr 76px; font-size: .84rem; }
  .hstep { min-height: 300px; padding: 26px; }
  .proof li { font-size: .82rem; }
  .brand__name { font-size: 1rem; }
  .sw-panel h3 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .statement .w { opacity: 1 !important; }
}
@media print {
  .site-header, .site-footer, .toc, .gauge-card__actions, .page-hero, .admin-bar, .scene, .ticker { display: none !important; }
  body, .tone-dark, .tone-light { background: #fff !important; color: #000 !important; }
  .page-research main > section:not(#checklist) { display: none; }
}

/* =====================================================================
   v3 — stock photography, team sections, breadcrumbs
   ===================================================================== */
.photo-frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 30%, var(--surface)), color-mix(in srgb, var(--secondary) 25%, var(--surface))); box-shadow: var(--shadow); isolation: isolate; }
.photo-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .38)); }
.photo-tag { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgb(8 12 24 / .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: .84rem; font-weight: 600; border: 1px solid rgb(255 255 255 / .16); }
.coin, .photo-frame .coin { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: contain; }

/* home hero photo stack */
.hero__visual { display: grid; align-content: center; min-height: 560px; }
.hero__photo { position: absolute; }
.hero__photo--main { top: 4%; right: 0; width: 74%; height: 78%; }
.hero__photo--second { left: 0; bottom: 4%; width: 52%; height: 40%; border: 4px solid var(--bg); }
.hero__visual .credential { top: auto; bottom: 30%; right: auto; left: 34%; }

/* switcher photos */
.switcher__visual { aspect-ratio: 1 / 1; }
.sw-photo { position: absolute; inset: 0; opacity: 0; transform: scale(.96) rotate(-1.5deg); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.sw-photo.is-active { opacity: 1; transform: none; }
.sw-photo:nth-child(2).is-active { transform: none; }

/* sub-page hero photo */
.page-hero__visual.photo-frame { min-height: 0; aspect-ratio: 16 / 11; align-self: center; }
.page-hero--compact .page-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }

/* photo + text split */
.psplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.psplit--left .psplit__media { order: -1; }
.psplit__media { aspect-ratio: 4 / 3.4; }
.wide-photo { margin-top: 48px; aspect-ratio: 21 / 8; }

/* team grid */
.team-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 16px; align-items: stretch; }
.team-grid__photo { min-height: 420px; }
.team-grid .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-grid .tile { min-height: 190px; }

/* tick list */
.ticks { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary); color: var(--on-primary); stroke-width: 3; flex: none; margin-top: 1px; }

/* stories */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-card { margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.story-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; letter-spacing: -0.01em; }
.story-card blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--secondary); margin-bottom: 10px; }
.story-card figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.story-card small { display: block; color: var(--muted); }
.avatar--sm { width: 40px; height: 40px; font-size: .85rem; }

/* breadcrumbs */
.crumbs { margin-bottom: 18px; font-size: .86rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* funnel photo */
.funnel-side__photo { position: absolute; inset: 0; margin: 0; }
.funnel-side__photo img { width: 100%; height: 100%; object-fit: cover; }
.funnel-side__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 10 20 / .55), rgb(6 10 20 / .9)); }
.funnel-side__inner { color: #fff; }
.funnel-side .lead, .funnel-side .funnel-aside li { color: rgb(255 255 255 / .82); }
.cta-block { border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-grid__photo { min-height: 320px; aspect-ratio: 16 / 9; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__visual { min-height: 420px; margin: 0; order: 0; }
  .hero__photo--main { width: 78%; height: 80%; top: 0; }
  .hero__photo--second { width: 56%; height: 44%; bottom: 0; }
  .hero__visual .credential { left: auto; right: 0; bottom: 6%; }
  .psplit { grid-template-columns: minmax(0, 1fr); }
  .psplit--left .psplit__media { order: 0; }
  .psplit__media { aspect-ratio: 16 / 10; }
  .switcher__visual { aspect-ratio: 4 / 3; height: auto; max-height: none; }
  .page-hero__visual.photo-frame { order: 0; margin: 0; }
  .wide-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .team-grid .bento, .stories { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { min-height: 340px; }
}

/* related pages strip */
.related__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 26px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related__card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.related__card:hover, .related__card:focus-visible { border-color: var(--primary); transform: translateY(-3px); }
.related__label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.related__label .icon { color: var(--accent-text); flex: none; }
.related__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 860px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* social icons */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease); }
.social-icons a:hover, .social-icons a:focus-visible { color: var(--on-primary); background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.social-icons svg { width: 18px; height: 18px; }
.social-icons--lg a { width: 46px; height: 46px; }
.social-icons--lg svg { width: 20px; height: 20px; }
.footer-socials { margin-top: 22px; }
.contact-social { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-social__label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 12px; }

/* ================= v4: tile fix, chapters, about, comparison ================= */
/* Tiles: the icon now sits in the normal flow, so long text can never slide underneath it. */
.tile { justify-content: flex-start; min-height: 0; }
.tile__glyph { position: static; margin-bottom: 6px; flex: none; }
.tile__glyph + .tile__n + h3, .tile h3 { margin-top: auto; padding-top: 14px; }
.tile h3 { padding-right: 8px; }
.tile__n { top: 24px; right: 24px; }
.bento { grid-auto-rows: minmax(210px, auto); }
.team-grid .bento { grid-auto-rows: minmax(220px, auto); }

/* chapter markers */
.chapter { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chapter__n { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--primary-soft); color: var(--accent-text); letter-spacing: .04em; }
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 220px; }

/* about the company */
#about .statement { margin-bottom: clamp(44px, 6vw, 72px); }
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.about__text h2 { margin-bottom: 18px; }
.about__text .prose p { color: var(--muted); }
.about__text .prose p + p { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 30px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts > div { padding: 16px 20px; border-top: 1px solid var(--line); min-width: 0; }
.facts > div:nth-child(-n+2) { border-top: 0; }
.facts > div:nth-child(2n) { border-left: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.leader-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.avatar--lg { width: 84px; height: 84px; font-size: 1.6rem; margin-bottom: 14px; }
.leader-card__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.leader-card__name { font-family: var(--font-display); font-weight: 650; font-size: 1.6rem; letter-spacing: -0.02em; }
.leader-card__role { color: var(--muted); font-size: .95rem; }
.leader-card__contact { list-style: none; margin: 18px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; width: 100%; }
.leader-card__contact li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; min-width: 0; }
.leader-card__contact span { color: var(--muted); flex: none; }
.leader-card__contact a, .leader-card__contact code { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.leader-card__contact a { color: var(--text); font-weight: 600; text-decoration: none; }
.leader-card__contact a:hover { color: var(--accent-text); }
.leader-card__contact code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: var(--accent-text); }
.leader-card .btn { width: 100%; justify-content: center; }
.values { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.value__n { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--accent-text); }
.value h3 { font-size: 1.12rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* platform switcher text column */
.switcher__text { min-width: 0; }

/* XAB Club vs Vortex AI comparison */
.compare { margin-top: clamp(56px, 7vw, 96px); }
.compare__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 22px; }
.compare__table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.compare__row { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1fr) minmax(0, 1fr); }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__row > span { padding: 16px 20px; min-width: 0; overflow-wrap: anywhere; }
.compare__row > span + span { border-left: 1px solid var(--line); }
.compare__row--head > span { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.compare__row--head .coin { width: 26px; height: 26px; }
.compare__topic { font-weight: 600; color: var(--muted); font-size: .92rem; }
.compare__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; margin-top: 16px; }
.compare__foot .fine { max-width: 70ch; margin: 0; }
.compare__links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .leader-card { position: static; }
}
@media (max-width: 700px) {
  .compare__row--head { display: none; }
  .compare__row { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .compare__row > span { padding: 8px 18px; }
  .compare__row > span + span { border-left: 0; }
  .compare__topic { padding-top: 14px !important; color: var(--text); font-size: 1rem; }
  .compare__row [data-col]::before { content: attr(data-col); display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
}
@media (max-width: 600px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div:nth-child(2n) { border-left: 0; }
  .facts > div:nth-child(2) { border-top: 1px solid var(--line); }
  .leader-card { padding: 24px; }
  .chapter::after { max-width: 80px; }
}
@media (max-width: 600px) {
  /* hero: keep the XRP label clear of the team-leader card */
  .hero__photo--main .photo-tag { top: 12px; bottom: auto; left: 12px; }
  .hero__visual .credential { padding: 10px 14px 10px 10px; gap: 10px; max-width: calc(100% - 8px); }
  .photo-tag { font-size: .78rem; }
}
@media (max-width: 900px) {
  /* platforms: heading and tabs first, then the photo */
  .switcher__visual { order: 0; }
}
@media (max-width: 600px) {
  .bento, .team-grid .bento { grid-auto-rows: auto; }
  .tile h3 { margin-top: 2px; padding-top: 4px; }
  .tile { padding: 24px; }
}

/* ================= v5: hero slider ================= */
.hero--slider { min-height: 100svh; }
.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding-bottom: 28px; }
.hero__h1 { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; max-width: 100%; margin: 8px 0 clamp(18px, 3vw, 34px); padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); font-family: var(--font-body); font-size: clamp(.82rem, 1vw, .95rem); font-weight: 600; letter-spacing: 0; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.hero__h1::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--secondary-soft); }
.hero__grid--slider { flex: 1; align-items: center; }

/* text slides stack in one grid cell so the box is always as tall as the tallest slide */
.hero-slides { display: grid; position: relative; z-index: 2; min-width: 0; }
.hero-slide { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.hero-slide.is-active { visibility: visible; opacity: 1; transition: opacity .55s var(--ease), visibility 0s; }
.hero-slide > * { transform: translateY(18px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.hero-slide.is-active > * { transform: none; opacity: 1; }
.hero-slide.is-active > :nth-child(2) { transition-delay: .06s; }
.hero-slide.is-active > :nth-child(3) { transition-delay: .12s; }
.hero-slide.is-active > :nth-child(4) { transition-delay: .18s; }
.hero-slide.is-active > :nth-child(5) { transition-delay: .24s; }
.hero-slide__tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--accent-text); margin-bottom: 18px; }
.hero-slide__tag .coin { width: 28px; height: 28px; }
.team-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); flex: none; }
.team-dot svg { width: 16px; height: 16px; }
.hero-slide__title { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; max-width: 14ch; text-wrap: balance; }
.hero-slide__text { margin-top: 22px; max-width: 54ch; }
.hero-slide__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; max-width: 620px; border-top: 1px solid var(--line); }
.hero-slide__facts > div { padding: 14px 16px 0 0; min-width: 0; }
.hero-slide__facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-slide__facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-slide__facts dd { margin: 4px 0 0; font-weight: 600; font-size: .98rem; overflow-wrap: anywhere; }
.hero-slide__actions { margin-top: 30px; }

/* photos crossfade, with a slow zoom on the active one */
.hero-media { position: relative; align-self: stretch; min-height: 520px; }
.hero-media__slide { position: absolute; inset: 0 0 8% 8%; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero-media__slide.is-active { opacity: 1; z-index: 1; }
.hero-media__slide > img { transform: scale(1.08); transition: transform 8s linear; }
.hero-media__slide.is-active > img { transform: scale(1); }
.hero-media__slide .photo-tag { top: 16px; bottom: auto; left: 16px; }
.hero-media .credential { position: absolute; z-index: 3; left: 0; right: auto; top: auto; bottom: 0; }

/* controls */
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(24px, 4vw, 44px); }
.hero-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; flex: 1; max-width: 760px; }
.hero-tab { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 10px; align-items: center; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.hero-tab__n { font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.hero-tab__label { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tab__bar { grid-column: 1 / -1; display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hero-tab__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: inherit; }
.hero-tab.is-active, .hero-tab:hover { color: var(--text); }
.hero-tab.is-active .hero-tab__bar i { width: 100%; }
.hero--slider.is-playing .hero-tab.is-active .hero-tab__bar i { width: 0; animation: hero-progress var(--hero-interval, 7s) linear forwards; }
.hero--slider.is-paused .hero-tab.is-active .hero-tab__bar i { animation-play-state: paused; }
.hero-tab.is-done .hero-tab__bar i { width: 100%; opacity: .45; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }
.hero-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 6px; border-radius: 6px; }
.hero-arrows { display: flex; gap: 8px; flex: none; }
.hero-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 50%, transparent); color: var(--text); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.hero-arrow:active { transform: scale(.94); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow .i-play { display: none; }
.hero-arrow[aria-pressed="true"] .i-play { display: block; }
.hero-arrow[aria-pressed="true"] .i-pause { display: none; }

@media (max-width: 1100px) {
  .hero-slide__title { font-size: clamp(2.3rem, 5.6vw, 3.8rem); }
}
@media (max-width: 900px) {
  .hero--slider { min-height: auto; }
  .hero__grid--slider { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 16 / 11; max-height: 460px; }
  .hero-media__slide { inset: 0; }
  .hero-media .credential { left: 12px; bottom: 12px; }
  .hero-slide__title { max-width: 18ch; }
}
@media (max-width: 600px) {
  .hero__h1 { font-size: .8rem; padding: 7px 12px 7px 10px; border-radius: 16px; align-items: flex-start; }
  .hero__h1::before { margin-top: 5px; }
  .hero-media { aspect-ratio: 4 / 3.2; }
  .hero-media .credential { padding: 8px 12px 8px 8px; gap: 10px; }
  .hero-media .credential .avatar { width: 38px; height: 38px; }
  .hero-media .credential__label { display: none; }
  .hero-slide__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-slide__facts { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 22px; }
  .hero-slide__facts > div, .hero-slide__facts > div + div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-slide__facts dd { margin: 0; text-align: right; }
  .hero-slide__actions .btn { flex: 1 1 100%; }
  .hero-controls { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-tabs { gap: 10px; }
  .hero-tab__label { font-size: .82rem; }
  .hero-arrows { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide > *, .hero-media__slide, .hero-media__slide > img { transition: none !important; transform: none !important; }
}
/* hero: fit the whole slider (incl. controls) in the first screen on laptops */
.hero--slider { padding-top: calc(var(--header-h) + 12px); }
.hero__h1 { margin: 4px 0 clamp(14px, 2.2vw, 26px); }
.hero-slide__tag { margin-bottom: 14px; }
.hero-slide__title { font-size: clamp(2.4rem, 4.1vw, 4.1rem); line-height: 1.02; max-width: 16ch; }
.hero-slide__text { margin-top: 18px; }
.hero-slide__facts { margin-top: 24px; }
.hero-slide__actions { margin-top: 26px; }
.hero-media { min-height: 460px; }
.hero-controls { margin-top: clamp(20px, 3vw, 32px); }
@media (min-width: 901px) and (max-height: 820px) {
  .hero-slide__title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
  .hero-slide__text { font-size: 1.05rem; }
  .hero-media { min-height: 400px; }
}
.footer-big { background: linear-gradient(180deg, color-mix(in srgb, var(--text) 22%, transparent), transparent 90%); -webkit-background-clip: text; background-clip: text; }
@media (min-width: 901px) and (max-width: 1100px) {
  .hero-slide__title { font-size: clamp(2.2rem, 4.4vw, 3rem); }
  .hero-slide__facts { margin-top: 18px; }
  .hero-slide__actions { margin-top: 20px; }
  .hero-media { min-height: 380px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hero__grid--slider { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .hero-slide__title { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
}
@media (max-width: 900px) {
  .hero-media { min-height: 0; width: 100%; min-width: 0; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .hero-tab__label { white-space: normal; line-height: 1.2; } }
@media (max-width: 1100px) { .team-grid__photo { min-width: 0; width: 100%; } }
@media (max-width: 600px) { .team-grid__photo { min-height: 0; aspect-ratio: 4 / 3; } }
.team-dot--capital { background: var(--secondary); color: #1a1406; }

/* ================= Business Capital page ================= */
.qualify input[type="range"], .costs__calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--primary) var(--fill, 13%), var(--line-strong) var(--fill, 13%)); outline: none; margin: 10px 0 4px; }
.qualify input[type="range"]::-webkit-slider-thumb, .costs__calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; box-shadow: 0 4px 12px rgb(0 0 0 / .25); }
.qualify input[type="range"]::-moz-range-thumb, .costs__calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; }
.qualify input[type="range"]:focus-visible, .costs__calc input[type="range"]:focus-visible { outline: 2px solid var(--secondary); outline-offset: 6px; }

.qualify { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.qualify__form { display: grid; gap: 26px; }
.qualify__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.qualify__label { display: block; padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 1rem; }
.qualify__sales output { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.qualify__scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.qualify__result { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.qualify__status { font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; padding-left: 14px; border-left: 3px solid var(--line-strong); }
.qualify__status.is-ok { border-color: #22c55e; }
.qualify__status.is-no { border-color: var(--secondary); }
.qualify__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qualify__checks li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .97rem; }
.qualify__checks .qc { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.qualify__checks li.is-ok { color: var(--text); }
.qualify__checks li.is-ok .qc { background: #22c55e; border-color: #22c55e; }
.qualify__checks li.is-ok .qc::after { content: "✓"; color: #062b12; }
.qualify__checks li.is-no { color: var(--text); }
.qualify__checks li.is-no .qc { border-color: var(--secondary); background: var(--secondary-soft); }
.qualify__checks li.is-no .qc::after { content: "!"; color: var(--secondary); }
.qualify__estimate { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: var(--primary-soft); }
.qualify__est-label, .qualify__est-note { font-size: .82rem; color: var(--muted); }
.qualify__estimate strong { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.qualify__micro { font-size: .92rem; padding: 12px 16px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); }
.qualify__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.reqs { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.reqs__grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reqs__grid li { display: flex; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.reqs__tick { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.reqs__grid h3 { font-size: 1.05rem; margin-bottom: 4px; }
.reqs__grid p { color: var(--muted); font-size: .94rem; }
.reqs__docs { position: sticky; top: calc(var(--header-h) + 20px); }
.reqs__docs h3 { margin-bottom: 14px; }
.reqs__docs ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; }

.costs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.costs__facts { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.costs__facts > div { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 16px 20px; }
.costs__facts > div + div { border-top: 1px solid var(--line); }
.costs__facts dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.costs__facts dd { margin: 0; font-weight: 600; }
.costs__amt { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.costs__result { display: grid; gap: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.costs__result > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.costs__result span { color: var(--muted); }
.costs__result strong { font-variant-numeric: tabular-nums; text-align: right; }

.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ask__form-title { margin-bottom: 20px; }

@media (max-width: 900px) {
  .qualify, .reqs, .costs, .ask { grid-template-columns: minmax(0, 1fr); }
  .qualify__result, .reqs__docs { position: static; }
}
@media (max-width: 600px) {
  .reqs__grid { grid-template-columns: minmax(0, 1fr); }
  .costs__facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .qualify__cta .btn { flex: 1 1 100%; }
}
.nav__link { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1280px) { .nav__link { padding-inline: 11px; font-size: .9rem; } }

/* ===== Business Capital v2: source notice, program options, secure panel ===== */
.source-bar { padding: 18px 0; border-bottom: 1px solid var(--line); }
.source-bar__inner { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.source-bar__inner p { flex: 1 1 520px; margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.source-bar__icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--accent-text); }
.source-bar .link { white-space: nowrap; align-self: center; }
.fit { margin: 0 0 26px; }
.fit__q { font-weight: 600; margin-bottom: 12px; }
.programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.program { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: opacity .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; min-width: 0; }
.program h3 { font-size: 1.22rem; padding-right: 8px; }
.program__best { font-weight: 600; color: var(--accent-text); font-size: .93rem; }
.program__text { color: var(--muted); font-size: .95rem; flex: 1; }
.program__max { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.program__btn { width: 100%; justify-content: center; margin-top: 6px; }
.program__badge { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 999px; background: var(--secondary); color: #1a1406; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.program.is-match { border-color: var(--secondary); box-shadow: 0 0 0 1px var(--secondary), var(--shadow); transform: translateY(-3px); }
.program.is-match .program__badge { opacity: 1; transform: none; }
.program.is-dim { opacity: .55; }
.programs__note { margin-top: 18px; max-width: 90ch; }
.form-note { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--primary-soft); font-size: .9rem; line-height: 1.5; }
.form-note .icon { flex: none; margin-top: 2px; color: var(--accent-text); }
.secure { margin-top: 28px; padding: 24px; }
.secure h3 { font-size: 1.1rem; margin-bottom: 4px; }
.secure .ticks { margin: 14px 0 16px; gap: 10px; }
.secure .ticks li { font-weight: 500; font-size: .95rem; }
.ask__disclaimer { margin-top: 28px; max-width: 110ch; }
@media (max-width: 1100px) { .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .programs { grid-template-columns: minmax(0, 1fr); } .source-bar .link { white-space: normal; } }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; max-width: 100%; } .btn--lg { padding-inline: 22px; } }
/* Uploaded logos: keep white lettering visible when the header turns light on scroll. */
.brand__logo--light { display: none; }
.site-header.tone-light .brand__logo--dark { display: none; }
.site-header.tone-light .brand__logo--light { display: block; }
.brand__logo--badge { box-sizing: content-box; padding: 5px 10px; margin: -5px -10px; border-radius: 12px; background: transparent; transition: background-color .35s, box-shadow .35s; }
.site-header.tone-light .brand__logo--badge { background: #0c1f1d; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
/* v4.2 — section intros, notes and disclaimers span the full content width (client request). */
.section-head { max-width: none; }
.section-head--row > div { max-width: none; flex: 1 1 520px; }
.section-head__intro, .section-head__intro p { max-width: none; }
.programs__note, .ask__disclaimer, .compare__foot .fine, .disclaimer, .disclaimer p { max-width: none; }
.source-bar__inner p { flex: 1 1 0; min-width: min(100%, 520px); }
.footer-disclaimer { max-width: none; }
/* Flip cards grow to fit the taller face (longer client copy, narrow phones). */
.flip__inner { display: grid; }
.flip__face { position: relative; inset: auto; grid-area: 1 / 1; min-height: 250px; }
