/* OpenBusinessCouncil Capital — "Capital streams"
   Cinematic dark chapters for the story, calm light chapters for the tools.
   Every figure on the page comes from a stated, deterministic calculation. */

@font-face { font-family: "Geist"; src: url(../fonts/Geist-Variable.woff2?v=641205) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono-Variable.woff2?v=641205) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Ground */
  --night: #05070d;
  --night-2: #0a0f1a;
  --night-3: #111827;
  --night-line: rgba(255, 255, 255, .09);
  --night-ink: #eef1f7;
  --night-soft: #8d97ab;
  --day: #f3f4f7;
  --day-2: #ffffff;
  --day-3: #e8ebf0;
  --day-line: rgba(10, 15, 26, .09);
  --day-ink: #0a0f1a;
  --day-soft: #5a6478;

  /* One accent for every action */
  --mint: #2ee6b6;
  --mint-press: #22d1a3;
  --mint-ink: #04140f;

  /* Each funding route owns a colour, everywhere it appears */
  --loan: #6d8bff;
  --asset: #2ee6b6;
  --invoice: #ffc24b;
  --grant: #ff8a6b;

  --ok: #0a6b4d;  --ok-bg: #e2f6ee;
  --warn: #8a5a00; --warn-bg: #fff2d6;
  --bad: #b42318; --bad-bg: #fde8e6;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Five type steps */
  --t-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --t-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-lead: clamp(1.125rem, .98rem + .6vw, 1.5rem);
  --t-h2: clamp(2.125rem, 1rem + 4.8vw, 6.5rem);
  --t-display: clamp(2rem, .5rem + 7.6vw, 9.75rem);

  --margin: clamp(20px, 4vw, 64px);
  --max: 1680px;
  --gap: clamp(96px, 5rem + 6vw, 200px);
  --hdr: 72px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); color-scheme: dark light; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--night); color: var(--night-ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"],
.steps, .pcard__rows, .live__rows, .todo, .pledges, .stream-labels, .glist, .crumbs, .nav__list, .nav-drop, .cats, .tags, .socials, .toc-list, .pager { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum", "zero" 0; letter-spacing: -.01em; }
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--mint); color: var(--mint-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }

[data-theme="dark"] { background: var(--night); color: var(--night-ink); --ink: var(--night-ink); --soft: var(--night-soft); --line: var(--night-line); --surface: var(--night-2); }
[data-theme="light"] { background: var(--day); color: var(--day-ink); --ink: var(--day-ink); --soft: var(--day-soft); --line: var(--day-line); --surface: var(--day-2); }

/* Type roles */
.display { font-size: var(--t-display); font-weight: 600; line-height: .94; letter-spacing: -.055em; }
.h2 { font-size: var(--t-h2); font-weight: 600; line-height: .96; letter-spacing: -.05em; }
.lead { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.015em; color: var(--soft); max-width: 40ch; text-wrap: pretty; }
.line { display: block; }
.line--soft { color: var(--soft); }
[data-split-lines] .line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split-lines] .line > .ln { display: block; will-change: transform; }

/* ---------------- Buttons ---------------- */
.btn {
  --bg: var(--mint); --fg: var(--mint-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4em; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 560; font-size: 1rem; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .16s var(--ease-out), background-color .2s ease;
}
.btn > span, .btn > svg { position: relative; z-index: 1; }
.btn svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: rgba(255,255,255,.28); transform: translateY(101%); transition: transform .45s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--mint); --fg: var(--mint-ink); }
.btn--dark { --bg: var(--day-ink); --fg: #fff; }
.btn--dark::before { background: rgba(255,255,255,.12); }
.btn--light { --bg: #fff; --fg: var(--night); }
.btn--light::before { background: rgba(10,15,26,.07); }
.btn--quiet { --bg: var(--day-3); --fg: var(--day-ink); }
.btn--sm { min-height: 40px; font-size: .9375rem; padding: 0 1.1em; }
.btn--lg { min-height: 56px; font-size: 1.0625rem; padding: 0 1.6em; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover svg { transform: translateX(3px); }
}
.tlink { position: relative; font-weight: 500; text-decoration: none; padding-block: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tlink:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 500; line-height: 1.3; background: var(--day-3); color: var(--day-soft); white-space: nowrap; }
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--warn { background: var(--warn-bg); color: var(--warn); }
.chip--bad { background: var(--bad-bg); color: var(--bad); }
.chip--ok::before, .chip--warn::before, .chip--bad::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- Header ---------------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr); color: var(--night-ink); transition: transform .5s var(--ease-drawer), color .3s ease; }
.hdr::before { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 13, .72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--night-line); opacity: 0; transition: opacity .3s ease, background-color .3s ease, border-color .3s ease; }
.hdr.is-solid::before { opacity: 1; }
.hdr.is-light { color: var(--day-ink); }
.hdr.is-light::before { background: rgba(243, 244, 247, .8); border-color: var(--day-line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 620; letter-spacing: -.03em; font-size: 1.0625rem; white-space: nowrap; }
.brand__mark { width: 26px; height: 26px; fill: currentColor; }
.brand__mark rect:nth-child(1) { fill: var(--loan); } .brand__mark rect:nth-child(2) { fill: var(--asset); } .brand__mark rect:nth-child(3) { fill: currentColor; } .brand__mark rect:nth-child(4) { fill: var(--invoice); }
.brand em { font-style: normal; font-weight: 400; opacity: .6; margin-left: .3em; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(18px, 2vw, 36px); }
.nav a { position: relative; display: inline-block; padding: 10px 0; text-decoration: none; font-size: .9375rem; font-weight: 500; opacity: .78; transition: opacity .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { opacity: 1; } .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.hdr__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.hdr__progress i { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-inline-start: auto; border: 1px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; opacity: .9; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--night-ink); padding: calc(var(--hdr) + 24px) var(--margin) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet li a { display: block; padding: 10px 0; font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.04em; text-decoration: none; border-bottom: 1px solid var(--night-line); }
@media (max-width: 1080px) { .nav, .hdr__cta { display: none; } .burger { display: block; } }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: clip; isolation: isolate; }
.streams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.no-webgl .streams { background: radial-gradient(60% 50% at 70% 50%, rgba(46,230,182,.12), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--night)); z-index: -1; pointer-events: none; }
.hero__in { position: relative; padding-top: calc(var(--hdr) + clamp(36px, 9vh, 120px)); padding-bottom: clamp(28px, 5vh, 56px); display: flex; flex-direction: column; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); font-size: var(--t-small); color: var(--night-soft); margin-bottom: clamp(20px, 3.5vh, 36px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--mint); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero__title { font-size: var(--t-display); font-weight: 600; line-height: .92; letter-spacing: -.058em; }
.hero__title .line--soft { color: var(--night-soft); }
.hero__sub { margin-top: clamp(20px, 3vh, 32px); max-width: 46ch; font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.015em; color: var(--night-soft); }

