:root {
  color-scheme: dark;
  --paper: #090f12;
  --sheet: #0f181b;
  --ink: #f0f3e9;
  --muted: #aab9b3;
  --line: #293d39;
  --soft: #172623;
  --lime: #c5ff69;
  --deep: #111d1d;
  background: var(--paper);
  color: var(--ink);
}
a { color: var(--lime); }
a:focus-visible,button:focus-visible,pre:focus-visible { outline-color: var(--lime); }
.brandmark b { color: var(--lime); }
.wrap { width: min(calc(100% - 110px), 1320px); margin-inline: auto; }
.mast,.site-footer { border-bottom: 1px solid var(--line); }
.topbar,.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar nav,.footer-inner nav { display: flex; align-items: center; gap: clamp(.8rem,3vw,2.6rem); }
.topbar nav a,.footer-inner nav a { color: var(--ink); font-size: .89rem; font-weight: 650; }
.topbar nav a:hover,.footer-inner nav a:hover { color: var(--lime); }
.topbar .nav-api { display: flex; align-items: center; gap: .35rem; border: 1px solid var(--line); padding: .45rem .72rem; }
.topbar [aria-current] { border-color: var(--lime); }
h1,h2,h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .93; }
.hero { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1fr); align-items: center; isolation: isolate; min-height: min(650px, calc(100svh - 88px)); padding-block: .9rem 1.4rem; }
.hero-copy { z-index: 1; padding-block: 1.8rem 2.3rem; }
.hero h1 { font-size: clamp(4.6rem,8.8vw,8.8rem); letter-spacing: -.022em; width: max-content; margin-bottom: 1.2rem; }
.hero h1 span,.hero h1 em { display: block; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p,.document-head p { color: var(--muted); max-width: 36ch; font-size: clamp(1rem,1.5vw,1.22rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.35rem; margin-top: 1.55rem; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .82rem 1rem; font-size: .88rem; font-weight: 780; background: var(--lime); color: #10190e; }
.action:hover { background: #ddffab; color: #10190e; }
.action span { line-height: 1; font-size: 1.12rem; }
.inline-link { color: var(--ink); font-size: .88rem; font-weight: 680; }
.inline-link:hover { color: var(--lime); }
.hero-stage { position: relative; margin: 0 0 0 -11%; min-width: 0; }
.hero-viz { display: block; width: 100%; max-height: min(620px,70svh); overflow: visible; mask-image: linear-gradient(90deg,#0007,black 26%); }
.hero-stage figcaption { position: absolute; right: 3%; bottom: 11.5%; display: flex; align-items: center; gap: .7rem; border: 1px solid #42654f; background: #0c1718; }
.hero-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .12rem .8rem; align-items: center;
  padding: .72rem .9rem; color: var(--ink); }
.hero-caption span { color: var(--muted); font-size: .72rem; }
.hero-caption strong { grid-column: 1; font: 700 1rem var(--mono); letter-spacing: -.035em; white-space: nowrap; }
.hero-caption b,.hero-caption .material-icon { color: var(--lime); }
.hero-caption .material-icon { grid-column: 2; grid-row: 1 / span 2; }
.hero-stage figcaption:has(.hero-caption:hover) { background: #173126; border-color: #83bd62; }
h2 { font-size: clamp(3rem,6.5vw,6.25rem); }
.story-section { padding-block: clamp(3rem,7vw,7rem) clamp(2.2rem,4.8vw,5rem); border-top: 1px solid var(--line); background: radial-gradient(ellipse at 90% 64%, #142e25 0%, transparent 48%),var(--sheet); }
.story-heading { display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: 1rem; padding-bottom: 1.65rem; border-bottom: 1px solid var(--line); }
.story-heading p,.chapter-copy > p:last-child,.api-grid p { color: var(--muted); max-width: 39ch; }
.story-grid { position: relative; }
.chapter { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: center; gap: clamp(1.3rem,3vw,3.8rem); min-height: clamp(340px,43vw,515px); padding-block: 1.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.3rem; }
.chapter h3 { max-width: 13ch; font-size: clamp(2.65rem,5.7vw,5.15rem); margin: .55rem 0 .85rem; }
.chapter-number { color: var(--lime); font: .86rem/1 var(--mono); }
.chapter-number span { padding-inline-start: .35em; color: #729583; }
.chapter-art { align-self: center; min-width: 0; border: 1px solid #355147; background: #0b1518; }
.scene-label { display: flex; gap: .55rem; align-items: center; min-height: 42px; padding: .45rem .8rem; border-bottom: 1px solid #355147; color: #b5c8bd; font-size: .77rem; }
.scene-label::before { content: ""; width: .42rem; height: .42rem; background: var(--lime); }
.story-svg { width: 100%; aspect-ratio: 560/350; display: block; }
.viz-grid { stroke: #2b4940; opacity: .43; fill: none; }
.viz-display { fill: #152624; stroke: #42635a; }
.viz-result { fill: #273c25; stroke: #98cf66; }
.viz-route,.viz-flow { fill: none; stroke: #496c62; stroke-width: 2.5; }
.viz-flow { stroke: #c5ff69; stroke-linecap: round; stroke-dasharray: 1; }
.viz-label,.viz-coordinate { fill: #c3d6ca; font: 17px "Avenir Next", sans-serif; }
.viz-coordinate { fill: #b8eea5; font-size: 15px; }
.viz-code,.viz-number,.viz-short { fill: #e6f1e7; font: 18px var(--mono); }
.viz-short,.viz-number { fill: #d2ff85; font-weight: 700; font-size: 25px; }
.viz-code.light { fill: #d2ff85; font-size: 15px; }
.viz-track { fill: #263e37; }
.viz-accent,.viz-bar { fill: #c5ff69; }
.viz-bar.mint { fill: #7de2a4; }
.viz-bar.teal { fill: #60bda6; }
.viz-bar { transform-box: fill-box; transform-origin: left center; }
[hidden] { display: none !important; }
.story-grid[data-pinned] { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: clamp(1.3rem,3vw,3.8rem); }
.story-grid[data-pinned] .chapter { display: flex; min-height: max(370px,56vh); }
.story-stage { position: sticky; top: max(20px,calc((100svh - 510px)/2)); align-self: start; display: grid; margin-block: 1.5rem 2rem; }
.story-stage .chapter-art { grid-area: 1/1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .32s var(--ease),transform .42s var(--ease),visibility .32s; }
.story-stage .chapter-art[data-active] { opacity: 1; visibility: visible; transform: none; z-index: 1; }
.try-link { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .55rem 1rem; padding-top: 1.2rem; color: var(--muted); }
.try-link a { display: inline-flex; gap: .45rem; align-items: center; font: 700 .85rem var(--mono); padding: .65rem .8rem; border: 1px solid #436650; }
.try-link a:hover { background: var(--soft); }
.use-section,.faq { padding-block: clamp(3rem,7vw,6.5rem); }
.use-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.use-grid article { padding: 1.45rem 1.4rem 1.5rem 0; min-width: 0; }
.use-grid article + article { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.use-grid svg { color: var(--lime); width: 1.5rem; height: 1.5rem; margin-bottom: .65rem; }
.use-grid h3 { font-size: clamp(1.55rem,2.5vw,2rem); margin-bottom: .5rem; }
.use-grid p,.faq-list p { color: var(--muted); max-width: 40ch; }
.product-grid article { border-bottom: 1px solid var(--line); }
.product-grid article:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.product-grid h3 a { color: inherit; }
.product-grid h3 a:hover { color: var(--lime); }
.faq { display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1fr); gap: clamp(1.5rem,5vw,5rem); align-items: start; }
.faq .inline-link { display: inline-block; margin-top: .9rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 650; padding: .95rem .25rem; }
.faq-list summary::marker { color: var(--lime); }
.faq-list summary:hover,.faq-list details[open] summary { color: var(--lime); }
.faq-list summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.faq-list details p { padding: 0 .2rem 1rem 1.35rem; }
.api-band { background: var(--sheet); padding-block: clamp(3rem,7vw,7rem); border-top: 1px solid var(--line); }
.api-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,5vw,5rem); }
.api-grid p { margin-block: .85rem 1.2rem; }
.code-block { min-width: 0; background: #0e191a; color: #e1ece5; border: 1px solid #3b584d; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 46px; padding: .42rem .85rem; border-bottom: 1px solid #3b584d; color: #ccfa9c; font: .78rem var(--mono); }
.copy { padding: .3rem .55rem; border: 1px solid #4e6e5d; color: #e1ece5; background: #20332e; font: inherit; }
.copy:hover { border-color: var(--lime); }
pre { overflow-x: auto; padding: .88rem; font-size: .85rem; line-height: 1.75; }
.site-footer { border-top: 1px solid var(--line); }
.document { padding-block: clamp(2.5rem,6vw,5.5rem); }
.document-head { display: flex; gap: 1rem; align-items: end; justify-content: space-between; padding-bottom: 1.55rem; border-bottom: 1px solid var(--line); }
.document-head h1 { font-size: clamp(4rem,9.5vw,8.5rem); color: var(--lime); margin-bottom: .65rem; }
.document-head > code { padding: .35rem .5rem; background: var(--soft); overflow-wrap: anywhere; }
.document-grid { display: grid; grid-template-columns: minmax(170px,.3fr) minmax(0,1fr); gap: clamp(1.5rem,5vw,5rem); }
.doc-nav { display: flex; flex-direction: column; position: sticky; top: 1rem; padding-block: 1.4rem; align-self: start; }
.doc-nav a { color: var(--ink); padding: .52rem .6rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.doc-nav a:hover,.doc-nav a[aria-current] { background: var(--soft); color: var(--lime); }
.doc-body section { scroll-margin-top: 1.1rem; border-bottom: 1px solid var(--line); padding-block: clamp(1.65rem,3.8vw,3rem); }
.doc-body h2 { font-size: clamp(2.2rem,5vw,4.15rem); }
.doc-body p,.doc-body ol,.doc-body .code-block,.route-list { margin-top: 1rem; }
.doc-body p,.doc-body li,.route-list dd { color: var(--muted); }
.doc-body :not(pre) > code { overflow-wrap: anywhere; }
.route-list { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1fr); background: var(--sheet); }
.route-list dt,.route-list dd { margin: 0; border-bottom: 1px solid var(--line); padding: .58rem .76rem; }
.route-list dt { color: var(--lime); font: .86rem/1.5 var(--mono); overflow-wrap: anywhere; }
.privacy .doc-body p { max-width: 65ch; }
.public-error { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); align-items: center;
  gap: clamp(1.5rem,6vw,6rem); min-height: 65vh; }
.error-copy h1 { font-size: clamp(3.35rem,6.5vw,6.4rem); color: var(--ink); letter-spacing: -.014em; }
.error-copy p { color: var(--muted); max-width: 45ch; margin-top: .6rem; }
.error-copy .error-status { display: inline-block; color: var(--lime); font: .85rem var(--mono);
  padding: .34rem .58rem; border: 1px solid #45664d; margin: 0 0 1rem; }
.error-copy .action { margin-top: 1.25rem; }
.report-form { display: grid; gap: 1rem; max-width: 24rem; }
.report-form label { display: grid; gap: .4rem; }
.report-form :is(input, select) {
  border: 1px solid #4a645a; background: #101b1c; color: var(--ink); padding: .65rem .75rem; font: inherit;
}
.report-form .action { justify-self: start; margin-top: 0; border: 0; cursor: pointer; }
.error-art { border: 1px solid #304a40; background: radial-gradient(ellipse,#122d23,#0c1618 70%); }

@media(max-width: 1020px) {
  .wrap { width: calc(100% - 54px); }
  .hero { min-height: 470px; }
  .hero h1 { font-size: clamp(4.15rem,9vw,6rem); }
}
@media(max-width: 820px) {
  .wrap { width: calc(100% - 32px); }
  .hero { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 0 0 1rem; }
  .hero-copy { padding: 2rem 0 0; }
  .hero h1 { font-size: clamp(3.65rem,11.4vw,6.7rem); width: auto; }
  .hero-stage { margin: -.25rem -.3rem -.45rem; }
  .hero-viz { width: min(100%,540px); margin-inline: auto; }
  .hero-stage figcaption { right: 3%; bottom: 6%; }
  .story-heading,.chapter,.api-grid,.document-grid,.faq,.public-error { grid-template-columns: minmax(0,1fr); }
  .chapter { min-height: 0; padding-block: 1.4rem 1.7rem; }
  .chapter h3 { max-width: none; }
  .use-grid { grid-template-columns: minmax(0,1fr); }
  .use-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .document-head { display: grid; justify-content: start; }
  .doc-nav { position: static; padding-bottom: 0; }
  .document-grid { gap: 0; }
  .route-list { grid-template-columns: minmax(0,1fr); }
  .route-list dt { border: 0; padding-bottom: 0; }
  .footer-inner nav { flex-wrap: wrap; justify-content: end; }
}
@media(max-width: 450px) {
  .topbar .nav-uses { display: none; }
  .topbar { gap: .6rem; }
  .topbar nav { gap: .65rem; }
  .topbar nav a { font-size: .8rem; }
}
@media(max-width: 360px) {
  .topbar nav a:first-child { display: none; }
}
@media (prefers-reduced-motion:no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy h1 span,.hero-copy h1 em,.document-head h1 { animation: title-in .77s var(--ease) both; }
  .hero-copy h1 em { animation-delay: 90ms; }
  .hero-copy p,.hero-actions { animation: text-in .66s .16s var(--ease) both; }
  .hero-actions { animation-delay: .23s; }
  .hero-wire { stroke-dasharray: 1; animation: wire-in 1.45s .15s var(--ease) both; }
  .hero-wire.upper { animation-delay: .27s; }
  .hero-wire.lower { animation-delay: .37s; }
  .hero-core { transform-origin: 407px 297px; animation: core-in .95s .48s var(--ease) both; }
  .viz-bar { transition: transform .2s var(--ease); }
  .error-route { animation: wire-in .75s var(--ease); }
  .action .material-icon,.action span { transition: transform .18s var(--ease); }
  .action:hover .material-icon,.action:focus-visible .material-icon { transform: translate(3px,-3px); }
  .action:hover span,.action:focus-visible span { transform: translateY(3px); }
}
@keyframes title-in { from { clip-path: inset(0 -2px 100%); transform: translateY(25px); } to { clip-path: inset(0 -2px -5px); transform: none; } }
@keyframes text-in { from { opacity: .26; translate: 0 14px; } to { opacity: 1; translate: none; } }
@keyframes wire-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes core-in { from { opacity: .1; transform: scale(.62); } to { opacity: 1; transform: scale(1); } }
