/* Fásra site. Built on g-design: only the accent slot is overridden; greys, spacing and motion are g's. */
:root, [data-theme] {
  --font-ui: "Inter", "InterVariable", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-brand: "Young Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --accent-fill: #5BD29A; --accent-fill-hover: #4FC28C; --accent-fg: #0F1A14; --accent-edge: #4FC28C;
  --leaf: #5BD29A;
  --frame: 1240px;
  --fade-x: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  1.6 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Light: set by fasra.js from the pointer. --lx/--ly are page coordinates in px. */
  --lx: 30vw; --ly: -10vh;
}
:root[data-theme="light"], [data-theme="light"] {
  --accent-fill: #23905E; --accent-fill-hover: #1E7F53; --accent-fg: #FFFFFF; --accent-edge: #1E7F53; --leaf: #23905E;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] { --accent-fill: #23905E; --accent-fill-hover: #1E7F53; --accent-fg: #FFFFFF; --accent-edge: #1E7F53; --leaf: #23905E; }
}

html, body { overflow-x: clip; }
/* No visible scrollbars anywhere on the page. */
html, .gpanel { scrollbar-width: none; }
html::-webkit-scrollbar, .gpanel::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--surface-2); color: var(--text-primary); font-family: var(--font-ui); font-size: 14px; line-height: var(--lh-2); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a.btn { text-decoration: none; }

/* Page grain and the 3% light. The light shades everything away from it; it never brightens past the surface. */
body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: .05; mix-blend-mode: multiply; }
.lightfield { position: fixed; inset: 0; z-index: 49; pointer-events: none;
  background: radial-gradient(1100px circle at var(--lx) var(--ly), transparent 0%, rgb(0 10 30 / .03) 100%); }

/* Frame */
.frame { position: relative; max-width: var(--frame); margin: 0 auto; box-sizing: border-box; }
.frame { padding-inline: var(--sp-5); }
.olds { display: flex; gap: var(--sp-4); }
/* No rules between sections: panels on the page surface carry the structure. */
.seam { position: relative; }
.spacer { height: var(--sp-8); }

.ph { position: relative; display: grid; place-items: center; box-sizing: border-box; border: 1px dashed var(--border); border-radius: var(--radius-card); color: var(--text-secondary);
  background: repeating-linear-gradient(135deg, transparent 0 8px, var(--slate-a3) 8px 9px), var(--surface-1); font-family: var(--font-mono); font-size: 11px; line-height: var(--lh-1); text-align: center; padding: var(--sp-3); min-width: 0; }
.ph span { background: var(--surface-1); padding: 2px var(--sp-2); border-radius: var(--radius); }
.dither { background-image: radial-gradient(var(--slate-a5) 1px, transparent 1.5px); background-size: 8px 8px; -webkit-mask-image: var(--fade-x); mask-image: var(--fade-x); }

/* Lit surfaces: the shadow falls away from the light and a 1px rim catches it. */
.lit { position: relative; --sx: 0px; --sy: 6px; --ra: 180deg;
  box-shadow: var(--sx) var(--sy) 24px -14px rgb(0 10 30 / .18), 0 1px 2px var(--slate-a3); }
.lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(var(--ra), rgb(255 255 255 / .95), rgb(255 255 255 / 0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* Orbs: grainy gradient spheres, lit from the same light (--hx/--hy). */
.orb { --c: var(--chart-1); --c2: var(--chart-2); --hx: 35%; --hy: 30%; --blur: 7px; position: relative; display: inline-block; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; isolation: isolate; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .05); }
.orb::before { content: ""; position: absolute; inset: -25%; filter: blur(var(--blur));
  background:
    radial-gradient(circle at calc(var(--hx) * .7 + 15%) calc(var(--hy) * .7 + 15%), color-mix(in oklab, var(--c) 30%, white) 0%, transparent 32%),
    conic-gradient(from 150deg at 58% 58%, var(--c), var(--c2), color-mix(in oklab, var(--c2) 50%, white) 38%, var(--c) 55%, color-mix(in oklab, var(--c) 70%, var(--c2)) 80%, var(--c)); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background-image: var(--grain), radial-gradient(circle at 50% 45%, transparent 58%, rgb(0 10 30 / .22)); background-size: 70px, 100%; mix-blend-mode: overlay; }
.orb.sm { width: 16px; height: 16px; vertical-align: -2px; --blur: 3px; }
.orb.lg { width: 64px; height: 64px; --blur: 11px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--surface-2) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top .seam-b { display: none; }
.top .in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding-inline: var(--sp-5); max-width: var(--frame); margin: 0 auto; box-sizing: border-box; }
.top .mark svg { height: 32px; width: auto; display: block; }
.top nav.mid { display: flex; gap: var(--sp-5); font-size: 13px; }
.top nav.mid a { text-decoration: none; color: var(--text-primary); }
.top nav.mid a:hover { color: var(--leaf); }
.top .end { display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* Hero: intro, then the ask bar dead centre. Chatting swaps the intro for the conversation and docks the bar. */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; padding: 80px var(--sp-5) var(--sp-7); box-sizing: border-box; text-align: center; }
.intro h1 { font-family: var(--font-brand); font-weight: 400; font-size: 48px; line-height: 56px; letter-spacing: -0.01em; margin: 0; }
.intro .sub { margin: var(--sp-4) auto 0; font-size: 16px; line-height: 28px; max-width: 34em; }
.intro.out { animation: wipe-out 220ms var(--ease-out) forwards; }
@keyframes wipe-out { to { clip-path: inset(0 0 100% 0); transform: translateY(-8px); } }
.reveal { animation: rise var(--spring-smooth-dur) var(--spring-smooth) both; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); transform: translateY(8px); } to { clip-path: inset(0 0 0 0); transform: none; } }

.ask-slot { width: min(520px, 100%); margin-top: var(--sp-6); }
.ask { display: flex; align-items: center; gap: var(--sp-2); height: 52px; padding: 0 6px 0 var(--sp-4); box-sizing: border-box; background: var(--surface-1); border-radius: 999px; border: 1px solid var(--border-subtle); }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; line-height: var(--lh-3); color: var(--text-primary); outline: none; }
.ask { position: relative; }
.ask .roll { position: absolute; left: var(--sp-4); right: 56px; top: 50%; height: var(--lh-3); margin-top: calc(var(--lh-3) / -2); overflow: hidden; pointer-events: none; text-align: left; color: var(--text-placeholder); font-size: 15px; line-height: var(--lh-3); }
.ask .roll span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask .roll span.in { animation: roll-in 420ms var(--ease-out) both; }
.ask .roll span.out { animation: roll-out 420ms var(--ease-out) forwards; }
@keyframes roll-in { from { transform: translateY(100%); } }
@keyframes roll-out { to { transform: translateY(-100%); } }
.ask.typed .roll { visibility: hidden; }
.ask .go { width: var(--h-4); height: var(--h-4); padding: 0; display: grid; place-items: center; border-radius: 50%; flex: none; }
.ask .go svg { width: 16px; height: 16px; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.suggest button { font: inherit; font-size: 12px; line-height: var(--lh-1); height: var(--h-2); padding-inline: var(--sp-3); border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-1); color: var(--text-primary); cursor: pointer; transition: border-color var(--dur-base) var(--ease-out); }
.suggest button:hover { border-color: var(--border-hover); }

/* Docked: the bar floats at the foot of the screen. */
body.docked .ask-slot { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100vw - 32px)); margin: 0; transform: translateX(-50%); }
body.docked .ask { box-shadow: 0 12px 32px -12px rgb(0 10 30 / .28), 0 1px 2px var(--slate-a3); }
body.docked .suggest { display: none; }
body.docked { padding-bottom: 96px; }
body.docked::before { content: ""; position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; height: 112px; pointer-events: none; background: linear-gradient(to top, var(--surface-2) 30%, transparent); }