/* Navigator card */
.nav-card { margin-top: auto; padding-top: clamp(32px, 6vh, 72px); width: 100%; }
.nav-card__fields { display: grid; grid-template-columns: 1fr 1fr 1.35fr auto; gap: 10px; padding: 10px; border-radius: var(--r-lg); background: rgba(15, 21, 34, .72); border: 1px solid var(--night-line); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.field { display: grid; gap: 6px; min-width: 0; padding: 10px 14px 12px; border-radius: var(--r-md); background: rgba(255,255,255,.04); transition: background-color .2s ease; }
.field:focus-within { background: rgba(255,255,255,.08); }
.field > span:first-child { font-size: .8125rem; color: var(--night-soft); font-weight: 500; }
.control { position: relative; display: flex; align-items: center; min-width: 0; }
.control select, .control input { width: 100%; min-width: 0; height: 32px; padding: 0 28px 0 0; border: 0; background: transparent; font-size: 1.125rem; font-weight: 550; letter-spacing: -.02em; outline: none; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.control select option { color: #0a0f1a; }
.control svg { position: absolute; right: 2px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; pointer-events: none; opacity: .7; }
.control--money b { font-weight: 550; font-size: 1.125rem; margin-right: 4px; }
.control--money input { padding-right: 0; font-family: var(--mono); letter-spacing: -.03em; }
.nav-card__fields .btn { align-self: stretch; height: auto; border-radius: var(--r-md); }
.nav-card__live { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 14px 6px 0; font-size: var(--t-small); color: var(--night-soft); }
.nav-card__live strong { color: var(--night-ink); font-weight: 560; }
.nav-card__live p { flex: 1 1 380px; }
.nav-card__note { flex: 0 1 auto !important; display: inline-flex; align-items: center; gap: 8px; }
.nav-card__note svg { width: 14px; height: 14px; fill: none; stroke: var(--mint); stroke-width: 1.6; flex: none; }
.mini-stack { display: flex; gap: 3px; width: 160px; height: 10px; flex: none; }
.mini-stack i { flex: var(--w) 1 0; background: var(--c); border-radius: 3px; transition: flex-grow .6s var(--ease-io); }

.stream-labels { position: absolute; right: var(--margin); top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.stream-labels li { position: absolute; right: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(5,7,13,.6); border: 1px solid var(--night-line); font-size: .8125rem; font-weight: 500; white-space: nowrap; color: var(--night-ink); transform: translateY(-50%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stream-labels li i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.stream-labels li:nth-child(1) { top: 22%; } .stream-labels li:nth-child(2) { top: 36%; } .stream-labels li:nth-child(3) { top: 50%; } .stream-labels li:nth-child(4) { top: 64%; }

@media (max-width: 1080px) {
  .nav-card__fields { grid-template-columns: 1fr 1fr; }
  .field--wide, .nav-card__fields .btn { grid-column: 1 / -1; }
  .nav-card__fields .btn { min-height: 56px; }
  .stream-labels { display: none; }
}
@media (max-width: 599px) {
  .hero { min-height: auto; }
  .hero__in { padding-top: calc(var(--hdr) + 28px); }
  .hero__title { max-width: none; }
  .nav-card__fields { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .nav-card { padding-top: 32px; }
  .mini-stack { width: 100%; }
}

/* ---------------- Scene: project to plan ---------------- */
.scene-plan { position: relative; overflow-x: clip; }
.scene-plan__stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: var(--gap); }
.scene-plan__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.scene-plan__copy .h2 { margin-bottom: clamp(32px, 5vh, 56px); }
.steps { counter-reset: s; display: grid; gap: 4px; max-width: 520px; }
.step { position: relative; padding: 16px 0 16px 28px; }
.step::before { content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--day-soft); transition: background-color .3s ease, border-color .3s ease, transform .3s var(--ease-out); }
.step::after { content: ""; position: absolute; left: 4.5px; top: 40px; bottom: -12px; width: 1px; background: var(--day-line); }
.step:last-child::after { display: none; }
.step h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 580; letter-spacing: -.02em; line-height: 1.25; }
.step p { margin-top: 6px; color: var(--day-soft); max-width: 44ch; }
.step.is-active::before { background: var(--day-ink); border-color: var(--day-ink); transform: scale(1.15); }

.scene-plan__visual { perspective: 1600px; }
.plan3d { position: relative; transform-style: preserve-3d; }
.pcard { position: relative; background: #fff; color: var(--day-ink); border-radius: var(--r-xl); padding: clamp(20px, 2vw, 32px); box-shadow: 0 1px 0 rgba(10,15,26,.04), 0 40px 80px -30px rgba(10, 20, 50, .28), 0 12px 24px -12px rgba(10,20,50,.12); display: grid; gap: 18px; font-size: .9375rem; }
.pcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard__eyebrow { font-size: .8125rem; color: var(--day-soft); }
.pcard__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.pcard__amount { font-size: clamp(2.5rem, 1.4rem + 3vw, 4.25rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.pcard__bar { display: flex; gap: 4px; height: 44px; border-radius: 8px; background: var(--day); }
.pcard__bar i { flex: var(--w) 1 0; background: var(--c); border-radius: 8px; transform-origin: left; }
.pcard__rows { display: grid; gap: 2px; }
.pcard__rows li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--day); border-radius: 10px; }
.pcard__rows li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pcard__rows small { display: block; color: var(--day-soft); font-size: .8125rem; margin-top: 1px; }
.pcard__rows b { font-weight: 500; }
.pcard__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard__totals div { padding: 12px 14px; border-radius: 12px; background: var(--day); }
.pcard__totals div > span { display: block; font-size: .8125rem; color: var(--day-soft); }
.pcard__totals b { font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__send { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: var(--day-ink); color: #fff; }
.pcard__provider { display: flex; align-items: center; gap: 10px; font-weight: 560; }
.pcard__provider small { display: block; font-weight: 400; color: var(--night-soft); font-size: .8125rem; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--loan); color: #fff; font-size: .8125rem; font-weight: 650; flex: none; }
.float-card { position: absolute; display: grid; gap: 4px; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--day-ink); box-shadow: 0 24px 48px -20px rgba(10,20,50,.3); font-size: .8125rem; }
.float-card b { font-size: 1.375rem; font-weight: 500; letter-spacing: -.04em; }
.float-card--a { left: -9%; top: -64px; }
.float-card--b { right: -5%; bottom: -26px; display: flex; gap: 6px; }
@media (min-width: 1024px) {
  .scene-plan__stage { min-height: 100vh; min-height: 100svh; padding-block: calc(var(--hdr) + 24px) 40px; }
  .scene-plan__copy .h2 { margin-bottom: clamp(20px, 3vh, 40px); }
  .step { --py: clamp(8px, 1.4vh, 16px); padding-block: var(--py); }
  .step::before { top: calc(var(--py) + 8px); }
  .step::after { top: calc(var(--py) + 24px); }
}
@media (max-width: 1023px) {
  .scene-plan__grid { grid-template-columns: minmax(0, 1fr); }
  .float-card--a { left: auto; right: 4%; top: -48px; }
  .float-card--b { right: -2%; }
}
@media (max-width: 599px) {
  .float-card { display: none !important; }
  .pcard__send { flex-direction: column; align-items: stretch; }
  .pcard__send .btn { width: 100%; }
}

/* ---------------- Routes ----------------
   Stacked by default (phones, reduced motion, no script). With the motion layer on a wide
   screen, JS adds .has-ride and vertical scroll drives a horizontal ride through the routes. */
.routes { position: relative; }
.routes__pin { overflow: clip; }
.routes__track { display: flex; flex-direction: column; gap: 16px; padding: var(--gap) var(--margin); width: min(100%, calc(var(--max) + 2 * var(--margin))); margin-inline: auto; }
.routes__intro { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-bottom: 24px; max-width: 640px; }
.routes__progress { display: none; height: 2px; width: 200px; background: var(--night-line); border-radius: 2px; overflow: hidden; }
.routes__progress i { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.route { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); padding: clamp(16px, 2vw, 32px); border-radius: var(--r-xl); background: var(--night-2); border: 1px solid var(--night-line); overflow: hidden; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.route__fig { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.route__img { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; background: var(--night-3); }
.route__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.route__fig figcaption { font-size: var(--t-small); color: var(--night-soft); }
.route__text { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(8px, 1vw, 24px) clamp(4px, 1vw, 16px); }
.route__tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--night-soft); }
.route__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.route h3 { font-size: clamp(2.25rem, 1.2rem + 3vw, 4.75rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.route__lead { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.015em; color: var(--night-ink); max-width: 30ch; }
.route__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.route__facts dt { font-size: var(--t-small); color: var(--c); font-weight: 560; margin-bottom: 6px; }
.route__facts dd { color: var(--night-soft); font-size: .9375rem; line-height: 1.5; }
.route__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.routes.has-ride .routes__track { flex-direction: row; gap: clamp(16px, 2vw, 32px); width: max-content; margin: 0; }
.routes.has-ride .routes__intro { width: min(640px, 80vw); flex: none; padding: 0 clamp(0px, 4vw, 64px) 0 0; }
.routes.has-ride .routes__progress { display: block; }
.routes.has-ride .route { flex: none; width: min(1560px, 78vw); height: min(78vh, 1040px); min-height: 560px; }
.routes.has-ride .route__img { flex: 1; aspect-ratio: auto; min-height: 0; }
.routes.has-ride .route__img img { transform: none; }

@media (max-width: 1023px) {
  .route { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .route__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 599px) { .route__facts { grid-template-columns: 1fr; } }

/* ---------------- Decoder ---------------- */
.decoder { position: relative; overflow: clip; }
.decoder__stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(96px, 12vh, 140px); }
.decoder__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head meter" "chart chart" "facts facts" "note note"; column-gap: clamp(32px, 5vw, 96px); row-gap: clamp(28px, 4vh, 48px); align-items: end; }
.decoder__head { grid-area: head; display: grid; gap: 20px; }
.decoder__lead { color: var(--night-soft); font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.015em; max-width: 44ch; }
.decoder__meter { grid-area: meter; justify-self: end; text-align: right; }
.meter__num { font-size: clamp(5rem, 2rem + 12vw, 15rem); font-weight: 500; line-height: .82; letter-spacing: -.07em; color: var(--night-ink); }
.meter__num small { font-size: .45em; letter-spacing: -.04em; margin-left: .04em; color: var(--night-soft); }
.decoder.is-hot .meter__num { color: var(--invoice); }
.meter__cap { margin-top: 14px; color: var(--night-soft); font-size: var(--t-small); }
.decoder__chart { grid-area: chart; }
.chart { position: relative; height: clamp(160px, 24vh, 260px); }
.chart__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart__bars i { flex: 1; height: 100%; background: rgba(255,194,75,.85); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(var(--h, .2)); }
.chart__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__line path { fill: none; stroke: var(--mint); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: var(--t-small); color: var(--night-soft); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.sw--bar { background: var(--invoice); } .sw--line { background: var(--mint); height: 3px; vertical-align: 3px; }
.decoder__facts { grid-area: facts; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.decoder__facts div { padding: 20px 22px; border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--night-line); }
.decoder__facts dt { font-size: var(--t-small); color: var(--night-soft); }
.decoder__facts dd { margin-top: 6px; font-size: clamp(1.25rem, 1rem + 1vw, 2rem); letter-spacing: -.04em; }
.dec-hi { color: var(--invoice); }
.decoder__note { grid-area: note; font-size: var(--t-small); color: var(--night-soft); max-width: 72ch; }
@media (max-width: 899px) {
  .decoder__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "meter" "chart" "facts" "note"; }
  .decoder__meter { justify-self: start; text-align: left; }
  .decoder__facts { grid-template-columns: 1fr 1fr; }
  .chart__bars { gap: 1px; }
}

/* ---------------- Designer ---------------- */
.designer { padding-block: var(--gap); overflow-x: clip; }
.designer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.designer__copy .h2 { margin-bottom: 24px; }
.designer__copy .lead { margin-bottom: clamp(40px, 6vh, 64px); }
.ctrl { padding: 22px 0; border-top: 1px solid var(--day-line); display: grid; gap: 14px; }
.ctrl__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 560; letter-spacing: -.01em; }
.ctrl__label output { font-size: 1.375rem; font-weight: 500; letter-spacing: -.04em; }
.seg { position: relative; display: inline-flex; flex-wrap: wrap; gap: 0; padding: 4px; border-radius: 999px; background: var(--day-3); width: fit-content; max-width: 100%; isolation: isolate; }
.seg button { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: .9375rem; font-weight: 520; color: var(--day-soft); cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.seg button[aria-checked="true"] { color: #fff; }
.seg__thumb { position: absolute; z-index: 0; top: 0; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: var(--day-ink); transition: transform .45s var(--ease-drawer), width .45s var(--ease-drawer), height .45s var(--ease-drawer); }
@media (max-width: 599px) { .seg, .pills { border-radius: 24px; } .seg button, .pills button { flex: 1 1 auto; } }
.no-js .seg button[aria-checked="true"] { background: var(--day-ink); }
.seg--light { background: rgba(10,15,26,.06); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; --p: 21%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--day-ink), var(--day-ink)) 0 / var(--p) 100% no-repeat, #cfd5df; }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: #cfd5df; }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--day-ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(10,15,26,.12), 0 4px 12px rgba(10,15,26,.18); transition: transform .16s var(--ease-out); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(10,15,26,.12), 0 4px 12px rgba(10,15,26,.18); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range__ends { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--day-soft); }
.ctrl--toggles { gap: 6px; }
.toggle { display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { position: relative; width: 46px; height: 28px; border-radius: 14px; background: #cfd5df; flex: none; transition: background-color .25s ease; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(10,15,26,.2); transition: transform .35s var(--ease-drawer); }
.toggle input:checked + .toggle__track { background: var(--ok); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--mint); outline-offset: 3px; }
.designer__out { position: sticky; top: calc(var(--hdr) + 32px); }
.live { background: #fff; border-radius: var(--r-xl); padding: clamp(20px, 2vw, 32px); display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgba(10,20,50,.25), 0 1px 0 rgba(10,15,26,.04); }
.live__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.live__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.live__bar { display: flex; gap: 4px; height: 56px; }
.live__bar i { flex: var(--w) 1 0; min-width: 6px; background: var(--c); border-radius: 10px; transition: flex-grow .6s var(--ease-io); }
.live__rows { display: grid; gap: 2px; }
.live__rows li { display: grid; grid-template-columns: 10px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--day); border-radius: 10px; }
.live__rows i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.live__rows b { font-weight: 500; font-family: var(--mono); }
.live__rows small { grid-column: 2 / -1; color: var(--day-soft); font-size: .8125rem; }
.live__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live__totals div { padding: 14px; background: var(--day); border-radius: 12px; }
.live__totals span { display: block; font-size: .8125rem; color: var(--day-soft); }
.live__totals b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.05em; }
.live__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.live__note { font-size: .8125rem; color: var(--day-soft); }
@media (max-width: 1023px) {
  .designer__grid { grid-template-columns: minmax(0, 1fr); }
  .designer__out { position: static; }
}

/* ---------------- Deck ---------------- */
.deck { padding-block: 0 var(--gap); overflow-x: clip; }
.deck__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.deck__copy .h2 { margin-bottom: 24px; }
.deck__tabs { display: grid; gap: 6px; margin-top: clamp(32px, 5vh, 48px); max-width: 440px; }
.deck__tabs button { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 22px; border: 0; border-radius: var(--r-md); background: transparent; font-size: 1.125rem; font-weight: 560; letter-spacing: -.02em; text-align: left; color: var(--day-soft); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.deck__tabs button::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg) translateX(-4px); opacity: 0; transition: opacity .25s ease, transform .35s var(--ease-out); }
.deck__tabs button[aria-selected="true"] { background: #fff; color: var(--day-ink); box-shadow: 0 10px 30px -18px rgba(10,20,50,.3); }
.deck__tabs button[aria-selected="true"]::after { opacity: 1; transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .deck__tabs button:hover { color: var(--day-ink); } }
.deck__stage { position: relative; display: grid; perspective: 1400px; min-height: 560px; }
.dcard { grid-area: 1 / 1; min-width: 0; align-self: center; background: #fff; border-radius: var(--r-xl); padding: clamp(20px, 2vw, 32px); box-shadow: 0 40px 80px -40px rgba(10,20,50,.3), 0 1px 0 rgba(10,15,26,.04); font-size: .9375rem; }
.dcard[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.js .dcard { transform-origin: 50% 100%; }
.dcard header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.dcard h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; }
.kv { display: grid; gap: 2px; }
.kv > div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 12px; padding: 11px 14px; background: var(--day); border-radius: 10px; }
.kv dt { color: var(--day-soft); }
.kv dd { font-weight: 500; }
.kv__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-wrap { overflow-x: auto; }
.cal { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: .9375rem; }
.cal th { text-align: right; font-weight: 500; font-size: .8125rem; color: var(--day-soft); padding: 0 12px 6px; }
.cal th:first-child, .cal td:first-child { text-align: left; }
.cal td { text-align: right; padding: 11px 12px; background: var(--day); }
.cal td:first-child { border-radius: 10px 0 0 10px; } .cal td:last-child { border-radius: 0 10px 10px 0; font-weight: 600; }
.dcard__note { margin-top: 14px; color: var(--day-soft); font-size: .875rem; }
.todo { display: grid; gap: 2px; }
.todo li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; background: var(--day); border-radius: 10px; }
.optin { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: var(--day-soft); font-size: .875rem; }
.optin .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #9aa3b3; flex: none; margin-top: 2px; }
.dcard__btns { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 1023px) {
  .deck__grid { grid-template-columns: minmax(0, 1fr); }
  .deck__tabs { grid-template-columns: 1fr 1fr; max-width: none; }
  .deck__tabs button { min-height: 52px; font-size: 1rem; padding: 0 16px; }
  .deck__stage { min-height: 0; }
}
@media (max-width: 599px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------------- Marquee ---------------- */
.marquee { padding-block: var(--gap); overflow: clip; }
.marquee__head { margin-bottom: clamp(40px, 6vh, 72px); }
.marquee__title { font-size: var(--t-lead); font-weight: 500; letter-spacing: -.015em; color: var(--night-soft); max-width: 32ch; }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; flex: none; padding-right: 0; will-change: transform; }
.marquee__track span { display: inline-flex; align-items: center; font-size: clamp(3rem, 1rem + 7.5vw, 10rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; }
.marquee__track span::after { content: ""; width: .18em; height: .18em; margin-inline: .45em; border-radius: 50%; background: var(--c, var(--mint)); }
.marquee__row--alt .marquee__track span { color: transparent; -webkit-text-stroke: 1.5px rgba(238,241,247,.5); }
.marquee__row--alt .marquee__track span::after { background: var(--invoice); }

/* ---------------- Guides ---------------- */
.guides { position: relative; padding-block: var(--gap); }
.guides__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vh, 56px); }
.pills { position: relative; display: inline-flex; flex-wrap: wrap; gap: 0; padding: 4px; border-radius: 999px; background: var(--day-3); margin-bottom: 28px; isolation: isolate; max-width: 100%; }
.pills button { position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--day-soft); font-weight: 520; cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.pills button[aria-selected="true"] { color: #fff; }
.pills__thumb { position: absolute; z-index: 0; top: 0; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: var(--day-ink); transition: transform .45s var(--ease-drawer), width .45s var(--ease-drawer); }
.no-js .pills button[aria-selected="true"] { background: var(--day-ink); }
.glist { border-top: 1px solid var(--day-line); }
.glist[hidden] { display: none; }
.glist li { border-bottom: 1px solid var(--day-line); }
.glist a { position: relative; display: grid; grid-template-columns: 12em minmax(0, 1.2fr) minmax(0, 1fr) 48px; gap: 24px; align-items: center; padding: 28px 0; text-decoration: none; }
.glist__kind { font-size: var(--t-small); color: var(--day-soft); }
.glist__title { font-size: clamp(1.25rem, 1rem + .9vw, 1.875rem); font-weight: 560; letter-spacing: -.03em; line-height: 1.2; transition: transform .45s var(--ease-out); }
.glist__note { color: var(--day-soft); }
.glist__go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--day-line); transition: background-color .3s ease, border-color .3s ease, transform .45s var(--ease-out); }
.glist__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .glist a:hover .glist__title { transform: translateX(12px); }
  .glist a:hover .glist__go { background: var(--day-ink); border-color: var(--day-ink); color: #fff; }
  .glist a:hover .glist__go svg { transform: rotate(-45deg); }
}
.gpreview { position: fixed; left: 0; top: 0; z-index: 50; width: 240px; height: 160px; border-radius: 20px; pointer-events: none; display: grid; place-items: center; background: var(--tone, var(--loan)); color: var(--night); transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: opacity .25s ease, transform .45s var(--ease-out), background-color .3s ease; }
.gpreview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gpreview__fig { font-size: 2rem; font-weight: 500; letter-spacing: -.05em; }
@media (max-width: 899px) {
  .glist a { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 16px; padding: 20px 0; }
  .glist__kind { grid-column: 1; grid-row: 1; }
  .glist__title { grid-column: 1; grid-row: 2; }
  .glist__note { grid-column: 1; grid-row: 3; font-size: .9375rem; }
  .glist__go { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; }
  .guides__head .btn { width: 100%; }
  .gpreview { display: none; }
}

/* ---------------- Method ---------------- */
.method { padding-block: var(--gap); }
.method__title { font-size: var(--t-small); font-weight: 560; color: var(--mint); margin-bottom: 28px; }
.manifesto { font-size: clamp(1.75rem, .9rem + 3.2vw, 4.75rem); font-weight: 520; line-height: 1.1; letter-spacing: -.04em; max-width: 31ch; }
.manifesto .w { opacity: .18; transition: opacity .2s linear; }
.no-js .manifesto .w, .is-reduced .manifesto .w { opacity: 1; }
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(64px, 10vh, 120px); }
.pledges li { padding: 28px; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); display: grid; gap: 12px; align-content: start; }
.pledges svg { width: 28px; height: 28px; fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.pledges h3 { font-size: 1.25rem; font-weight: 580; letter-spacing: -.025em; }
.pledges p { color: var(--night-soft); }
.method__links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 40px; }
@media (max-width: 899px) { .pledges { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- FAQ ---------------- */
.faq { padding-block: var(--gap); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr) + 40px); display: grid; gap: 24px; }
.faq__head p { color: var(--day-soft); }
.faq__list { border-top: 1px solid var(--day-line); }
.qa { border-bottom: 1px solid var(--day-line); }
.qa summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 560; letter-spacing: -.025em; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--day-3); transition: background-color .25s ease, transform .45s var(--ease-out); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease-out); }
.qa[open] summary i { background: var(--day-ink); color: #fff; }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { padding-bottom: 26px; color: var(--day-soft); max-width: 62ch; }
@media (max-width: 899px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq__head { position: static; } }

/* ---------------- Closing ---------------- */
.close { position: relative; isolation: isolate; overflow: clip; padding-block: var(--gap); }
.close::before { content: ""; position: absolute; inset: 0 0 auto; height: 25%; background: linear-gradient(var(--night), transparent); z-index: -1; pointer-events: none; }
.close__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 120px); align-items: end; min-height: 70vh; min-height: 70svh; }
.close__copy { display: grid; gap: 28px; }
.dialog { background: #fff; color: var(--day-ink); border-radius: var(--r-xl); padding: clamp(20px, 2vw, 32px); display: grid; gap: 14px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.6); }
.dialog h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; margin-bottom: 4px; }
.field--light { background: var(--day); }
.field--light:focus-within { background: var(--day-3); }
.field--light > span:first-child { color: var(--day-soft); }
.field--light .seg { margin-top: 4px; width: 100%; }
.field--light .seg button { flex: 1; }
.dialog__note { font-size: .8125rem; color: var(--day-soft); text-align: center; }
@media (max-width: 899px) { .close__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; } }

