/* K-Fin. Direction and reasons: DESIGN.md */
/* Montserrat for everything (owner's choice, 2026-10-30). Headings use the same files under 'Montserrat Display'
   with size-adjust, because Montserrat sets larger than the previous display face; that keeps every heading size in
   proportion without retuning each rule. */
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-300-normal.woff2) format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-300-normal.woff2) format('woff2'); font-weight: 300; font-style: normal; font-display: swap; size-adjust: 88%; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; size-adjust: 88%; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; size-adjust: 88%; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; size-adjust: 88%; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; size-adjust: 88%; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; size-adjust: 88%; }
@font-face { font-family: 'Montserrat Display'; src: url(/assets/fonts/montserrat-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; size-adjust: 88%; }

:root {
  --ink: #1D174D;
  --ink-deep: #15103A;
  --ink-2: #2A2366;
  --on-ink: #F6F3EC;
  --on-ink-muted: #BDB7D6;
  --gold: #93773A;
  --gold-hi: #C9A85E;
  --bg: #F6F3EC;
  --bg-2: #ECE7DC;
  --surface: #FFFDF8;
  --text: #1D174D;
  --muted: #4B4668;
  --gold-text: #6F5822;
  --line: rgba(29, 23, 77, .18);
  --line-strong: rgba(29, 23, 77, .5);
  --focus: #1D174D;
  --cover-tax: #E3DCCB;
  --serif: 'Montserrat Display', 'Montserrat', system-ui, sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  /* One small system so every section reads as the same site: three radii, one card shadow, one section rhythm. */
  --r-s: 6px; --r-m: 14px; --r-l: 22px; --r-b: 10px;
  --shadow-card: 0 30px 60px -32px rgba(10, 8, 30, .45);
  --section-y: clamp(84px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --head-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #120E30;
  --bg-2: #19143F;
  --surface: #1F1950;
  --text: #EDEAF5;
  --muted: #ADA8C6;
  --gold-text: #C9A85E;
  --gold: #C9A85E;
  --line: rgba(237, 234, 245, .16);
  --line-strong: rgba(237, 234, 245, .5);
  --focus: #C9A85E;
  --cover-tax: #2A2366;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right)); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-head :focus-visible, .site-foot :focus-visible, .hero :focus-visible, .phead :focus-visible, .nf :focus-visible, .band :focus-visible, .menu :focus-visible, .post__head :focus-visible, .post__cta :focus-visible { outline-color: var(--gold-hi); }
main:focus { outline: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold-hi); color: var(--ink); padding: 12px 16px; border-radius: var(--r-b); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 { font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.08 var(--serif); letter-spacing: -.015em; }
.h3 { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.15 var(--serif); letter-spacing: -.01em; }
.h4 { font: 500 1.15rem/1.3 var(--sans); }
.h2 em, .h3 em, .band__h em { color: var(--gold-text); font-style: italic; }
.band__h em, .phead__title em { color: var(--gold-hi); }

/* The tittle: the slanted gold mark from the logo's "i". */
.tittle { display: inline-block; width: .62em; height: .5em; background: var(--gold); transform: skewX(-16deg); flex: none; }

/* The double rule: how accountants mark a final total. Draws once on reveal. */
.dbl { background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 2px, 0% 2px; background-position: 0 calc(100% - 4px), 0 100%; padding-bottom: 8px; transition: background-size .9s var(--ease); }
.dbl.is-on, .dbl--on { background-size: 100% 2px, 100% 2px; }
.dbl.is-on { transition-delay: 0s, .25s; }
h2 .dbl, .h2 .dbl { color: inherit; }

.link { display: inline-block; padding-top: 10px; font-weight: 500; text-decoration: none; background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 100% 1px, 0% 1px; background-position: 0 100%, 0 calc(100% - 4px); padding-bottom: 6px; transition: background-size .35s var(--ease); }
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--r-b); border: 1px solid transparent; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); text-align: center; }
.btn::after { content: ''; position: absolute; left: -30%; top: 0; bottom: 0; width: 22%; background: rgba(255, 255, 255, .35); transform: skewX(-16deg) translateX(-120%); transition: transform .6s var(--ease); pointer-events: none; }
.btn:hover::after { transform: skewX(-16deg) translateX(720%); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-hi); color: var(--ink); }
.btn--gold:hover { background: #D8BA73; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-2); }
:root[data-theme="dark"] .btn--ink { background: var(--gold-hi); color: var(--ink); }
.btn--ghost { border-color: rgba(246, 243, 236, .45); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink); background: rgba(246, 243, 236, .06); }
.btn--line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); transition: transform .4s var(--ease), background-color .35s, color .35s; }
.site-head.is-hidden { transform: translateY(-100%); }
.site-head__in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.site-head__logo { flex: none; display: block; width: 96px; }
.site-head__logo img, .site-foot__logo img { width: 100%; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--on-ink-muted); font-weight: 500; position: relative; transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--on-ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--on-ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--on-ink); }
.site-nav a[aria-current="page"]::before { content: ''; position: absolute; left: 50%; bottom: -2px; width: 10px; height: 6px; margin-left: -5px; background: var(--gold-hi); transform: skewX(-16deg); }
.site-head__end { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-b); border: 1px solid rgba(246, 243, 236, .25); background: transparent; color: var(--on-ink); cursor: pointer; transition: border-color .2s, transform .5s var(--ease); }
.theme-btn:hover { border-color: var(--on-ink); }
:root[data-theme="dark"] .theme-btn svg { transform: rotate(180deg); }
.theme-btn svg { transition: transform .5s var(--ease); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(246, 243, 236, .25); border-radius: var(--r-b); background: transparent; color: var(--on-ink); cursor: pointer; }
.menu-btn__bars { width: 18px; height: 10px; border-block: 1.5px solid currentColor; }
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(13, 10, 36, .6); }
.menu[hidden] { display: none; }
.menu__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--ink); color: var(--on-ink); padding: calc(20px + env(safe-area-inset-top)) var(--gut) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; overflow-y: auto; box-shadow: -24px 0 60px rgba(0, 0, 0, .3); }
.menu__close { align-self: flex-end; min-height: 44px; padding: 0 14px; border: 1px solid rgba(246, 243, 236, .3); border-radius: var(--r-b); background: transparent; color: var(--on-ink); cursor: pointer; }
.menu__links { list-style: none; border-top: 1px solid rgba(246, 243, 236, .15); }
.menu__links a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(246, 243, 236, .15); font: 400 1.75rem/1.2 var(--serif); text-decoration: none; }
.menu__links .tittle { width: 14px; height: 10px; opacity: 0; transition: opacity .2s; }
.menu__links a[aria-current="page"] .tittle, .menu__links a:hover .tittle { opacity: 1; background: var(--gold-hi); }
.menu__contact { display: grid; gap: 14px; margin-top: auto; }
.menu__contact a:not(.btn) { color: var(--on-ink-muted); text-decoration: none; padding: 6px 0; }