/* Conversation */
.convo { width: min(640px, 100%); text-align: left; }
.convo[hidden] { display: none; }
.convo-bar { display: flex; justify-content: space-between; align-items: center; height: var(--h-3); font-size: 12px; color: var(--text-secondary); }
.turn { margin-top: var(--sp-5); }
.turn .q { display: flex; justify-content: flex-end; }
.turn .q span { max-width: 80%; background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: 14px 14px 4px 14px; padding: var(--sp-2) var(--sp-3); font-size: 14px; }
.turn .a { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); align-items: flex-start; }
.turn .a .orb { width: 24px; height: 24px; margin-top: 2px; }
.turn .a p { margin: 0; font-size: 15px; line-height: var(--lh-3); }
.turn .w { display: inline-block; clip-path: inset(0 100% 0 0); animation: word 360ms var(--ease-out) forwards; }
@keyframes word { to { clip-path: inset(0 0 0 0); } }
.turn .follow { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 0 36px; }
.turn .follow button { font: inherit; font-size: 12px; height: var(--h-2); padding-inline: var(--sp-3); border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-1); cursor: pointer; }

/* Artifacts in the chat */
.art { margin: var(--sp-4) 0 0 36px; background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.art-h { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.art-h b { font-weight: 600; font-size: 14px; }
.art-h span { color: var(--text-secondary); font-size: 12px; }
.art-h .x { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border-subtle); }
.stats > div { padding: var(--sp-3) var(--sp-4); min-width: 0; }
.stats > div + div { border-left: 1px solid var(--border-subtle); }
.stats .k { font-size: 11px; line-height: var(--lh-1); color: var(--text-secondary); }
.stats .v { font-size: 20px; line-height: var(--lh-4); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats .n { font-size: 11px; line-height: var(--lh-1); color: var(--text-secondary); }
.rows { list-style: none; margin: 0; padding: var(--sp-1) 0; }
.rows .lbl { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.rows li { display: grid; grid-template-columns: 112px 64px minmax(0, 1fr); gap: var(--sp-3); align-items: center; padding: 6px var(--sp-4); font-size: 13px; }
.rows .num { text-align: right; font-variant-numeric: tabular-nums; }
.rows .ex { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: grid; gap: var(--sp-2); }
.bars .row { display: grid; grid-template-columns: 148px minmax(0, 1fr) 40px; gap: var(--sp-3); align-items: center; font-size: 13px; }
.bars .track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 4px; background: var(--c); transform-origin: left; animation: grow 700ms var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bars .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.bars h5 { margin: var(--sp-2) 0 0; font-size: 11px; line-height: var(--lh-1); font-weight: 500; color: var(--text-secondary); }
.tasks { list-style: none; margin: 0; padding: var(--sp-1) 0; }
.tasks li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: start; padding: var(--sp-3) var(--sp-4); }
.tasks li + li { border-top: 1px solid var(--border-subtle); }
.tasks .orb { margin-top: 2px; }
.tasks b { font-weight: 500; font-size: 13px; display: block; }
.tasks small { font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); }
.state { font-size: 11px; line-height: var(--lh-1); padding: 2px var(--sp-2); border-radius: 999px; white-space: nowrap; background: color-mix(in oklab, var(--c) 14%, var(--surface-1)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 30%, transparent); }
.art-f { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-secondary); }

