/* Website stylesheet. Colours, type and radii follow matdata.eu: slate navy ink, Matdata blue #0563bb,
   amber #f2b300 only for routes. Light and dark follow the browser until the visitor picks one
   (data-theme on <html>, saved by site.js). Barlow is self-hosted (SIL OFL 1.1, fonts/Barlow-OFL.txt).
   Order: inner-page components first, then the home page and shared chrome (from design E), then fixes. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Names used by the inner-page rules below. */
:root { --bg: var(--ground); --bg-soft: var(--ground-2); --bg-tint: var(--brand-soft); --blue-deep: #044a8c; --blue-ink: var(--text);
  --card: var(--panel); --code-text: #d6e2f2; --good: #0f7b4b; --radius: 12px; --brand-soft: #e3eefa;
  --shadow: 0 1px 2px rgba(28, 38, 51, .05), 0 8px 24px rgba(28, 38, 51, .06); }
:root[data-theme="dark"] { --brand-soft: #10223a; --good: #4fd19a; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-soft: #10223a; --good: #4fd19a; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--blue-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--bg-tint); padding: .1em .35em; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }

/* Banner and header */
.preview-banner {
  background: var(--yellow); color: #1d1600; text-align: center;
  font-size: .85rem; font-weight: 600; padding: .4rem 16px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.center { text-align: center; margin-inline: auto; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg-tint); color: var(--blue); font-weight: 700; margin-bottom: .9rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); margin-bottom: 1rem; }
.icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.split + .split { margin-top: 4.5rem; }
.split.flip > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 1.8rem; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .55rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }

/* Code */
.code { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #9fb4cb; font-family: var(--mono); }
.code pre { margin: 0; padding: 1.1rem 1.2rem 1.3rem; overflow-x: auto; line-height: 1.55; }
.code .k { color: #7fb8ff; }
.code .f { color: var(--yellow); }
.code .s { color: #9ee6b8; }
.code .c { color: #7d93ab; }
.code .v { color: #f0a7d2; }
.result { border-top: 1px solid rgba(255,255,255,.08); padding: .8rem 1.2rem 1rem; font-family: var(--mono); font-size: .82rem; color: #c9d7e6; }
.result table { border-collapse: collapse; width: 100%; }
.result td, .result th { text-align: left; padding: .2rem .8rem .2rem 0; }
.result th { color: #7d93ab; font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.data th, table.data td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data thead th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .best { font-weight: 700; color: var(--good); }
table.data .us { background: color-mix(in srgb, var(--blue) 7%, transparent); }
.table-note { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

.bench-card h3 { margin-bottom: .2rem; }
.bench-card .sub { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.bench-card .verdict { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); position: relative; }
.plan .tag { position: absolute; top: -.8rem; left: 1.5rem; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .04em; }
.card .price { font-size: 2.2rem; font-weight: 750; color: var(--blue-ink); letter-spacing: -0.03em; margin: .4rem 0 0; }
.card .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan .checks { flex: 1; font-size: .95rem; margin: 1.2rem 0 1.5rem; }
.plan .btn { width: 100%; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-weight: 650; cursor: pointer; color: var(--blue-ink); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: -.1rem; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

/* CTA */
.cta-band { background: var(--blue-ink); color: #dfe9f4; border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9cade; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid var(--yellow); opacity: .14; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Use case rows, comparison */
.tag-pill { display: inline-block; font-size: .78rem; font-weight: 650; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-tint); color: var(--blue); margin: 0 .3rem .4rem 0; }
.tag-pill.soon { background: color-mix(in srgb, var(--yellow) 22%, transparent); color: #7a5b00; }
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 1rem; }
.page-head + section { padding-top: 2rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid a { display: block; color: var(--text); text-decoration: none; font-size: .93rem; margin-bottom: .45rem; }
.footer-grid a.brand { display: inline-flex; margin-bottom: .8rem; }
.footer-grid a:hover { color: var(--blue); }
.footer-grid p { font-size: .93rem; max-width: 22rem; }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; }
.footer-base { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: .7rem .8rem; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.form textarea { min-height: 8rem; resize: vertical; }

/* Product screenshots */
.shot { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: .82rem; color: var(--muted); padding: .7rem 1rem; border-top: 1px solid var(--line); }


/* Direction D: the landing of A ("Signal") with the pinned graph → map → route scene of C.
   Light and dark themes share one set of tokens; with no choice saved the browser decides. */
:root {
  --ground: #f5f8fc; --ground-2: #e9f0f8; --panel: rgba(255,255,255,.8); --card-hover: #ffffff;
  --line: rgba(12, 40, 80, .12); --text: #0c1626; --muted: #536176;
  --blue: #0563bb; --blue-soft: #0563bb; --yellow: #f5b700; --yellow-ink: #9a6b00;
  --h1-from: #0c1626; --h1-to: #0563bb; --glow: rgba(5, 99, 187, .18); --glow-2: rgba(5, 99, 187, .06);
  --node: rgba(5, 99, 187, .55); --edge: 5, 70, 140; --edge-a: .16; --label: rgba(12, 22, 38, .75);
  --code-bg: #0f1a2b; --code-text: #d6e2f2; --header: rgba(245, 248, 252, .78);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #040a14; --ground-2: #081426; --panel: rgba(14, 32, 58, .55); --card-hover: #07121f;
  --line: rgba(120, 170, 230, .16); --text: #e6eef9; --muted: #8ea3bd;
  --blue: #2f8cff; --blue-soft: #8cc4ff; --yellow-ink: #f5b700;
  --h1-from: #ffffff; --h1-to: #9ccdff; --glow: rgba(47, 140, 255, .42); --glow-2: rgba(47, 140, 255, .12);
  --node: rgba(140, 196, 255, .5); --edge: 120, 170, 230; --edge-a: .16; --label: rgba(230, 238, 249, .75);
  --code-bg: rgba(0, 0, 0, .35); --header: rgba(4, 10, 20, .6); color-scheme: dark; } }
:root[data-theme="dark"] {
  --ground: #040a14; --ground-2: #081426; --panel: rgba(14, 32, 58, .55); --card-hover: #07121f;
  --line: rgba(120, 170, 230, .16); --text: #e6eef9; --muted: #8ea3bd;
  --blue: #2f8cff; --blue-soft: #8cc4ff; --yellow-ink: #f5b700;
  --h1-from: #ffffff; --h1-to: #9ccdff; --glow: rgba(47, 140, 255, .42); --glow-2: rgba(47, 140, 255, .12);
  --node: rgba(140, 196, 255, .5); --edge: 120, 170, 230; --edge-a: .16; --label: rgba(230, 238, 249, .75);
  --code-bg: rgba(0, 0, 0, .35); --header: rgba(4, 10, 20, .6); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: var(--blue-soft); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.home main h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 40rem; }
.eyebrow { font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 1.1rem; display: inline-flex; gap: .6rem; align-items: center; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }

/* Header with language menu and theme toggle */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.3); background: var(--header); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: .8rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 750; letter-spacing: -0.02em; color: var(--text); text-decoration: none; font-size: 1.1rem; }
nav.main { display: flex; gap: .3rem; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: .35rem .85rem; border-radius: 999px; }
nav.main a:hover { color: var(--text); background: var(--line); }
.tools { display: flex; align-items: center; gap: .5rem; }
.ctl { height: 36px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 .8rem var(--mono); padding: 0 .75rem; cursor: pointer; }
select.ctl { appearance: none; padding-right: 1.6rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238ea3bd' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .65rem center; }
select.ctl option { color: #0c1626; background: #fff; }
.gh { width: 36px; padding: 0; display: grid; place-items: center; }
.gh svg { width: 17px; height: 17px; }
nav.main.open .nav-tools .gh { padding: 0; width: 36px; height: 36px; display: grid; }
.hero-src { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.theme { width: 36px; padding: 0; display: grid; place-items: center; }
.theme svg { width: 17px; height: 17px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 30px var(--glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--panel); }
.btn-small { padding: .45rem 1rem; font-size: .9rem; }
@media (max-width: 980px) { nav.main { display: none; } }


/* Hero (from A) */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; left: 50%; top: 58%; width: min(1100px, 140vw); height: 620px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), var(--glow-2) 55%, transparent 75%); z-index: -2; filter: blur(10px); }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.2rem); max-width: 14ch; margin-inline: auto; background: linear-gradient(180deg, var(--h1-from) 30%, var(--h1-to) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 2rem; }
.ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.coords { margin-top: 2.6rem; display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; font: .78rem var(--mono); color: var(--muted); }
.coords b { color: var(--text); font-weight: 600; }

/* Ask panel: always a dark code surface, in both themes */
.ask { margin: 3.5rem auto 0; max-width: 760px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #14304f, #08162a); color: #e6eef9; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; }
.ask-top { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid rgba(120,170,230,.16); font: .78rem var(--mono); color: #8ea3bd; }
.ask-top .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; display: inline-block; margin-right: .5rem; box-shadow: 0 0 10px #3ddc97; }
.ask-q { padding: 1.1rem 1.2rem .6rem; font-size: 1.08rem; min-height: 3.2rem; }
.ask-q .caret { display: inline-block; width: 2px; height: 1.1em; background: #8cc4ff; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-sparql { margin: 0 1.2rem; padding: .9rem 1rem; border-radius: 10px; background: rgba(0,0,0,.35); font: .8rem/1.6 var(--mono); color: #c9dcf2; white-space: pre; overflow-x: auto; }
.k { color: #7fb8ff; } .f { color: #f5b700; }
.ask-res { display: flex; gap: .6rem; flex-wrap: wrap; padding: .9rem 1.2rem 1.1rem; font: .8rem var(--mono); align-items: center; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--text); background: var(--panel); font: .8rem var(--mono); }
.ask .chip { border-color: rgba(120,170,230,.2); color: #e6eef9; background: rgba(255,255,255,.04); }
.ask .chip.y { border-color: rgba(245,183,0,.5); color: #f5b700; }

.home section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 1.8rem 1.4rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: .5rem; }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Pinned scene (from C): graph → map → route */
.scene { height: 260vh; padding: 0; }
.scene .pin { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; background: radial-gradient(80% 70% at 75% 40%, var(--glow-2), transparent 70%); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .caption { position: absolute; left: max(16px, calc((100% - 1180px) / 2)); top: 2.4rem; max-width: 30rem; z-index: 2; }
.scene .caption .lead { font-size: 1.05rem; }
.phase { display: flex; gap: .4rem; margin-top: 1rem; }
.phase span { font: .72rem var(--mono); padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.phase span.on { border-color: var(--yellow); color: var(--text); background: rgba(245, 183, 0, .14); }
.scene .tag { position: absolute; right: max(16px, calc((100% - 1180px) / 2)); bottom: 1.2rem; font: .75rem var(--mono); color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cell { background: var(--ground); padding: 1.8rem; transition: background .3s; }
.cell:hover { background: var(--card-hover); }
.cell p { color: var(--muted); font-size: .95rem; margin: 0; }
.cell .ico { width: 34px; height: 34px; color: var(--blue-soft); margin-bottom: 1rem; }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.who a { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.who a:hover { border-color: var(--blue-soft); transform: translateY(-2px); }
.who p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .grid, .who { grid-template-columns: 1fr; } }

/* AI */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.chat { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 1.2rem; display: grid; gap: .8rem; font-size: .93rem; }
.msg { padding: .75rem 1rem; border-radius: 14px; max-width: 90%; }
.me { background: var(--blue); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bot { background: var(--ground); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tool { font: .76rem var(--mono); color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.tool::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }
.providers { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; } }

/* Bench */
.bench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; background: var(--panel); }
.bar-row { display: grid; grid-template-columns: 7rem 1fr 5.5rem; gap: .8rem; align-items: center; font-size: .88rem; margin: .5rem 0; }
.track { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fill { height: 100%; border-radius: 6px; background: var(--muted); opacity: .5; width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.us .fill { background: linear-gradient(90deg, var(--blue), var(--blue-soft)); opacity: 1; box-shadow: 0 0 16px var(--glow); }
.us .nm { color: var(--text); font-weight: 650; }
.nm { color: var(--muted); }
.val { text-align: right; font: .82rem var(--mono); color: var(--muted); }
.us .val { color: var(--text); }
.note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }
@media (max-width: 860px) { .bench { grid-template-columns: 1fr; } }

.cta { text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; background: radial-gradient(80% 120% at 50% 100%, var(--glow), transparent 70%), var(--ground-2); }
.cta h2 { max-width: 18ch; margin-inline: auto; }

.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal-ready.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready { opacity: 1; transform: none; transition: none; } .ask-q .caret { animation: none; } .scene { height: auto; } .scene .pin { position: relative; height: 80vh; } }

/* ---------- Depth layer additions ---------- */
:root { --spot: rgba(5, 99, 187, .09); --lbl-bg: rgba(255, 255, 255, .82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --spot: rgba(47, 140, 255, .14); --lbl-bg: rgba(4, 10, 20, .7); } }
:root[data-theme="dark"] { --spot: rgba(47, 140, 255, .14); --lbl-bg: rgba(4, 10, 20, .7); }
.site-header { top: env(safe-area-inset-top, 0px); }
.hero canvas { transition: opacity .2s linear; }
.hero::before { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--ground)); z-index: -1; pointer-events: none; }
.hero-in > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in > :nth-child(2) { animation-delay: .08s; } .hero-in > :nth-child(3) { animation-delay: .18s; } .hero-in > :nth-child(4) { animation-delay: .26s; }
.hero-in > :nth-child(5) { animation-delay: .4s; } .hero-in > :nth-child(6) { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* Ask panel: question, then the query line by line, then the answer */
.ask .ln { display: inline-block; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s ease; transition-delay: calc(var(--i) * 85ms); }
.ask.stage .ln { opacity: 0; transform: translateX(-6px); filter: blur(3px); }
.ask .ask-res .chip { transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.55s + var(--i, 0) * 90ms); }
.ask.stage .ask-res .chip { opacity: 0; transform: translateY(6px) scale(.92); }
.ask { transition: box-shadow .6s ease; }
.ask.done { box-shadow: 0 30px 80px rgba(0, 0, 0, .3), 0 0 0 1px rgba(245, 183, 0, .18), 0 0 60px rgba(245, 183, 0, .07); }

/* Rolling digits for measured numbers */
.od, .oc { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: top; font-variant-numeric: tabular-nums; }
.od-c { display: block; transform: translateY(0); transition: transform 1.5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--k) * 45ms + .15s); }
.in .od-c, .rolled .od-c { transform: translateY(calc(var(--d) * -1.25em)); }

/* Scene labels over the 3D view */
#sceneLabels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.lbl { position: absolute; left: 0; top: 0; font: 11px/1 var(--mono); color: var(--label); white-space: nowrap; padding: 3px 5px; border-radius: 4px; background: var(--lbl-bg); backdrop-filter: blur(4px); will-change: transform; transition: color .3s, box-shadow .3s; }
.lbl.hub, .lbl.on { color: var(--text); box-shadow: inset 0 0 0 1px rgba(245, 183, 0, .55); }
.lbl.edge { background: none; backdrop-filter: none; color: var(--blue-soft); font-size: 10px; transform-origin: center; }
@media (max-width: 600px) { .lbl { font-size: 10px; } .lbl.edge { display: none; } }

/* Cursor spotlight on cards */
@media (hover: hover) and (pointer: fine) {
  .cell, .cell:hover, .who a, .who a:hover { background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), var(--spot), transparent 70%); }
}

/* Theme switch: a circular reveal from the button */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.depth-tag { font: .72rem var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hero-in > * { animation: none; } .ask .ln, .ask .chip, .od-c { transition: none; } }


/* ---------- Option C ---------- */
:root[data-theme="dark"] { --blue: #1f6fe5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --blue: #1f6fe5; } }
.hero { text-align: left; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero::after { left: 72%; top: 40%; width: min(900px, 120vw); height: 560px; opacity: .55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); max-width: 12ch; margin-inline: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.hero .lead { margin: 0 0 2rem; }
.hero .ctas, .hero .coords { justify-content: flex-start; }
.hero .coords { margin-top: 2rem; }
.hero-vis { position: relative; height: clamp(380px, 42vw, 600px); min-width: 0; }
.hero > canvas { animation: fadein 1.4s .2s ease both; }
.hero::before { z-index: 0; } .hero > .wrap { position: relative; z-index: 1; } .hero > #heroLabels { z-index: 0; }
.lbl.city, .lbl.hub-l { transition: opacity .3s; }
#heroLabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero .ask { margin-top: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .hero { text-align: center; } .hero-grid { grid-template-columns: 1fr; } .hero h1 { margin-inline: auto; } .hero .lead { margin-inline: auto; } .hero .ctas, .hero .coords { justify-content: center; } .hero-vis { height: 340px; margin-inline: -16px; } }
.hero-in > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in > :nth-child(2) { animation-delay: .08s; } .hero-in > :nth-child(3) { animation-delay: .18s; } .hero-in > :nth-child(4) { animation-delay: .26s; } .hero-in > :nth-child(5) { animation-delay: .4s; }
.hero-vis { pointer-events: none; } @keyframes fadein { from { opacity: 0; } }
/* Eyebrow: a kilometre-post tick instead of a glowing dot */
.eyebrow::before { width: 14px; height: 10px; border-radius: 0; box-shadow: none; background: linear-gradient(var(--yellow), var(--yellow)) left center / 100% 2px no-repeat, linear-gradient(var(--yellow), var(--yellow)) left center / 2px 100% no-repeat; }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-primary:hover { background: color-mix(in srgb, var(--blue) 88%, #000); }
.ask-top .dot { box-shadow: none; }
.us .fill { box-shadow: none; }
.ask.done { box-shadow: 0 30px 80px rgba(0, 0, 0, .3); border-color: rgba(245, 183, 0, .35); }
.ex-tag { font: 600 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #f5b700; border: 1px solid rgba(245, 183, 0, .45); border-radius: 4px; padding: .2rem .35rem; margin-right: .4rem; }
@media (max-width: 600px) { .ask-sparql { white-space: pre-wrap; word-break: break-word; } .ask-top { flex-wrap: wrap; gap: .3rem; } }
/* Fact strip: plain benefit first, standards underneath */
.fact b { font-size: clamp(1.2rem, 1.9vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: .6rem; }
.fact .std { font: .76rem/1.5 var(--mono); color: var(--muted); }
/* Hero labels */
.lbl.city { background: none; backdrop-filter: none; color: var(--muted); font-size: 11px; }
.lbl.hub-l { background: none; backdrop-filter: none; color: var(--blue-soft); font-size: 10.5px; transition: opacity .4s; }
.lbl.callout { display: grid; gap: 2px; padding: 6px 9px; border: 1px solid rgba(245, 183, 0, .6); box-shadow: none; transition: opacity .4s; }
.lbl.callout b { color: var(--yellow-ink); font-weight: 600; font-size: 12px; }
.lbl.callout span { color: var(--label); font-size: 10.5px; }
.lbl.scale { background: none; backdrop-filter: none; color: var(--muted); font-size: 10px; }
.phase span { cursor: pointer; transition: border-color .2s, color .2s; }
.phase span:hover { color: var(--text); border-color: var(--blue-soft); }
.phase span:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
/* Audience straight after the scene */
.who-sec { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 0; }
.who .who-c { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: var(--panel); color: var(--text); }
.who .who-c p { color: var(--muted); font-size: .92rem; margin: 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-block: clamp(2rem, 5vw, 3.5rem); padding-block: 1.4rem; border-block: 1px solid var(--line); }
.cta-row p { margin: 0; font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; }
/* Benchmarks: the speed-up leads, bars on a log scale */
.panel .big { margin: 0 0 1.1rem; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.panel .big b { font-size: clamp(2.4rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.panel .big span { color: var(--muted); font-size: .92rem; max-width: 26ch; line-height: 1.4; }
.note.log { font: .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: .2rem 0 .6rem; }
/* Final card: the London → Vienna route as its signature */
.cta { position: relative; overflow: hidden; background: var(--ground-2); }
.cta-route { position: absolute; left: 0; top: 0; width: 100%; height: 110px; pointer-events: none; }
.cta-route path { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.cta-route circle { fill: var(--ground-2); stroke: var(--yellow); stroke-width: 2; }
.cta.in .cta-route path { stroke-dashoffset: 0; }
.cta .eyebrow { margin-top: 2.6rem; }
/* Menu on narrow screens */
.menu-btn { display: none; width: 36px; padding: 0; place-items: center; }
.nav-tools { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  nav.main.open { display: flex; flex-direction: column; position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 70px; min-width: 220px; padding: .5rem; border-radius: 16px; background: var(--ground); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); z-index: 30; }
  nav.main.open a { padding: .7rem .9rem; font-size: 1rem; border-radius: 10px; }
}
@media (max-width: 560px) { .tools > .lang-select, .tools > .theme, .tools > .gh { display: none; } nav.main.open .nav-tools { display: flex; gap: .5rem; padding: .5rem .4rem .2rem; border-top: 1px solid var(--line); margin-top: .3rem; } .bar .btn-small { display: inline-flex; } }
@media (hover: hover) and (pointer: fine) { .who .who-c { background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), var(--spot), transparent 70%); } }
@media (prefers-reduced-motion: reduce) { .hero > canvas { animation: none; } .cta-route path { transition: none; stroke-dashoffset: 0; } }

/* Drag to turn the 3D hero */
.draggable { cursor: grab; touch-action: pan-y; }
.draggable.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.draggable a, .draggable button, .draggable select, .draggable .ask { cursor: auto; }
.draggable a, .draggable button { cursor: pointer; }
.drag-hint { position: absolute; right: max(16px, calc((100% - 1180px) / 2)); bottom: 1rem; z-index: 2; font: .72rem var(--mono); color: var(--muted); display: inline-flex; gap: .45rem; align-items: center; pointer-events: none; transition: opacity .6s; }
.drag-hint svg { width: 16px; height: 16px; }
.dragged .drag-hint { opacity: 0; }

/* ================= Option C: one world behind the page ================= */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: rgba(4, 10, 20, .58); } }
:root[data-theme="dark"] { --glass: rgba(4, 10, 20, .58); }
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity .6s ease; }
#worldLabels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
main > section, main > .facts, main > .kicker, main > .sheet, .site-footer, main > .cta-row { position: relative; z-index: 2; }
.no-gl body { background: radial-gradient(80% 60% at 70% 30%, var(--glow-2), transparent 70%), var(--ground); }
.no-gl #world { display: none; }

/* Hero: the world is the image; copy and the ask panel sit at the bottom */
.hero { min-height: min(100svh, 1040px); display: flex; align-items: flex-end; text-align: left; padding: 8rem 0 3.5rem; overflow: visible; }
.hero::after, .hero::before { display: none; }
.hero-c { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 7rem); font-weight: 650; letter-spacing: -0.055em; line-height: .94; max-width: 10ch; margin: 0 0 1.4rem; }
.hero .lead { margin: 0 0 1.8rem; max-width: 34rem; }
.hero .ctas, .hero .coords { justify-content: flex-start; }
.hero .coords { margin-top: 1.6rem; }
.hero .ask { margin: 0; max-width: none; background: linear-gradient(180deg, rgba(20, 48, 79, .78), rgba(8, 22, 42, .86)); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.drag-hint { top: 5.5rem; bottom: auto; }
@media (max-width: 1000px) { .hero-c { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .hero { min-height: 0; padding-top: 44svh; text-align: center; } .hero h1 { margin-inline: auto; } .hero .lead { margin-inline: auto; } .hero .ctas, .hero .coords { justify-content: center; } .drag-hint { top: 4.8rem; right: 16px; } }

.facts { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.kicker { margin-top: clamp(4rem, 10vw, 7rem); }

/* Chapters: short glass captions while the world does the explaining */
.chapter { min-height: 125svh; display: flex; align-items: center; padding: 0; }
.chapter.long { min-height: 230svh; align-items: flex-start; }
.chapter.long .copy { position: sticky; top: 24svh; margin-top: 24svh; }
.chapter .copy { max-width: 26rem; padding: 1.5rem 1.6rem 1.4rem; border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.chapter h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.chapter .lead { font-size: 1rem; margin: 0; }
.chapter .eyebrow { justify-content: space-between; width: 100%; }
.chapter .step { color: var(--muted); letter-spacing: .1em; }
.lens-hint { display: flex; gap: .5rem; align-items: center; margin: 1rem 0 0; font: .78rem var(--mono); color: var(--yellow-ink); }
@media (max-width: 700px) { .chapter { align-items: flex-start; } .chapter .copy { margin-top: 10svh; } .chapter.long .copy { top: 10svh; margin-top: 10svh; } }

/* The sheet rises over the world for the reading part of the page */
.sheet { margin-top: 12svh; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 36px 36px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .25); padding-bottom: 2rem; }
.sheet .who-sec { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.finale { padding-block: 22svh 18svh; }
.finale .cta { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-footer { background: var(--ground); }

/* Labels and the live query readout */
.lbl.lens-l { background: var(--lbl-bg); color: var(--yellow-ink); box-shadow: inset 0 0 0 1px rgba(245, 183, 0, .55); transition: opacity .3s; }
#worldLabels .lbl { transition: opacity .3s; }
.hud { position: fixed; z-index: 15; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100% - 32px)); display: grid; gap: .35rem; padding: .75rem .95rem; border-radius: 12px; background: rgba(6, 14, 26, .84); color: #c9dcf2; border: 1px solid rgba(120, 170, 230, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: .74rem/1.5 var(--mono); transition: opacity .4s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.hud.off { opacity: 0; transform: translateY(10px); pointer-events: none; }
.hud-top { display: flex; align-items: center; gap: .45rem; color: #8ea3bd; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.hud-top .dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }
.hud .q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d6e2f2; font: inherit; }
.hud .r { color: #f5b700; font-variant-numeric: tabular-nums; }
.hud.flash .q { animation: hudIn .5s ease both; }
@keyframes hudIn { from { opacity: 0; transform: translateX(-6px); } }
@media (max-width: 700px) { .hud .q { display: none; } .hud { width: auto; left: auto; } }
@media (prefers-reduced-motion: reduce) { .hud.flash .q { animation: none; } #world { transition: none; } }

/* ---------- Matdata palette (from matdata.eu): slate navy, Matdata blue, amber for routes.
   Solid colours, no glows or gradient text, Barlow type, modest radii. ---------- */
:root {
  --ground: #f5f7fa; --ground-2: #edf0f4; --panel: #ffffff; --card-hover: #ffffff;
  --line: #e3e7ec; --text: #1c2633; --muted: #56606c;
  --blue: #0563bb; --blue-soft: #0563bb; --yellow: #f2b300; --yellow-ink: #6e4d00;
  --h1-from: #1c2633; --h1-to: #1c2633; --glow: transparent; --glow-2: transparent;
  --node: rgba(5, 99, 187, .55); --edge: 4, 74, 140; --edge-a: .16; --label: #3a4552;
  --code-bg: #1c2633; --header: rgba(245, 247, 250, .9); --spot: rgba(5, 99, 187, .06); --lbl-bg: rgba(255, 255, 255, .88);
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #070b12; --ground-2: #0d131c; --panel: #111924; --card-hover: #151f2b;
  --line: #222d3a; --text: #edf0f4; --muted: #9aa5b2;
  --blue: #0563bb; --blue-soft: #6aa8e3; --yellow-ink: #f2b300;
  --h1-from: #edf0f4; --h1-to: #edf0f4;
  --node: rgba(106, 168, 227, .55); --edge: 106, 150, 200; --label: rgba(237, 240, 244, .82);
  --code-bg: #0b1119; --header: rgba(7, 11, 18, .9); --spot: rgba(106, 168, 227, .07); --lbl-bg: rgba(7, 11, 18, .85); } }
:root[data-theme="dark"] {
  --ground: #070b12; --ground-2: #0d131c; --panel: #111924; --card-hover: #151f2b;
  --line: #222d3a; --text: #edf0f4; --muted: #9aa5b2;
  --blue: #0563bb; --blue-soft: #6aa8e3; --yellow-ink: #f2b300;
  --h1-from: #edf0f4; --h1-to: #edf0f4;
  --node: rgba(106, 168, 227, .55); --edge: 106, 150, 200; --label: rgba(237, 240, 244, .82);
  --code-bg: #0b1119; --header: rgba(7, 11, 18, .9); --spot: rgba(106, 168, 227, .07); --lbl-bg: rgba(7, 11, 18, .85); }
h1, h2, h3 { letter-spacing: -0.015em; font-weight: 600; }
.hero h1 { background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.hero::after { display: none; }
.hero h1, .hero h1 * { letter-spacing: -0.02em; font-weight: 600; }
.btn, .ctl, nav.main, nav.main a, .chip, .phase span { border-radius: 8px; }
.btn-primary, .btn-primary:hover { box-shadow: none; background: var(--blue); }
.btn-primary:hover { background: #044a8c; transform: none; }
.ask, .hero .ask { background: var(--code-bg); border-color: var(--line); box-shadow: 0 12px 32px rgba(28, 38, 51, .18); border-radius: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ask.done { box-shadow: 0 12px 32px rgba(28, 38, 51, .18); border-color: rgba(242, 179, 0, .45); }
.ask-q .caret { background: #6aa8e3; }
.us .fill { background: var(--blue); box-shadow: none; }
.scene .pin, .no-gl body { background: var(--ground); }
.cta { background: var(--ground-2); border-radius: 16px; }
.sheet { border-radius: 20px 20px 0 0; }
.ask-top .dot { box-shadow: none; }

/* Shared chrome over the home page's 3D canvas, and inner-page touches in the new palette */
.site-footer { position: relative; z-index: 2; background: var(--ground-2); border-top: 1px solid var(--line); }
.site-footer .brand { color: var(--text); }
.brand img { display: block; }
nav.main a[aria-current] { color: var(--text); background: var(--line); }
.preview-banner { position: relative; z-index: 30; }
h1, h2, h3 { color: var(--text); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-soft { background: var(--ground-2); border-color: var(--line); }
.card { background: var(--panel); border-color: var(--line); }
.code { background: #0e141c; }
.cta-band { background: #1c2633; }
:root[data-theme="dark"] .cta-band { background: var(--panel); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: var(--panel); border: 1px solid var(--line); } }
.plan .tag { background: var(--yellow); color: #0f1b2d; }
.form input, .form textarea, .form select { background: var(--panel); color: var(--text); }
:root[data-theme="dark"] .tag-pill.soon { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-pill.soon { color: var(--yellow); } }
@media (max-width: 700px) { .drag-hint { display: none; } }

/* Home: the complete solution as one picture (data in → server → tools, web apps below) */
.platform h2 { max-width: 20ch; }
.stack { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 2.6rem; margin-top: 2.2rem; align-items: stretch; position: relative; }
.stack h3, .apps h3 { font-family: var(--mono, ui-monospace, monospace); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-soft); margin: 0 0 .9rem; }
.stack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.stack-col li { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: .7rem .9rem; display: grid; gap: .1rem; }
.stack li b { font-weight: 600; color: var(--text); font-size: .95rem; }
.stack li span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.stack-col { position: relative; }
.stack-col:first-child::after, .stack-col:last-child::before { content: ""; position: absolute; top: 50%; width: 2.6rem; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px); }
.stack-col:first-child::after { right: -2.6rem; }
.stack-col:last-child::before { left: -2.6rem; }
.stack-core { border: 1.5px solid var(--blue); border-radius: 14px; padding: 1.3rem; background: color-mix(in srgb, var(--blue) 7%, var(--panel)); position: relative; display: flex; flex-direction: column; }
.stack-core h3 { color: var(--text); font-family: inherit; font-size: 1.15rem; letter-spacing: -0.01em; text-transform: none; font-weight: 600; }
.stack-core ul { grid-template-columns: 1fr 1fr; gap: .45rem; flex: 1; align-content: center; }
.stack-core li { border-radius: 8px; background: var(--panel); border: 1px solid var(--line); padding: .55rem .65rem; font-size: .86rem; color: var(--text); line-height: 1.3; display: flex; align-items: center; }
.stack-core::after { content: ""; position: absolute; left: 50%; bottom: -2.6rem; height: 2.6rem; width: 2px; background: repeating-linear-gradient(180deg, var(--blue) 0 6px, transparent 6px 10px); }
.apps { margin-top: 2.6rem; border: 1px dashed var(--line); border-radius: 14px; padding: 1.2rem 1.6rem 0; }
/* The built-in web apps: tabs above a browser window. home.js moves to the next app every few
   seconds while the section is in view, and stops for good once the visitor picks one. */
.tour-grid { display: grid; gap: 1.2rem; padding-bottom: 1.6rem; }
.tour-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.tour-tab { position: relative; overflow: hidden; display: grid; align-content: start; gap: .15rem; text-align: left; font: inherit; cursor: pointer; padding: .75rem .9rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: inherit; transition: border-color .25s, background .25s; }
.tour-tab:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.tour-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tour-tab.on { border-color: var(--blue); background: var(--bg-tint); }
.tour-tab b { font-weight: 600; color: var(--text); font-size: .98rem; }
.tour-tab > span:not(.tour-n) { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.tour-n { font: 500 .7rem var(--mono, ui-monospace, monospace); letter-spacing: .12em; color: var(--blue-soft); }
/* The time left before the next app, as a bar along the bottom of the open tab. */
.tour-time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.tour-tab.on .tour-time { transform: scaleX(var(--t, 0)); }
.tour-frame { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ground-2); box-shadow: 0 2px 4px rgba(12, 22, 38, .06), 0 24px 60px rgba(12, 22, 38, .16); }
.tour-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.tour-bar i { width: .62rem; height: .62rem; border-radius: 50%; background: var(--line); }
.tour-url { margin-left: .6rem; flex: 1; min-width: 0; padding: .2rem .7rem; border-radius: 6px; background: var(--ground); color: var(--muted); font: .76rem var(--mono, ui-monospace, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tour-shot { position: absolute; inset: 0; opacity: 0; transform: translateX(3%); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tour-shot.past { transform: translateX(-3%); }
.tour-shot.on { opacity: 1; transform: none; }
.tour-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-shot .d { display: none; }
:root[data-theme="dark"] .tour-shot .l { display: none; }
:root[data-theme="dark"] .tour-shot .d { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tour-shot .l { display: none; } :root:not([data-theme="light"]) .tour-shot .d { display: block; } }
@media (max-width: 900px) {
  /* Narrow screens: the tabs scroll sideways, and the open one's line is shown below the window. */
  .tour-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -1.6rem; padding: 0 1.6rem; scroll-padding: 0 1.6rem; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { flex: 0 0 auto; padding: .55rem .85rem .65rem; }
  .tour-tab > span:not(.tour-n) { display: none; }
  .tour-screen { aspect-ratio: 4 / 3; }
  .tour-shot img { object-position: var(--fo, 50% 50%); }
  .tour-caption { margin: 0; color: var(--muted); font-size: .92rem; }
}
@media (min-width: 901px) { .tour-caption { display: none; } }
@media (prefers-reduced-motion: reduce) { .tour-shot, .tour-tab { transition: none; } .tour-shot, .tour-shot.past { transform: none; } }
@media (max-width: 980px) {
  .stack { grid-template-columns: 1fr; gap: 2.2rem; }
  .stack-col:first-child::after, .stack-col:last-child::before { top: auto; left: 50%; right: auto; width: 2px; height: 2.2rem; background: repeating-linear-gradient(180deg, var(--blue) 0 6px, transparent 6px 10px); }
  .stack-col:first-child::after { bottom: -2.2rem; }
  .stack-col:last-child::before { top: -2.2rem; }
  .stack-core::after { display: none; }
}
@media (max-width: 560px) { .stack-core ul { grid-template-columns: 1fr; } }

/* Contact form: the hidden field for bots, and the status line under the button */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--ground-2); font-size: .93rem; }
.form-status[data-state="sent"] { border-color: var(--good); }
.form-status[data-state="invalid"], .form-status[data-state="unavailable"] { border-color: var(--yellow); }
