/* AVENOR — instrument panel over molten metal. Opaque surfaces, hairline rules,
   one signal hue per state. No glass, no tilt, no gradients on chrome. */

:root {
  --void:    oklch(0.155 0.008 255);
  --panel:   oklch(0.208 0.008 255);
  --panel-2: oklch(0.248 0.008 255);
  --fg:      oklch(0.955 0.004 250);
  --dim:     oklch(0.685 0.008 250);
  --faint:   oklch(0.52 0.008 250);
  --line:    oklch(1 0 0 / 0.11);
  --line-2:  oklch(1 0 0 / 0.06);
  --wait:    oklch(0.79 0.14 78);
  --good:    oklch(0.73 0.14 155);
  --gutter: clamp(20px, 4.6vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--fg);
  font-family: 'Wix Madefor Text', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Art direction over the full-bleed effect: hold the left column and the page
   foot dark enough to read, leave the middle open so the metal does its work. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--void) 0%, oklch(0.155 0.008 255 / 0.82) 34%, oklch(0.155 0.008 255 / 0) 62%),
    linear-gradient(to bottom, oklch(0.155 0.008 255 / 0.55) 0%, oklch(0.155 0.008 255 / 0) 22%);
}

.page { position: relative; z-index: 1; }

.label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.4;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  padding: 0 var(--gutter);
  height: 76px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Wix Madefor Display', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.logo svg { width: 22px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.masthead nav { margin-left: auto; display: flex; gap: clamp(12px, 2.4vw, 30px); }
.masthead nav button { color: var(--dim); font-size: 14px; transition: color 0.18s var(--ease); }
.masthead nav button:hover { color: var(--fg); }

.masthead .open-demo {
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 3px;
  font-size: 14px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.masthead .open-demo:hover { border-color: oklch(1 0 0 / 0.3); background: oklch(1 0 0 / 0.04); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(52px, 7vw, 108px) var(--gutter) clamp(64px, 8vw, 124px);
  min-height: 74svh;
}

.kicker { margin: 0 0 22px; }

h1 {
  font-family: 'Wix Madefor Display', system-ui, sans-serif;
  font-size: clamp(42px, 5.4vw, 82px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
  margin: 0 0 26px;
  max-width: 15ch;
}

h1 span { color: var(--dim); }

.lead {
  margin: 0 0 34px;
  max-width: 52ch;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.75;
}

.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.primary {
  background: var(--fg);
  color: var(--void);
  padding: 13px 19px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  transition: background 0.18s var(--ease);
}

.primary:hover { background: oklch(0.87 0.004 250); }
.actions .label { max-width: 20ch; }

/* ---------- the panel ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

/* Every row shares one rhythm; rules run the full width of the panel. */
.panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-2);
}

.panel-row:last-child { border-bottom: 0; }

.workspace { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }

.mark {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
}