/* Map: one study as a galaxy, with a panel for whatever is open */
.mapsec { padding-bottom: var(--sp-2); }
.maphead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); padding: var(--sp-7) var(--sp-1) var(--sp-5); }
.maphead h2 { margin: var(--sp-3) 0 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.015em; }
.mapnote { margin: 0; font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); text-align: right; max-width: 22em; }
.graph { --edge: var(--border); position: relative; height: 600px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.graph.gl { cursor: grab; }
.graph.grab { cursor: grabbing; }
.graph canvas.gl3d { position: absolute; left: 0; top: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
.gl-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 2px var(--sp-1); background: none; border: 0; font: inherit; color: var(--text-primary); text-align: left; white-space: nowrap; cursor: pointer; will-change: transform; }
.gl-label { text-shadow: 0 0 4px var(--surface-2), 0 0 2px var(--surface-2); }
.gl-label b { font-size: 13px; line-height: var(--lh-1); font-weight: 500; transition: color var(--dur-base) var(--ease-out); }
.gl-label span { font-size: 11px; line-height: var(--lh-1); color: var(--text-secondary); }
.graph.narrow .gl-label { align-items: center; text-align: center; }
.graph.flat { height: auto; padding: var(--sp-5); cursor: default; }
.graph.flat ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3) var(--sp-5); }
.graph.flat li { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; }
.graph.flat li .num { margin-left: auto; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.graph.point { cursor: pointer; }
.gl-label.bank b { font-size: 14px; font-weight: 600; }
.gl-label.dim b { color: var(--text-secondary); }
.graph.narrow.open .gl-label.dim { visibility: hidden; }
.gl-tip { position: absolute; left: 0; top: 0; max-width: 240px; padding: var(--sp-1) var(--sp-2); border-radius: 6px; background: var(--surface-1); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-overlay); font-size: 12px; line-height: var(--lh-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; will-change: transform; }
.gpanel { position: absolute; z-index: 2; top: var(--sp-3); right: var(--sp-3); max-height: calc(100% - 2 * var(--sp-3)); width: 320px; box-sizing: border-box; overflow: auto; overscroll-behavior: contain; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-overlay); cursor: default; text-align: left; user-select: text; -webkit-user-select: text; font-size: 13px; line-height: 20px; }
.gpanel.reveal { animation: panel-in var(--spring-smooth-dur) var(--spring-smooth) both; }
@keyframes panel-in { from { clip-path: inset(0 0 0 100% round 10px); transform: translateX(12px); } to { clip-path: inset(0 0 0 0 round 10px); transform: none; } }
.gp-in { padding: var(--sp-4); }
.gp-in.swap { animation: rise var(--spring-smooth-dur) var(--spring-smooth) both; }
.gp-h { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-secondary); font-size: 12px; line-height: var(--lh-1); }
.gp-x { margin-left: auto; margin-right: calc(-1 * var(--sp-2)); }
.gpanel h3 { margin: var(--sp-3) 0 0; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.gp-path { margin-top: var(--sp-1); font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--text-secondary); overflow-wrap: anywhere; }
.gp-big { margin-top: var(--sp-2); font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gpanel .stars { display: block; margin-top: var(--sp-1); letter-spacing: 2px; color: var(--chart-4); }
.gpanel .stars .off { opacity: .25; }
.gp-text { margin: var(--sp-3) 0 0; color: var(--text-primary); }
.gp-quote { margin: var(--sp-3) 0 0; padding-left: var(--sp-3); border-left: 2px solid var(--border); color: var(--text-primary); }
.gpanel dl { margin: var(--sp-4) 0 0; }
.gpanel dl div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--border-subtle); }
.gpanel dt { color: var(--text-secondary); }
.gpanel dd { margin: 0; text-align: right; }
.gp-l { margin-top: var(--sp-4); }
.gp-l h4 { margin: 0 0 var(--sp-2); font-size: 12px; line-height: var(--lh-1); font-weight: 500; color: var(--text-secondary); }
.gp-l > div { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.gp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: var(--h-1); padding: 0 var(--sp-2); border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-2); font: inherit; font-size: 12px; color: var(--text-primary); cursor: pointer; }
.gp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-chip:hover { border-color: var(--border); }
.orb.xs { width: 8px; height: 8px; --blur: 2px; }
.graph.flat .gpanel { position: static; width: auto; margin-top: var(--sp-4); }
.graph.flat li button { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-primary); cursor: pointer; text-align: left; }
.graph.flat li button .num { margin-left: auto; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Layout switch, for comparing the three ways the map can sit on the page. */
.layouts { display: flex; justify-content: center; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4) 0; font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); }
.layouts .tabs { box-shadow: none; }
.heronote { display: none; }