/* ---------------- Footer ---------------- */
.ftr { padding-block: clamp(72px, 10vh, 120px) calc(clamp(40px, 6vh, 72px) + env(safe-area-inset-bottom)); overflow: clip; border-top: 1px solid var(--night-line); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--night-line); }
.ftr__claim { font-size: var(--t-lead); letter-spacing: -.02em; line-height: 1.35; max-width: 26ch; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ftr__cols h3 { font-size: var(--t-small); font-weight: 560; color: var(--night-soft); margin-bottom: 14px; }
.ftr__cols ul { display: grid; gap: 10px; }
.ftr__cols a { text-decoration: none; opacity: .88; transition: opacity .2s ease; }
@media (hover: hover) and (pointer: fine) { .ftr__cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; } }
.ftr__legal, .ftr__credits { font-size: var(--t-small); color: var(--night-soft); max-width: 75ch; margin-top: 24px; }
.ftr__credits { opacity: .8; }
@media (max-width: 899px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* ---------------- Motion states ---------------- */
/* Hero intro runs in CSS from the first paint: no wait for scripts, good for LCP */
.hero__title .ln { animation: line-up 1.25s var(--ease-out) both; }
.hero__title .line + .line .ln { animation-delay: .1s; }
.hero [data-intro] { animation: fade-up 1s var(--ease-out) both; }
.hero__kicker { animation-delay: .05s !important; }
.hero__sub { animation-delay: .3s !important; }
.nav-card { animation-delay: .42s !important; }
@keyframes line-up { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.is-reduced [data-intro], .is-reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .js [data-intro], .js [data-reveal] { opacity: 1; transform: none; }
  .hero__title .ln, .hero [data-intro] { animation: none !important; }
  .manifesto .w { opacity: 1; }
}

/* =====================================================================
   Theme layer: operator-managed menus, inner pages, articles, archives,
   forms and Ariana's injected blocks (all styled, none rebuilt)
   ===================================================================== */

/* Main menu with dropdowns (three levels) */
.nav__list { display: flex; gap: clamp(18px, 2vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item.has-dropdown > a::before { content: ""; order: 2; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.nav-item.is-current > a { opacity: 1; }
.nav-item.is-current > a::after { transform: scaleX(1); }
.nav-drop { position: absolute; left: -16px; top: 100%; min-width: 240px; padding: 8px; margin: 0; list-style: none; border-radius: 16px; background: rgba(10, 15, 26, .96); border: 1px solid var(--night-line); box-shadow: 0 24px 48px -16px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(6px); transform-origin: 20% 0; transition: opacity .18s ease, transform .22s var(--ease-out), visibility .22s; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-drop .nav-drop { position: static; min-width: 0; padding: 0 0 4px 12px; margin: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--night-ink); opacity: .82; font-size: .9375rem; }
.nav-drop a::after { display: none; }
.nav-drop .nav-drop a { font-size: .875rem; opacity: .65; padding: 6px 12px; }
.nav-item:hover > .nav-drop, .nav-item:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) { .nav-drop a:hover { background: rgba(255,255,255,.06); opacity: 1; } }
.hdr.is-light .nav-drop { background: rgba(255,255,255,.98); border-color: var(--day-line); box-shadow: 0 24px 48px -20px rgba(10,20,50,.25); }
.hdr.is-light .nav-drop a { color: var(--day-ink); }
@media (hover: hover) and (pointer: fine) { .hdr.is-light .nav-drop a:hover { background: var(--day); } }

.sheet__list, .sheet__list ul { list-style: none; margin: 0; padding: 0; }
.sheet__list ul { padding: 0 0 12px 4px; }
.sheet__list ul a { font-size: 1.125rem !important; font-weight: 500 !important; letter-spacing: -.01em !important; border-bottom: 0 !important; padding: 7px 0 !important; color: var(--night-soft); }
.sheet__list ul ul { padding-left: 16px; }
.sheet__search { display: flex; gap: 8px; margin: 28px 0 20px; }
.sheet__search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.05); color: var(--night-ink); font-size: 1rem; }

/* Footer columns come from the footer menu */
.ftr__cols > ul { display: contents; }
.ftr__col h3 a { color: inherit; text-decoration: none; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* ---------- Inner page hero ---------- */
.phero { position: relative; padding: calc(var(--hdr) + clamp(56px, 10vh, 120px)) 0 clamp(56px, 8vh, 96px); overflow: clip; isolation: isolate; }
.phero::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(46,230,182,.14), transparent 70%); z-index: -1; pointer-events: none; }
.phero__in { display: grid; gap: 24px; justify-items: start; }
.phero__in > * { max-width: 1100px; }
.phero h1 { font-size: clamp(2.5rem, 1rem + 5.4vw, 7rem); font-weight: 600; line-height: .95; letter-spacing: -.055em; }
.phero .lead { color: var(--night-soft); max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-small); color: var(--night-soft); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--night-ink); }
.kicker { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); font-size: var(--t-small); color: var(--night-soft); }
.kicker .pulse { flex: none; }