.tag {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.headline-block { padding: 20px 18px 18px; border-bottom: 1px solid var(--line-2); }

.headline-block .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.currency {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.currency select {
  appearance: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 22px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.currency { position: relative; }
.currency::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.total {
  font-family: 'Wix Madefor Display', system-ui, sans-serif;
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 16px;
}

.total .cents { color: var(--faint); font-size: 0.55em; letter-spacing: -0.01em; }

.allocation { display: flex; gap: 2px; height: 3px; margin-bottom: 11px; }
.allocation span { display: block; height: 100%; }
.allocation .cash { background: var(--fg); }
.allocation .stable { background: var(--faint); flex: 1; }

.split { display: flex; gap: 18px; }
.split span { display: inline-flex; align-items: center; gap: 7px; }

.dot { width: 6px; height: 6px; border-radius: 1px; background: var(--fg); flex: none; }
.dot.stable { background: var(--faint); }

/* balance rows */

.balance-row { width: 100%; text-align: left; transition: background 0.15s var(--ease); }
.balance-row:hover { background: var(--panel-2); }
.balance-row .name { font-weight: 500; }
.balance-row .count { color: var(--faint); font-size: 13px; }
.balance-row .figure { margin-left: auto; font-weight: 600; }
.balance-row .chev { color: var(--faint); font-size: 12px; }

/* pending payment */

.pending {
  width: 100%;
  text-align: left;
  align-items: flex-start;
  padding-block: 14px;
  background: var(--panel-2);
  transition: background 0.15s var(--ease);
}

.pending:hover { background: oklch(0.285 0.008 255); }
.pending .state { width: 7px; height: 7px; border-radius: 1px; background: var(--wait); margin-top: 7px; flex: none; }
.pending[data-done='true'] .state { background: var(--good); }
.pending .who { display: block; font-weight: 600; }
.pending .what { display: block; color: var(--dim); font-size: 13px; }
.pending .go { margin-left: auto; align-self: center; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- capability strip ---------- */

.strip {
  background: var(--void);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip > div {
  padding: clamp(32px, 4vw, 54px) clamp(18px, 2.4vw, 40px) clamp(38px, 4.6vw, 62px);
  border-left: 1px solid var(--line-2);
}

.strip > div:first-child { border-left: 0; padding-left: var(--gutter); }
.strip > div:last-child { padding-right: var(--gutter); }

.strip h2 {
  font-family: 'Wix Madefor Display', system-ui, sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 14px 0 10px;
}

.strip p { margin: 0; color: var(--dim); max-width: 32ch; }
.strip .icon { display: block; }

/* ---------- footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: baseline;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

/* ---------- dialog ---------- */

/* A right-hand drawer rather than a centred modal. Still a <dialog> opened with
   showModal(), so the focus trap, Esc and top-layer stacking come for free —
   `margin: 0 0 0 auto` is what unseats the UA's centring. */
dialog {
  background: var(--panel);
  color: var(--fg);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  width: min(620px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Entry only. Animating the exit means transitioning `display`, which fights
   the `dialog:not([open])` rule further down for no real gain. */
dialog[open] { animation: drawer-in 0.42s var(--ease); }
dialog[open]::backdrop { animation: drawer-fade 0.42s var(--ease); }

@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-fade { from { opacity: 0; } }

dialog::backdrop { background: oklch(0.1 0.006 255 / 0.76); }

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 54px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.dialog-top .close { font-size: 22px; line-height: 1; color: var(--dim); padding: 6px; }
.dialog-top .close:hover { color: var(--fg); }

#dialog-content { padding: 26px 26px 30px; overflow-y: auto; }

#dialog-content h2 {
  font-family: 'Wix Madefor Display', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.dialog-intro { margin: 0 0 22px; color: var(--dim); max-width: 60ch; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }

.tabs button {
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs button[aria-selected='true'] { color: var(--fg); border-bottom-color: var(--fg); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody td:last-child, thead th:last-child { text-align: right; }
td .sub { display: block; color: var(--faint); font-size: 12.5px; }

.table-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.table-heading p { margin: 0; color: var(--dim); font-size: 13px; }

.ghost {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
}

.ghost:hover { background: var(--panel-2); }

.pill-state {
  display: inline-block;
  border-radius: 2px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  background: oklch(0.73 0.14 155 / 0.16);
  color: var(--good);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}

.detail-grid > div { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.detail-grid > div:nth-child(odd) { padding-right: 18px; }
.detail-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-2); }
.detail-grid dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.detail-grid dd { margin: 0; font-size: 14px; }
.detail-grid dd.address { word-break: break-all; font-size: 12.5px; }

.note {
  margin: 0 0 20px;
  padding: 13px 14px;
  background: var(--panel-2);
  border-radius: 3px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--dim);
  cursor: pointer;
}

.check input { margin: 3px 0 0; accent-color: var(--fg); width: 15px; height: 15px; }

.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.dialog-actions .primary { gap: 12px; }
.dialog-actions .primary:disabled { background: var(--panel-2); color: var(--faint); }

.secondary { border: 1px solid var(--line); border-radius: 3px; padding: 13px 17px; font-size: 14px; }
.secondary:hover { background: var(--panel-2); }

.back { color: var(--dim); font-size: 13px; margin-bottom: 14px; padding: 0; }
.back:hover { color: var(--fg); }

.disclaimer { margin: 0; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: 12px; line-height: 1.6; }

.text-section { margin-bottom: 20px; }
.text-section h3 { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.text-section p { margin: 0; color: var(--dim); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 14px);
  z-index: 60;
  background: var(--fg);
  color: var(--void);
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* The loader's iframe, faded rather than torn down. */
iframe[data-phasmatic] { transition: opacity 0.55s var(--ease); }
body[data-effect='off'] iframe[data-phasmatic] { opacity: 0; }

/* ---------- the Phasmatic pill ---------- */

.pill {
  position: fixed;
  right: clamp(14px, 2.5vw, 26px);
  bottom: clamp(14px, 2.5vw, 26px);
  z-index: 40;
  display: flex;
  align-items: stretch;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.pill button, .pill a { display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: inherit; }
.pill a { border-left: 1px solid var(--line); padding-inline: 13px; color: var(--dim); }
.pill a:hover, .pill button:hover { color: var(--fg); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); transition: background 0.25s var(--ease); }
.pill[data-on='false'] .dot { background: var(--faint); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: clamp(40px, 6vw, 72px); min-height: 0; }
  .panel { max-width: 460px; }
  .scrim { background: linear-gradient(to bottom, oklch(0.155 0.008 255 / 0.78) 0%, oklch(0.155 0.008 255 / 0.3) 45%, oklch(0.155 0.008 255 / 0.85) 100%); }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-left: 0; border-top: 1px solid var(--line-2); padding-inline: var(--gutter); }
  .strip > div:first-child { border-top: 0; }
}

@media (max-width: 620px) {
  .masthead { height: 64px; }
  .masthead nav, .masthead .open-demo { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .detail-grid > div:nth-child(odd) { padding-right: 0; }
  #dialog-content { padding: 20px 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Avenor — Money in motion. Editorial scale, cold silver, electric blue. */
:root { --void:#0a0c10; --panel:#11151d; --panel-2:#1b2230; --fg:#edf1f8; --dim:#a3aab9; --faint:#8893a6; --blue:#315dff; --gutter:clamp(24px,5vw,88px); }
html { scroll-behavior:smooth; scroll-padding-top:30px; }
.logo,h1,.total,.strip h2,#dialog-content h2 { font-family:'Space Grotesk',sans-serif; }
.label,.edition,.material-note,.text-link { font-family:'IBM Plex Mono',monospace; }
.masthead { height:88px; border:0; margin:0 var(--gutter); padding:0; border-bottom:1px solid #ffffff26; }
.logo { font-size:28px; letter-spacing:-.06em; }
.logo svg { color:#6383ff; }
.masthead .open-demo { border-radius:0; font-size:12px; padding:10px 18px; }
.scrim { background:linear-gradient(90deg,#0a0c10f2 0%,#0a0c10c9 25%,#0a0c1040 57%,#0a0c1000 100%); }
.hero { display:flex; flex-direction:column; align-items:stretch; padding:28px var(--gutter) clamp(40px,5vw,72px); min-height:calc(100svh - 88px); }
.hero-eyebrow { display:flex; align-items:center; justify-content:space-between; }
.hero-eyebrow .label { color:#aabcff; font-size:10px; }
.edition { font-size:10px; color:#a3aab9; }
.hero-composition { flex:1; display:grid; grid-template-columns:1.5fr 1fr; min-height:580px; align-items:end; gap:30px; padding:48px 0 58px; }
h1 { font-size:clamp(84px,10.7vw,168px); line-height:.91; letter-spacing:-.085em; font-weight:500; margin:0 0 30px; max-width:none; }
h1 em { font-style:normal; color:#c8d5f5; }
.lead { font-size:16px; line-height:1.7; margin-bottom:28px; }
.primary { background:var(--blue); color:white; border-radius:0; padding:16px 21px; font-weight:500; }
.primary:hover { background:#4870ff; }
.primary span { font-size:21px; }
.text-link { font-size:10px; color:#b9c4d9; border-bottom:1px solid #ffffff55; padding:9px 0; }
.text-link:hover { color:white; }
.material-note { align-self:end; margin-bottom:0; display:flex; gap:16px; align-items:center; font-size:9px; letter-spacing:.08em; color:#c8d5ec; text-shadow:0 1px 8px #000; }
.cross { font-size:28px; font-weight:400; }
.coordinate { margin-left:auto; font-size:40px; }
.overview { position:relative; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:10%; padding:100px var(--gutter); background:#0c1018; border-top:1px solid var(--line); }
.overview h2 { font-family:'Space Grotesk',sans-serif; font-size:clamp(40px,4.4vw,68px); line-height:1.05; letter-spacing:-.065em; font-weight:500; margin:0 0 28px; }
.overview h2 span { color:#8995ae; }
.overview-copy>p:not(.label) { color:var(--dim); max-width:39ch; font-size:14px; line-height:1.8; }
.account-stats { display:flex; gap:50px; margin-top:34px; }
.account-stats strong { font-family:'Space Grotesk',sans-serif; display:block; font-size:36px; font-weight:400; line-height:1.2; letter-spacing:-.06em; }
.account-stats span { font-size:10px; color:var(--faint); }
.panel-stage { min-width:0; }
.panel { border-radius:8px; max-width:none; box-shadow:0 28px 65px #0005; border-color:#8297c137; }
.panel>.panel-row:first-child { min-height:62px; }
.headline-block { padding:28px 22px; }
.headline-block .total { font-size:clamp(30px,3.6vw,52px); font-weight:400; margin-block:22px; }
.panel-row { padding-inline:22px; min-height:55px; font-size:13px; }
.workspace { font-size:12px; }
.mark { background:#315dff; color:white; }
.allocation { height:5px; }
.allocation .cash,.dot:not(.stable) { background:#7490ff; }
.allocation .stable,.dot.stable { background:#ccd7ed; }
.split { font-size:8px; }
.pending { padding-block:18px; }
.pending .who { font-size:12px; }
.pending .what { font-size:11px; }
.pending .go { font-size:11px; }
.manifesto { display:flex; gap:50px; align-items:center; padding:60px var(--gutter); background:#315dff; }
.manifesto p { font-family:'Space Grotesk',sans-serif; font-size:clamp(30px,3.6vw,56px); line-height:1.15; letter-spacing:-.055em; margin:0; }
.manifesto p span { color:#c4d0ff; }
.round-arrow { margin-left:auto; border:1px solid #ffffff70; border-radius:50%; width:72px; height:72px; font-size:32px; flex-shrink:0; transition:background .2s,transform .2s; }
.round-arrow:hover { background:#ffffff20; transform:rotate(12deg); }
.strip { background:#0c1018; }
.strip>div { padding-block:54px; }
.strip .icon { width:26px; height:26px; color:#7392ff; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.strip h2 { font-size:24px; font-weight:500; letter-spacing:-.045em; margin-top:35px; }
.strip p { font-size:13px; line-height:1.8; }
footer { display:block; background:#0a0c10; padding-top:54px; padding-bottom:90px; }
.footer-brand { font-family:'Space Grotesk',sans-serif; font-size:clamp(80px,17vw,250px); letter-spacing:-.085em; line-height:1; color:#d6deee; display:flex; align-items:baseline; justify-content:space-between; }
.footer-brand>span { font-size:.65em; color:#6383ff; }
.footer-meta { display:flex; justify-content:space-between; padding:30px 0; color:#ccd5e7; font-size:12px; }
footer>span { display:block; border-top:1px solid var(--line); padding-top:22px; font-size:10px; }
dialog:not([open]) { display:none; }
dialog { box-shadow:-30px 0 90px #0009; }
.tabs button[aria-selected='true'] { border-bottom-color:#7290ff; }
@media(max-width:1000px) {
  .hero-composition { grid-template-columns:1.5fr .7fr; min-height:560px; }
  .overview { gap:6%; padding-block:70px; }
  .strip { grid-template-columns:repeat(3,1fr); }
  .strip>div { border-top:0; padding:35px 20px; }
  .strip h2 { font-size:20px; }
  .panel-row { padding-inline:14px; gap:9px; }
  .headline-block { padding-inline:14px; }
  .manifesto { gap:30px; }
}
@media(max-width:700px) {
  .masthead { height:72px; }
  .masthead nav { display:none; }
  .masthead .open-demo { display:block; margin-left:auto; padding:8px 12px; }
  .hero { min-height:0; padding-top:25px; }
  .hero-composition { grid-template-columns:1fr; padding:55px 0 35px; gap:60px; min-height:0; }
  h1 { font-size:clamp(80px,16vw,110px); }
  .lead { font-size:14px; }
  .actions { gap:18px; }
  .primary { padding:14px 17px; font-size:12px; gap:20px; }
  .text-link { font-size:9px; }
  .material-note { margin:0; max-width:100%; min-height:75px; }
  .overview { grid-template-columns:1fr; gap:45px; padding-block:55px; }
  .overview h2 { font-size:48px; }
  .overview-copy>p:not(.label) { max-width:45ch; }
  .headline-block .total { font-size:40px; }
  .account-stats { gap:44px; }
  .manifesto { flex-wrap:wrap; gap:24px; padding-block:40px; }
  .manifesto p { font-size:clamp(27px,6vw,38px); }
  .round-arrow { width:46px; height:46px; font-size:23px; }
  .strip { grid-template-columns:1fr; }
  .strip>div { padding:30px var(--gutter); border-top:1px solid var(--line); }
  .strip h2 { margin-top:20px; font-size:24px; }
  .strip p { max-width:42ch; }
  .table-heading { flex-wrap:wrap; }
  .table-heading .ghost { margin-left:0; }
  table { font-size:12px; }
  td .sub { font-size:10px; }
  .toast { bottom:76px; max-width:90vw; width:max-content; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Keep the readable foreground wash above the loader's appended iframe. */
.scrim { z-index:1; }
.page { z-index:2; }
@media(max-width:700px) {
  .scrim { background:linear-gradient(180deg,#0a0c10a8 0%,#0a0c109e 55%,#0a0c1020 100%); }
}