/* ---------- hero: dawn over the bay behind a silver veil ----------
   The video is a slow locked-off loop; the veil keeps the copy at full contrast whatever the frame shows. */
.hero { --veil: 225, 230, 238; --hero-text: var(--ink); --hero-soft: #4F5873; --hero-lede: #2C3350;
  --band: clamp(250px, 36vh, 360px);
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; color: var(--hero-text); background: rgb(var(--veil)); }
:root[data-theme="dark"] .hero { --veil: 18, 14, 48; --hero-text: var(--on-ink); --hero-soft: #B9B3D3; --hero-lede: #DAD5EA; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--veil), .4) 0, rgba(var(--veil), 0) 130px), linear-gradient(90deg, rgba(var(--veil), .55) 0%, rgba(var(--veil), .3) 34%, rgba(var(--veil), 0) 52%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: calc(var(--head-h) + clamp(20px, 4vh, 48px)) clamp(32px, 6vh, 64px); }
.hero__copy { max-width: 700px; }
.hero__chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid rgba(29, 23, 77, .14); background: rgba(255, 255, 255, .55); font-size: .92rem; font-weight: 500; }
:root[data-theme="dark"] .hero__chip { background: rgba(255, 255, 255, .07); border-color: rgba(246, 243, 236, .2); }
.hero__chip .tittle { width: 11px; height: 8px; }
.hero__h { font: 400 clamp(2.4rem, 4.3vw, 4.5rem)/1.04 var(--serif); letter-spacing: -.024em; }
.hero__soft { color: var(--hero-soft); }
.hero__h em { color: var(--gold-text); }
:root[data-theme="dark"] .hero__h em { color: var(--gold-hi); }
.hero__lede { margin: 22px 0 30px; max-width: 30em; color: var(--hero-lede); font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
/* The lede and pause label cross the horizon and town, so each sits on a feathered glow of the veil colour
   (0.62 alpha: worst frame 5.8:1 and 8.0:1). Everything else reads straight off the sky. */
.hero__lede, .hero__play { background: rgba(var(--veil), .62); box-shadow: 0 0 28px 22px rgba(var(--veil), .62); border-radius: 24px; }
.hero__lede { width: fit-content; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
/* One lifted control: the primary action. */
.btn--lift { box-shadow: 0 10px 24px -10px rgba(29, 23, 77, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn--lift:hover { transform: translateY(-1px); }
.hero__play { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font-weight: 500; cursor: pointer; }
.hero__play[hidden] { display: none; }
.hero__play-i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .85; transition: transform .3s var(--ease); }
.hero__play:hover .hero__play-i { transform: scale(1.06); }
.hero__play-i::before, .hero__play-i::after { content: ''; position: absolute; top: 14px; width: 3px; height: 14px; background: currentColor; border-radius: 1px; }
.hero__play-i::before { left: 15px; } .hero__play-i::after { left: 22px; }
.hero__play[aria-pressed="true"] .hero__play-i::before { left: 16px; top: 13px; width: 0; height: 0; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.hero__play[aria-pressed="true"] .hero__play-i::after { display: none; }
.hero__feats { list-style: none; display: inline-flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(var(--veil), .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .5); }
:root[data-theme="dark"] .hero__feats { border-color: rgba(246, 243, 236, .14); }
.hero__feats li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; line-height: 1.3; }
.hero__ico { flex: none; width: 38px; height: 38px; border-radius: var(--r-s); display: grid; place-items: center; background: rgba(255, 255, 255, .62); border: 1px solid rgba(29, 23, 77, .12); }
:root[data-theme="dark"] .hero__ico { background: rgba(255, 255, 255, .08); border-color: rgba(246, 243, 236, .18); }
.hero__ico svg, .hcard__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Floating card: real K-Fin facts, no invented balances. Tilt follows the pointer. */
.hero__stack { position: relative; justify-self: center; width: min(400px, 100%); margin: 0 90px 90px 0; perspective: 1400px; }
.hcard, .hmini { display: block; text-decoration: none; color: var(--on-ink); background: linear-gradient(150deg, #34307A 0%, #1D174D 55%, #15103A 100%); box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .14); }
.hcard { position: relative; border-radius: var(--r-l); padding: 26px 28px 24px; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)) rotateZ(-4deg); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .4s; }
.hcard:hover { box-shadow: 0 36px 70px -30px rgba(10, 8, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.hcard__logo { width: 92px; height: auto; }
.hcard__tag { font-size: .8rem; color: var(--on-ink-muted); text-align: right; }
.hcard__k { display: block; font-size: .9rem; color: var(--on-ink-muted); margin-bottom: 6px; }
.hcard__big { display: block; max-width: 13em; font: 400 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--serif); }
.hcard__big span { color: var(--gold-hi); font-style: italic; }
.hcard__row { display: grid; grid-template-columns: repeat(4, 52px); justify-content: start; gap: 14px; margin-top: 24px; }
.hcard__btn { display: grid; justify-items: center; gap: 8px; font-size: .78rem; white-space: nowrap; color: var(--on-ink-muted); }
.hcard__btn svg { box-sizing: content-box; padding: 13px; border-radius: 50%; background: linear-gradient(160deg, #F4F1EA, #CFCADD); color: var(--ink); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.hcard:hover .hcard__btn svg { transform: translateY(-2px); }
.hmini { position: absolute; right: -128px; width: 256px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 16px; font-size: .85rem; transform: rotateZ(-4deg) translateZ(40px); transition: transform .4s var(--ease); }
.hmini:hover { transform: rotateZ(-4deg) translate(-4px, -4px); }
.hmini strong { display: block; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.hmini span span { color: var(--on-ink-muted); }
.hmini--1 { top: 74%; }
.hmini--2 { top: calc(74% + 84px); right: -104px; }
.hmini__i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.hmini__i .tittle { width: 13px; height: 10px; background: var(--gold-hi); }
.hmini__i--x { font: 600 .95rem var(--sans); color: #fff; background: #13B5EA; border-radius: 50%; }

@media (min-width: 901px) and (max-width: 1240px) {
  .hero__stack { width: min(360px, 100%); margin-right: 56px; }
  .hmini { right: -32px; width: 236px; }
  .hmini--2 { right: -14px; }
}

/* Home header sits on the silver veil until the page scrolls. */
.is-home .site-head { position: fixed; left: 0; right: 0; }
.is-home .site-head.is-top { background: transparent; }
.logo__navy { display: none; }
:root:not([data-theme="dark"]) .is-home .site-head.is-top { color: var(--ink); }
:root:not([data-theme="dark"]) .is-home .site-head.is-top .site-head__logo img:first-child { display: none; }
:root:not([data-theme="dark"]) .is-home .site-head.is-top .logo__navy { display: block; }
:root:not([data-theme="dark"]) .is-home .site-head.is-top .site-nav a { color: #3A4160; }
:root:not([data-theme="dark"]) .is-home .site-head.is-top .site-nav a::after { background: var(--ink); }
:root:not([data-theme="dark"]) .is-home .site-head.is-top .site-nav a:hover, :root:not([data-theme="dark"]) .is-home .site-head.is-top .site-nav a[aria-current="page"] { color: var(--ink); }
:root:not([data-theme="dark"]) .is-home .site-head.is-top .theme-btn, :root:not([data-theme="dark"]) .is-home .site-head.is-top .menu-btn { color: var(--ink); border-color: rgba(29, 23, 77, .28); }
:root:not([data-theme="dark"]) .is-home .site-head.is-top :focus-visible { outline-color: var(--ink); }

/* ---------- 404 ---------- */
/* The missing page gets reconciled as you scroll: the outlined 404 drifts apart and the ledger of real pages
   ticks in row by row to a total. CSS scroll timelines only, so browsers without them show it all at rest. */
.nf { background: var(--ink); color: var(--on-ink); overflow: clip; }
.nf__stage { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.nf__num { position: absolute; inset: auto 0 -.1em; display: flex; justify-content: center; margin: 0; font: 600 clamp(9rem, 34vw, 30rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(246, 243, 236, .16); pointer-events: none; user-select: none; }
.nf__copy { position: relative; }
.nf__ledger { position: relative; padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 120px); }
.nf__rows { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.nf__row { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid rgba(246, 243, 236, .14); }
.nf__row a { color: var(--on-ink); text-decoration: none; padding: 16px 0; font: 400 clamp(1.2rem, 2.2vw, 1.6rem) var(--serif); }
.nf__row a:hover { color: var(--gold-hi); }
.nf__lead { flex: 1; border-bottom: 1px dotted rgba(246, 243, 236, .3); }
.nf__amt { font-variant-numeric: tabular-nums; color: var(--on-ink-muted); }
.nf__total { max-width: 46rem; display: flex; justify-content: space-between; border-top: 2px solid var(--gold-hi); margin: 18px 0 32px; padding-top: 14px; font-weight: 600; }
.nf__total .nf__amt { color: var(--gold-hi); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .nf__num span { animation: nf-drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .nf__num span:first-child { --x: -16vw; }
    .nf__num span:nth-child(2) { --s: .55; }
    .nf__num span:last-child { --x: 16vw; }
    .nf__row, .nf__total { animation: nf-in linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  }
}
@keyframes nf-drift { to { transform: translateX(var(--x, 0)) scale(var(--s, 1)); opacity: .25; } }
@keyframes nf-in { from { opacity: 0; transform: translateX(-28px); } }

/* ---------- page head (inner pages) ---------- */
.phead { background: var(--ink); color: var(--on-ink); padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.phead__in { max-width: var(--wrap); }
.phead__kicker { color: var(--on-ink-muted); font-weight: 500; display: flex; align-items: center; gap: 12px; margin: 28px 0 18px; }
.phead__kicker::before { content: ''; width: 12px; height: 9px; background: var(--gold-hi); transform: skewX(-16deg); }
.phead__title { font: 400 clamp(2.3rem, 5.4vw, 4.6rem)/1.04 var(--serif); letter-spacing: -.02em; max-width: 15em; }
.phead__title em { color: var(--gold-hi); }
.phead__lede { margin-top: 26px; max-width: 40em; color: #DAD5EA; font-size: 1.15rem; }
.phead .ticks a { color: var(--on-ink); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: .9rem; color: var(--on-ink-muted); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { display: inline-block; color: var(--on-ink-muted); text-decoration: none; padding: 12px 0; }
.crumbs a:hover { color: var(--on-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--on-ink); }

/* ---------- problem ---------- */
.problem { padding-block: clamp(80px, 11vw, 160px); }
.problem__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.problem__lead { position: sticky; top: calc(var(--head-h) + 32px); }
.problem__lead p { margin-top: 24px; color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.problem__list { list-style: none; counter-reset: q; border-top: 1px solid var(--line-strong); }
.problem__list li { counter-increment: q; display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.problem__list li::before { content: counter(q, decimal-leading-zero); font: 500 .95rem var(--sans); color: var(--gold-text); }
.problem__list li::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--text); transform: scaleX(var(--p, 0)); transform-origin: left; }
.problem__q { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.25 var(--serif); }

/* ---------- owner challenges: full-width layered card carousel ----------
   After the owner's reference: five large white cards across the width of a dark section, the centre one forward,
   neighbours layered behind. Native scrolling moves through them; arrows, dots, keys and clicks jump to one.
   The soft radial lift behind the centre exists to put the eye on the forward card. */
.cx { position: relative; height: calc(100vh + 5 * 60vh); color: var(--text); background: radial-gradient(ellipse 70% 60% at 50% 55%, #FFFDF8 0%, var(--bg) 55%, var(--bg-2) 100%); }
/* Dark theme keeps the original navy stage. */
:root[data-theme="dark"] .cx { color: var(--on-ink); background: radial-gradient(ellipse 70% 60% at 50% 52%, #2C2670 0%, var(--ink) 60%, var(--ink-deep) 100%); }
.cx__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(6px, 1.6vh, 16px); padding: calc(var(--head-h) + clamp(10px, 2.5vh, 32px)) 0 clamp(14px, 2.6vh, 28px); }
.cx__head { text-align: center; padding-inline: var(--gut); }
.cx__head .h2 { max-width: 20em; margin: 0 auto; color: var(--text); }
.cx__head .h2 em { color: var(--gold-text); font-style: italic; }
.cx__head p { color: var(--muted); margin: 8px auto 0; }
.cx__head .link { color: var(--text); }
.cx :focus-visible { outline-color: var(--focus); }
.cx__track { position: relative; height: 100%; min-height: 0; perspective: 2000px; }
.cx__card { position: absolute; left: 50%; top: 50%; width: var(--cw, 360px); margin: 0; border-radius: var(--r-l); overflow: hidden; background: #FFFFFF; color: var(--ink); border: 1px solid rgba(29, 23, 77, .08); box-shadow: 0 1px 0 rgba(29, 23, 77, .06), 0 34px 60px -30px rgba(29, 23, 77, .38); will-change: transform; cursor: pointer; }
:root[data-theme="dark"] .cx__card { background: #FFFDF8; border-color: transparent; box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .6); }
.cx__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.cx__body { padding: clamp(14px, 1.6vw, 22px) clamp(16px, 1.8vw, 24px) clamp(14px, 1.6vw, 20px); }
.cx__n { font-size: .82rem; font-weight: 600; color: #6F5822; margin: 0; }
.cx__t { font: 500 clamp(1.3rem, 1.7vw, 1.75rem)/1.12 var(--serif); margin: 4px 0 10px; color: var(--ink); }
.cx__d { font-size: clamp(.84rem, .9vw, .95rem); line-height: 1.5; color: #4B4668; margin: 0 0 14px; }
.cx__d a { color: var(--ink); }
.cx__help { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(29, 23, 77, .14); font-size: .88rem; font-weight: 600; color: var(--ink); margin: 0; }
.cx__help-i { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.cx__help-i .tittle { width: 13px; height: 10px; background: var(--gold-hi); }
.cx__foot { padding-inline: var(--gut); }
.cx__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; }
.cx__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .2s; }
.cx__arrow:hover { transform: translateY(-1px); border-color: var(--text); background: var(--line); }
.cx__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx__dots { display: flex; gap: 4px; }
.cx__dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.cx__dot::before { content: ''; width: 26px; height: 8px; background: var(--line-strong); clip-path: inset(0 9px round 4px); transition: clip-path .3s, background-color .3s; }
.cx__dot[aria-current="true"]::before { clip-path: inset(0 0 round 4px); background: var(--gold); }
@media (max-width: 640px) {
  .cx__head .h2 { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
  .cx__head p { font-size: .95rem; }
}
/* Reduced motion: no pinning; the cards become a plain swipeable row. */
.cx--static { height: auto; }
.cx--static .cx__stage { position: static; height: auto; }
.cx--static .cx__track { height: auto; perspective: none; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px var(--gut); }
.cx--static .cx__card { position: static; transform: none !important; opacity: 1 !important; filter: none !important; flex: 0 0 min(380px, 84vw); scroll-snap-align: center; }
.cx--static .cx__foot { display: none; }

/* ---------- simulator ---------- */
.sim { background: var(--bg-2); padding-block: var(--section-y); }
.sim__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sim__intro > p { color: var(--muted); margin-top: 20px; font-size: 1.08rem; }
.sim__form { margin-top: 30px; display: grid; gap: 22px; }
.sim__field { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.sim__field label { font-weight: 500; }
.sim__field output { font: 500 1.05rem var(--sans); color: var(--text); }
.sim__field input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--text) var(--fill), var(--line-strong) var(--fill)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 22px; margin-top: -10px; background: var(--gold); border: 0; clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 22px; background: var(--gold); border: 0; border-radius: 0; clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]:focus-visible { outline-offset: 0; }
.sim__panel { margin: 0; background: var(--surface); border-radius: var(--r-l); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-card); position: sticky; top: calc(var(--head-h) + 24px); }
.sim__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.sim__totals p { margin: 0; display: grid; gap: 4px; }
.sim__k { font-size: .92rem; color: var(--muted); }
.sim__v { font: 400 clamp(1.5rem, 2.8vw, 2.3rem)/1.1 var(--serif); }
.sim__v--cash { color: var(--gold-text); }
.sim__chart { width: 100%; height: clamp(200px, 26vw, 300px); overflow: visible; }
.sim__line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.sim__line--profit { stroke: var(--text); stroke-dasharray: 6 5; }
.sim__line--cash { stroke: var(--gold); stroke-width: 3; }
.sim__gap { fill: var(--gold); opacity: .14; }
.sim__zero { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sim__grid-lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sim__axis { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.sim__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.sim__key { display: inline-flex; align-items: center; gap: 8px; }
.sim__key::before { content: ''; width: 24px; height: 0; border-top: 2.5px dashed var(--text); }
.sim__key--cash::before { border-top: 3px solid var(--gold); }
.sim__say { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 1.15rem/1.4 var(--serif); }
.sim__say strong { font-weight: 500; }
.sim__note { margin: 12px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- levels ledger ---------- */
.levels { padding-block: var(--section-y); }
.levels__head { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.levels__head p { color: var(--muted); margin: 0; }
.ledger { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ledger th, .ledger td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th { border-bottom: 1px solid var(--line-strong); vertical-align: bottom; padding-bottom: 20px; }
.ledger tbody th { font-weight: 400; width: 46%; }
.ledger td { width: 27%; }
.ledger__name { display: block; font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--serif); }
.ledger__ideal { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); font-weight: 400; }
.ledger__col--1 .ledger__name { color: var(--gold-text); }
.ledger__split th, .ledger__split td { border-top: 3px double var(--line-strong); }
.tick .tittle { width: 16px; height: 12px; }
.ledger tr.is-in .tick .tittle { animation: tick-in .5s var(--ease) both; }
@keyframes tick-in { from { transform: skewX(-16deg) scaleX(0); } to { transform: skewX(-16deg) scaleX(1); } }
.dash { color: var(--muted); }
.ledger tfoot th, .ledger tfoot td { border-bottom: 0; padding-top: 22px; color: var(--muted); font-size: .95rem; }
.ledger tfoot th { color: var(--text); font-weight: 500; }
.levels__foot { margin-top: 28px; }

/* ---------- not fit ---------- */
/* Right fit: each "not for us" struck out and paired with what the client gets instead, beside a photo
   carrying the promise. */
.notfit { background: var(--bg-2); padding-block: var(--section-y); }
.notfit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.notfit__fig { position: relative; margin: 0; border-radius: var(--r-l); box-shadow: var(--shadow-card); overflow: hidden; aspect-ratio: 4 / 5; }
.notfit__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.notfit__fig figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 20px 22px; border-radius: var(--r-m); background: rgba(21, 16, 58, .84); color: var(--on-ink); font: italic 500 clamp(1.2rem, 1.8vw, 1.55rem)/1.25 var(--serif); }
.notfit__lead { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.notfit__rows { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.notfit__row { display: grid; grid-template-columns: 1fr 32px 1.15fr; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notfit__no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; }
.notfit__arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
:root[data-theme="dark"] .notfit__arrow { background: var(--gold-hi); }
.notfit__arrow svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .notfit__arrow svg { stroke: var(--ink); }
.notfit__yes { font: 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.25 var(--serif); }
.notfit__cta { margin-top: 28px; }
@media (max-width: 900px) { .notfit__fig { aspect-ratio: 16 / 11; } }
@media (max-width: 560px) {
  .notfit__row { grid-template-columns: 1fr; gap: 6px; }
  .notfit__arrow { display: none; }
  .notfit__yes::before { content: 'Instead: '; font: 500 .85rem var(--sans); color: var(--gold-text); }
}

/* ---------- good hands ---------- */
/* Good hands: a full-colour handshake across a table above Plettenberg Bay, with the four beliefs as annotations
   either side (fine rules point at the image) instead of a separate panel. */
.hands { padding-block: var(--section-y); overflow: hidden; }
.hands__head { text-align: center; max-width: 46em; margin: 0 auto; }
.hands__h { font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.08 var(--serif); letter-spacing: -.015em; }
.hands__h em { color: var(--gold-text); }
.hands__lede { margin: 22px auto 0; max-width: 36em; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.hands__stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.5fr) minmax(0, 1.25fr); align-items: center; gap: clamp(8px, 1.5vw, 24px); margin-top: clamp(8px, 2vw, 24px); }
.hands__fig { margin: clamp(24px, 3vw, 40px) 0; }
.hands__fig img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 1px 0 rgba(29,23,77,.06), 0 34px 60px -30px rgba(29,23,77,.38); }
:root[data-theme="dark"] .hands__fig img { filter: brightness(.9); box-shadow: 0 34px 60px -30px rgba(0,0,0,.6); }
.hands__notes { list-style: none; display: grid; gap: clamp(36px, 7vh, 72px); }
.hands__note { position: relative; display: grid; gap: 8px; }
.hands__n { font-size: .82rem; font-weight: 600; color: var(--gold-text); }
.hands__t { font: italic 500 clamp(1rem, 1.25vw, 1.2rem)/1.35 var(--serif); }
.hands__note::after { content: ''; position: absolute; top: 9px; width: clamp(24px, 4vw, 70px); height: 1px; background: var(--line-strong); }
.hands__note::before { content: ''; position: absolute; top: 5px; width: 10px; height: 8px; background: var(--gold); transform: skewX(-16deg); }
.hands__notes--l { text-align: right; }
.hands__notes--l .hands__note { padding-right: clamp(36px, 5vw, 90px); }
.hands__notes--l .hands__note::after { right: 8px; }
.hands__notes--l .hands__note::before { right: 0; }
.hands__notes--r .hands__note { padding-left: clamp(36px, 5vw, 90px); }
.hands__notes--r .hands__note::after { left: 8px; }
.hands__notes--r .hands__note::before { left: 0; }
.hands__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 24px; text-align: center; margin-top: clamp(8px, 2vw, 24px); }
.hands__foot p { margin: 0; color: var(--muted); max-width: 40em; }
@media (max-width: 900px) {
  .hands__stage { grid-template-columns: 1fr 1fr; }
  .hands__fig { grid-column: 1 / -1; grid-row: 1; margin: 20px 0 8px; }
  .hands__fig img { border-radius: 14px; }
  .hands__notes { gap: 22px; }
  .hands__notes--l { text-align: left; }
  .hands__notes .hands__note { padding: 14px 0 0; border-top: 1px solid var(--line-strong); }
  .hands__note::before, .hands__note::after { display: none; }
}
@media (max-width: 520px) { .hands__stage { grid-template-columns: 1fr; } .hands__notes { gap: 0; } .hands__notes .hands__note { padding-block: 14px; } }

/* ---------- partners ---------- */
.partners { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.partners__grid { display: grid; grid-template-columns: 3fr 8fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.partners__copy p { color: var(--muted); margin-top: 14px; }
.partners__wall { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.partners__wall a { display: grid; place-items: center; height: 100%; min-height: 104px; padding: 18px 22px; background: #FFFDF8; transition: background-color .3s; }
.partners__wall img { width: 100%; max-width: 150px; height: auto; filter: grayscale(1) contrast(1.1); opacity: .78; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.partners__wall a:hover img, .partners__wall a:focus-visible img { filter: none; opacity: 1; transform: scale(1.04); }
:root[data-theme="dark"] .partners__wall a { background: #F1EEE6; }

/* ---------- post cards ---------- */
.cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-m); background: var(--ink); color: var(--on-ink); overflow: hidden; display: flex; align-items: flex-end; padding: clamp(16px, 2.5vw, 28px); }
.cover--tax { background: var(--cover-tax); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.cover__rule { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; opacity: .14; }
.cover__rule:nth-child(1) { top: 25%; } .cover__rule:nth-child(2) { top: 50%; } .cover__rule:nth-child(3) { top: 75%; }
.cover__word { position: relative; font: italic 400 clamp(2.2rem, 5vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; transition: transform .6s var(--ease); }
.cover__tittle { position: absolute; top: clamp(16px, 2.5vw, 28px); right: clamp(16px, 2.5vw, 28px); width: 22px; height: 16px; background: var(--gold-hi); transition: transform .6s var(--ease); }
.pcard__link { display: block; text-decoration: none; height: 100%; }
.pcard__link:hover .cover__word { transform: translateX(8px); }
.pcard__link:hover .cover__tittle { transform: skewX(-16deg) translateY(4px); }
.pcard__body { padding-top: 18px; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.pcard__meta span { color: var(--gold-text); font-weight: 500; }
.pcard__t { font: 400 1.4rem/1.2 var(--serif); }
.pcard__link:hover .pcard__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pcard__d { color: var(--muted); margin: 10px 0 0; font-size: .98rem; }
.pcard--row .pcard__link { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.pcard--row .cover { aspect-ratio: 4 / 3; padding: 14px; }
.pcard--row .cover__word { font-size: 1.7rem; }
.pcard--row .cover__tittle { width: 14px; height: 10px; top: 12px; right: 12px; }
.pcard--row .pcard__body { padding-top: 0; }
.pcard--row .pcard__d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard--feature .pcard__t { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.latest { padding-block: var(--section-y); background: var(--bg-2); }
.latest__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.latest__head .h2 { max-width: 16em; }
.latest__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 4vw, 56px); }
.latest__rest { display: grid; gap: 28px; align-content: start; }
.latest__rest .pcard + .pcard { padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); }
.faq__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
.faq__head { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; }
.faq__head p { margin-top: 18px; color: var(--muted); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font: 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.3 var(--serif); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 18px; height: 18px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item[open] summary .faq__icon::before { background: var(--gold); }
.faq__a { padding: 0 48px 24px 0; color: var(--muted); }
.faq__item[open] .faq__a { animation: faq-in .45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact band ---------- */
.band { background: var(--ink); color: var(--on-ink); padding-block: var(--section-y); }
.band__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.band__h { font: 400 clamp(2rem, 4vw, 3.4rem)/1.06 var(--serif); letter-spacing: -.015em; max-width: 13em; }
.band p { color: #DAD5EA; margin: 22px 0 30px; max-width: 34em; }
.band__list { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(246, 243, 236, .2); }
.band__list div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(246, 243, 236, .2); }
.band__list dt { color: var(--on-ink-muted); }
.band__list dd { margin: 0; }
.band__list a { text-decoration: none; }
.band__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--ink-deep); color: var(--on-ink-muted); padding-top: clamp(40px, 5vw, 72px); }
/* Bay silhouette rises out of the section above; the overlap hides the seam at fractional pixel sizes. */
.site-foot__edge { position: absolute; left: 0; bottom: calc(100% - 3px); display: block; width: 100%; height: clamp(52px, 8vw, 120px); fill: var(--ink-deep); pointer-events: none; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.site-foot__h { font: 500 1.05rem var(--sans); color: var(--on-ink); margin: 0 0 14px; }
.site-foot__about p { margin: 0; max-width: 24em; }
.site-foot__contact { font-style: normal; }
.site-foot__contact ul, .site-foot__nav ul { list-style: none; margin: 0; padding: 0; }
.site-foot__contact li { display: flex; align-items: flex-start; gap: 12px; }
.site-foot__contact svg { flex: none; width: 18px; height: 18px; margin-top: 11px; fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linejoin: round; }
.site-foot__contact a, .site-foot__nav a, .band__list a { display: inline-block; padding-block: 8px; }
.site-foot__social { display: flex; align-items: center; gap: 14px; }
.site-foot__social::before, .site-foot__social::after { content: ''; flex: 1; height: 1px; background: rgba(246, 243, 236, .14); }
.site-foot__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-hi); color: var(--ink); transition: background-color .2s, transform .2s var(--ease); }
.site-foot__social a:hover { background: var(--on-ink); color: var(--ink); transform: translateY(-2px); }
.site-foot__social svg { width: 20px; height: 20px; }
.site-foot__mark { text-align: center; padding-block: 28px calc(32px + env(safe-area-inset-bottom)); }
.site-foot__logo { display: inline-block; width: 120px; }
.site-foot__mark p { margin: 14px 0 0; font-size: .88rem; }

/* ---------- inner page blocks ---------- */
.split { padding-block: clamp(64px, 8vw, 120px); }
.split--quiet { background: var(--bg-2); }
.split__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.prose { max-width: 40em; }
.prose p { color: var(--muted); }
.prose--lg p { font-size: 1.12rem; color: var(--text); }
.ticks { list-style: none; display: grid; gap: 12px; margin: 18px 0; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; }
.ticks .tittle { width: 13px; height: 10px; }
.ticks--lg li { font: 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.35 var(--serif); }

.detail { padding-bottom: clamp(64px, 8vw, 120px); }
.detail__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.detail__card { border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: clamp(24px, 3.5vw, 44px); }
.detail__card--1 { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.detail__card--1 .detail__ideal, .detail__card--1 > p, .detail__card--1 .detail__for { color: #DAD5EA; }
.detail__card--1 .tittle { background: var(--gold-hi); }
.detail__card--1 .h3 { color: var(--gold-hi); }
.detail__ideal { color: var(--gold-text); font-weight: 500; }
.detail__card .h3 { margin-bottom: 16px; }
.detail__card > p { color: var(--muted); }
.detail__for { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid currentColor; border-color: var(--line); }
.detail__card--1 .detail__for { border-color: rgba(246, 243, 236, .2); }
.detail__for strong { font-weight: 600; }

.fit { background: var(--bg-2); padding-block: clamp(72px, 9vw, 130px); }
.fit__grid { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 6vw, 96px); }
.fit__grid > div > p { color: var(--muted); margin-top: 18px; }
.fit__form { display: grid; gap: 26px; }
.fit__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.fit__form legend { font: 400 1.3rem/1.3 var(--serif); margin-bottom: 10px; padding: 0; }
.fit__form label { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-b); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s; }
.fit__form label:hover { border-color: var(--text); }
.fit__form label:has(input:checked) { border-color: var(--text); box-shadow: inset 3px 0 0 var(--gold); }
.fit__form input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; flex: none; margin: 0; }
:root[data-theme="dark"] .fit__form input[type="radio"] { accent-color: var(--gold-hi); }
.fit__form .btn { justify-self: start; }
.fit__error { color: #A3271C; font-weight: 500; margin: 0; }
:root[data-theme="dark"] .fit__error, :root[data-theme="dark"] .form__err { color: #FF9C8F; }
.fit__result { border-radius: var(--r-m); background: var(--ink); color: var(--on-ink); padding: clamp(22px, 3vw, 36px); }
.fit__result:focus { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.fit__result .h3 { color: var(--gold-hi); margin: 6px 0 14px; }
.fit__result p { color: #DAD5EA; }
.fit__result .fit__k { color: var(--on-ink-muted); margin: 0; font-weight: 500; }

.steps { padding-block: var(--section-y); }
.steps .wrap { position: relative; }
.steps__h { max-width: 14em; margin-bottom: clamp(40px, 6vw, 72px); }
.steps__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; }
.steps__item { position: relative; padding-top: 44px; }
.steps__n { position: absolute; top: 12px; left: 0; font: 400 .95rem var(--sans); color: var(--muted); }
.steps__mark { position: absolute; top: -6px; left: 0; width: 16px; height: 12px; opacity: .25; transition: opacity .4s, transform .5s var(--ease); }
.steps__item.is-on .steps__mark { opacity: 1; }
.steps__item p { color: var(--muted); margin-top: 10px; }
.steps__track { position: absolute; left: var(--gut); right: var(--gut); height: 1px; background: var(--line-strong); margin-top: 0; top: var(--track-top, 0); }
.steps__fill { display: block; height: 3px; margin-top: -1px; background: var(--gold); width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; }

.ideal { padding-block: clamp(72px, 9vw, 130px); }
.ideal__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ideal__fig { display: grid; gap: 4px; }
.ideal__num { font: italic 400 clamp(5rem, 14vw, 11rem)/.9 var(--serif); letter-spacing: -.04em; display: flex; align-items: baseline; gap: .12em; }
.ideal__num span { font: 400 clamp(1.2rem, 2vw, 1.6rem) var(--sans); color: var(--muted); letter-spacing: 0; }
.ideal__unit { font: 400 clamp(1.3rem, 2.4vw, 2rem) var(--serif); color: var(--gold-text); border-bottom: 3px double var(--line-strong); padding-bottom: 12px; max-width: 8em; }
.ideal p { color: var(--muted); margin-top: 18px; }
.problem--page { background: var(--bg-2); }

.story { padding-block: clamp(72px, 9vw, 130px); }
.story__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
.story__side { border-top: 3px double var(--line-strong); padding-top: 20px; align-self: start; position: sticky; top: calc(var(--head-h) + 32px); }
.story__name { font: 400 1.6rem/1.2 var(--serif); margin: 0 0 6px; }
.story__role { color: var(--gold-text); font-weight: 500; }
.story .h3 { margin-bottom: 20px; }
/* How we think: alternating rows, each belief beside a giant number cut out of a photo. The photo drifts inside
   the number as the row scrolls past (CSS scroll timeline; static elsewhere). */
.beliefs { background: var(--bg-2); padding-block: clamp(72px, 9vw, 130px); }
.beliefs__list { list-style: none; margin: clamp(24px, 4vw, 48px) 0 0; padding: 0; }
.belief { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.belief:first-child { border-top: 0; }
.belief:nth-child(odd) .belief__txt { order: -1; }
.belief__num { justify-self: center; font: 700 clamp(8rem, 19vw, 16rem)/.8 var(--sans); letter-spacing: -.045em; color: var(--gold); user-select: none; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .belief__num { color: transparent; background: var(--img) 50% 50% / 125% auto no-repeat; -webkit-background-clip: text; background-clip: text; }
}
.belief__h { font: 500 clamp(1.6rem, 2.8vw, 2.3rem)/1.15 var(--serif); margin: 0; }
.belief__h::after { content: ''; display: block; width: 56px; height: 2px; margin: 18px 0 20px; background: var(--gold); }
.belief__txt p { margin: 0; max-width: 26em; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .belief__num { animation: belief-drift linear both; animation-timeline: view(); }
  }
}
@keyframes belief-drift { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
.beliefs__close { margin-top: 36px; color: var(--muted); max-width: 36em; }

/* ---------- contact page ---------- */
.contact { padding-block: clamp(64px, 8vw, 120px); }
.contact__grid { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__details dl { margin: 0; border-top: 1px solid var(--line-strong); }
.contact__details div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact__details dt { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.contact__details dd { margin: 0; }
.contact__details address { font-style: normal; margin-bottom: 10px; font-size: 1.1rem; }
.contact__big { display: inline-block; padding-block: 8px; font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.contact__big:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(22px, 3.5vw, 44px); display: grid; gap: 18px; }
.form__intro { color: var(--muted); margin: -6px 0 0; font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__f { display: grid; gap: 6px; }
.form__f label { font-weight: 500; }
.form input:not([type="radio"]):not([type="range"]), .form select, .form textarea, .tool input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus, .tool input:focus { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); outline: none; }
.form [aria-invalid="true"], .tool [aria-invalid="true"] { border-color: #A3271C; box-shadow: 0 0 0 1px #A3271C; }
.form__err { color: #A3271C; font-size: .92rem; margin: 0; min-height: 0; }
.form__err:empty { display: none; }
.form__note { color: var(--muted); font-size: .9rem; margin: 0; }
.form .btn { justify-self: start; }
.form__status { border-radius: var(--r-m); padding: 18px 20px; background: var(--ink); color: var(--on-ink); }
.form__status p { margin: 0 0 6px; }
.form__status p:last-child { margin: 0; }
.form__status a { color: var(--gold-hi); }
.form__status:focus { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- insights hub ---------- */
.hub { padding-block: clamp(48px, 6vw, 88px) clamp(80px, 10vw, 140px); }
.hub__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.hub__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-b); background: transparent; cursor: pointer; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--gold-hi); color: var(--ink); border-color: var(--gold-hi); }
.hub__search input { min-height: 44px; width: min(320px, 100%); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); }
.hub__search { flex: 1 1 240px; display: flex; justify-content: flex-end; }
.hub__count { color: var(--muted); margin: 18px 0 30px; font-size: .95rem; }
.hub__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px clamp(20px, 3vw, 40px); }
.hub__grid .pcard:nth-child(1) { grid-column: span 2; }
.hub__grid .pcard:nth-child(1) .cover { aspect-ratio: 16 / 8.2; }
.hub__grid .pcard[hidden] { display: none; }
.hub__empty { border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 32px; max-width: 40em; }
.hub__empty p:first-child { font: 400 1.4rem var(--serif); }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; }
.post__head { background: var(--ink); color: var(--on-ink); padding-block: clamp(36px, 5vw, 64px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); }
.post__head-in { display: grid; gap: 0; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--on-ink-muted); margin: 24px 0 18px; font-size: .95rem; }
.post__meta a { color: var(--gold-hi); font-weight: 500; text-decoration: none; padding: 4px 0; }
.post__meta a:hover { text-decoration: underline; }
.post__title { font: 400 clamp(2.1rem, 5vw, 4.2rem)/1.05 var(--serif); letter-spacing: -.02em; max-width: 17em; }
.post__stand { margin-top: 24px; max-width: 38em; color: #DAD5EA; font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.5 var(--serif); }
.cover--hero { display: none; }
.post__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px); }
.toc { position: sticky; top: calc(var(--head-h) + 28px); align-self: start; }
.toc__h { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 11px 0 11px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--gold); }
.post__body { max-width: 42em; }
.post__body h2 { font: 400 clamp(1.5rem, 2.6vw, 2.05rem)/1.2 var(--serif); margin: 2.2em 0 .7em; letter-spacing: -.01em; }
.post__body h2:first-child { margin-top: 0; }
.post__body h3 { font: 500 1.2rem/1.35 var(--sans); margin: 1.8em 0 .6em; }
.post__body .ticks { margin: 0 0 1.4em; }
.post__body .ticks li { font-size: 1.1rem; }
.post__tool { margin: 2.5em 0; }
.post__tool .sim { background: transparent; padding: 0; }
.post__tool .sim .wrap { padding: 0; }
.post__tool .sim__grid { grid-template-columns: 1fr; }
.post__tool .sim__panel { position: static; }
.post__cta { margin-top: 3em; background: var(--ink); color: var(--on-ink); border-radius: var(--r-m); padding: clamp(24px, 3.5vw, 40px); }
.post__cta p { color: #DAD5EA !important; font-size: 1.02rem !important; }
.post__cta .post__cta-h { font: 400 1.6rem/1.2 var(--serif) !important; color: var(--on-ink) !important; }
.related { padding-block: 0 clamp(80px, 10vw, 140px); }
.related .h3 { padding-top: 40px; border-top: 1px solid var(--line-strong); margin-bottom: 28px; }
.related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }

/* tools inside articles */
.tool { border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: clamp(20px, 3vw, 36px); background: var(--surface); }
.post__body .tool__h { margin: 0 0 20px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tool__grid--3 { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.tool__in { display: grid; gap: 10px; }
.tool__in label, .tool__grid--3 label { font-weight: 500; display: grid; gap: 6px; font-size: .95rem; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-b); padding: 3px; margin-bottom: 8px; flex-wrap: wrap; }
.seg__b { min-height: 40px; padding: 0 12px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; font-weight: 500; font-size: .92rem; }
.seg__b[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
:root[data-theme="dark"] .seg__b[aria-pressed="true"] { background: var(--gold-hi); color: var(--ink); }
.tool__out { margin: 0; border-top: 1px solid var(--line-strong); }
.tool__out div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tool__out dt { color: var(--muted); }
.tool__out dd { margin: 0; font-weight: 500; }
.tool__total { border-bottom: 0 !important; }
.tool__total dd { font: 400 1.5rem/1.2 var(--serif); }
.tool__net { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.post__body .tool__sub { margin: 0 0 14px; }
.tool__res { margin: 0; display: grid; gap: 4px; }
.tool__res span { color: var(--muted); font-size: .95rem; }
.tool__res strong { font: 400 1.6rem/1.2 var(--serif); color: var(--gold-text); }
.post__body .tool__note, .tool__note { font-size: .9rem !important; color: var(--muted) !important; margin: 16px 0 0; }
.year__label { font: 400 1.2rem/1.4 var(--serif); color: var(--text) !important; }
.year__bar { position: relative; height: 10px; border: 1px solid var(--line-strong); border-radius: 1px; margin-top: 14px; }
.year__fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
:root[data-theme="dark"] .year__fill { background: var(--on-ink-muted); }
.year__mark { position: absolute; top: -14px; left: 0; width: 14px; height: 10px; margin-left: -7px; opacity: 0; transition: opacity .4s 1s; }
.year__mark.is-set { opacity: 1; }
.year__ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.dl { list-style: none; margin-top: 26px; border-top: 1px solid var(--line-strong); }
.dl__i { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dl__i time { font-weight: 600; }
.dl__who { grid-column: 2; font-size: .88rem; color: var(--muted); }
.dl__state { grid-row: 1 / span 2; grid-column: 3; font-size: .88rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-s); border: 1px solid var(--line-strong); white-space: nowrap; }
.dl__i.is-past { color: var(--muted); }
.dl__i.is-past time { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.dl__i.is-next .dl__state { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
:root[data-theme="dark"] .dl__i.is-next .dl__state { background: var(--gold-hi); color: var(--ink); border-color: var(--gold-hi); }

/* ---------- reveal ---------- */
.js [data-reveal], .js .reveal { opacity: 0; transform: translateY(16px); }
.js .is-in[data-reveal], .js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; }
.is-split .split-w > span { animation: word-up .9s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * 45ms); }
@keyframes word-up { from { transform: translateY(110%); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav, .site-head__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-head__end { margin-left: auto; }
  .hub__grid { grid-template-columns: repeat(2, 1fr); }
  .post__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
  .post__body { max-width: none; }
}
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .site-head__logo { width: 84px; }
  .problem__grid, .sim__grid, .notfit__grid, .partners__grid, .faq__grid, .band__grid, .split__grid, .levels__head, .fit__grid, .ideal__grid, .story__grid, .contact__grid, .latest__grid, .detail__grid, .site-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .problem__lead, .faq__head, .story__side, .sim__panel { position: static; }
  .sim__intro { display: contents; }
  .sim__intro > h2 { order: 1; } .sim__intro > p { order: 2; margin-top: -12px; } .sim__panel { order: 3; } .sim__form { order: 4; margin-top: 0; }
  .post__tool .sim__intro > h2 { margin: 0; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps__track { display: none; }
  .steps__item { border-top: 1px solid var(--line-strong); }
  .steps__item.is-on { border-top-color: var(--gold); }
  .site-foot__grid { gap: 28px; }
  .site-foot__nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .hero { min-height: auto; align-items: flex-start; }
  /* Phones: the clip fills the first screen only (portrait cut: sky behind the copy, the bay below it);
     the feature row and cards follow on the plain veil colour. */
  .hero { min-height: auto; }
  .hero__media { inset: 0 0 auto; height: calc(100svh + 80px); }
  .hero__veil { background: linear-gradient(180deg, rgba(var(--veil), .5) 0, rgba(var(--veil), .12) 140px, rgba(var(--veil), 0) 45%), linear-gradient(0deg, rgb(var(--veil)) 0, rgba(var(--veil), 0) 110px); }
  .hero__in { grid-template-columns: minmax(0, 1fr); padding-block: calc(var(--head-h) + 28px) 40px; }
  :root[data-theme="dark"] .hero__veil { background: linear-gradient(180deg, rgba(var(--veil), .86) 0, rgba(var(--veil), .74) 50%, rgba(var(--veil), 0) 68%), linear-gradient(0deg, rgb(var(--veil)) 0, rgba(var(--veil), 0) 110px); }
  .hero__top { min-height: calc(100svh + 80px - var(--head-h) - 28px); }
  .hmini { width: auto; }
  .hero__copy { max-width: none; }
  .hero__poster, .hero__video { object-position: 8% 50%; }
  .hero__stack { justify-self: stretch; width: 100%; margin: 0; perspective: none; display: grid; gap: 10px; }
  .hcard { transform: none; }
  .hmini { position: static; transform: none; }
  .hmini:hover { transform: none; }
  .ideal__fig { order: -1; }
}
@media (max-width: 640px) {
  .hub__grid, .related__grid { grid-template-columns: minmax(0, 1fr); }
  .hub__grid .pcard:nth-child(1) { grid-column: auto; }
  .hub__grid .pcard:nth-child(1) .cover { aspect-ratio: 16 / 10; }
  .pcard--row .pcard__link { grid-template-columns: 104px 1fr; gap: 14px; }
  .pcard--row .cover__word { font-size: 1.15rem; }
  .pcard--row .pcard__t { font-size: 1.15rem; }
  .pcard--row .pcard__d { display: none; }
  .ledger table { min-width: 0; }
  .ledger th, .ledger td { padding: 13px 6px; }
  .ledger th:first-child { padding-left: 0; }
  .ledger tbody th { width: 52%; font-size: .95rem; }
  .ledger__name { font-size: 1rem; }
  .ledger__ideal, .ledger tfoot { display: none; }
  .ticks--lg a { display: inline-block; padding-block: 8px; }
  .form__row, .tool__grid, .tool__grid--3 { grid-template-columns: minmax(0, 1fr); }
  .steps__list { grid-template-columns: 1fr; row-gap: 36px; }
  .belief { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .belief:nth-child(odd) .belief__txt { order: 0; }
  .belief__num { justify-self: start; }
  .partners__wall { grid-template-columns: repeat(2, 1fr); }
  .sim__totals { grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .dl__i { grid-template-columns: 1fr auto; }
  .dl__i .dl__t, .dl__who { grid-column: 1; }
  .dl__state { grid-column: 2; grid-row: 1 / span 3; }
  .faq__a { padding-right: 0; }
  .hub__search { justify-content: stretch; }
  .hub__search input { width: 100%; }
  .theme-btn { width: 44px; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .reveal { opacity: 1; transform: none; }
  .btn::after { display: none; }
}
@media print {
  .site-head, .site-foot, .hero__media, .band, .progress, .menu { display: none !important; }
}