/* Map as hero, and side by side: the galaxy is the hero's background, full bleed, framed in a region of it. */
.big .hero { margin-inline: calc(50% - 50vw); height: clamp(600px, calc(100svh - 168px), 860px); padding-top: 0; justify-content: flex-end; }
.big .hero > .graph { position: absolute; inset: 0; height: auto; }
.big .hero > :not(.graph):not(.ask-slot):not(.heronote), .big .ask-slot { position: relative; z-index: 1; }
body.big.docked .ask-slot { position: fixed; z-index: 40; }
.big .intro { pointer-events: none; }
.big .mapsec { display: none; }
.big .hero > .heronote { display: block; position: absolute; z-index: 1; right: max(var(--sp-5), calc(50vw - var(--frame) / 2 + var(--sp-5))); bottom: var(--sp-7); max-width: 20em; margin: 0; font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); text-align: right; }
.big .graph.open ~ .heronote { visibility: hidden; }
[data-layout="hero"] .hero > .graph { --g-y0: -.12; --g-y1: .62; }
[data-layout="hero"] .intro h1 { font-size: 56px; line-height: 64px; }
[data-layout="split"] .hero { align-items: flex-start; text-align: left; padding-left: max(var(--sp-5), calc(50vw - var(--frame) / 2 + 64px)); padding-bottom: 80px; height: clamp(600px, calc(100svh - 136px), 800px); }
[data-layout="split"] .hero > .graph { --g-x0: .3; --g-x1: 1.04; --g-y0: -.16; --g-y1: .7; --g-open-x0: .14; }
[data-layout="split"] .intro { max-width: 400px; }
[data-layout="split"] .intro h1 { font-size: 56px; line-height: 64px; }
[data-layout="split"] .intro .sub { margin-left: 0; }
[data-layout="split"] .ask-slot { width: min(440px, 100%); }
/* Once a chat starts, the galaxy becomes a band above the conversation. */
body.big.docked .hero { height: auto; padding-top: 0; justify-content: flex-start; align-items: center; text-align: center; padding-left: var(--sp-5); }
body.big.docked .hero > .graph { position: relative; inset: auto; width: 100vw; height: 52svh; min-height: 400px; flex: none; --g-x0: 0; --g-x1: 1; --g-y0: 0; --g-y1: 1; }
body.big.docked .heronote { display: none; }

/* Section heads */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; height: var(--h-1); padding-inline: var(--sp-2); border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--surface-1); font-size: 12px; line-height: var(--lh-1); color: var(--text-primary); white-space: nowrap; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.head { text-align: center; padding: 72px var(--sp-5) var(--sp-7); }
.head h2 { font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.02em; margin: var(--sp-4) 0 0; }
.head p { margin: var(--sp-3) auto 0; max-width: 32em; font-size: 15px; line-height: var(--lh-3); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-2); }
.card { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: 12px; padding: var(--sp-5); min-width: 0; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; }
.card h3 { margin: 0; font-size: 15px; line-height: var(--lh-3); font-weight: 600; display: flex; align-items: center; gap: var(--sp-2); }
.card p { margin: var(--sp-2) 0 0; font-size: 14px; line-height: var(--lh-2); max-width: 30em; color: var(--text-secondary); }
.card .ph { margin-top: var(--sp-4); flex: 1; min-height: 200px; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.card .ph.bleed { margin-right: calc(-1 * var(--sp-5)); margin-bottom: calc(-1 * var(--sp-5)); border-bottom-right-radius: 0; -webkit-mask-image: none; mask-image: none; }
.card.soon { background: color-mix(in oklab, var(--surface-1) 50%, transparent); }
.tag { font-size: 11px; line-height: var(--lh-1); font-weight: 500; padding: 1px var(--sp-2); border-radius: 999px; color: var(--text-secondary); border: 1px solid var(--border); }
.tag.live { color: var(--accent-fg); background: var(--accent-fill); border-color: transparent; }
.c12 { grid-column: span 12; } .c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; }
.card.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-5); padding-right: 0; padding-bottom: 0; }
.card.split .txt { padding-bottom: var(--sp-5); }
.card.split .ph { margin-top: 0; min-height: 280px; border-right: 0; border-bottom: 0; border-radius: var(--radius-card) 0 0 0; -webkit-mask-image: none; mask-image: none; }
.card .more { margin-top: var(--sp-4); align-self: flex-start; }

