/* MarginStay ledger theme */
:root {
  --paper: #E8E6E1;
  --cell: #F5F4F1;
  --ink: #1E2022;
  --muted: #5F6367;
  --rule: #C4C1B9;
  --gold: #D6A72A;
  --gold-ink: #8A6A0A;
  --gold-deep: #B78A10;
  --gold-lit: #EDC04B;
  --dark: #1E2022;
  --dark-cell: #26292C;
  --dark-rule: #3C4043;
  --dark-muted: #A9ADB1;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1rem, 3.2vw, 3.5rem);
  --header-h: 4.25rem;
  --sec-pad: clamp(2.5rem, 8vh, 6.5rem);
  --screen: calc(100svh - var(--header-h));
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: clamp(12px, min(1.08vw, 1.95vh), 18px); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

main, .site-footer { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.03em; }
h1 strong, h2 strong { font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), 1920px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; transition: top .2s; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-lit); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.5rem; border-radius: 2px; border: 1px solid var(--ink);
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-lit); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; gap: 2rem; height: var(--header-h); transition: height .5s var(--ease); }
.site-header.scrolled .bar { height: 3.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.6rem; letter-spacing: -0.035em; }
.logo-mark { display: block; width: 2.8rem; height: 2.8rem; flex: none; color: var(--ink); --mg: var(--gold); --mbg: var(--paper); }
.logo-word span { font-weight: 300; } .logo-word b { font-weight: 500; }
.site-footer .logo-mark { color: #F2F0EB; --mg: var(--gold-lit); --mbg: var(--dark); }
.mi-f { fill: currentColor; } .mg-f { fill: var(--mg); } .mg-s { fill: none; stroke: var(--mg); } .mb-f { fill: var(--mbg); } .mb-s { fill: none; stroke: var(--mbg); }
.nav { display: flex; gap: 2rem; margin-inline: auto; }
.nav a { text-decoration: none; font-size: .98rem; color: var(--muted); position: relative; padding-block: .25rem; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.bar-cta { padding: .7rem 1.2rem; }
.menu-btn { position: relative; display: none; margin-left: auto; width: 2.1rem; height: 2.1rem; place-items: center; background: none; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); cursor: pointer; }
.burger { position: relative; display: block; width: .95rem; height: .66rem; }
.menu-btn::after { content: ""; position: absolute; inset: -.5rem; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.4px; background: currentColor; transition: transform .45s var(--ease), opacity .3s var(--ease), top .45s var(--ease); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: calc(50% - .75px); } .burger i:nth-child(3) { top: calc(100% - 1.5px); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: calc(50% - .75px); transform: rotate(-45deg); }
.nav-cta { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* Sections */
.section { position: relative; padding-block: var(--sec-pad); }
.section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
.tint { background: #DFDCD5; }
.dark { background: var(--dark); color: #F2F0EB; --rule: var(--dark-rule); --cell: var(--dark-cell); --muted: var(--dark-muted); }
.dark::before { background: var(--dark-rule); }

.head { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(.6rem, 1.6vh, 1rem); margin-bottom: clamp(1.5rem, 4vh, 2.75rem); }
.head h2 { font-size: clamp(2rem, 3.6rem, 7vw); line-height: 1.05; max-width: 22ch; }
.head p { color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
.head.has-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 3rem; }
/* Laptop and up: the graphic is centred vertically on the heading and subheading */
@media (min-width: 1001px) {
  .head.has-art { grid-template-columns: minmax(0, 1fr) clamp(11rem, 19vw, 18rem); align-items: stretch; }
  .head.has-art .head-text { justify-content: center; }
  .head.has-art .ha { width: 100%; height: 0; min-height: max(100%, 7rem); }
}
.head-text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(.6rem, 1.6vh, 1rem); }

/* Heading illustrations: colours follow the section (light or dark) */
.ha { display: block; width: clamp(9rem, 16vw, 16rem); height: auto; color: var(--ink); --ha-bg: var(--paper); overflow: visible; }
.tint .ha { --ha-bg: #DFDCD5; }
.dark .ha { color: #F2F0EB; --ha-bg: var(--dark); }
.ha .k { stroke: currentColor; stroke-width: 1.5; }
.ha .f { fill: var(--cell); } .ha .m { fill: var(--ha-bg); } .ha .i { fill: currentColor; } .ha .t { fill: var(--muted); opacity: .7; }
.ha .g { fill: var(--gold); } .dark .ha .g { fill: var(--gold-lit); } .ha .gs { stroke: var(--gold); } .dark .ha .gs { stroke: var(--gold-lit); }
.ha .gtext { fill: var(--gold); } .ha .t2 { fill: currentColor; } .ha .bg { fill: var(--ha-bg); } .ha .k-fill { fill: currentColor; } .ha .k-ink { stroke: var(--ink); stroke-width: 2; }
.route-art .route-fill { stroke: var(--gold); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--r, 0)); }
.route-art .stop circle { fill: var(--cell); transition: fill .5s var(--ease); }
.route-art .stop text { fill: currentColor; transition: fill .5s var(--ease); }
.route-art .stop { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.route-art .stop.on { transform: scale(1.12); }
.route-art .stop.on circle { fill: var(--gold); }
.route-art .flag { fill: var(--rule); transition: fill .5s var(--ease); }
.route-art .stop:last-of-type.on ~ .flag { fill: var(--gold); }
.book .ha { --ha-bg: #DFDCD5; }
.book-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.ha-book { flex: none; width: clamp(7rem, 11vw, 11rem); }
.ha-book .clock-wedge { transform-origin: 55px 55px; transform-box: view-box; transform: rotate(calc((1 - var(--s, 1)) * -180deg)); opacity: calc(var(--s, 1) * .85); }
.ha-pipe { width: min(100%, 17rem); margin-top: clamp(1rem, 3vh, 1.8rem); }
.ha > * { transform-box: fill-box; }
.ha[data-scrub] { opacity: calc(var(--s, 1) * 1.6 - .3); transform: translateY(calc((1 - var(--s, 1)) * 1.5rem)); }
.ha .gs[stroke-dasharray] { stroke-dashoffset: calc((1 - var(--s, 1)) * 60); }

h3 { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; }

/* Ledger cells: borders (not gaps) so a cell's rules travel with it when it reveals */
.cells { display: grid; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cells > * { background: var(--cell); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(1.1rem, 1.8rem, 5vw); }
.cells p { color: var(--muted); }
.cells h3 + p { margin-top: .75rem; }

/* Icons: two-tone line set, accent stroke picks up --acc */
.ico { display: block; flex: none; width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; color: var(--ink); --acc: var(--gold-deep); }
.ico.sm { width: 1.25rem; height: 1.25rem; }
.dark .ico { color: #F2F0EB; --acc: var(--gold-lit); }
.a { stroke: var(--acc, currentColor); }
.cell > .ico { margin-bottom: 1.2rem; }

/* Hero */
.hero { padding-block: clamp(1rem, 3vh, 2rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); border: 1px solid var(--rule); height: calc(var(--screen) - 2 * clamp(1rem, 3vh, 2rem)); min-height: 30rem; max-height: 56rem; }
.hero-copy { padding: clamp(1.5rem, 3.5rem, 6vw); display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 3.5vh, 1.75rem); }
.hero h1 { font-size: clamp(2.6rem, 5rem, 9vw); line-height: 1.02; letter-spacing: -0.04em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.lede b { color: var(--ink); font-weight: 600; }
.lede-short { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.fine { font-size: .95rem; color: var(--muted); }
.fine a { color: var(--ink); }

.hero-art { position: relative; overflow: hidden; border-left: 1px solid var(--rule); background: #E3DDD0; }
.hero-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip { position: absolute; display: flex; align-items: center; gap: .8rem; background: var(--cell); border: 1px solid var(--ink); padding: .8rem 1rem; font-size: .92rem; line-height: 1.3; max-width: min(22rem, 82%); }
.chip b { display: block; font-weight: 500; }
.chip small { display: block; color: var(--muted); font-size: .82rem; }
.chip strong { font-weight: 500; font-size: 1.2rem; margin-left: .4rem; }
.chip .ico { --acc: var(--gold-deep); }
.chip-a { top: 7%; left: 6%; }
.chip-b { top: 40%; right: 5%; }
.chip-b .cmp2 { display: flex; gap: 1.5rem; margin-top: .25rem; }
.chip-b .cmp2 p { display: grid; gap: .1rem; }
.chip-b .cmp2 s { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; color: var(--muted); text-decoration-thickness: 1.5px; }
.chip-b .cmp2 b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--gold-ink); }
.chip-b .cmp2 small { font-size: .78rem; }
.chip-c { bottom: 7%; left: 6%; }

/* Statement panel */
.panel { background: var(--cell); border-left: 1px solid var(--rule); padding: clamp(1.1rem, 2rem, 5vw); display: flex; flex-direction: column; gap: clamp(.8rem, 2vh, 1.2rem); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ink); }
.panel-head h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
/* Currency dropdown */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: .7rem; min-width: 6.5rem; justify-content: space-between; padding: .5rem .8rem .5rem 1rem; font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background-color .3s var(--ease); }
.dd-btn:hover { background: #DFDCD5; }
.dd-chev { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; min-width: 13rem; padding: .3rem; background: var(--cell); border: 1px solid var(--ink); box-shadow: .35rem .35rem 0 var(--ink); outline: none;
  max-height: min(22rem, 60vh); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-.4rem); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .35s; }
.dd.open .dd-list { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s; }
.dd-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; cursor: pointer; }
.dd-list li b { font-weight: 500; }
.dd-list li small { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.dd-list li.active { background: var(--paper); }
.dd-list li[aria-selected="true"] { background: var(--ink); color: var(--cell); }
.dd-list li[aria-selected="true"] small { color: #B8BBBE; }
.dd-list:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.ctrl-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem 1rem; margin-bottom: .4rem; font-size: .98rem; }
.ctrl-row output { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.ctrl-row output { white-space: nowrap; }
.ctrl-row output .per { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--fill, 30%), var(--rule) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--gold); border: 2px solid var(--ink); border-radius: 0; transition: transform .25s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--gold); border: 2px solid var(--ink); border-radius: 0; }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }

.stmt { width: 100%; border-collapse: collapse; font-size: 1rem; }
.stmt th, .stmt td { padding: clamp(.4rem, 1.1vh, .7rem) .5rem; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; }
.stmt thead th { font-size: .88rem; color: var(--muted); padding-top: 0; font-weight: 400; }
.stmt thead th.us { color: var(--ink); font-weight: 600; }
.stmt tbody th { text-align: left; padding-left: 0; }
.stmt .us { background: rgba(214, 167, 42, .16); }
.stmt thead .us { background: transparent; box-shadow: inset 0 -2px 0 var(--gold); }
.stmt .keep th, .stmt .keep td { font-weight: 600; border-bottom: 1px solid var(--ink); }

.total { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.total-label { font-size: .95rem; color: var(--muted); }
.total-num { font-size: clamp(2.2rem, 3.2rem, 9vw); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; color: var(--gold-ink); }
.total-sub { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.total-year { text-align: right; }
.note { font-size: .85rem; color: var(--muted); }

/* Savings section layout */
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border: 1px solid var(--rule); }
.calc-side { display: flex; flex-direction: column; }
.calc-head { padding: clamp(1.1rem, 2rem, 5vw); flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1rem 1.5rem; }
.calc-head h2 { grid-column: 1 / -1; }
.calc-head h2 { font-size: clamp(2rem, 3.4rem, 7vw); line-height: 1.05; }
/* The desk graphic floats inside the paragraph, starting one line down: the first line runs full width above it and the lines after it wrap around it */
.calc-head p { color: var(--muted); display: flow-root; text-wrap: pretty; max-width: 66ch; }
/* --mt is set by main.js so the base of the graphic lines up with the base of the last line; 1.65em is the no-script fallback */
.desk-art { display: block; float: right; width: 14rem; height: auto; margin: var(--mt, 1.65em) 0 0 1.4rem; overflow: visible; shape-outside: inset(var(--mt, 1.65em) 0 .45em 0 round 4.5rem 0 0 0); }
.calc-grid .stats { grid-template-columns: repeat(2, 1fr); border: 0; border-top: 1px solid var(--rule); }
.calc-grid .stats .cell { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.calc-grid .stats .cell > .ico { margin-bottom: 0; }
.calc-grid .stats .cell:nth-child(2n) { border-right: 0; }
.calc-grid .stats .cell:nth-child(n+3) { border-bottom: 0; }
.calc-grid .cells .stat { font-size: clamp(1.6rem, 2.3rem, 6vw); }
.calc-grid .stat-label { font-size: .9rem; min-height: 2.9em; }

.split-title { font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }
.split-row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: .8rem; margin-bottom: .35rem; font-size: .92rem; }
.split-bar { display: flex; height: 1.9rem; border: 1px solid var(--ink); }
.split-bar i { flex: none; display: flex; align-items: center; overflow: hidden; white-space: nowrap; padding-left: .65rem; font-style: normal; font-size: .85rem; font-weight: 500; transition: width .8s var(--ease); }
.split-bar .keep { background: var(--ink); color: var(--cell); }
.split-bar .fee.plat { background: repeating-linear-gradient(135deg, #C4C1B9 0 5px, #DAD7D0 5px 10px); color: var(--ink); }
.split-bar .fee.us { background: var(--gold); color: var(--ink); justify-content: center; padding-left: 0; }
.split-key { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.split-key span { display: inline-flex; align-items: center; gap: .45rem; }
.sw-keep { background: var(--ink); }
.split-key .sw-plat { background: #C4C1B9; }

/* Stats */
.cells .stat { font-size: clamp(1.8rem, 3rem, 7vw); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.cells .stat.gold { color: var(--gold-ink); }
.dark .cells .stat { color: #fff; }
.dark .cells .stat.gold { color: var(--gold-lit); }
.stat-label { margin-top: .4rem; font-size: .98rem; max-width: 24ch; }

/* Live pipeline */
.live-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.live-copy h2 { font-size: clamp(2rem, 3.4rem, 7vw); line-height: 1.05; max-width: 14ch; }
.live-copy > p { margin-top: 1.4rem; color: var(--dark-muted); max-width: 38ch; }
.points { margin-top: 1.5rem; border-top: 1px solid var(--dark-rule); }
.points li { display: flex; gap: 1rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--dark-rule); color: #E8E6E1; }
.points .ico { width: 1.6rem; height: 1.6rem; }

.live { background: var(--dark-cell); border: 1px solid var(--dark-rule); padding: clamp(.9rem, 1.4rem, 4vw); display: flex; flex-direction: column; gap: clamp(.7rem, 1.8vh, 1.1rem); }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }
.live-title { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.live-dot { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-lit); }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold-lit); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.live-meta { color: var(--dark-muted); font-size: .88rem; }

.live-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border: 1px solid var(--dark-rule); background: var(--dark); padding: .9rem 1.1rem; }
.live-label { color: var(--dark-muted); font-size: .92rem; }
.live-num { display: flex; align-items: baseline; gap: .9rem; margin-top: .3rem; font-size: clamp(2.6rem, 3.8rem, 11vw); font-weight: 300; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.up { font-style: normal; font-size: 1.05rem; letter-spacing: 0; font-weight: 500; color: var(--gold-lit); white-space: nowrap; }
.up::before { content: ""; display: inline-block; margin-right: .45rem; border: 5px solid transparent; border-top: 0; border-bottom: 8px solid var(--gold-lit); }
.spark { display: flex; align-items: flex-end; gap: .3rem; height: 3.6rem; }
.spark i { display: block; width: .6rem; height: var(--h); background: #4A4F53; transform-origin: bottom; }
.spark i.now { background: var(--gold-lit); }

.live-listhead { display: flex; justify-content: space-between; color: var(--dark-muted); font-size: .88rem; margin-bottom: -.3rem; }
.live-list { overflow: hidden; }
.live-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto auto auto; gap: .8rem; align-items: center; padding: .55rem .8rem; margin-bottom: 8px; border: 1px solid var(--dark-rule); background: var(--dark); }
.av { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: #33373A; color: var(--gold-lit); font-weight: 500; font-size: .95rem; }
.who b { display: block; font-weight: 500; color: #fff; }
.who small, .stay small { display: block; color: var(--dark-muted); font-size: .85rem; }
.stay { text-align: right; font-size: .92rem; color: #E8E6E1; }
.badge { border: 1px solid var(--gold-lit); color: var(--gold-lit); padding: .2rem .6rem; font-size: .82rem; font-weight: 500; white-space: nowrap; }
.ago { min-width: 3.2ch; text-align: right; color: var(--dark-muted); font-size: .88rem; }

.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--dark-rule); background: var(--dark); }
.live-stats > div { padding: .7rem 1rem; border-right: 1px solid var(--dark-rule); }
.live-stats > div:last-child { border-right: 0; }
.ls-num { font-size: clamp(1.3rem, 1.8rem, 5vw); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.ls-num.gold { color: var(--gold-lit); }
.ls-label { margin-top: .2rem; color: var(--dark-muted); font-size: .85rem; }
.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { color: var(--gold-lit); } 100% { color: inherit; } }

/* Approach */
.four { grid-template-columns: repeat(4, 1fr); }

/* Money flow diagram */
.flow { border: 1px solid var(--rule); background: var(--cell); margin-bottom: clamp(1rem, 2.5vh, 1.8rem); }
.flow-row { padding: clamp(.9rem, 1.4rem, 4vw); display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: center; gap: .6rem 1.5rem; }
.flow-row + .flow-row { border-top: 1px solid var(--rule); }
.flow-title { font-size: .95rem; color: var(--muted); }
.flow-track { display: grid; grid-template-columns: auto minmax(3rem, 1fr) auto minmax(3rem, 1fr) auto; align-items: center; }
.node { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 9rem; padding: .65rem .9rem; border: 1px solid var(--ink); background: var(--paper); }
.node span { font-weight: 500; }
.node .ico { width: 1.5rem; height: 1.5rem; }
.node small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.node.end { background: var(--ink); color: var(--cell); }
.node.end .ico { color: var(--cell); --acc: var(--gold-lit); }
.node.end small { color: #C9CCCF; }
.flow-row.us .node.end { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.flow-row.us .node.end .ico { color: var(--ink); --acc: var(--ink); }
.flow-row.us .node.end small { color: #3A3320; }
.link { position: relative; display: flex; align-items: center; justify-content: center; height: 2.5rem; }
.link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform-origin: left; }
.link::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.pill { position: relative; z-index: 1; padding: .25rem .65rem; border: 1px solid var(--ink); background: var(--cell); font-style: normal; font-size: .82rem; font-weight: 500; white-space: nowrap; }
.pill-us { background: var(--gold); border-color: var(--gold); }
.pill .ps { display: none; }

.four .cell { display: flex; flex-direction: column; }

/* Channels explorer */
.explorer { display: grid; grid-template-columns: minmax(16rem, 5fr) minmax(0, 7fr); border: 1px solid var(--rule); background: var(--cell); }
.ex-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.ex-tabs button { position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; padding: clamp(.7rem, 1.8vh, 1.05rem) 1.2rem; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background-color .4s var(--ease); }
.ex-tabs button:last-child { border-bottom: 0; }
.ex-tabs button:hover { background: var(--paper); }
.ex-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cell); }
.ex-tabs button[aria-selected="true"] .ico { color: var(--cell); --acc: var(--gold-lit); }
.ex-tabs b { display: block; font-weight: 500; }
.ex-tabs small { display: block; font-size: .85rem; color: var(--muted); }
.ex-tabs button[aria-selected="true"] small { color: #B8BBBE; }
.ex-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.explorer.running [aria-selected="true"] .ex-bar { animation: exbar var(--cycle, 3500ms) linear forwards; }
@keyframes exbar { to { transform: scaleX(1); } }
.ex-stage { position: relative; display: grid; padding: clamp(1rem, 2.2rem, 4vw); overflow: hidden;
  background-color: #EFECE6; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 2.5rem 2.5rem; background-position: -1px -1px; }
.ex-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2rem, 3vw); align-items: center; animation: exIn .7s var(--ease); }
.ex-panel[hidden] { display: none; }
@keyframes exIn { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.ex-panel .mock { width: 100%; max-width: 22rem; justify-self: center; box-shadow: 0 0 0 1px var(--ink); font-size: .95rem; }
.ex-panel .mock small { font-size: .82rem; }
.ex-copy { background: var(--cell); border: 1px solid var(--rule); padding: clamp(1rem, 1.5rem, 4vw); }
.ex-copy h3 { font-size: 1.45rem; font-weight: 400; }
.ex-copy p { margin-top: .7rem; color: var(--muted); }
.prices-head { padding: .7rem .75rem; border-bottom: 1px solid var(--rule); }
.mail-img { display: block; width: 100%; height: auto; margin-bottom: .7rem; }
.widget .w-head { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; background: #FBFAF8; }
.w-thumb { flex: none; width: 4.2rem; height: 3rem; }
.widget .w-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: .55rem .7rem; background: #F4EBD0; }
.widget .w-total b { font-size: 1.05rem; }

.card-top { display: flex; align-items: center; gap: .8rem; }
.card-top h3 { font-size: 1.2rem; }
.cells .card-top + p { margin-top: .75rem; }

.mock { background: #FBFAF8; border: 1px solid var(--rule); font-size: .82rem; line-height: 1.3; color: var(--ink); }
.mock b { font-weight: 500; }
.mock small { display: block; color: var(--muted); font-size: .75rem; }
.ad-btn { display: inline-block; padding: .4rem .75rem; border-radius: 2px; background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 500; white-space: nowrap; }
.ad-btn.wide { display: block; padding: .6rem; text-align: center; }
.ad-head { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; }
.ad-av { position: relative; display: block; width: 26px; height: 26px; background: var(--ink); }
.ad-av::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--gold); }
.ad-img { display: block; width: 100%; height: auto; aspect-ratio: 240 / 150; }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .7rem; border-top: 1px solid var(--rule); }
.serp { padding: .75rem; }
.serp-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; padding: .45rem .6rem; border: 1px solid var(--rule); background: #fff; }
.serp-res { padding: .35rem 0; }
.serp-res small b { margin-right: .3rem; padding: 0 .3rem; background: var(--gold); font-size: .7rem; }
.serp-res strong { display: block; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.serp-res span { color: var(--muted); }
.serp-res.muted { opacity: .6; }
.prices div { display: flex; justify-content: space-between; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
.prices div:last-child { border-bottom: 0; }
.prices .best { background: rgba(214, 167, 42, .22); font-weight: 600; }
.mail-top { display: flex; gap: 4px; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); }
.mail-top i { display: block; width: 8px; height: 8px; background: var(--rule); }
.mail-body { padding: .9rem .9rem 1rem; }
.mail-body strong { display: block; margin: .35rem 0 .7rem; font-size: .95rem; font-weight: 500; }
.ln { display: block; height: 5px; margin-bottom: .4rem; background: var(--rule); }
.ln.short { width: 60%; margin-bottom: .8rem; }
.widget { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.widget .wf { padding: .55rem .7rem; background: #FBFAF8; }
.widget .ad-btn { grid-column: 1 / -1; border-radius: 0; }
.attr { padding: .7rem .75rem; }
.attr div { display: grid; grid-template-columns: 4.6rem 1fr 1.8rem; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.attr i { display: block; width: var(--w); height: 8px; background: var(--ink); }
.attr b { text-align: right; }
.pad-note { margin-top: 1.2rem; }


/* Steps */
.steps { grid-template-columns: repeat(4, 1fr); }
.steps .cell { display: flex; flex-direction: column; position: relative; }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(1rem, 3vh, 2rem); }
.step-n { display: block; font-size: 3.4rem; font-weight: 300; letter-spacing: -0.04em; color: var(--gold-ink); line-height: 1; }
.steps .cell p:not(.when) { margin-bottom: 1.2rem; }
.steps .cell .when { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink); font-size: .92rem; font-weight: 500; }

/* Chart */
.results-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1rem, 1.5rem, 3vw); align-items: stretch; }
.chart-box { border: 1px solid var(--dark-rule); padding: clamp(1rem, 1.8rem, 4vw); background: var(--dark-cell); }
.chart-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.legend { display: flex; flex-direction: column; gap: .5rem; font-size: .98rem; }
.legend span { display: flex; align-items: center; gap: .6rem; }
.sw { width: 14px; height: 14px; display: inline-block; }
.sw-plat { background: #8A8E92; }
.sw-us { background: var(--gold-lit); }
.chart-sum { text-align: right; }
.chart-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -0.04em; color: var(--gold-lit); line-height: 1.1; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.3rem, 1vw, .9rem); height: clamp(9rem, 30vh, 17rem); align-items: end; border-bottom: 1px solid var(--dark-muted);
  background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--dark-rule) calc(25% - 1px), var(--dark-rule) 25%); }
.mcol { height: 100%; display: flex; align-items: flex-end; gap: 2px; position: relative; }
.mcol i { flex: 1; display: block; height: var(--h); transform-origin: bottom; }
.mcol .p { background: #8A8E92; }
.mcol .u { background: var(--gold-lit); }
.mlabel { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); text-align: center; font-size: .82rem; color: var(--dark-muted); }
.chart-box .note { margin-top: 2.2rem; }

/* Testimonial feed */
.feed { display: flex; flex-direction: column; gap: .9rem; min-height: 0; border: 1px solid var(--dark-rule); background: var(--dark-cell); padding: clamp(1rem, 1.5rem, 4vw); }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.feed-head h3 { font-size: 1.15rem; font-weight: 500; }
.feed-tag { border: 1px solid var(--gold-lit); color: var(--gold-lit); padding: .15rem .55rem; font-size: .78rem; font-weight: 500; }
.feed-window { position: relative; flex: 1; min-height: 16rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%); }
.feed-list { position: absolute; left: 0; right: 0; top: 0; padding-top: 1.2rem; will-change: transform; }
.tcard { margin-bottom: .75rem; padding: 1rem 1.1rem; border: 1px solid var(--dark-rule); background: var(--dark); transition: opacity .6s var(--ease); }
.tcard blockquote { margin: 0; position: relative; padding-left: 1.6rem; }
.tcard blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.35rem; font-size: 2.2rem; line-height: 1; color: var(--gold-lit); font-weight: 300; }
.tcard blockquote p { color: #F2F0EB; font-size: 1rem; line-height: 1.45; }
.tcard footer { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--dark-rule); }
.tav { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; background: #33373A; color: var(--gold-lit); font-size: .8rem; font-weight: 500; }
.tcard b { display: block; font-weight: 500; font-size: .9rem; color: #fff; }
.tcard small { display: block; color: var(--dark-muted); font-size: .8rem; }
.feed .note { margin: 0; }
/* Fact cards share the quote card frame, with a figure in place of the quote mark */
.fact-num { color: var(--gold-lit); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.fact-text { color: #F2F0EB; font-size: 1rem; line-height: 1.45; margin-top: .3rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); }
.faq-col { border-top: 1px solid var(--ink); }
.faq-col + .faq-col { border-top: 0; }
/* two columns on laptops and up, so answers fill the width instead of leaving the right half empty */
@media (min-width: 1024px) {
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); align-items: start; }
  .faq-col + .faq-col { border-top: 1px solid var(--ink); }
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: clamp(.9rem, 2.4vh, 1.4rem) 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; font-size: clamp(1.1rem, 1.4rem, 5vw); font-weight: 400; letter-spacing: -0.02em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .5s var(--ease); }
.faq details { overflow: hidden; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details.closing summary::after { transform: none; }
.faq summary:hover { color: var(--gold-ink); }
.faq details p { color: var(--muted); max-width: 72ch; padding-bottom: 1.6rem; padding-right: 2rem; }

/* Book */
.book { background: #DFDCD5; }
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.book h2 { font-size: clamp(2.2rem, 3.6rem, 8vw); line-height: 1.05; }
.book-copy > p:first-of-type { margin-top: 1.5rem; color: var(--muted); font-size: 1.15rem; max-width: 34ch; }
.ticks { margin-top: 1.5rem; border-top: 1px solid var(--ink); }
.ticks li { padding: .75rem 0 .75rem 1.9rem; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 12px; height: 7px; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg); }
.book .fine { margin-top: 1.5rem; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.08rem; }
.book .actions { margin-top: 1.5rem; }
.facade-card { margin: 0; padding: clamp(1rem, 2vw, 1.6rem); background: var(--dark); }
.facade-card svg { display: block; width: 100%; height: auto; max-height: calc(var(--screen) - 2 * var(--sec-pad) - 4rem); }
.facade-card figcaption { max-width: 44ch; margin-top: 1rem; color: var(--dark-muted); font-size: .95rem; }
.win { fill: #2F3336; transition: fill 1.1s var(--ease); transition-delay: var(--w, 0ms); }
.win.lit { fill: var(--gold-lit); }

/* Footer */
.site-footer { background: var(--dark); color: #F2F0EB; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--dark-rule); }
/* Explore links run in two columns now that there are more of them */
.site-footer .explore-list { columns: 2; column-gap: 2.5rem; }
.site-footer .explore-list li { break-inside: avoid; }
.foot-note { margin-top: 1.2rem; color: var(--dark-muted); max-width: 34ch; }
.site-footer h3 { font-size: 1rem; color: var(--dark-muted); font-weight: 400; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer li a { text-decoration: none; transition: color .3s; }
.site-footer li a:hover { color: var(--gold-lit); }
.link-btn { padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; transition: color .3s; }
.link-btn:hover { color: var(--gold-lit); }
.legal-links { display: flex; gap: 1.4rem; }
.legal-links a { text-decoration: none; transition: color .3s; }
.legal-links a:hover { color: var(--gold-lit); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1.5rem; font-size: .9rem; color: var(--dark-muted); }

/* Scroll and load motion (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal-line { clip-path: inset(0 0 100% 0); transform: translateY(.45em); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.js .is-in.reveal-line { clip-path: inset(0 0 -0.2em 0); }
.js .reveal-cell { opacity: 0; transform: translateY(2.5rem); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js .is-in.reveal, .js .is-in.reveal-line, .js .is-in.reveal-cell { opacity: 1; transform: none; }

.js .section::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.js .section.is-in::before { transform: scaleX(1); }

.js .mcol i { transform: scaleY(0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--m) * 55ms); }
.js .bars.is-in .mcol i { transform: scaleY(1); }
.js .mcol .u { transition-delay: calc(var(--m) * 55ms + 140ms); }

.js .panel .stmt tbody tr, .js .panel .split, .js .panel .total { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
.js .panel.is-in .stmt tbody tr, .js .panel.is-in .split, .js .panel.is-in .total { opacity: 1; transform: none; }

.js .chip { animation: chipIn 1s var(--ease) backwards; animation-delay: calc(var(--i) * 380ms + 800ms); }
.js .hero-art .scene { animation: sceneIn 1.6s var(--ease) backwards; }
@keyframes sceneIn { from { opacity: 0; filter: blur(8px); scale: 1.08; } to { opacity: 1; filter: none; scale: 1; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.js .link::before { transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
.js .flow-row.us .link::before { transition-delay: 1s; }
.js .link::after, .js .pill { opacity: 0; transition: opacity .5s ease 1.1s; }
.js .flow-row.us .link::after, .js .flow-row.us .pill { transition-delay: 1.8s; }
.js .flow.is-in .link::before { transform: scaleX(1); }
.js .flow.is-in .link::after, .js .flow.is-in .pill { opacity: 1; }

/* Scroll-linked (driven by --s from JS) */
/* Dark and tinted bands open out to full width as they arrive */
.section.dark[data-scrub], .section.tint[data-scrub], .section.book[data-scrub] { clip-path: inset(0 calc((1 - var(--s, 1)) * 6%)); }
.section[data-scrub] > .wrap { transform: translateY(calc((1 - var(--s, 1)) * 3rem)); }
.chart-box[data-scrub] { transform: scale(calc(.9 + var(--s, 1) * .1)); transform-origin: 50% 100%; }
.desk-art .coins-a { transform: translateY(calc((1 - var(--s, 1)) * 60px)); opacity: calc(var(--s, 1) * 1.4 - .2); }
.desk-art .coins-b { transform: translateY(calc((1 - var(--s, 1)) * 40px)); opacity: calc(var(--s, 1) * 1.4 - .3); }
.desk-art .coin-lean { transform: rotate(calc((1 - var(--s, 1)) * 60deg)); transform-origin: 312px 140px; opacity: calc(var(--s, 1) * 1.5 - .5); }
.desk-art .ring { opacity: calc(var(--s, 1) * 2 - 1); }
.faq details.reveal-cell { transform: translateX(-2rem); }
.faq details.reveal-cell.is-in { transform: none; }
.hero-art .scene { transform: translateY(calc(var(--s, 0) * 14%)) scale(calc(1.02 + var(--s, 0) * .1)); transform-origin: 50% 100%; will-change: transform; }
.hero-art .chip-a { translate: 0 calc(var(--s, 0) * -9rem); }
.hero-art .chip-b { translate: 0 calc(var(--s, 0) * -4rem); }
.hero-art .chip-c { translate: 0 calc(var(--s, 0) * -13rem); }

.live { transform: perspective(1400px) translateY(calc((1 - var(--s, 1)) * 5rem)) rotateX(calc((1 - var(--s, 1)) * 16deg)) scale(calc(.9 + var(--s, 1) * .1)); opacity: calc(.15 + var(--s, 1) * .85); transform-origin: 50% 100%; will-change: transform; }

.ex-stage .mock { transform: translateY(calc((var(--s, .5) - .5) * -2.5rem)); }

.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--gold); transform: scaleX(var(--s, 1)); transform-origin: left; z-index: 1; }
.step-n, .steps .ico { transition: color .6s var(--ease); }
.js .steps li:not(.on) .step-n { color: var(--rule); }
.js .steps li:not(.on) .ico { color: var(--rule); --acc: var(--rule); }
.js .steps li.on { background: var(--cell); }
.steps li { transition: background-color .6s var(--ease); }
.js .steps li:not(.on) { background: var(--paper); }

.js .panel { opacity: 0; transform: translateX(3rem); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.js .panel.is-in { opacity: 1; transform: none; }

.js .win.lit:not(.on) { fill: #2F3336; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .reveal-line, .js .reveal-cell { opacity: 1; transform: none; }
  .js .section::before { transform: none; }
  .js .mcol i, .js .link::before { transform: none; }
  .js .reveal-line { clip-path: none; }
  .js .panel { opacity: 1; transform: none; }
  .js .hero-art .scene { animation: none; }
  .hero-art .scene, .hero-art .chip, .live, .ex-stage .mock, .chart-box, .section > .wrap, .desk-art * { transform: none !important; translate: none; opacity: 1 !important; }
  .section { clip-path: none !important; }
  .js .panel .stmt tbody tr, .js .panel .split, .js .panel .total, .js .chip, .js .pill, .js .link::after { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  html { font-size: clamp(14px, 1.9vw, 17px); }
  .menu-btn { display: grid; }
  .nav-cta { display: flex; margin-top: 1rem; border-bottom: 0 !important; color: var(--ink) !important; }
  .nav a.nav-cta::after { display: none; }
  .bar-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); margin: 0; padding: .5rem var(--gutter) 1rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; color: var(--ink); }
  .nav a::after { display: none; }
  .hero-grid, .calc-grid, .live-grid, .book-grid, .foot-grid, .results-grid, .explorer { grid-template-columns: minmax(0, 1fr); }
  /* Tablets use the phone hero: picture on top fading into the text, one box filling the screen */
  .hero { padding-block: 1rem; }
  .hero-grid { height: auto; min-height: calc(100svh - var(--header-h) - 1px - 2rem); max-height: none; grid-template-rows: minmax(24rem, 1fr) auto; gap: 0; border: 1px solid var(--rule); background: var(--paper); }
  .hero-art { order: -1; border: 0; min-height: 0; }
  .hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to bottom, rgba(232, 230, 225, 0), var(--paper) 80%); pointer-events: none; }
  .hero-art .chip { z-index: 2; }
  /* the cards stay put while scrolling so all three are always visible */
  .hero-art .chip-a, .hero-art .chip-b, .hero-art .chip-c { translate: none; }
  .hero-copy { padding: 0 clamp(1.1rem, 4vw, 2.5rem) clamp(1.2rem, 3vw, 2rem); margin-top: -2.4rem; justify-content: flex-start; border: 0; position: relative; z-index: 1; }
  .hero .hl { display: block; }
  .hero h1::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 1.1rem; background: var(--gold); }
  .chip-c { bottom: 24% !important; }
  .panel { border-left: 0; border-top: 1px solid var(--rule); }
  .calc-grid .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc-grid .stats .cell:nth-child(2n) { border-right: 1px solid var(--rule); }
  .calc-grid .stats .cell:last-child { border-right: 0; }
  .calc-grid .stats .cell:nth-child(n) { border-bottom: 0; }
  .four, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-row { grid-template-columns: minmax(0, 1fr); }
  .ex-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ex-tabs::-webkit-scrollbar { display: none; }
  .ex-tabs button { flex: 0 0 auto; width: auto; border-bottom: 0; border-right: 1px solid var(--rule); scroll-snap-align: start; }
  .ex-tabs small { display: none; }
  .live-copy h2 { max-width: 20ch; }
  .facade-card svg { max-height: 38svh; margin-inline: auto; }
  .book-grid .facade-card { order: -1; }
  .points { display: none; }
  .calc-head { padding-block: 1.4rem; }
}

@media (max-width: 760px) {
  .flow-track { grid-template-columns: auto minmax(1.6rem, 1fr) auto minmax(2.6rem, 1fr) auto; }
  .node { min-width: 0; padding: .5rem .55rem; font-size: .82rem; line-height: 1.2; }
  .node .ico { width: 1.2rem; height: 1.2rem; }
  .node small { display: none; }
  .pill { padding: .15rem .35rem; font-size: .75rem; }
  .pill .pl { display: none; }
  .pill .ps { display: inline; }
  .ex-panel { grid-template-columns: minmax(0, 1fr); }
  .ex-panel .mock { max-width: 19rem; }
}

@media (max-width: 620px) {
  html { font-size: 14px; }
  :root { --sec-pad: 3.25rem; --header-h: 3.75rem; }
  body { font-size: 1rem; line-height: 1.55; }
  .site-header.scrolled .bar { height: 3.4rem; }
  .logo { font-size: 1.2rem; }
  .btn { padding: .8rem 1.2rem; font-size: .95rem; }
  h3 { font-size: 1.1rem; }
  .head { margin-bottom: 1.4rem; }
  .head h2, .calc-head h2, .live-copy h2, .book h2 { font-size: 2.05rem; }
  .head p { font-size: 1rem; }
  .cells > * { padding: 1.1rem; }

  /* Hero */
  /* First screen: one box that fills the phone screen; picture on top fades into the text below */
  .hero { padding-block: .75rem; }
  .hero-grid { height: calc(100svh - var(--header-h) - 1px - 1.5rem); min-height: 30rem; max-height: none; grid-template-rows: minmax(0, 1fr) auto; gap: 0; border: 1px solid var(--rule); background: var(--paper); }
  .hero-art { order: -1; border: 0; min-height: 0; }
  .hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to bottom, rgba(232, 230, 225, 0), var(--paper) 80%); pointer-events: none; }
  /* chips sit above the fade so the bottom one stays readable */
  .hero-art .chip { z-index: 2; }
  .hero-copy { padding: 0 1.1rem 1.2rem; margin-top: -2.4rem; gap: .8rem; justify-content: flex-start; border: 0; position: relative; z-index: 1; }
  .hero .hl { display: block; }
  .hero h1 { line-height: 1.12; letter-spacing: -0.04em; }
  .hero h1::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 1.1rem; background: var(--gold); }
  .lede-full { display: none; }
  .lede-short { display: inline; }
  .hero .lede { font-size: .95rem; line-height: 1.72; max-width: 33ch; }
  .hero-copy { gap: 1.05rem !important; }
  .chip-c { bottom: 24% !important; }
  .hero .fine { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 10.6vw, 2.9rem); line-height: 1.02; }
  .lede { font-size: .98rem; line-height: 1.45; }
  .hero .actions { flex-wrap: nowrap; gap: .5rem; }
  .hero .actions .btn { flex: 1 1 0; padding: .75rem .5rem; font-size: .9rem; white-space: nowrap; }
  .book .actions .btn { flex: 1 1 auto; }
  .chip { max-width: 82%; padding: .5rem .65rem; gap: .5rem; font-size: .8rem; }
  .chip small { font-size: .72rem; }
  .chip strong { font-size: 1rem; }
  .ctrl-row output { font-size: 1.25rem; margin-left: auto; }
  .ctrl-row output .per { font-size: .85rem; }
  .chip-b .cmp2 { gap: 1rem; }
  .chip-b .cmp2 s, .chip-b .cmp2 b { font-size: 1.15rem; }
  .chip-b .cmp2 small { font-size: .68rem; }
  .chip-a { top: 4%; left: 4%; } .chip-b { top: 42%; right: 4%; } .chip-c { bottom: 4%; left: 4%; }

  /* Savings: stats in a 2x2 grid, compact statement */
  .calc-head { padding: 1.2rem; }
  /* the graphic is smaller on phones so the text still wraps around it */
  .desk-art { width: 9.5rem; margin-left: .9rem; }
  .calc-grid .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid .stats .cell { gap: .6rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .calc-grid .stats .cell:nth-child(2n) { border-right: 0; }
  .calc-grid .stats .cell:nth-child(n+3) { border-bottom: 0; }
  .calc-grid .cells .stat { font-size: 1.55rem; }
  .calc-grid .stat-label { font-size: .8rem; min-height: 0; }
  .calc-grid .stats .ico { width: 1.5rem; height: 1.5rem; }
  .panel { padding: 1.1rem; }
  .panel-head h2 { font-size: 1.1rem; }
  .stmt { font-size: .9rem; }
  .split-row { grid-template-columns: 5.6rem minmax(0, 1fr); font-size: .82rem; }
  .split-bar { height: 1.6rem; }
  .total-num { font-size: 2.3rem; }
  .total-sub { font-size: 1.25rem; }
  .total-year, .chart-sum { text-align: left; }
  .dd-list { right: 0; min-width: 14.5rem; }

  /* Live pipeline */
  .points { display: none; }
  .live-copy > p { margin-top: .8rem; }
  .live-hero { padding: .8rem .9rem; }
  .live-num { font-size: 2.6rem; }
  .spark { height: 2.6rem; }
  .live-list li { grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; gap: .6rem; padding: .5rem .6rem; }
  .stay small { font-size: .78rem; }
  .av { width: 2.2rem; height: 2.2rem; font-size: .8rem; }
  .who b { font-size: .92rem; }
  .badge, .stay span { display: none; }
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-stats > div:nth-child(2n) { border-right: 0; }
  .live-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--dark-rule); }

  /* Money flow: vertical, compact */
  .flow-row { padding: 1rem; gap: .7rem; }
  .flow-track { grid-template-columns: minmax(0, 1fr); }
  .node { flex-direction: row; align-items: center; gap: .6rem; min-width: 0; padding: .55rem .75rem; font-size: .9rem; }
  .node .ico { width: 1.25rem; height: 1.25rem; }
  .node small { display: block; margin-left: auto; font-size: .75rem; text-align: right; }
  .link { height: 1.9rem; justify-content: flex-start; padding-left: 2.4rem; }
  .link:has(.pill) { height: 3.4rem; }
  .flow .pill { padding: .3rem .6rem; font-size: .78rem; }
  .link::before { left: 1.35rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; }
  .link::after { right: auto; left: 1.35rem; top: auto; bottom: 1px; transform: translateX(-50%) rotate(135deg); }
  .js .link::before { transform: scaleY(0); }
  .js .flow.is-in .link::before { transform: scaleY(1); }
  .pill .pl { display: inline; } .pill .ps { display: none; }

  /* Cards stack vertically */
  .four, .steps { grid-template-columns: minmax(0, 1fr); }
  .four .cell p, .steps .cell p { font-size: .92rem; }

  /* Steps: gold line runs down the left edge */
  .steps .cell { padding-left: 1.4rem; }
  .step-top { margin-bottom: .8rem; }
  .step-n { font-size: 2.4rem; }
  .steps .cell p:not(.when) { margin-bottom: .8rem; }
  .steps::before { left: -1px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: scaleY(var(--s, 1)); transform-origin: top; }

  /* Channels: tabs as a vertical list */
  .ex-tabs { flex-direction: column; overflow: visible; border-bottom: 1px solid var(--rule); }
  .ex-tabs button { width: 100%; padding: .6rem .9rem; gap: .7rem; border-right: 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
  .ex-tabs button:last-child { border-bottom: 0; }
  .ex-tabs .ico { width: 1.3rem; height: 1.3rem; }
  .ex-copy { display: none; }
  .ex-stage { padding: 1rem; }
  .ex-panel .mock { max-width: 17rem; font-size: .85rem; }

  /* Results */
  .chart-box { padding: 1rem; }
  .legend { font-size: .85rem; }
  .chart-num { font-size: 1.9rem; }
  .mlabel { font-size: .68rem; }
  .mlabel span { display: none; }
  .feed-window { min-height: 26rem; }
  .tcard { padding: .8rem .9rem; }
  .tcard blockquote p, .fact-text { font-size: .92rem; }

  /* FAQ + book */
  .faq summary { font-size: 1.05rem; gap: 1rem; }
  .head.has-art { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .head.has-art .ha { width: 9.5rem; justify-self: start; order: -1; }
  .ha-pipe { width: 11.5rem; margin: 1.1rem 0 .2rem; }
  .ex-stage .mock { transform: none; }
  .stmt th, .stmt td { padding: .55rem .35rem; }
  .stmt thead th { font-size: .74rem; line-height: 1.25; }
  .stmt tbody th { font-size: .84rem; white-space: nowrap; }
  .stmt td { font-size: .88rem; white-space: nowrap; }
  .panel-head { align-items: flex-start; }
  .book-title { align-items: center; }
  .ha-book { width: 5.5rem; }
  .ticks li { font-size: .95rem; }
  .book .actions .btn { width: 100%; }
  .foot-grid { gap: 1.8rem; }
}

@media (max-width: 1000px) and (min-width: 621px) {
  .ex-copy { font-size: .95rem; }
}

@media (max-width: 620px) and (max-height: 720px) {
  .chip-b { display: none; }
  .chip-c { bottom: 20% !important; }
}

/* Tablets and large phones: hero text scales with the viewport width so it always fills the text block */
@media (min-width: 431px) and (max-width: 1000px) {
  .hero h1 { font-size: min(10.4vw, 6.5rem); }
  .hero .lede { font-size: max(.95rem, min(2.6vw, 1.5rem)); line-height: 1.6; max-width: none; text-wrap: pretty; }
  .hero .fine { font-size: max(.8rem, 1.6vw); }
}

/* Tablets and phones: section headings and intro text use the full width of their block */
@media (max-width: 1000px) {
  .head h2, .live-copy h2 { max-width: none; text-wrap: pretty; }
  .head p, .calc-head p, .live-copy > p, .book-copy > p:first-of-type, .foot-note, .facade-card figcaption { max-width: none; }
}
@media (min-width: 431px) and (max-width: 1000px) {
  .head h2, .live-copy h2 { font-size: min(8vw, 4.2rem); }
  .head p, .live-copy > p, .book-copy > p:first-of-type { font-size: max(1.1rem, min(2.4vw, 1.4rem)); }
}