.section { padding-block: var(--gap); }
.section--tight { padding-block: calc(var(--gap) * .6); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--hdr) + 40px); display: grid; gap: 20px; }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } .split__aside { position: static; } }

/* ---------- Long-form text, including everything Ariana puts inside {{{ post.content }}} ---------- */
.prose { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.7; color: var(--day-ink); max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; margin-top: 2.2em; scroll-margin-top: calc(var(--hdr) + 24px); }
.prose h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; margin-top: 1.8em; scroll-margin-top: calc(var(--hdr) + 24px); }
.prose h4 { font-size: 1.15rem; font-weight: 600; margin-top: 1.6em; }
.prose p, .prose li { color: #2b3445; }
.prose a { color: var(--day-ink); text-decoration-color: var(--mint-press); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--day-soft); }
.prose strong { font-weight: 600; color: var(--day-ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--mint); font-size: 1.15em; line-height: 1.5; letter-spacing: -.01em; color: var(--day-ink); }
.prose code { font-family: var(--mono); font-size: .88em; padding: .15em .4em; border-radius: 6px; background: var(--day-3); }
.prose pre { font-family: var(--mono); font-size: .875rem; line-height: 1.6; padding: 20px 22px; border-radius: var(--r-md); background: var(--night-2); color: var(--night-ink); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img, .prose video { border-radius: var(--r-md); }
.prose hr { border: 0; height: 1px; background: var(--day-line); margin: 2.4em 0; }
.prose :where(figure.ariana-figure) { margin: 2em 0; }
.prose figure.ariana-figure img { width: 100%; height: auto; }
.prose figure.ariana-figure figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--day-soft); }
.prose div.ariana-table { margin: 1.8em 0; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--day-line); background: #fff; }
.prose div.ariana-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose div.ariana-table th, .prose div.ariana-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--day-line); vertical-align: top; }
.prose div.ariana-table th { font-weight: 600; background: var(--day); font-size: .875rem; }
.prose div.ariana-table tr:last-child td { border-bottom: 0; }
.prose section.ariana-faq { margin: 2.4em 0; padding: clamp(20px, 2vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); }
.prose section.ariana-faq h2 { margin-top: 0; font-size: 1.5rem; }
.prose section.ariana-faq details { border-bottom: 1px solid var(--day-line); padding: 6px 0; }
.prose section.ariana-faq details:last-child { border-bottom: 0; }
.prose section.ariana-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose section.ariana-faq summary::-webkit-details-marker { display: none; }
.prose section.ariana-faq summary::after { content: "+"; font-weight: 400; font-size: 1.3em; line-height: 1; color: var(--day-soft); transition: transform .3s var(--ease-out); }
.prose section.ariana-faq details[open] summary::after { transform: rotate(45deg); }
.prose section.ariana-faq details > :not(summary) { color: var(--day-soft); padding-bottom: 12px; }
.prose aside.ariana-author-box, aside.ariana-author-box { display: grid; grid-template-columns: 72px 1fr; gap: 6px 20px; align-items: center; margin: 3em 0 0; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); }
.ariana-author-box__avatar, .ariana-author-box__avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; grid-row: span 3; }
.ariana-author-box__name { font-weight: 600; font-size: 1.125rem; letter-spacing: -.015em; }
.ariana-author-box__role { color: var(--day-soft); font-size: var(--t-small); }
.ariana-author-box__bio { color: #2b3445; font-size: .9375rem; grid-column: 2; }
.prose a.ariana-file { display: flex; align-items: center; gap: 16px; max-width: 32rem; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--day-line); background: #fff; text-decoration: none; color: var(--day-ink); transition: border-color .2s ease, transform .2s var(--ease-out); }
.prose a.ariana-file:hover { border-color: var(--day-ink); transform: translateY(-1px); }
.ariana-file__icon { flex: none; width: 40px; color: var(--loan); }
.ariana-file--pdf .ariana-file__icon { color: var(--grant); } .ariana-file--sheet .ariana-file__icon { color: var(--ok); } .ariana-file--slide .ariana-file__icon { color: var(--invoice); }
.ariana-file__text { display: grid; flex: 1; min-width: 0; }
.ariana-file__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ariana-file__meta { font-size: var(--t-small); color: var(--day-soft); }
.ariana-file__cta { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--day-ink); color: #fff; font-size: .875rem; font-weight: 560; }

/* Summary box */
.ariana-summary { margin: 0 0 2.2em; padding: clamp(20px, 2vw, 28px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); position: relative; overflow: hidden; }
.ariana-summary::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--mint); }
.ariana-summary__title { font-size: var(--t-small); font-weight: 600; color: var(--ok); margin: 0 0 10px; }
.ariana-summary__text { color: var(--day-ink); line-height: 1.6; }
.ariana-summary__list { margin: 10px 0 0; padding-left: 1.2em; color: #2b3445; }
.ariana-summary__list li + li { margin-top: 6px; }

/* ---------- Article ---------- */
.post-hero { padding: calc(var(--hdr) + clamp(48px, 8vh, 96px)) 0 clamp(40px, 6vh, 72px); }
.post-hero__in { display: grid; gap: 22px; max-width: 980px; }
.post-hero h1 { font-size: clamp(2.25rem, 1rem + 4vw, 5rem); font-weight: 600; line-height: .98; letter-spacing: -.05em; }
.post-hero .lead { color: var(--night-soft); max-width: 60ch; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cats a { display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--night-line); font-size: var(--t-small); text-decoration: none; color: var(--night-ink); transition: background-color .2s ease; }
.cats a:hover { background: rgba(255,255,255,.08); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: var(--t-small); color: var(--night-soft); }
.byline__people { display: flex; align-items: center; gap: 10px; color: var(--night-ink); }
.byline__people img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline__people a { text-decoration: none; font-weight: 560; }
.byline__people a:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--night-soft); opacity: .6; }
.byline__review { display: flex; flex-wrap: wrap; gap: 6px 14px; width: 100%; }
.byline__review a { color: var(--night-ink); }
.post-cover { margin-top: clamp(32px, 5vh, 56px); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 9; background: var(--night-3); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.article { padding-block: clamp(48px, 7vh, 96px) var(--gap); }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 96px); align-items: start; }
.article__aside { position: sticky; top: calc(var(--hdr) + 32px); display: grid; gap: 16px; }
.card-s { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); }
.card-s h2, .card-s h3 { font-size: .9375rem; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
.toc-list, .toc-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-list ul { padding-left: 14px; }
.toc-list a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .9rem; line-height: 1.35; color: var(--day-soft); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.toc-list a:hover, .toc-list a.is-active { background: var(--day); color: var(--day-ink); }
.ariana-preferred-sources { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); }
.ariana-preferred-sources__title { font-size: .9375rem; font-weight: 600; margin: 0 0 6px; }
.ariana-preferred-sources__text { font-size: var(--t-small); color: var(--day-soft); margin: 0 0 12px; }
.card-s--cta { background: var(--night); color: var(--night-ink); border-color: transparent; }
.card-s--cta p { color: var(--night-soft); font-size: .9375rem; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 40px 0 0; padding: 0; }
.tags a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--day-3); font-size: var(--t-small); text-decoration: none; color: var(--day-ink); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.prevnext a { display: grid; gap: 6px; padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--day-line); text-decoration: none; transition: border-color .2s ease; }
.prevnext a:hover { border-color: var(--day-ink); }
.prevnext span { font-size: var(--t-small); color: var(--day-soft); }
.prevnext b { font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.prevnext .next { text-align: right; grid-column: 2; }
@media (max-width: 1023px) { .article__grid { grid-template-columns: minmax(0, 1fr); } .article__aside { position: static; order: -1; } .article__aside .card-s--cta { display: none; } }
@media (max-width: 599px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { grid-column: 1; } .post-cover { aspect-ratio: 4 / 3; } }

/* ---------- Post cards and archives ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pc { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(10,20,50,.35); } .pc:hover .pc__img img { transform: scale(1.04); } }
.pc__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--day-3); }
.pc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pc__ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--night-2); }
.pc__ph i { display: flex; gap: 4px; width: 46%; height: 12px; }
.pc__ph i::before, .pc__ph i::after { content: ""; flex: 1; border-radius: 4px; background: var(--loan); }
.pc__ph i::after { flex: .6; background: var(--asset); }
.pc__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.pc__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--t-small); color: var(--day-soft); }
.pc__meta a { color: var(--ok); text-decoration: none; font-weight: 560; }
.pc h2, .pc h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.pc h2 a, .pc h3 a { text-decoration: none; }
.pc h2 a::after, .pc h3 a::after { content: ""; position: absolute; inset: 0; }
.pc { position: relative; }
.pc__meta a { position: relative; z-index: 1; }
.pc p { color: var(--day-soft); font-size: .9375rem; line-height: 1.55; }
.pc__pin { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: .8125rem; font-weight: 600; }
.cards--feature .pc:first-child { grid-column: span 2; flex-direction: row; }
.cards--feature .pc:first-child .pc__img { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.cards--feature .pc:first-child .pc__body { flex: 1; justify-content: center; padding: clamp(24px, 3vw, 40px); }
.cards--feature .pc:first-child h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .cards { grid-template-columns: minmax(0, 1fr); } .cards--feature .pc:first-child { grid-column: auto; flex-direction: column; } .cards--feature .pc:first-child .pc__img { aspect-ratio: 16 / 10; min-height: 0; } }
.archive-desc { color: var(--night-soft); max-width: 60ch; }
.archive-desc p + p { margin-top: .8em; }
.empty { padding: 48px; border-radius: var(--r-xl); background: #fff; border: 1px dashed rgba(10,15,26,.18); text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.empty p { color: var(--day-soft); max-width: 46ch; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 560; font-size: .9375rem; }
.pager a { background: #fff; border: 1px solid var(--day-line); transition: border-color .2s ease; }
.pager a:hover { border-color: var(--day-ink); }
.pager [aria-current="page"] { background: var(--day-ink); color: #fff; }
.pager .gap { color: var(--day-soft); }
.pager__label { width: 100%; text-align: center; margin-top: 10px; font-size: var(--t-small); color: var(--day-soft); }
.search-form { display: flex; gap: 8px; width: min(100%, 560px); }
.search-form input { flex: 1; min-width: 0; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.06); color: var(--night-ink); font-size: 1.0625rem; }
.search-form input::placeholder { color: var(--night-soft); }
.search-form input:focus { outline: none; border-color: var(--mint); }
[data-theme="light"] .search-form input { background: #fff; border-color: var(--day-line); color: var(--day-ink); }
.author-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.author-head img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--night-line); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.socials a { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--night-line); text-decoration: none; font-size: var(--t-small); }

/* ---------- Content blocks for static pages ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); display: grid; gap: 10px; align-content: start; }
.fact b { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 560; letter-spacing: -.045em; }
.fact h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.fact p { color: var(--day-soft); font-size: .9375rem; }
[data-theme="dark"] .fact { background: var(--night-2); border-color: var(--night-line); }
[data-theme="dark"] .fact p { color: var(--night-soft); }
@media (max-width: 899px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }
.steps-list { counter-reset: n; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.steps-list li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--day-line); }
.steps-list li::before { counter-increment: n; content: counter(n); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--day-ink); color: #fff; font-family: var(--mono); font-size: .9375rem; }
.steps-list h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.steps-list p { color: var(--day-soft); }
.callout { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--night); color: var(--night-ink); display: grid; gap: 16px; }
.callout p { color: var(--night-soft); max-width: 60ch; }

/* ---------- Forms: declared forms and Ariana's contact form ---------- */
.form-card { background: #fff; color: var(--day-ink); border-radius: var(--r-xl); padding: clamp(20px, 2.4vw, 36px); box-shadow: 0 40px 80px -40px rgba(10,20,50,.25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.f { display: grid; gap: 7px; }
.f label, .f > span { font-size: .875rem; font-weight: 560; color: var(--day-ink); }
.f input, .f select, .f textarea, .ariana-contact input, .ariana-contact select, .ariana-contact textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--day-line); background: var(--day); color: var(--day-ink); font: inherit; font-size: 1rem; transition: border-color .2s ease, background-color .2s ease; }
.f textarea, .ariana-contact textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus, .ariana-contact input:focus, .ariana-contact textarea:focus { outline: none; border-color: var(--day-ink); background: #fff; }
.f em, .ariana-contact__error { font-style: normal; font-size: .8125rem; color: var(--bad); }
.f.is-invalid input, .f.is-invalid select, .f.is-invalid textarea, .ariana-contact__field--invalid input, .ariana-contact__field--invalid textarea { border-color: var(--bad); }
.notice { padding: 14px 18px; border-radius: 14px; font-weight: 500; }
.notice--ok, .ariana-contact__sent { padding: 14px 18px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.notice--bad, .ariana-contact__error--summary { padding: 14px 18px; border-radius: 14px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.ariana-contact { display: grid; gap: 14px; }
.ariana-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ariana-contact__field { display: grid; gap: 7px; }
.ariana-contact label { font-size: .875rem; font-weight: 560; }
.ariana-contact__submit, .ariana-contact button[type="submit"] { justify-self: start; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s ease; }
.ariana-contact__submit:hover, .ariana-contact button[type="submit"]:hover { background: var(--mint-press); }
.ariana-contact__submit:active, .ariana-contact button[type="submit"]:active { transform: scale(.97); }
@media (max-width: 599px) { .form-grid, .ariana-contact__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Skill pages hosted by the theme ---------- */
.skill-main { background: var(--day); color: var(--day-ink); }
.skill-main .sk-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--day-line); padding: clamp(20px, 2vw, 32px); }
.skill-main .sk-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4em; border: 0; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.skill-main .sk-notice { padding: 14px 18px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.skill-main .sk-error { padding: 14px 18px; border-radius: 14px; background: var(--bad-bg); color: var(--bad); }

/* Print */
@media print {
  .hdr, .sheet, .streams, .stream-labels, .article__aside, .prevnext, .nav-card { display: none !important; }
  body, [data-theme] { background: #fff !important; color: #000 !important; }
  .phero, .post-hero { padding-top: 24px; }
}
.card-s--pref { padding: 0; overflow: hidden; }
.card-s--pref .ariana-preferred-sources { border: 0; border-radius: 0; }
.brand__logo { height: 28px; width: auto; }
.ftr__lead { display: grid; gap: 20px; align-content: start; }
.ftr__mail { font-size: var(--t-lead); }
.glist__empty { padding: 28px 0; color: var(--day-soft); }