/* Duo */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) var(--sp-2) minmax(0, 1fr); }
.duo .vr { background: none; }
.duo .r { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: 12px; }
.duo .l { padding: 80px var(--sp-6); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.duo .l h2 { font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.02em; margin: var(--sp-4) 0 0; }
.duo .l p { margin: var(--sp-3) 0 0; font-size: 15px; line-height: var(--lh-3); max-width: 26em; }
.duo .l .btn { margin-top: var(--sp-5); }
.duo .r { position: relative; padding: var(--sp-7) var(--sp-2) 0 var(--sp-6); overflow: hidden; }
.duo .r .dither { position: absolute; inset: 0; }
.duo .r .ph { height: 340px; border-style: solid; border-right: 0; border-bottom: 0; border-radius: var(--radius-card) 0 0 0; }

/* Footer */
footer .in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); padding: var(--sp-7) var(--sp-6); }
footer .mark svg { height: 28px; width: auto; display: block; }
footer .mean { margin: var(--sp-3) 0 0; font-size: 13px; color: var(--text-secondary); }
footer h4 { margin: 0 0 var(--sp-3); font-size: 12px; line-height: var(--lh-1); font-weight: 500; color: var(--text-secondary); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); font-size: 13px; }
footer ul a, footer .base a { text-decoration: none; }
footer ul a:hover, footer .base a:hover { color: var(--leaf); }
footer .base { display: flex; justify-content: space-between; padding: var(--sp-4) var(--sp-6); font-size: 12px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .top nav.mid { display: none; }
  .top .in { grid-template-columns: 1fr auto; }
  .c7, .c5, .c4 { grid-column: span 12; }
  .card.split { grid-template-columns: minmax(0, 1fr); padding-right: var(--sp-5); }
  .card.split .txt { padding-bottom: 0; }
  .card.split .ph { min-height: 200px; margin-right: calc(-1 * var(--sp-5)); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo .vr { display: none; }
  .duo .l { padding: var(--sp-7) var(--sp-5) var(--sp-5); }
  footer .in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-inline: var(--sp-5); }
  footer .in > :first-child { grid-column: 1 / -1; }
  footer .base { padding-inline: var(--sp-5); }
}
@media (max-width: 760px) {
  .frame { padding-inline: 0; margin-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .top .in { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .top .end .hide-sm { display: none; }
  .hero { min-height: 0; padding: var(--sp-8) var(--sp-4) var(--sp-7); }
  .intro h1 { font-size: 40px; line-height: 48px; }
  .intro .sub { font-size: 15px; line-height: 28px; }
  .maphead { flex-direction: column; align-items: flex-start; padding-inline: var(--sp-4); }
  .mapnote { text-align: left; }
  .graph { height: 600px; }
  .layouts { justify-content: flex-start; overflow: hidden; }
  .big .hero { height: clamp(600px, calc(100svh - 96px), 780px); padding-bottom: var(--sp-6); }
  [data-layout] .hero > .graph { --g-x0: 0; --g-x1: 1; --g-y0: 0; --g-y1: .6; }
  [data-layout="split"] .hero { align-items: center; text-align: center; padding-left: var(--sp-4); padding-bottom: var(--sp-6); }
  [data-layout="hero"] .intro h1, [data-layout="split"] .intro h1 { font-size: 40px; line-height: 48px; }
  [data-layout="split"] .intro .sub { margin-left: auto; }
  .big .hero > .heronote { display: none; }
  .graph.narrow .gpanel { top: auto; left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2); width: auto; max-height: 52%; }
  .graph.narrow .gpanel.reveal { animation-name: sheet-in; }
  .top .mark svg { height: 28px; }
  .head { padding: var(--sp-7) var(--sp-4) var(--sp-5); }
  .head h2, .duo .l h2 { font-size: 28px; line-height: 36px; }
  .card { padding: var(--sp-4); }
  .card .ph { min-height: 140px; }
  .card .ph.bleed { margin-right: calc(-1 * var(--sp-4)); margin-bottom: calc(-1 * var(--sp-4)); }
  .card.split { padding-right: var(--sp-4); }
  .card.split .ph { margin-right: calc(-1 * var(--sp-4)); }
  .duo .r .ph { height: 240px; }
  .art { margin-left: 0; }
  .turn .follow { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .rows .ex { display: none; }
  .bars .row { grid-template-columns: 112px minmax(0, 1fr) 36px; }
}
@keyframes sheet-in { from { clip-path: inset(100% 0 0 0 round 10px); transform: translateY(12px); } to { clip-path: inset(0 0 0 0 round 10px); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .gpanel.reveal, .gp-in.swap, .ask .roll span, .turn .w, .bars .fill, .intro.out { animation: none; clip-path: none; }
}
