/* NEO Bio n Tech - showcase website. Tokens follow the NEO Bio n Tech design system V2:
   colour carries epistemic meaning. Cyan = observed or sourced data, turquoise = living matter,
   violet = anything a model produced. Status colours always come with words. */

@font-face { font-family: "Sora"; font-weight: 300; font-display: swap; src: url("../fonts/sora-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-display: swap; src: url("../fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --abyss: #05080f; --deep: #0a1120; --slate: #101a2e; --raise: #17233b;
  --line: rgba(150, 178, 225, .13); --line-2: rgba(150, 178, 225, .26);
  --ink: #e7eef9; --ink-2: #b7c4d9; --muted: #8797b1;
  --observed: #3fd6f0; --life: #36d3b4; --inferred: #a184ff;
  --ok: #4ade9a; --warn: #f5c04e; --bad: #ff7a7a; --info: #79b4ff;
  --focus: #7ee8ff;
  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-ui: "IBM Plex Sans", "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px; --gut: clamp(20px, 4vw, 40px);
  --r-ctl: 8px; --r-panel: 14px; --r-scene: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--abyss); color: var(--ink); font: 400 16.5px/1.6 var(--f-ui); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 300; letter-spacing: -.025em; line-height: 1.06; }
h3 { font-size: clamp(20px, 1.9vw, 26px); }
h4 { font-size: 15px; font-family: var(--f-ui); font-weight: 600; color: var(--ink-2); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.small { font-size: 14px; } .muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(63, 214, 240, .35); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--abyss); padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.link { color: var(--observed); text-decoration: underline; text-decoration-color: rgba(63, 214, 240, .4); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--observed); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 15.5px/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s, box-shadow .3s; white-space: nowrap; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(120deg, var(--observed), var(--life)); border-color: transparent; color: #031018; font-weight: 600; box-shadow: 0 8px 30px -10px rgba(63, 214, 240, .6); }
.btn.primary:hover { box-shadow: 0 10px 40px -8px rgba(63, 214, 240, .85); }
.btn.ghost:hover { border-color: var(--observed); background: rgba(63, 214, 240, .06); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Brand mark */
.mark-bg { fill: var(--slate); stroke: var(--line-2); }
.mark-a, .mark-b { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.mark-a { stroke: var(--observed); } .mark-b { stroke: var(--life); } .mark-c { fill: var(--inferred); }

/* Navigation */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 12px; pointer-events: none; }
.nav-in { pointer-events: auto; max-width: 1320px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid transparent; transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s; }
.nav.solid .nav-in, .p-sub .nav-in { background: rgba(10, 17, 32, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-n { font: 600 16px/1.1 var(--f-display); letter-spacing: -.01em; }
.brand-s { font-size: 12px; color: var(--muted); }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); background: rgba(150, 178, 225, .08); }
.nav-act { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; min-height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--line-2); color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--deep); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px #000; }
.lang li a, .lang li span { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.lang li a:hover { background: var(--slate); }
.lang li a[aria-current] { color: var(--observed); }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.burger i:first-of-type { top: 17px; } .burger i:last-of-type { top: 25px; }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.drawer { pointer-events: auto; max-width: 1320px; margin: 8px auto 0; padding: 14px; border-radius: 20px; background: rgba(10, 17, 32, .96); border: 1px solid var(--line-2); display: grid; gap: 2px; }
.drawer[hidden] { display: none; }
.drawer > a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 17px; }
.drawer > a:hover { background: var(--slate); }
.drawer-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(110% 80% at 72% 30%, #0f2140 0%, #070c18 55%, var(--abyss) 100%); }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: grab; touch-action: pan-y; }
.hero-gl:active { cursor: grabbing; }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 8, 15, .92) 0%, rgba(5, 8, 15, .55) 38%, rgba(5, 8, 15, 0) 62%), linear-gradient(0deg, var(--abyss) 0%, rgba(5, 8, 15, 0) 22%); }
.hero-in { padding-top: 120px; padding-bottom: 140px; pointer-events: none; }
.hero-in a { pointer-events: auto; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(161, 132, 255, .35); background: rgba(161, 132, 255, .08); color: #d5c9ff; font-size: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--inferred); box-shadow: 0 0 0 0 rgba(161, 132, 255, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(161, 132, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(161, 132, 255, 0); } }
.hero-h { margin-top: 26px; font-weight: 300; font-size: clamp(42px, 6.1vw, 92px); line-height: 1; letter-spacing: -.045em; max-width: 13.5ch; }
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h .ln > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-h .ln:nth-child(2) > span { animation-delay: .14s; background: linear-gradient(100deg, var(--ink) 0%, #bdefff 40%, var(--life) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { transform: none; } }
.hero-lede { margin-top: 28px; max-width: 50ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .hero-cta { opacity: 0; animation: fade 1s .7s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-note { position: absolute; right: var(--gut); bottom: 70px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: rgba(10, 17, 32, .6); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hero-note svg { fill: var(--inferred); }
.hero-seq { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; border-top: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.seq-track { display: flex; white-space: nowrap; font: 400 13px/1 var(--f-mono); letter-spacing: .3em; color: rgba(150, 178, 225, .4); animation: seq 60s linear infinite; }
.seq-track b { font-weight: 400; } .seq-track .A, .seq-track .T { color: rgba(54, 211, 180, .55); } .seq-track .G, .seq-track .C { color: rgba(63, 214, 240, .55); }
@keyframes seq { to { transform: translateX(-50%); } }

/* Statement */
.statement { padding: clamp(90px, 13vw, 170px) 0 clamp(40px, 6vw, 80px); }
.st-text { font: 300 clamp(26px, 3.6vw, 48px)/1.22 var(--f-display); letter-spacing: -.02em; max-width: 26ch; }
.st-text .w { color: rgba(231, 238, 249, .16); transition: color .5s var(--ease); }
.st-text .w.on { color: var(--ink); }
.st-text .w.key.on { color: var(--observed); }

/* Sections */
.sec { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.sec-h { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; }

/* Programmes */
.prog { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.prog.flip .prog-viz { order: 2; }
.prog-viz { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-scene); overflow: hidden; background: radial-gradient(90% 90% at 50% 40%, #0e1c36 0%, #060a14 100%); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--pc) 60%, transparent); }
.prog-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-tag { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; color: #e6cfff; background: rgba(217, 166, 255, .12); border: 1px dashed rgba(217, 166, 255, .5); }
.viz-tag.sci { color: #c9f6ff; background: rgba(63, 214, 240, .1); border: 1px solid rgba(63, 214, 240, .45); }
.viz-tag.inline { position: static; }
.legend { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 3px; border-radius: 2px; background: var(--observed); }
.legend .lg-inf { background: var(--inferred); } .legend .lg-life { background: var(--life); } .legend .lg-warn { background: var(--warn); }
.legend .lg-bad { background: repeating-linear-gradient(90deg, var(--bad) 0 4px, transparent 4px 7px); }
.legend .lg-dim { background: rgba(150, 178, 225, .35); }
.prog-tag { color: var(--pc); font-size: 14.5px; font-weight: 500; }
.prog h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; letter-spacing: -.03em; margin: 8px 0 16px; }
.prog-text { color: var(--ink-2); font-size: 17px; max-width: 54ch; }
.prog h4 { margin: 26px 0 10px; }
.qs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.qs li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15.5px; }
.qs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--pc); border-radius: 2px; }
.deliv { color: var(--ink-2); font-size: 15.5px; max-width: 54ch; }

/* Structures */
.structures { background: linear-gradient(180deg, transparent, rgba(16, 26, 46, .55) 20%, rgba(16, 26, 46, .55) 80%, transparent); }
.struct-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.struct-h { display: grid; gap: 22px; position: sticky; top: 110px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); width: max-content; max-width: 100%; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 500 14.5px var(--f-ui); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--observed); color: #031018; }
.struct-stage { display: grid; gap: 16px; }
.viewer { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; border-radius: var(--r-scene); overflow: hidden; border: 1px solid rgba(63, 214, 240, .25); background: radial-gradient(70% 70% at 50% 45%, #0d2140 0%, #050912 100%); cursor: grab; touch-action: none; }
.viewer:active { cursor: grabbing; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); font-size: 15px; pointer-events: none; }
.viewer-msg:empty { display: none; }
.viewer-hint { position: absolute; right: 14px; bottom: 12px; font-size: 12.5px; color: var(--muted); }
.prov { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.prov > div { background: var(--deep); padding: 12px 16px; }
.prov > div.wide { grid-column: 1 / -1; }
.prov dt { font-size: 12.5px; color: var(--muted); }
.prov dd { margin: 2px 0 0; font-size: 14.5px; }
.prov a { color: var(--observed); }
.hash { word-break: break-all; color: var(--ink-2); }
.chk { display: block; margin-top: 6px; font-size: 13px; }
.chk.ok { color: var(--ok); } .chk.bad { color: var(--bad); }
.els { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 6px; align-items: center; }
.els i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 3px; }

/* Method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; left: 0; top: 27px; height: 2px; width: calc(var(--prog, 0) * 100%); background: linear-gradient(90deg, var(--observed), var(--life), var(--inferred)); box-shadow: 0 0 18px rgba(63, 214, 240, .6); transition: width .2s linear; }
.steps li { position: relative; padding-right: 28px; }
.steps .n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--abyss); border: 1px solid var(--line-2); font: 500 20px var(--f-display); color: var(--muted); transition: all .5s var(--ease); }
.steps li.on .n { color: #031018; background: var(--observed); border-color: var(--observed); box-shadow: 0 0 0 8px rgba(63, 214, 240, .12); }
.steps h3 { margin: 26px 0 10px; font-size: 22px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

/* Proof */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.dim { background: var(--deep); padding: 26px 24px 28px; position: relative; }
.dim::before { content: ""; position: absolute; left: 24px; top: 0; width: 36px; height: 3px; background: var(--dc); border-radius: 0 0 3px 3px; }
.dim h3 { font-size: 19px; margin: 6px 0 12px; }
.dim p { font-size: 15px; color: var(--ink-2); }
.dim .not { margin-top: 12px; color: var(--muted); font-size: 14px; }
.merkle { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 28px; }
.mk-copy { display: grid; gap: 16px; max-width: 760px; justify-items: start; }
.mk-copy h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; letter-spacing: -.02em; }
.mk-copy p { color: var(--ink-2); }
.mk-tree { position: relative; display: grid; gap: 34px; padding: 26px; border-radius: var(--r-scene); border: 1px solid var(--line); background: radial-gradient(80% 60% at 50% 0%, rgba(63, 214, 240, .07), transparent 70%), var(--deep); }
.mk-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mk-lines path { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .3s; }
.mk-lines path.hot { stroke: var(--bad); stroke-dasharray: 5 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.mk-root, .mk-n, .mk-leaf { position: relative; z-index: 1; border-radius: 12px; border: 1px solid var(--line-2); background: var(--slate); padding: 12px 14px; display: grid; gap: 6px; transition: border-color .3s, box-shadow .3s; }
.mk-root { justify-self: center; width: min(100%, 460px); text-align: center; border-color: rgba(63, 214, 240, .5); box-shadow: 0 0 40px -12px rgba(63, 214, 240, .5); }
.mk-root.broken { border-color: var(--bad); box-shadow: 0 0 40px -12px rgba(255, 122, 122, .6); }
.mk-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 8%; }
.mk-leaves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mk-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.mk-h { font-size: 12px; color: var(--observed); word-break: break-all; line-height: 1.35; }
.changed { border-color: var(--bad) !important; }
.changed .mk-h { color: var(--bad); }
.flash { animation: flash .6s var(--ease); }
@keyframes flash { from { box-shadow: 0 0 0 4px rgba(255, 122, 122, .35); } }
.mk-leaf textarea { width: 100%; resize: vertical; min-height: 92px; border-radius: 8px; border: 1px solid var(--line); background: var(--abyss); color: var(--ink); padding: 8px 10px; font: 400 13px/1.45 var(--f-ui); }
.mk-leaf textarea:focus { outline: none; border-color: var(--observed); }
.mk-state { font-size: 13.5px; font-weight: 500; }
.mk-state.ok { color: var(--ok); } .mk-state.bad { color: var(--bad); }
.mk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mk-foot .mono { word-break: break-all; }
.anchor { margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.anchor h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; }
.anchor-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.anchor-cols > div { padding: 22px 24px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--deep); }
.anchor-cols h4 { margin-bottom: 8px; font-size: 16px; }
.anchor-cols .yes h4 { color: var(--ok); } .anchor-cols .no h4 { color: var(--bad); }
.anchor-cols p { color: var(--ink-2); font-size: 15.5px; }

/* LILI */
.lili-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.lili-copy { display: grid; gap: 18px; }
.lili-copy > p:not(.lede) { color: var(--ink-2); max-width: 56ch; }
.eco { margin-top: 18px; padding: 24px; border-radius: var(--r-panel); border: 1px solid rgba(161, 132, 255, .3); background: linear-gradient(140deg, rgba(161, 132, 255, .09), transparent 60%); display: grid; gap: 10px; }
.eco p { color: var(--ink-2); font-size: 15.5px; }
.lili-panel { border-radius: var(--r-scene); border: 1px solid rgba(161, 132, 255, .35); background: radial-gradient(90% 60% at 20% 0%, rgba(161, 132, 255, .16), transparent 70%), var(--deep); padding: 28px; box-shadow: 0 50px 100px -60px rgba(161, 132, 255, .7); }
.lili-top { display: flex; align-items: center; gap: 16px; }
.orb { width: 72px; height: 72px; }
.lili-name { font: 500 24px var(--f-display); margin-bottom: 4px; }
.lili-ask { margin: 22px 0 18px; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: var(--slate); border: 1px solid var(--line); font-size: 15.5px; }
.trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.trace li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--line-2); opacity: .25; transform: translateX(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.trace li.on { opacity: 1; transform: none; }
.trace .tk { font-size: 13.5px; color: #cdbfff; font-weight: 500; }
.trace .tv { font-size: 14.5px; color: var(--ink-2); }
.trace li.needs .tk { color: var(--warn); }

/* Sources */
.constellation { position: relative; border-radius: var(--r-scene); border: 1px solid var(--line); background: radial-gradient(60% 70% at 50% 50%, #0d1d38, #060a14); overflow: hidden; }
.constellation canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.src-groups { position: relative; z-index: 1; margin: 0; padding: clamp(24px, 4vw, 48px); list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.src-groups li { padding: 18px 20px; border-radius: var(--r-panel); background: rgba(10, 17, 32, .78); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.src-groups h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.src-groups h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); box-shadow: 0 0 12px var(--gc); }
.src-groups p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.facts { margin: 36px 0 12px; font: 300 clamp(20px, 2vw, 26px)/1.4 var(--f-display); max-width: 48ch; letter-spacing: -.01em; }

/* Road + honesty */
.road-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.road-grid > div > .lede { margin: 18px 0 36px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--abyss); }
.timeline li.done::before { background: var(--life); border-color: var(--life); box-shadow: 0 0 14px rgba(54, 211, 180, .6); }
.timeline .st { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.timeline li.done .st { color: var(--life); }
.timeline h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline p { color: var(--ink-2); font-size: 15px; }
.honest h2 { margin-bottom: 28px; font-size: clamp(28px, 3vw, 40px); }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-panel); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--deep); }
tbody th { font-weight: 500; color: var(--ink); width: 36%; }
tbody td { color: var(--ink-2); }
tbody tr:last-child > * { border-bottom: 0; }

/* Contact */
.contact { text-align: left; }
.contact { overflow: hidden; isolation: isolate; }
.contact-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; mask-image: radial-gradient(70% 80% at 75% 50%, #000, transparent); }
.contact-in { display: grid; gap: 22px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(40px, 6vw, 80px); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--deep); padding: 56px 0 40px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-tag { font: 300 20px/1.35 var(--f-display); max-width: 30ch; }
.foot-small { color: var(--muted); font-size: 14px; max-width: 46ch; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot-col a:hover { color: var(--observed); }
.foot-h { font-size: 13px; color: var(--muted); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); font-size: 13px; }

/* Sub pages: access, login, legal, 404 */
.sub { position: relative; min-height: 100svh; padding: 140px 0 100px; overflow: hidden; isolation: isolate; }
.sub-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.sub h1 { font-weight: 300; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -.04em; line-height: 1; }
.sub-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sub-copy { display: grid; gap: 22px; }
.h-side { font-size: 20px; font-weight: 500; letter-spacing: 0; margin-top: 12px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.next-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(63, 214, 240, .5); color: var(--observed); font: 500 14px var(--f-display); }
.next-steps p { color: var(--ink-2); padding-top: 5px; }
.card { border-radius: var(--r-scene); border: 1px solid var(--line-2); background: rgba(10, 17, 32, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: clamp(24px, 3vw, 40px); box-shadow: 0 50px 120px -60px rgba(0, 0, 0, .9); }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14.5px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: rgba(5, 8, 15, .7); color: var(--ink); font: 400 16px/1.4 var(--f-ui); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--observed); box-shadow: 0 0 0 3px rgba(63, 214, 240, .18); }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13.5px; color: var(--bad); min-height: 0; }
.field .err:empty { display: none; }
.field.check { grid-template-columns: 22px 1fr; align-items: start; column-gap: 12px; }
.field.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--observed); }
.field.check label { font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.field.check .err { grid-column: 2; }
.req-note { margin-bottom: -4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: var(--r-ctl); font-size: 14.5px; border: 1px solid rgba(255, 122, 122, .45); background: rgba(255, 122, 122, .08); color: #ffc4c4; }
.form-status.info { border-color: rgba(121, 180, 255, .45); background: rgba(121, 180, 255, .08); color: #cfe2ff; }
.form-ok { display: grid; gap: 16px; justify-items: start; }
.form-ok[hidden] { display: none; }
.form-ok svg circle { fill: rgba(74, 222, 154, .1); stroke: var(--ok); stroke-width: 2; }
.form-ok svg path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .6s .2s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.form-ok h2 { font-size: 32px; }
.form-ok p { color: var(--ink-2); }
.login-wrap { display: grid; place-items: center; min-height: calc(100svh - 240px); }
.login-card { width: min(100%, 480px); display: grid; gap: 18px; }
.mark.big { margin-bottom: 4px; }
.pw { position: relative; }
.pw input { padding-right: 76px !important; }
.pw-t { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border-radius: 6px; border: 0; background: var(--slate); color: var(--ink-2); font: 500 13px var(--f-ui); cursor: pointer; }
.legal { max-width: 820px; display: grid; gap: 30px; }
.legal section { display: grid; gap: 10px; }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: 0; }
.legal section p { color: var(--ink-2); }
.nf-in { display: grid; gap: 22px; justify-items: start; padding-top: 6vh; }
.nf-code { font-size: clamp(80px, 16vw, 200px); line-height: 1; background: linear-gradient(100deg, var(--observed), var(--inferred)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Responsive */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-act .btn.primary { display: none; }
  .nav-act { margin-left: auto; }
  .dims { grid-template-columns: 1fr 1fr; }
  .mk-leaves { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .prog, .struct-grid, .merkle, .lili-grid, .road-grid, .sub-grid { grid-template-columns: 1fr; }
  .prog.flip .prog-viz { order: 0; }
  .struct-h, .mk-copy { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero { align-items: flex-end; }
  .hero-note { bottom: auto; top: 92px; right: var(--gut); }
  .hero-in { padding-top: 46svh; }
  .hero-veil { background: linear-gradient(180deg, rgba(5, 8, 15, 0) 0%, rgba(5, 8, 15, 0) 34%, rgba(5, 8, 15, .82) 52%, var(--abyss) 100%); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .dims, .anchor-cols, .field-row, .mk-leaves { grid-template-columns: 1fr; }
  .mk-mid { padding: 0; gap: 10px; }
  .prov { grid-template-columns: 1fr; }
  .trace li { grid-template-columns: 1fr; gap: 4px; }
  .lili-panel { padding: 20px; }
  .brand-s { display: none; }
  .hero-in { padding-bottom: 110px; }
  .tabs { width: 100%; } .tabs button { flex: 1; padding: 0 10px; }
  .drawer-act { grid-template-columns: 1fr; }
  .lang summary { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-h .ln > span { transform: none; } .hero-lede, .hero .hero-cta { opacity: 1; }
  .st-text .w { color: var(--ink); }
  .trace li { opacity: 1; transform: none; }
}

/* grid children may shrink below their content (wide tables scroll inside their frame) */
.prog > *, .struct-grid > *, .merkle > *, .lili-grid > *, .road-grid > *, .sub-grid > *, .foot-in > * { min-width: 0; }

/* Simplified Chinese: system CJK faces after the Latin ones, no negative tracking, wider measure */
:lang(zh) body, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .st-text, :lang(zh) .facts, :lang(zh) .foot-tag { font-family: var(--f-ui), "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
:lang(zh) .hero-h { max-width: 9em; letter-spacing: 0; line-height: 1.12; }
:lang(zh) .st-text { max-width: 22em; line-height: 1.5; }
:lang(zh) .lede, :lang(zh) .prog-text, :lang(zh) .deliv { max-width: 38em; }

/* Long words (German) break with hyphens instead of overflowing; language menu moves into the drawer on phones */
.hero-h, h1, h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.drawer-lang { display: none; }
.drawer .lang { margin-top: 6px; }
.drawer .lang summary { width: max-content; }
.drawer .lang ul { position: static; margin-top: 8px; box-shadow: none; }
@media (max-width: 620px) {
  .hero-h { font-size: clamp(34px, 10.5vw, 44px); }
  .nav-act .lang { display: none; }
  .drawer-lang { display: block; }
  .nav-in { gap: 10px; }
  .nav-act .btn.ghost { padding: 0 12px; }
}
