/* Desimula — dark, typographic, engineering-first. No third-party fonts or assets. */
:root {
  --bg: #05070b;
  --bg-2: #090d14;
  --panel: #0d121b;
  --panel-2: #121926;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f3f6fb;
  --muted: #8d98ab;
  --dim: #7d889b;
  --accent: #4f8cff;
  --accent-2: #2ee6c8;
  --warm: #ffb547;
  --bad: #ff5d73;
  --grad: linear-gradient(100deg, #6ea2ff 0%, #2ee6c8 55%, #c9f66b 110%);
  --radius: 18px;
  --max: 1240px;
  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; overflow-wrap: break-word; }
::selection { background: rgba(46, 230, 200, .3); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }

/* Type */
.display { font-size: clamp(2.9rem, 8.4vw, 7rem); line-height: .96; letter-spacing: -0.045em; }
.h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); letter-spacing: -0.045em; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 40em; line-height: 1.55; }
.muted { color: var(--muted); }
.label {
  display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); }
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .86em 1.5em;
  border-radius: 999px; font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  background: var(--ink); color: #05070b; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px rgba(110, 162, 255, .7); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.link { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--accent-2); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #05070b; padding: .6em 1em; border-radius: 10px; font-weight: 600; transition: top .15s ease; }
.skip:focus { top: 12px; }
canvas:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 7, 11, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 1.22rem; letter-spacing: -0.03em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.langs { display: inline-flex; gap: 2px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }
.nav-links .langs a { padding: .34em .6em; border-radius: 999px; color: var(--dim); font-size: inherit; }
.nav-links .langs a:hover { color: var(--ink); }
.nav-links .langs a[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .09); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-right: -10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 120px 0 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 11, .86) 30%, rgba(5, 7, 11, 0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 11, 0) 26%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 60px; }
.hero .lead { margin-top: 1.8rem; max-width: 31rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.6rem; }
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); overflow: hidden; padding: 20px 0; margin-top: auto; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: ticker 48s linear infinite; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ticker-track span::before { content: "◆"; color: var(--accent-2); margin-right: 56px; font-size: .6em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sub-page hero */
.page-hero { position: relative; padding: 190px 0 90px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(79, 140, 255, .2), transparent 70%),
    radial-gradient(40% 60% at 15% 10%, rgba(46, 230, 200, .1), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 90% at 70% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 90% at 70% 0%, #000, transparent 75%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 1.6rem; }
.sample { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.sample .lead { margin-top: 1.4rem; }
.sample-page { display: block; justify-self: center; max-width: 380px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(1.6deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.sample-page:hover, .sample-page:focus-visible { transform: rotate(0) translateY(-6px); }
.sample-page img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .sample { grid-template-columns: 1fr; gap: 44px; } .sample-page { max-width: 300px; } }
.notfound { min-height: 78vh; display: flex; align-items: center; }
.notfound > .container { width: 100%; }

/* Sections */
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head .lead { margin-top: 1.4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }

/* Cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; transition: border-color .3s ease, transform .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 140, 255, .16), transparent 60%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin-bottom: .6em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-fig img { display: block; width: calc(100% + 56px); max-width: none; height: auto; margin: -30px -28px 26px; border-bottom: 1px solid var(--line); background: #05070b; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 2.2rem; }
.pair figure { margin: 0; }
.pair img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #05070b; }
.pair figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.45; color: var(--dim); }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }
.card .num { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; color: var(--accent-2); margin-bottom: 2.2rem; display: block; }
.card .tag { display: inline-block; margin-top: 1.4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--dim); }
.card .tag a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.card .tag a:hover { color: var(--ink); }
a.card:hover { transform: translateY(-3px); }
.card .more { display: inline-flex; gap: .5em; margin-top: 1.6rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
a.card:hover .more .arr { transform: translateX(4px); }
.more .arr { transition: transform .2s ease; }

/* Pipelines (problem section) */
.pipes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pipe { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 30px; }
.pipe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pipe-head strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.pipe-head span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--muted); white-space: nowrap; }
.sep { font-size: 1.15rem; line-height: 1; color: var(--bad); padding: 0 2px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 30px; }
.flow li { position: relative; container-type: inline-size; }
.flow-pic { display: block; border: 1px solid var(--line); border-radius: 12px; background: #0b0f17; overflow: hidden; }
.flow-pic img { display: block; width: 100%; height: auto; }
.flow-old .flow-pic img { padding: 8% 7%; }
.flow strong { display: block; margin-top: 12px; font-size: .95rem; letter-spacing: -0.01em; }
.flow li > span:last-child { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.flow li + li::before { position: absolute; left: -15px; top: 40px; transform: translate(-50%, -50%); font-size: 1.05rem; line-height: 1; }
.flow-old li + li::before { content: "\00d7"; color: #ff6b7a; top: calc(100cqw * 0.42); }
.flow-new li + li::before { content: "\2192"; color: var(--accent-2); top: calc(100cqw * 0.375); }
.flow-new .flow-pic { border-color: rgba(46, 230, 200, .28); }
.flow-foot { margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 1000px) {
  .flow { overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .flow li { scroll-snap-align: start; }
  .flow-old { grid-auto-columns: 148px; }
  .flow-new { grid-auto-columns: 220px; }
}
.pipe.good { border-color: rgba(46, 230, 200, .35); background: linear-gradient(180deg, rgba(46, 230, 200, .07), rgba(79, 140, 255, .03)), var(--panel); }
.pipe.good .chip { color: var(--ink); border-color: rgba(46, 230, 200, .4); background: rgba(46, 230, 200, .06); }
.pipe.good .sep { color: var(--accent-2); }
.pipe.good .pipe-head span { color: var(--accent-2); }

/* Loop / steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.step { position: relative; padding: 30px 24px 34px; border-right: 1px solid var(--line); transition: background .4s ease; }
.step:last-child { border-right: 0; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.step.on { background: var(--panel-2); }
.step.on::after { animation: stepbar 3.6s linear forwards; }
@keyframes stepbar { to { transform: scaleX(1); } }
.step .num { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; color: var(--dim); transition: color .3s; }
.step.on .num { color: var(--accent-2); }
.step h3 { margin: 2.4rem 0 .7rem; font-size: 1.45rem; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.loop-note { margin-top: 18px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.loop-note::before { content: "↻"; color: var(--accent-2); font-size: 1.2rem; }

/* Demo panels */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.demo-stage { position: relative; background: radial-gradient(120% 120% at 50% 0%, #0f1826, #070a10 70%); }
.demo-stage canvas { width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.demo-stage canvas#param { touch-action: pan-y; cursor: default; }
.demo-live { position: absolute; top: 16px; left: 18px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: pulse 1.4s ease-in-out infinite; }
.demo-live.done i { background: var(--warm); animation: none; }
.demo-legend { position: absolute; top: 16px; right: 18px; display: flex; gap: 18px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.demo-legend span { display: flex; align-items: center; gap: 8px; }
.demo-legend i { width: 14px; height: 4px; border-radius: 2px; }
@keyframes pulse { 50% { opacity: .25; } }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 18px 22px; border-top: 1px solid var(--line); }
.demo-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .86rem; padding: .42em 1em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #05070b; font-weight: 600; }
.range { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.range input { accent-color: var(--accent-2); width: 130px; }
.stats { display: flex; gap: 26px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stats b { display: block; font-size: 1.12rem; letter-spacing: 0; color: var(--ink); font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stats b.ok { color: var(--accent-2); }
.stats b.bad { color: var(--bad); }
.caption { margin-top: 16px; font-size: .86rem; color: var(--dim); max-width: 64em; }

/* Simulation clips */
.clips { display: grid; grid-template-columns: 5fr 7fr; gap: 22px 22px; }
.clip { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.clip-tall { grid-row: span 2; }
.clip-frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #05070b; }
.clip-tall .clip-frame { flex: 1 1 auto; aspect-ratio: auto !important; min-height: 420px; }
.clip-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-tag { position: absolute; top: 16px; left: 18px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: .4em .8em; border-radius: 999px; background: rgba(5, 7, 11, .55); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.clip figcaption { padding: 18px 4px 6px; }
.clip figcaption h3 { margin-bottom: .45em; }
.clip figcaption p { margin: 0; color: var(--muted); font-size: .96rem; max-width: 46em; }

.more-row { margin: 34px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 22px; margin-top: 34px; }
.gallery .clip-tall { grid-row: span 2; }
.gallery .clip[hidden] { display: none; }
.filter { flex-wrap: wrap; border-radius: 22px; }

/* Verification table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.vtable { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 780px; }
.vtable th, .vtable td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vtable thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.vtable tbody tr:last-child > * { border-bottom: 0; }
.vtable tr.group th { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; background: rgba(46, 230, 200, .05); padding-top: 13px; padding-bottom: 13px; }
.vtable th[scope="row"] { font-weight: 600; white-space: nowrap; color: var(--ink); }
.vtable td { color: var(--muted); }
.vtable td.num { font-family: var(--mono); font-size: .88rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vtable td.num span { color: var(--dim); font-family: var(--sans); white-space: normal; }
.vtable td.dev { color: var(--accent-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 1.6rem; font-weight: 300; color: var(--accent-2); transition: transform .25s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: -6px 0 28px; color: var(--muted); max-width: 46em; }

/* Articles */
.article-hero { padding-bottom: 56px; }
.article-hero .label a:hover { color: var(--ink); }
.article { font-size: 1.1rem; line-height: 1.75; }
.article > p { color: #b9c2d2; margin: 0 0 1.35em; }
.article > p strong { color: var(--ink); }
.article > p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 4px; }
.article > p a:hover { text-decoration-thickness: 2px; }
.article > h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); letter-spacing: -0.03em; line-height: 1.2; margin: 2.3em 0 .8em; }
.article .embed { margin: 2.4em 0; }
.article .embed .clip-frame video { position: static; display: block; height: auto; }
.article-back { margin-top: 3.4em; font-size: 1rem; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field > span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field > span em { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0; margin-left: .5em; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink);
  font: inherit; padding: .85em 1em; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(46, 230, 200, .16); }
.field textarea::placeholder { color: var(--dim); }
.field small, .form-foot small { color: var(--dim); font-size: .86rem; }
.file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file input:focus-visible + b { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.file i { font-style: normal; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-foot small { flex: 1 1 260px; }
.form-error { margin: 0; color: var(--bad); }
.form button[disabled] { opacity: .6; pointer-events: none; }
.contact-side { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.contact-side p { margin: .6em 0 0; }
.form-done .lead { margin-top: 1rem; }
.foot { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.number { padding: 44px 28px 0 0; }
.number + .number { padding-left: 28px; border-left: 1px solid var(--line); }
.number b { display: block; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.number span { display: block; margin-top: 16px; color: var(--muted); font-size: .95rem; max-width: 17em; }

/* Lists */
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7em; }
.ticks li { position: relative; padding-left: 1.8em; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .9em; height: 1px; background: var(--accent-2); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .when { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; padding-top: .25em; }
.row p { margin: 0; color: var(--muted); }
.row p strong { color: var(--ink); font-weight: 600; }
.row a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.row a:hover { border-color: var(--accent-2); }

/* Pillars (technology) */
.pillar { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); align-items: start; }
.pillar .num { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; color: var(--accent-2); display: block; margin-bottom: 1.6rem; }
.pillar p { color: var(--muted); }
.pillar h2 { margin-bottom: 1.4rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.avatar { aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 5.5rem; font-weight: 600; letter-spacing: -0.06em; background: radial-gradient(120% 120% at 20% 10%, rgba(79, 140, 255, .35), transparent 60%), radial-gradient(90% 90% at 90% 90%, rgba(46, 230, 200, .25), transparent 60%), var(--panel); }
.founder h3 { font-size: 2rem; letter-spacing: -0.035em; }
.founder .role { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: .8rem 0 1.6rem; }
.founder p { color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(96px, 13vw, 180px) 0; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 50% 100%, rgba(79, 140, 255, .28), transparent 70%), radial-gradient(30% 50% at 60% 110%, rgba(46, 230, 200, .22), transparent 70%); }
.cta > * { position: relative; }
.cta .lead { margin: 1.6rem auto 2.6rem; }
.cta .btn { font-size: 1.1rem; padding: 1em 1.9em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot .foot-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 1.1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); margin-bottom: 1rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }

/* Prose pages (imprint) */
.prose h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.4em 0 .7em; }
.prose p, .prose li { color: var(--muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 24px; }
  .step:last-child { border-bottom: 0; }
  .step .num { grid-row: span 2; padding-top: .5em; }
  .step h3 { margin: 0 0 .4rem; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .number { padding: 36px 20px 8px 0; }
  .number + .number { padding-left: 24px; }
  .number:nth-child(3) { padding-left: 0; border-left: 0; }
  .number:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .clips, .gallery { grid-template-columns: 1fr; }
  .gallery .clip-tall { grid-row: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .clip-tall { grid-row: auto; }
  .clip-tall .clip-frame { aspect-ratio: 4 / 5 !important; min-height: 0; flex: none; }
  .nav-links .langs { font-size: .95rem; gap: 6px; }
  .nav-links .langs a:not(.btn) { font-size: .95rem; letter-spacing: .06em; color: var(--muted); padding: .4em .8em; }
  .nav-links .langs a[aria-current="true"]:not(.btn) { color: var(--ink); }
  .container { padding: 0 20px; }
  .split, .pillar, .founder { grid-template-columns: 1fr; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .avatar { max-width: 200px; font-size: 3.6rem; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .hero { justify-content: flex-start; }
  .hero-inner { padding-bottom: 270px; }
  .hero::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 11, .88) 52%, rgba(5, 7, 11, 0) 70%, rgba(5, 7, 11, 0) 88%, var(--bg) 100%); }
  .page-hero { padding: 150px 0 64px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(5, 7, 11, .97); flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .nav-links a:not(.btn) { font-size: 1.8rem; color: var(--ink); letter-spacing: -0.03em; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-open .site-header, .nav-open .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .brand { position: relative; z-index: 2; }
  .stats { gap: 18px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .number, .number + .number { padding: 30px 0 0; border-left: 0; }
  .number + .number { border-top: 1px solid var(--line); margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .demo-bar { padding: 16px; }
  .demo-stage { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding-top: 14px; }
  .demo-live, .demo-legend { position: static; padding: 0 16px; }
  .demo-legend { gap: 12px; }
  .demo-stage canvas { flex: 0 0 100%; }
  .range input { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .step.on::after { animation: none; transform: scaleX(1); }
  .btn, .card { transition: none; }
}

/* Chinese: no tight tracking, more leading; CJK glyphs fill their box */
html:lang(zh-Hans) body { line-height: 1.75; }
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3, html:lang(zh-Hans) h4 { letter-spacing: -0.005em; line-height: 1.18; }
html:lang(zh-Hans) .display { font-size: clamp(2.7rem, 7.4vw, 6.2rem); line-height: 1.1; letter-spacing: 0; }
html:lang(zh-Hans) .h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); letter-spacing: 0; }
html:lang(zh-Hans) .h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
html:lang(zh-Hans) .vtable thead th, html:lang(zh-Hans) .vtable tr.group th, html:lang(zh-Hans) .field > span, html:lang(zh-Hans) .label, html:lang(zh-Hans) .ticker-track, html:lang(zh-Hans) .card .num, html:lang(zh-Hans) .pipe-head span, html:lang(zh-Hans) .stats, html:lang(zh-Hans) .clip-tag, html:lang(zh-Hans) .demo-live, html:lang(zh-Hans) .demo-legend, html:lang(zh-Hans) .loop-note, html:lang(zh-Hans) .pillar .num, html:lang(zh-Hans) .range { font-family: var(--sans); letter-spacing: .08em; font-size: .8rem; }
html:lang(zh-Hans) .stats b { font-family: var(--mono); }
html:lang(zh-Hans) .lead { line-height: 1.7; }
/* German and French: longer words */
html:lang(de) .display, html:lang(fr) .display { font-size: clamp(2.5rem, 7.4vw, 6.2rem); }
html:lang(de) .h1, html:lang(fr) .h1 { font-size: clamp(2.2rem, 5.4vw, 4.5rem); }
html:lang(de) .h2, html:lang(fr) .h2 { font-size: clamp(1.85rem, 4vw, 3.2rem); }

/* Four links, four languages and a button: fold the navigation into the menu below 1000px */
@media (max-width: 1000px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav-links { position: fixed; inset: 0; background: rgba(5, 7, 11, .97); flex-direction: column; justify-content: center; gap: 30px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .nav-links a:not(.btn) { font-size: 1.8rem; color: var(--ink); letter-spacing: -0.03em; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-open .site-header, .nav-open .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav-links .langs { font-size: .95rem; gap: 6px; }
  .nav-links .langs a:not(.btn) { font-size: .95rem; letter-spacing: .06em; color: var(--muted); padding: .4em .8em; }
  .nav-links .langs a[aria-current="true"]:not(.btn) { color: var(--ink); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
