@font-face { font-family: "Besley"; src: url(/fonts/besley-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Besley"; src: url(/fonts/besley-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url(/fonts/commissioner-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url(/fonts/commissioner-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Ubuntu Sans Mono"; src: url(/fonts/ubuntu-sans-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* base */
  --ink: #2f4858; --ink-2: #233846; --ink-3: #1b2d39;
  --night: #121c25; --twilight: #1c2b39; --dusk: #3b2f48; --mulberry: #6e3d5d;
  --paper: #f5f1e8; --paper-2: #ece5d5; --sand: #efe0c4; --morning: #e3ebe4;
  --mist: #9fb3be; --muted: #566b78;
  --line: rgba(47, 72, 88, 0.16); --line-2: rgba(245, 241, 232, 0.16);
  --red: #b4532a; --green: #3f7a5a;
  /* tier ramp: nest -> low sky -> open air -> high altitude. Light tones for dark grounds, deep tones on paper. */
  --amber: #f6ae2d; --amber-2: #d98f0f;
  --t1: #f6ae2d; --t2: #e07a5f; --t3: #6fae9c; --t4: #8fc0d8;
  --t1d: #8f5c08; --t2d: #a9442b; --t3d: #2f6b5b; --t4d: #2b6582;
  --ramp: linear-gradient(90deg, var(--t1), var(--t2) 35%, var(--t3) 68%, var(--t4));
  --serif: "Besley", Georgia, serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
.t1 { --tc: var(--t1); --tcd: var(--t1d); } .t2 { --tc: var(--t2); --tcd: var(--t2d); }
.t3 { --tc: var(--t3); --tcd: var(--t3d); } .t4 { --tc: var(--t4); --tcd: var(--t4d); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--night); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.3rem); }
h1 em { font-style: italic; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; position: relative; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--eb, linear-gradient(90deg, var(--t1), var(--t2))); flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-amber { background: var(--amber); color: var(--ink-3); box-shadow: 0 1px 0 rgba(0,0,0,.06), inset 0 -2px 0 rgba(0,0,0,.1), 0 10px 24px -12px rgba(246,174,45,.7); }
.btn-amber:hover { background: #f8b947; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: rgba(47,72,88,.06); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* header: night sky on every page */
.top { position: sticky; top: 0; z-index: 20; background: rgba(18,28,37,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; transition: opacity .3s; background: var(--ramp); transform: scaleX(var(--prog, 0)); transform-origin: left; }
.top.scrolled::after { opacity: 1; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.32rem/1 var(--serif); min-height: 44px; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(245,241,232,.18); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .96rem; min-height: 44px; display: inline-flex; align-items: center; position: relative; color: #dde4e7; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top .btn-ink { background: var(--amber); color: var(--ink-3); }
.top .btn-ink:hover { background: #f8b947; }

/* hero: dawn. The headline sits in open sky; a pair of wings, seen from below, opens over the horizon. */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; color: var(--paper); isolation: isolate;
  background: linear-gradient(180deg, #121c25 0%, #1d2d3c 18%, #33344c 36%, #5e3b58 52%, #9c5059 66%, #d97c55 80%, #f0a95c 92%, #f4b867 100%); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-stars { position: absolute; inset: 0 0 auto; width: 100%; height: 46%; }
.sky-stars circle { fill: #f5f1e8; }
.flock { position: absolute; top: 9%; left: 0; width: 220px; height: 90px; fill: none; stroke: #f5f1e8; stroke-opacity: .5; stroke-width: 2; stroke-linecap: round;
  animation: fly 80s linear infinite; will-change: transform; }
.bird { transform-box: fill-box; transform-origin: center; animation: flap 1.7s ease-in-out infinite; }
.bird:nth-child(2) { animation-delay: -.25s; } .bird:nth-child(3) { animation-delay: -.5s; } .bird:nth-child(4) { animation-delay: -.75s; }
.bird:nth-child(5) { animation-delay: -1s; } .bird:nth-child(6) { animation-delay: -1.25s; } .bird:nth-child(7) { animation-delay: -1.5s; }
@keyframes fly { from { transform: translate3d(-240px, 50px, 0); } to { transform: translate3d(calc(100vw + 40px), -20px, 0); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero .eyebrow { color: #c9d3da; --eb: var(--ramp); }
.hero h1 { color: #fbf7ef; text-shadow: 0 2px 30px rgba(18,28,37,.35); max-width: 22ch; }
.hero h1 em { color: #ffc867; }
.lede { font-size: 1.14rem; color: #d7dfe4; max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.hero .btn-ghost { border-color: rgba(245,241,232,.55); color: var(--paper); background: rgba(18,28,37,.35); }
.hero .btn-ghost:hover { background: rgba(18,28,37,.5); border-color: var(--paper); }

.fan:not(.t2):not(.t3):not(.t4) { --tc: var(--t1); }
.fan { margin: -70px 0 0; position: relative; }
.fan-stage { position: relative; height: clamp(250px, 31vw, 450px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fan-stage.dragging { cursor: grabbing; }
.sun { position: absolute; left: 50%; bottom: -260px; width: 1100px; height: 560px; margin-left: -550px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,226,160,.85), rgba(246,174,45,.4) 40%, rgba(224,122,95,0) 100%); }
#wing { position: absolute; inset: 0; width: 100%; height: 100%; }
#wing .grid path { fill: none; stroke: rgba(255,248,236,.32); stroke-width: 1.2; stroke-dasharray: 2 8; }
#wing .pivot { fill: #ffe2a0; stroke: #3b2f48; stroke-width: 4; }
#wing .body { fill: #3b2f48; }
.ticks line { stroke-width: 4; stroke-linecap: round; }
.ticks text { font: 400 19px var(--mono); paint-order: stroke; stroke: rgba(59,47,72,.55); stroke-width: 4px; }
.ticks g { opacity: .45; transition: opacity .3s; }
.ticks g.on { opacity: 1; }
.feather, .covert { transform-box: view-box; transition: transform .55s var(--ease), opacity .4s; will-change: transform; }
.feather path.vane { stroke: #2a2238; stroke-width: 1.4; }
.feather path.rachis { fill: none; stroke: rgba(42,34,56,.4); stroke-width: 1.6; }
.covert path { stroke: #2a2238; stroke-width: 1.2; stroke-opacity: .7; }
.feather.off, .covert.off { opacity: 0; }

.instr { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px 30px; align-items: end; color: var(--paper);
  margin: 0 auto; max-width: 980px; padding: 16px 22px 14px; border-radius: 20px;
  background: linear-gradient(180deg, #1b2633, #2b2a40); box-shadow: 0 30px 50px -30px rgba(59,47,72,.9), 0 0 0 1px rgba(245,241,232,.08); }
.instr-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font: 600 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.wc-tier { letter-spacing: .02em; text-transform: none; font-size: .86rem; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
  background: color-mix(in srgb, var(--tc) 14%, transparent); padding: 5px 10px; border-radius: 999px; white-space: nowrap; transition: color .3s, border-color .3s, background-color .3s; }
.field-inline { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; color: #d7dfe3; }
.field-inline output { color: var(--paper); font-size: 1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 5px;
  background: linear-gradient(to right, transparent var(--p, 0%), #2a3a4c var(--p, 0%)), var(--track, var(--amber)); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 5px; background: #2a3a4c; }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--track, var(--amber)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 3px solid var(--tc, var(--amber)); margin-top: -10px; transition: transform .15s, border-color .3s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--tc, var(--amber)); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
#calc-allow { --track: linear-gradient(90deg, var(--t1) 0%, var(--t2) 5%, var(--t3) 20%, var(--t4) 60%); }
#calc-rate { --track: linear-gradient(90deg, #f3cf8a, var(--t2)); --tc: var(--t2); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 4px; background: var(--line-2); border-radius: 12px; overflow: hidden; }
.calc-out div { background: #142029; padding: 8px 12px; position: relative; }
.calc-out div::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--c, transparent); }
.calc-out div:nth-child(1) { --c: var(--t2); } .calc-out div:nth-child(2) { --c: var(--t1); } .calc-out div:nth-child(3) { --c: var(--t4); }
.calc-out dt { font-size: .74rem; color: var(--mist); line-height: 1.3; }
.calc-out dd { margin: 2px 0 0; font-size: 1.12rem; }
.amber { color: var(--amber); }
.calc-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: .86rem; color: #c9d4da; min-height: 1.5em; }
.hills { display: block; width: 100%; height: 90px; margin-top: 34px; }
.hills .h1 { fill: #6e3d5d; opacity: .28; }
.hint-drag { text-transform: none; letter-spacing: 0; font: 400 .8rem/1 var(--mono); color: #c9a0b8; margin-left: 4px; }
.hills .h3 { fill: var(--morning); }

/* the journey: one sky from morning to late afternoon, one dotted route through it */
#home { position: relative; }
.journey { background: linear-gradient(180deg, var(--morning) 0%, #e9eee6 16%, #f3efe4 38%, var(--paper) 52%, #f3e8d2 76%, #efdcc0 100%); }
.journey > section { position: relative; }
.route { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; overflow: visible; }
.route-dots { fill: none; stroke: rgba(47,72,88,.38); stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; }
.route-trail { fill: none; stroke: url(#trailg); stroke-width: 2.5; stroke-linecap: round; }
.route-bird path { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wp { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.wp-b { top: auto; bottom: 0; }
.wp-c { left: 50%; top: auto; bottom: 16px; }
.wp-m { display: none; }

/* how: four waypoints on the line */
.how { padding: 84px 0 64px; }
.how .eyebrow { --eb: linear-gradient(90deg, var(--t3), var(--t4)); color: #4b6672; }
.how-in { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.how-head { position: sticky; top: 110px; }
.how-head p:not(.eyebrow) { color: #46606f; max-width: 26rem; }
.legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 52px; }
.leg { position: relative; padding-left: 62px; max-width: 34rem; }
.leg:nth-child(even) { margin-left: 64px; }
.node { position: absolute; left: 8px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fbf9f3; border: 3px solid var(--tc);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--tc) 20%, transparent); }
.node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--tc); }
.leg-n { display: flex; align-items: center; gap: 10px; color: var(--tcd); font-size: .85rem; margin: 0 0 6px; letter-spacing: .06em; }
.leg-n svg { width: 26px; height: 26px; fill: none; stroke: var(--tcd); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.leg h3 { font-size: 1.35rem; margin-bottom: .3em; }
.leg p:last-child { color: #46606f; margin: 0; }

/* tiers: a night window, one climb from left to right */
.tiers { padding: 34px 0 64px; }
.altitude { position: relative; overflow: hidden; isolation: isolate; color: var(--paper); border-radius: 28px; padding: 56px 52px 40px;
  display: grid; grid-template-columns: 4fr 7fr; gap: 52px; align-items: end;
  background: radial-gradient(70% 60% at 85% 112%, rgba(224,122,95,.32), transparent 70%),
              radial-gradient(50% 50% at 8% -10%, rgba(143,192,216,.2), transparent 70%),
              linear-gradient(180deg, #121c25 0%, #1a2a38 55%, #28344a 100%);
  box-shadow: 0 40px 60px -40px rgba(18,28,37,.7); }
.starmap { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.starmap circle { fill: #e9eef0; }
.starmap path { fill: none; stroke: rgba(143,192,216,.24); stroke-width: 1; stroke-dasharray: 3 5; }
.tiers .eyebrow { color: var(--mist); --eb: var(--ramp); }
.tiers-copy p:not(.eyebrow) { color: #cdd8de; max-width: 30rem; margin: 0; }
.climb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; height: 300px; align-items: end;
  border-bottom: 1px solid rgba(245,241,232,.3); }
.stage { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.st-label { padding: 0 2px 8px; opacity: 0; transition: opacity .6s var(--ease); }
.st-name { display: block; font: 600 clamp(.74rem, 3.4vw, 1.08rem)/1.15 var(--serif); color: var(--tc); overflow-wrap: anywhere; }
.st-cap { display: block; font-size: clamp(.86rem, 3.6vw, 1.1rem); color: var(--paper); line-height: 1.25; }
.st-cap small { display: block; font-size: .7rem; color: var(--mist); }
.st-col { position: relative; height: calc((100% - 74px) * var(--h, .5)); border-top: 3px solid var(--tc); border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 46%, transparent), color-mix(in srgb, var(--tc) 6%, transparent));
  transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease) var(--d, 0s); }
.climb.in .st-col { transform: none; }
.climb.in .st-label { opacity: 1; }
.st-wk { position: absolute; left: 6px; bottom: 5px; font-size: .74rem; color: rgba(245,241,232,.82); }
.climb-axis { display: flex; justify-content: space-between; font-size: .76rem; color: var(--mist); margin: 8px 0 0; }
.reset { display: flex; gap: 12px; align-items: center; margin: 16px 0 0; font-size: .92rem; color: #cdd8de; }
.reset-line { flex: none; width: 40px; height: 14px; border: 2px dashed var(--t2); border-top: 0; border-radius: 0 0 12px 12px; position: relative; }
.reset-line::after { content: ""; position: absolute; left: -6px; top: -4px; border: 5px solid transparent; border-bottom: 7px solid var(--t2); border-top: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* split: a short aside on open paper */
.split { padding: 56px 0 64px; }
.split .eyebrow { --eb: linear-gradient(90deg, var(--t1), var(--t2)); color: #7a5a2c; }
.split-in { display: grid; grid-template-columns: auto minmax(0, 34rem); gap: 20px 52px; align-items: start; justify-content: center; }
.split-big { margin: 0; font: 600 clamp(4.6rem, 11vw, 8.6rem)/.88 var(--serif); letter-spacing: -.03em; }
.split-big span { background: linear-gradient(165deg, #e39a1c 10%, #c85a3d 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split-big small { display: block; margin-top: 12px; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #7a5a2c; }
.split-copy p:not(.eyebrow) { color: #5b5240; }
.split-viz { margin-top: 18px; }
.bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 3px; }
.bar span { display: block; height: 100%; transform-origin: left; border-radius: 8px; }
.bar-b { background: linear-gradient(90deg, var(--t1) 0%, #f0943f 45%, var(--t2) 78%, #c4636a 100%); }
.bar-p { background: linear-gradient(180deg, var(--ink), var(--dusk)); }
.bar-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: .95rem; }
.bar-legend b { font-weight: 400; margin-left: 4px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sw-b { background: linear-gradient(90deg, var(--t1), var(--t2)); } .sw-p { background: var(--ink); }

/* agents: the register, drawn like an atlas of contour lines */
.home-agents { padding: 64px 0 56px; }
.home-agents .eyebrow { --eb: linear-gradient(90deg, var(--t3), var(--t3d)); color: #3f6359; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.agent-card {
  --tc: var(--t1); --tcd: var(--t1d);
  display: grid; gap: 12px; padding: 20px 20px 20px 24px; border-radius: var(--r); background: #fbf9f4; border: 1px solid var(--line);
  text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.agent-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.agent-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(27,45,57,.4); border-color: color-mix(in srgb, var(--tcd) 45%, transparent); }
.ac-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ac-name { font: 600 1.25rem/1.2 var(--serif); margin: 0; overflow-wrap: anywhere; }
.ac-tag { color: #46606f; font-size: .95rem; margin: 0; }
.ac-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.ac-nums div { min-width: 0; }
.ac-nums dt { font-size: .74rem; color: var(--muted); }
.ac-nums dd { margin: 0; font-family: var(--mono); font-size: 1rem; }
.pill { --tc: var(--t1); --tcd: var(--t1d); display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--sans); padding: 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--tc) 26%, transparent); color: var(--tcd); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 1.5px var(--tcd); }
.pill.dim { background: rgba(47,72,88,.1); color: var(--ink); }
.pill.dim::before { background: var(--mist); box-shadow: none; }
.empty {
  grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; padding: 34px 28px; border: 1.5px dashed rgba(47,107,91,.38);
  border-radius: var(--r); background: rgba(251,249,244,.75);
}
.empty svg { width: 64px; height: 48px; }
.empty h3 { margin: 0; }
.empty p { margin: 0; color: #46606f; max-width: 34rem; }

/* faq */
.faq { padding: 56px 0 40px; }
.faq .eyebrow { --eb: linear-gradient(90deg, var(--mulberry), var(--t2)); }
.faq-in { display: grid; grid-template-columns: .6fr 1.4fr; gap: 48px; }
.faq-list details { border-top: 1px solid var(--line); position: relative; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list details::before { content: ""; position: absolute; left: -16px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c); transform: scaleY(0); transition: transform .3s var(--ease); }
.faq-list details[open]::before { transform: scaleY(1); }
.faq-list details:nth-child(4n+1) { --c: var(--t1); } .faq-list details:nth-child(4n+2) { --c: var(--t2); }
.faq-list details:nth-child(4n+3) { --c: var(--t3); } .faq-list details:nth-child(4n+4) { --c: var(--t4d); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem; min-height: 44px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--mulberry); border-bottom: 2px solid var(--mulberry); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-list details p { color: #46606f; padding-right: 30px; }

/* landing: the route ends at a perch */
.landing { padding: 40px 0 96px; }
.landing-in { display: grid; grid-template-columns: auto minmax(0, 36rem); gap: 26px; align-items: center; justify-content: center; }
.perch { display: block; width: 64px; height: 40px; }
.perch svg { width: 64px; height: 40px; fill: none; stroke: #6e3d5d; stroke-width: 2.4; stroke-linecap: round; }
.landing h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; max-width: none; }
.landing p { color: #5b5240; margin: 0 0 6px; }
.land-link { color: #8f3f2a; }

.foot { background: var(--night); color: #cdd8de; padding: 34px 0; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ramp); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.brand-foot { color: var(--paper); font-size: 1.15rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.foot-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--paper); }
.x-link { width: 44px; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; height: 44px; }

/* app views */
.page { padding: 40px 0 90px; min-height: 60vh; position: relative;
  background:
    repeating-radial-gradient(circle at 96% 0%, transparent 0 30px, rgba(47,107,91,.07) 30px 31px),
    linear-gradient(180deg, var(--morning) 0, #ecefe6 220px, var(--paper) 520px); }
.page::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, rgba(110,61,93,.12), transparent); }
.page-head .eyebrow { --eb: var(--ramp); }
.page-head { margin-bottom: 28px; }
.page-head p { color: #46606f; max-width: 38rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.input, .textarea, select.input {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fbf9f4; border: 1.5px solid rgba(47,72,88,.28);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(246,174,45,.45); }
.textarea { min-height: 120px; resize: vertical; }
.search { max-width: 360px; }

.agent-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 600; min-height: 44px; margin-bottom: 8px; }
.ah-name { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.ah-name h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; overflow-wrap: anywhere; }
.ah-tag { font-size: 1.15rem; color: #3e5665; margin: 12px 0 18px; }
.panel { background: #fbf9f4; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 12px; max-width: none; }
.panel.ink { color: var(--paper); border-color: rgba(245,241,232,.08); position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 100% 100%, rgba(224,122,95,.26), transparent 70%), linear-gradient(165deg, #172430, #20344a 55%, #33304a); }
.panel.ink::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tc, var(--ramp)); }
.panel.ink .kv dt { color: var(--mist); }
.panel.ink p { color: #cdd8de; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 26px 0; }
.stats div { background: #fbf9f4; padding: 16px 18px; min-width: 0; position: relative; }
.stats div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.stats div:nth-child(1) { --c: var(--t1); } .stats div:nth-child(2) { --c: var(--t2); } .stats div:nth-child(3) { --c: var(--t3); } .stats div:nth-child(4) { --c: var(--t4); }
.stats dt { font-size: .8rem; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 400 1.4rem/1.2 var(--mono); overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.stack { display: grid; gap: 24px; min-width: 0; }
.kv { display: grid; gap: 12px; margin: 0; }
.kv dt { font-size: .8rem; color: var(--muted); }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.addr { font-family: var(--mono); font-size: .9rem; word-break: break-all; }
.progress { margin-top: 14px; }
.progress-track { display: flex; gap: 4px; }
.progress-track i { flex: 1; height: 10px; border-radius: 3px; background: rgba(245,241,232,.15); transform-origin: left; }
.progress-track i.on { background: var(--tc, var(--amber)); }
.progress p { margin: 10px 0 0; font-size: .9rem; }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.ledger li:first-child { border-top: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.dot.repaid { background: var(--green); } .dot.late { background: var(--amber); } .dot.default { background: var(--red); }
.lg-main b { font-weight: 600; }
.lg-main small { display: block; color: var(--muted); font-size: .85rem; }
.lg-amt { font-family: var(--mono); text-align: right; white-space: nowrap; }
.lg-amt small { display: block; color: var(--muted); font-size: .78rem; }

/* form */
.form-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.form legend { font: 600 1.2rem/1.2 var(--serif); margin-bottom: 4px; padding: 0; }
.fld { display: grid; gap: 6px; }
.fld label { font-weight: 600; font-size: .95rem; }
.fld .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.fld .err { font-size: .86rem; color: var(--red); margin: 0; font-weight: 600; }
.fld.bad .input, .fld.bad .textarea { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-side.panel { position: sticky; top: 90px; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin: 0; }
.form-msg.bad { background: rgba(180,83,42,.12); color: var(--red); }
.done { text-align: left; }

.split-line { margin: 0; font-size: .9rem; color: var(--muted); }
.notfound { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 80px 0; }

/* reveal motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .js-off .reveal { opacity: 1; transform: none; }
.bar-b, .bar-p { transition: transform 1s var(--ease); }
.split-viz:not(.in) .bar-b, .split-viz:not(.in) .bar-p { transform: scaleX(0); }

@media (max-width: 960px) {
  .faq-in, .agent-hero, .two, .form-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-in { grid-template-columns: 1fr; gap: 34px; }
  .how-head { position: static; }
  .wp-m { display: block; }
  .altitude { grid-template-columns: 1fr; gap: 34px; padding: 44px 32px 32px; }
  .form-side.panel { position: relative; top: 0; }
  .two > .stack:last-child { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .instr { grid-template-columns: 1fr 1fr; }
  .calc-out { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 26px; }
  .nav { gap: 14px; }
  .nav-how { display: none !important; }
  .brand span { font-size: 1.2rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .fan { margin-top: -18px; }
  .fan-stage { height: 280px; }
  .sun { width: 640px; height: 400px; margin-left: -320px; bottom: -200px; }
  .instr { grid-template-columns: 1fr; padding: 14px 14px 12px; gap: 4px; }
  .hint-drag { display: none; }
  .calc-out { margin-top: 4px; }
  .calc-out dd { font-size: 1rem; }
  .calc-out div { padding: 8px 10px; }
  .hills { height: 64px; margin-top: 26px; }
  .how { padding: 56px 0 44px; }
  .legs { gap: 36px; }
  .leg { padding-left: 46px; }
  .leg:nth-child(even) { margin-left: 16px; }
  .node { left: 2px; width: 24px; height: 24px; }
  .node::after { inset: 5px; }
  .tiers { padding: 24px 0 44px; }
  .altitude { padding: 34px 14px 24px; border-radius: 22px; gap: 26px; }
  .tiers-copy { padding: 0 6px; }
  .climb { height: 250px; gap: 3px; }
  .st-wk { left: 4px; font-size: .68rem; }
  .reset { padding: 0 6px; font-size: .88rem; }
  .split { padding: 44px 0 48px; }
  .split-in { grid-template-columns: 1fr; gap: 22px; }
  .home-agents { padding: 48px 0 40px; }
  .faq { padding: 40px 0 28px; }
  .faq-list details::before { left: -10px; }
  .landing { padding: 28px 0 72px; }
  .landing-in { grid-template-columns: 1fr; gap: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; }
  .ledger li { grid-template-columns: 14px 1fr; }
  .lg-amt { grid-column: 2; text-align: left; }
  .stats dd { font-size: 1.15rem; }
}
@media (max-width: 340px) {
  .nav a:not(.btn) { display: none; }
  .calc-out { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .flock, .bird { animation: none !important; }
  .flock { transform: translate3d(60vw, 10px, 0); }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .st-col { transform: none !important; } .st-label { opacity: 1 !important; }
  .split-viz .bar-b, .split-viz .bar-p { transform: none !important; }
}

.backing { display: grid; gap: 12px; margin-top: 4px; }
.backing-row { display: flex; flex-wrap: wrap; gap: 8px; }
.backing .btn { flex: 1 1 140px; }
