@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+20AC,U+2190-2193; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-0130,U+0132-02BA; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+20AC,U+2190-2193; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-0130,U+0132-02BA; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+20AC,U+2190-2193; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-0130,U+0132-02BA; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+20AC,U+2190-2193; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-0130,U+0132-02BA; }
:root { color-scheme: dark; --bg: #111110; --surface: #2a2a28; --surface-2: #383836; --line: #41413e; --fg: #f4f3ef; --muted: #b4b3ac; --mark: #f6b95c; --on-mark: #1a1408; --ok: #6fce4f; --warn: #f0893f; --bad: #f0584f; --flood: #c9332b; --ink: #15130e; --ease: cubic-bezier(.16,1,.3,1); --gut: clamp(16px, 4vw, 48px); }
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--fg); background: var(--bg); font: 16px/1.6 "Figtree", system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, p { margin-top: 0; }
a { color: var(--fg); text-decoration-color: var(--mark); text-underline-offset: 3px; transition: color .1s; }
a:hover { color: var(--mark); }
::selection { background: var(--mark); color: var(--on-mark); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; padding: 8px 14px; background: var(--surface); }
.skip:focus { left: 8px; top: 8px; z-index: 10; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
code { overflow-wrap: anywhere; }
pre { overflow-x: auto; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: #1b1b19; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 16px var(--gut); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 19px; font-weight: 700; text-decoration: none; }
.brand svg { width: 20px; height: 20px; color: var(--mark); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { padding: 7px 15px; border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .1s, transform .09s; }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a:active { transform: scale(.97); }
.nav a.on { background: var(--fg); color: var(--ink); font-weight: 600; }

.hero { padding: clamp(40px, 7vw, 88px) var(--gut) 34px; max-width: 1120px; }
.hero.small { padding-bottom: 12px; }
h1 { margin-bottom: 18px; font-size: clamp(36px, 6vw, 72px); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.hero.small h1 { font-size: clamp(32px, 4.5vw, 52px); }
.lead { max-width: 62ch; color: #d6d5ce; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 22px; border-radius: 999px; background: var(--mark); color: var(--on-mark); font-weight: 600; text-decoration: none; transition: transform .09s, filter .1s, background-color .1s; }
.btn:hover { filter: brightness(1.08); color: var(--on-mark); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--fg); }
.btn.ghost:hover { background: var(--surface-2); color: var(--fg); filter: none; }

.demo { margin: 0 var(--gut) clamp(40px, 6vw, 84px); padding: 14px; border-radius: 24px; background: #1f1f1d; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.demo.l1 { outline-color: var(--warn); }
.demo.l2 { outline-color: var(--bad); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; transition: background-color .12s, color .12s; }
.state-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.state-pill.l0 { color: var(--ok); }
.state-pill.l1 { background: var(--warn); color: #1c0f05; }
.state-pill.l2 { background: var(--flood); color: #fff8f6; }
.why { flex: 1 1 220px; color: var(--muted); font-size: 14px; }
.switch { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface); }
.switch button { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color .1s, transform .09s; }
.switch button:hover { background: var(--surface-2); }
.switch button:active { transform: scale(.96); }
.switch button[aria-pressed="true"] { background: var(--fg); color: var(--ink); font-weight: 600; }
.demo-map { margin: 8px 0; }
#map { display: block; width: 100%; height: auto; }
#land path { fill: #3a3a37; stroke: #1d1d1b; stroke-width: .5; vector-effect: non-scaling-stroke; transition: fill .2s; }
#land path.h1 { fill: #5c5138; } #land path.h2 { fill: #7d6a3f; } #land path.h3 { fill: #a98743; } #land path.h4 { fill: #d8a54c; }
.arc { fill: none; stroke: var(--mark); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .15s; }
.arc.minor { stroke: var(--fg); stroke-width: 1; opacity: .5; }
#map[data-l="2"] .arc { stroke: var(--bad); opacity: 1; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.d-core { fill: var(--fg); stroke: #1d1d1b; }
.d-core.anon { fill: var(--warn); }
.home { fill: var(--warn); }
.lab rect { fill: #2a2a28; stroke: #41413e; vector-effect: non-scaling-stroke; }
.lab text { fill: var(--fg); font-family: inherit; font-weight: 500; }
.lab line { stroke: var(--muted); vector-effect: non-scaling-stroke; }
.demo-float { padding: 12px; border-radius: 16px; background: #3a3a37; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.t { padding: 10px 8px 9px; border-radius: 12px; color: var(--ink); text-align: center; transition: transform .12s var(--ease); }
.t:hover { transform: translateY(-2px); }
.t span { display: block; font-size: 13px; font-weight: 500; }
.t b { display: block; font-size: clamp(19px, 2.2vw, 28px); font-weight: 600; line-height: 1.2; }
.t small { font-size: 11.5px; font-weight: 500; }
.t.o { background: #e87f4d; } .t.v { background: #a3b048; } .t.a { background: #f6a92f; } .t.e { background: #2eb1a2; } .t.g { background: #5fbe3f; }
.note { color: var(--muted); font-size: 13px; }
.demo-note { margin: 10px 2px 0; color: #d6d5ce; }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: 0 var(--gut) clamp(44px, 6vw, 88px); }
.story.flip > div { order: 2; }
.story h2, .limits h2 { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
.story p { color: #d6d5ce; max-width: 50ch; }
.story img, .shot img { border-radius: 16px; }
.limits { margin: 0 var(--gut) clamp(40px, 6vw, 80px); padding: clamp(22px, 4vw, 44px); border-radius: 24px; background: var(--surface); }
.limits ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px 36px; margin: 22px 0 0; padding: 0; list-style: none; }
.limits b { display: block; margin-bottom: 3px; font-weight: 600; }
.limits li { color: #d6d5ce; }
.limits li b { color: var(--fg); }

.doc { max-width: 860px; margin: 0 var(--gut) 14px; padding: 22px 24px; border-radius: 20px; background: var(--surface); scroll-margin-top: 12px; }
.doc h2 { margin-bottom: 10px; font-size: 22px; font-weight: 600; }
.doc p:last-child { margin-bottom: 0; }
.notice { background: #4a3a1c; }
.plain { margin: 0 0 12px; padding-left: 20px; }
.plain li { margin-bottom: 6px; }
.tscroll { overflow-x: auto; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { padding: 0 12px 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; text-align: left; white-space: nowrap; }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid #383836; }
tr:last-child td { border-bottom: 0; }
.shot { margin: 0 var(--gut) 34px; }
.shot figcaption { margin-top: 10px; color: var(--muted); }
.shot figcaption b { margin-right: 6px; color: var(--fg); font-weight: 600; }
.foot { padding: 26px var(--gut) 36px; border-top: 1px solid #2a2a28; margin-top: 26px; }
.foot p { margin-bottom: 4px; }

.hero, .demo, .story, .limits, .doc, .shot { animation: rise .22s var(--ease) both; }
.demo { animation-delay: .04s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .1s; }
@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story.flip > div { order: 0; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .t:first-child { grid-column: span 2; }
  .switch { width: 100%; }
  .switch button { flex: 1; }
  .doc { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.trap-demo { padding: 18px; border-radius: 16px; background: #1f1f1d; }
.trap-demo pre { background: var(--surface); color: #f6d9a8; margin: 8px 0; }
.trap-demo p { margin: 0; }
