/* Runwick · Kinetic Intelligence design system (public site). */
@font-face { font-family: "Inter Tight"; src: url(/fonts/inter-tight-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --ground: #0D0E10; --surface: #15161A; --raised: #1C1E22; --rise: #23262B;
  --ink: #ECEBE7; --dim: #B2B0AA; --faint: #8A8882; --line: rgba(236, 235, 231, .12); --line-2: rgba(236, 235, 231, .24);
  --bone: #E8E5DE; --bone-2: #DCD8CF; --carbon: #121214; --carbon-dim: #4C4B47;
  --mint: #7FE3C4; --cobalt: #6F86FF; --amber: #E7B35A; --coral: #FF7B6E;
  --ui: "Inter Tight", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --g: clamp(16px, 3.4vw, 40px); --max: 1400px;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ol, ul, dl, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(127, 227, 196, .28); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.kicker { font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.kicker b { color: var(--mint); font-weight: 400; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 11px/1 var(--mono); letter-spacing: .06em; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--dim); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.live { color: var(--mint); border-color: rgba(127, 227, 196, .35); }
.tag.gated { color: var(--amber); border-color: rgba(231, 179, 90, .35); }
.tag.planned { color: var(--dim); }
.tag.example { color: var(--cobalt); border-color: rgba(111, 134, 255, .35); }
.note { font: 12px/1.5 var(--mono); color: var(--faint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 560; font-size: 15px;
  text-decoration: none; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn.solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.solid:hover { background: #fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.on-bone .btn { border-color: rgba(18, 18, 20, .28); color: var(--carbon); }
.on-bone .btn.solid { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(13, 14, 16, .78); backdrop-filter: saturate(1.4) blur(18px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.brand .mark { flex: none; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav > a, .nav > .menu > button { font-size: 14.5px; font-weight: 500; color: var(--dim); text-decoration: none; padding: 9px 13px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav > .menu > button:hover, .nav > a[aria-current="page"] { color: var(--ink); background: rgba(236, 235, 231, .06); }
.menu { position: relative; }
.menu > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-3px) rotate(45deg); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: rgba(21, 22, 26, .96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.menu.open .menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.menu-panel a:hover { background: var(--raised); }
.menu-panel b { display: block; font-weight: 560; font-size: 14.5px; }
.menu-panel span { display: block; font-size: 13px; color: var(--faint); line-height: 1.4; margin-top: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font: 12px var(--mono); color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11, 12, 13, .72); backdrop-filter: blur(8px); }
.lang:hover { border-color: var(--ink); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.burger i { top: 21px; } .burger i::before { left: 0; top: -5px; } .burger i::after { left: 0; top: 5px; }
.menu-open .burger i { background: transparent; } .menu-open .burger i::before { transform: translateY(5px) rotate(45deg); } .menu-open .burger i::after { transform: translateY(-5px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 45; background: var(--ground); padding: 92px var(--g) 32px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.menu-open .sheet { opacity: 1; pointer-events: auto; }
.sheet nav a { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet .sheet-group { margin-top: 26px; }
.sheet .sheet-group a { font-size: 17px; padding: 9px 0; border: 0; color: var(--dim); }
.sheet .btn { margin-top: 28px; width: 100%; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 72px 0 40px; background: var(--ground); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--dim); font-size: 14.5px; margin-top: 16px; max-width: 30ch; }
.foot-brand .phrase { font-size: 28px; font-weight: 300; letter-spacing: -.04em; color: var(--ink); margin-top: 26px; line-height: 1.05; }
.foot h4 { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 14px; }
.foot li { margin: 0 0 9px; }
.foot li a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.foot li a:hover { color: var(--ink); }
.foot-contact li span { display: block; font: 11px/1.6 var(--mono); letter-spacing: .06em; color: var(--faint); }
.foot-contact li a { word-break: break-all; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font: 12px/1.6 var(--mono); color: var(--faint); }

/* Shared page chrome for information pages */
.page-hero { padding: 168px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(44px, 7vw, 112px); font-weight: 300; line-height: .95; letter-spacing: -.055em; max-width: 14ch; margin-top: 18px; }
.page-hero p.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--dim); max-width: 52ch; margin-top: 26px; line-height: 1.5; }
.page-hero .hero-art { position: absolute; right: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); bottom: -40px; width: min(36vw, 460px); opacity: .95; pointer-events: none; }
.prose { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: 64px; padding: 72px var(--g) 120px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc a { display: block; color: var(--faint); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.prose article > section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.prose article > section:last-child { border: 0; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 18px; }
.prose h3 { font-size: 19px; font-weight: 560; letter-spacing: -.015em; margin: 28px 0 10px; }
.prose p, .prose li { color: #CFCDC7; font-size: 16.5px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.prose ul.dots li { position: relative; padding-left: 20px; margin: 8px 0; }
.prose ul.dots li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.prose code, .prose pre { font-family: var(--mono); font-size: 13.5px; }
.prose code { background: var(--raised); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; line-height: 1.6; margin: 16px 0; color: #DAD8D2; }
.prose a { color: var(--ink); text-decoration-color: var(--mint); text-underline-offset: 3px; }
.callout { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; margin: 18px 0; background: var(--surface); }
.callout.warn { border-color: rgba(231, 179, 90, .4); }
.callout b { display: block; margin-bottom: 4px; }
.table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; }
.table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td.n { font-family: var(--mono); white-space: nowrap; color: var(--ink); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 18px 0; }
.status-grid > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.status-grid b { display: block; margin: 10px 0 4px; font-weight: 560; }
.status-grid p { font-size: 14.5px; color: var(--dim); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; color: var(--faint); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; }
.draft-banner { border: 1px dashed rgba(231, 179, 90, .5); color: var(--amber); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 32px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav, .top-actions .lang, .top-actions .btn { display: none; }
  .burger { display: block; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .prose { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .page-hero .hero-art { position: relative; right: auto; bottom: auto; width: 70%; margin: 40px auto -40px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 120px 0 48px; }
  .prose p, .prose li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.prose > *, .prose article, .prose section { min-width: 0; }
.prose pre { max-width: 100%; }
.table td:first-child { width: 42%; color: var(--ink); }
.toc a { color: var(--dim); }

/* Client-side navigation: a thin progress line while the next page loads; no full reload. */
.navigating .top::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--mint); animation: nav-progress 1s var(--ease) infinite; }
@keyframes nav-progress { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
main:focus { outline: none; }
.top .lang[data-switch-lang] { cursor: pointer; }

/* Homepage (hero + product index) and the interactive demonstrations used on dedicated pages.
   Nothing here pins, snaps or locks page scrolling: every section has a natural height. */

/* ── Hero ────────────────────────────────────────────────────────────────────────────────────────────── */
.s-hero { position: relative; height: 100svh; min-height: 700px; max-height: 1080px; overflow: hidden;
  background: radial-gradient(110% 90% at 74% 34%, #202227 0%, #121316 48%, #0A0B0C 100%); }
.s-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--ground)); }
.s-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.s-hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s var(--ease); }
.gl-ready canvas { opacity: 1; }
.gl-ready .poster { opacity: 0; }
.no-webgl .s-hero .poster { opacity: 1 !important; }
.no-webgl .hero-links { display: none; }
.hero-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-links .link { stroke: rgba(236, 235, 231, .32); stroke-width: 1.2; stroke-dasharray: 2 7; animation: flow 2.4s linear infinite; }
.hero-links .link.hot { stroke: rgba(127, 227, 196, .8); }
@keyframes flow { to { stroke-dashoffset: -18; } }
.s-hero .scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 78% at 10% 72%, rgba(10, 11, 12, .94) 0%, rgba(10, 11, 12, .6) 48%, transparent 76%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(48px, 10vh, 112px); z-index: 2; }
.hero-copy .wrap > div { max-width: 660px; }
.hero-copy h1 { font-size: clamp(56px, 7.6vw, 124px); font-weight: 300; line-height: .9; letter-spacing: -.06em; margin: 22px 0 26px; }
.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child { padding-bottom: .12em; margin-bottom: -.12em; color: transparent; background: linear-gradient(100deg, #F4F3EF 0%, #C6EBDE 46%, #A6B5FF 100%); -webkit-background-clip: text; background-clip: text; }
.hero-lead { font-size: clamp(17px, 1.35vw, 19.5px); color: #D4D2CC; max-width: 46ch; line-height: 1.55; }
.pillars { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font: 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--dim); }
.pillars span { color: var(--mint); margin-right: 8px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Product index: editorial list with a live sculptural preview ───────────────────────────────────── */
.s-index { padding: clamp(72px, 9vw, 128px) 0 clamp(80px, 10vw, 140px); }
.index-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.index-head h2 { font-size: clamp(34px, 4.2vw, 64px); font-weight: 300; letter-spacing: -.05em; line-height: .98; max-width: 16ch; margin-top: 14px; }
.index-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 4vw, 56px); align-items: start; }
.index-list { border-top: 1px solid var(--line); counter-reset: none; }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 28px; grid-template-areas: "n name tag go" ". desc desc ."; align-items: baseline; column-gap: 16px; row-gap: 6px;
  padding: 20px 6px; text-decoration: none; position: relative; transition: background .35s var(--ease); border-radius: 14px; }
.index-list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--mint); transition: height .35s var(--ease), top .35s var(--ease); }
.index-list a:hover, .index-list a.active, .index-list a:focus-visible { background: rgba(236, 235, 231, .035); }
.index-list a.active::before { height: 44%; top: 28%; }
.ix-n { grid-area: n; font: 12px var(--mono); color: var(--faint); }
.ix-name { grid-area: name; font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; transition: transform .35s var(--ease); }
.index-list a.active .ix-name, .index-list a:hover .ix-name { transform: translateX(6px); }
.index-list .tag { grid-area: tag; align-self: center; }
.ix-desc { grid-area: desc; color: var(--dim); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.ix-go { grid-area: go; align-self: center; color: var(--faint); transition: transform .35s var(--ease), color .35s; }
.index-list a:hover .ix-go, .index-list a.active .ix-go { color: var(--ink); transform: translateX(4px); }
.ix-thumb { display: none; }
.index-preview { position: sticky; top: 104px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 60% 30%, #23262B 0%, #15161A 55%, #0F1012 100%); }
.ip-stage { position: relative; aspect-ratio: 1; }
.ip-stage img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; transform: scale(.94) translateY(8px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.ip-stage img.on { opacity: 1; transform: none; }
.ip-copy { padding: 0 26px 26px; }
.ip-name { font-size: 26px; font-weight: 400; letter-spacing: -.035em; margin-top: 8px; }
.ip-desc { color: var(--dim); font-size: 15px; line-height: 1.5; margin-top: 8px; min-height: 3em; }
.ip-open { margin-top: 16px; font-weight: 560; font-size: 14.5px; color: var(--ink); }

/* ── Demonstrations on dedicated pages ───────────────────────────────────────────────────────────────── */
.demo { padding: clamp(48px, 6vw, 88px) 0; border-bottom: 1px solid var(--line); }
.demo.on-bone, .demo.on-porcelain { border-bottom: 0; }

/* Operating economy */
.demo-economy { background: radial-gradient(90% 80% at 55% 45%, #17191C 0%, #0D0E10 72%); }
.economy-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 340px); gap: 24px; align-items: center; }
.economy-side .btn.small { margin-top: 18px; min-height: 40px; padding: 0 16px; font-size: 14px; }
.stage-list button { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 0; cursor: pointer; color: var(--faint); transition: color .3s; }
.stage-list button:last-child { border-bottom: 1px solid var(--line); }
.stage-list button b { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.stage-list button em { grid-column: 2; font-style: normal; font-size: 13.5px; color: var(--faint); margin-top: 2px; }
.stage-list button span { font: 12px var(--mono); }
.stage-list button:hover { color: var(--dim); }
.stage-list button[aria-selected="true"] { color: var(--ink); }
.stage-list button[aria-selected="true"] span { color: var(--mint); }
.stage-list button[aria-selected="true"] em { color: var(--dim); }
.economy-viz { position: relative; aspect-ratio: 5 / 3; min-height: 320px; }
.economy-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow .node rect { fill: rgba(21, 22, 26, .86); stroke: var(--line-2); }
.flow .node text { fill: var(--dim); font: 12px var(--mono); }
.flow .node.on rect { stroke: var(--mint); }
.flow .node.on text { fill: var(--ink); }
.flow path { fill: none; stroke: rgba(236, 235, 231, .16); stroke-width: 1.2; }
.flow path.on { stroke: var(--mint); stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.inspector { background: rgba(21, 22, 26, .82); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.inspector h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 10px 0 8px; }
.inspector p { color: var(--dim); font-size: 15px; line-height: 1.55; }
.inspector dl { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
.inspector dt { font: 11px/1.9 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.inspector dd { margin: 0; color: var(--ink); }

/* Explore gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 16px; overflow-x: auto; padding: 4px var(--g) 18px; margin: 0 calc(-1 * var(--g)); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.plate { border-radius: 26px; background: linear-gradient(180deg, #1A1B1F 0%, #131417 100%); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; text-align: left; cursor: pointer; transition: border-color .3s, transform .4s var(--ease); min-height: 520px; }
.plate:hover, .plate[aria-expanded="true"] { border-color: var(--line-2); transform: translateY(-4px); }
.plate .art { position: relative; aspect-ratio: 1; margin: -6px -6px 8px; }
.plate .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; }
.plate .art img.run { opacity: 0; }
.plate:hover .art img.run, .plate[aria-expanded="true"] .art img.run { opacity: 1; }
.plate .top-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.plate h3 { font-size: 26px; font-weight: 400; letter-spacing: -.035em; margin-top: 10px; }
.plate p { color: var(--dim); font-size: 15px; line-height: 1.5; margin-top: 8px; }
.plate .caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.plate .caps span { font: 11.5px var(--mono); color: var(--dim); background: var(--raised); padding: 5px 9px; border-radius: 8px; }
.drawer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; border: 1px solid var(--line); border-radius: 26px; padding: 28px; background: var(--surface); }
.drawer[hidden] { display: none; }
.drawer h3 { font-size: 32px; font-weight: 400; letter-spacing: -.04em; }
.drawer .sample { font: 13.5px/1.65 var(--mono); background: var(--ground); border: 1px solid var(--line); border-radius: 16px; padding: 18px; white-space: pre-wrap; color: #D8D6D0; }
.drawer dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin-top: 18px; font-size: 14.5px; }
.drawer dt { font: 11px/2 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.drawer dd { margin: 0; color: var(--ink); }

/* Build */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9); }
.builder-main { padding: 28px; border-right: 1px solid var(--line); }
.steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.steps li { font: 12px var(--mono); color: var(--faint); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); transition: all .3s; }
.steps li.done { color: var(--dim); border-color: var(--line-2); }
.steps li.now { color: var(--ground); background: var(--mint); border-color: var(--mint); }
.prompt { width: 100%; min-height: 120px; resize: vertical; font: 400 19px/1.45 var(--ui); letter-spacing: -.01em; color: var(--ink); background: var(--ground); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px; }
.prompt:focus { outline: none; border-color: var(--mint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chips button { font-size: 13.5px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--dim); cursor: pointer; }
.chips button:hover { color: var(--ink); border-color: var(--line-2); }
.config { margin-top: 22px; display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.config dt, .config dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.config dt { font: 11px/2 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.config .in { opacity: 1; transform: none; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.builder-side { position: relative; display: grid; grid-template-rows: 1fr auto; background: radial-gradient(80% 70% at 50% 40%, #1F2125, #141518); }
.builder-side canvas { width: 100%; aspect-ratio: 1; display: block; }
.builder-side .identity { padding: 0 24px 24px; }
.builder-side .identity b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.output { font: 13px/1.6 var(--mono); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; white-space: pre-wrap; color: #D8D6D0; min-height: 84px; }

/* Marketplace */
.on-porcelain { background: #F2F0EB; color: var(--carbon); }
.on-porcelain .kicker { color: var(--carbon-dim); }
.on-porcelain .btn { border-color: rgba(18, 18, 20, .28); color: var(--carbon); }
.run-board { display: grid; grid-template-columns: .9fr 1.2fr 1fr; gap: 16px; align-items: stretch; }
.card-l { background: #fff; border: 1px solid rgba(18, 18, 20, .1); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -40px rgba(18, 18, 20, .35); }
.card-l h4 { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6D6B65; font-weight: 400; }
.card-l .big { font-size: 21px; font-weight: 500; letter-spacing: -.02em; margin-top: 10px; line-height: 1.3; }
.timeline { margin-top: 16px; }
.timeline li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(18, 18, 20, .08); font-size: 15px; color: #6B6963; transition: color .3s; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.timeline li.done { color: var(--carbon); }
.timeline li.done::before { background: #1F9E7A; border-color: #1F9E7A; }
.timeline li.now { color: var(--carbon); }
.timeline li.now::before { border-color: #1F9E7A; animation: ping 1s ease-in-out infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 5px rgba(31, 158, 122, .18); } }
.timeline li span { font: 12px var(--mono); color: #66645E; }
.result { font: 13px/1.6 var(--mono); background: #F7F6F2; border-radius: 14px; padding: 14px; margin-top: 14px; white-space: pre-wrap; min-height: 170px; color: #222; }
.receipt { font: 12.5px/1.8 var(--mono); margin-top: 14px; }
.receipt div { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(18, 18, 20, .15); }
.receipt .total { border-top: 1px solid var(--carbon); border-bottom: 0; font-weight: 600; margin-top: 4px; }

/* Operating funds */
.sim { display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.controls label { display: block; margin-bottom: 24px; }
.controls label span { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--dim); }
.controls label output { font-family: var(--mono); color: var(--ink); }
.controls input[type="range"], .dep-slider input { width: 100%; margin-top: 12px; accent-color: var(--mint); }
.chart { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: var(--surface); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: rgba(236, 235, 231, .07); }
.chart .axis text { fill: var(--faint); font: 11px var(--mono); }
.chart .area { fill: url(#fund-fill); }
.chart .line { fill: none; stroke: var(--mint); stroke-width: 2; }
.chart .zero { stroke: var(--coral); stroke-dasharray: 3 4; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font: 12px var(--mono); color: var(--dim); }
.sim-side img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.sim-side .state { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.sim-side dl { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; color: var(--dim); }
.sim-side dd { margin: 0; font-family: var(--mono); color: var(--ink); }

/* Why Runwick: depletion */
.on-bone { background: var(--bone); color: var(--carbon); }
.on-bone .kicker { color: var(--carbon-dim); }
.depletion { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: center; border-radius: 28px; background: #121315; color: var(--ink); padding: 24px; max-width: 900px; }
.depletion .frame { position: relative; aspect-ratio: 1; }
.depletion .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s var(--ease); }
.depletion .meter-row { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--dim); }
.depletion .bar { height: 6px; margin-top: 10px; background: rgba(236, 235, 231, .1); border-radius: 6px; overflow: hidden; }
.depletion .bar i { display: block; height: 100%; width: 100%; background: var(--mint); border-radius: 6px; transform-origin: left; transition: background .4s, transform .3s var(--ease); }
.depletion .bar i.low { background: var(--amber); }
.depletion .bar i.empty { background: var(--coral); }
.depletion .state { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-top: 18px; }
.dep-slider { display: block; margin: 20px 0 10px; font-size: 14.5px; color: var(--dim); }
.hidden-start { opacity: 0; }

@media (max-width: 1100px) {
  .index-grid { grid-template-columns: 1fr; }
  .index-preview { display: none; }
  .index-list a { grid-template-columns: 40px minmax(0, 1fr) 72px; grid-template-areas: "n name thumb" ". desc thumb" ". tag thumb"; padding: 18px 4px; }
  .index-list .tag { justify-self: start; margin-top: 6px; }
  .ix-thumb { display: block; grid-area: thumb; width: 72px; height: 72px; align-self: center; object-fit: contain; }
  .ix-go { display: none; }
  .economy-grid { grid-template-columns: 1fr; }
  .economy-side { order: 2; } .economy-viz { order: 1; min-height: 260px; } .inspector { order: 3; }
  .stage-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .stage-list button, .stage-list button:last-child { display: block; width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
  .stage-list button span, .stage-list button em { display: none; }
  .stage-list button b { font-size: 15px; }
  .flow { display: none; }
  .builder, .drawer { grid-template-columns: 1fr; }
  .builder-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .run-board, .sim { grid-template-columns: 1fr; }
  .depletion { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
  .s-hero { min-height: 660px; }
  .hero-copy { bottom: 30px; }
  .hero-copy h1 { font-size: clamp(48px, 14vw, 66px); margin: 14px 0 16px; }
  .hero-lead { font-size: 16px; }
  .pillars { margin-top: 16px; gap: 6px 14px; }
  .hero-copy .actions .btn { flex: 1 1 auto; }
  .s-hero .scrim { background: linear-gradient(180deg, transparent 28%, rgba(10, 11, 12, .88) 58%, #0A0B0C 100%); }
  .gallery { grid-auto-columns: 82vw; }
  .plate { min-height: 480px; }
  .prompt { font-size: 17px; }
  .config { grid-template-columns: 110px 1fr; }
  .inspector dl { display: none; }
}

/* ── Simplified Chinese typography: set independently, never by inheriting English metrics ─────────── */
:lang(zh-CN) body { font-feature-settings: "palt" 0; line-break: strict; }
:lang(zh-CN) .hero-copy h1 { font-weight: 300; letter-spacing: .01em; line-height: 1.12; font-size: clamp(50px, 6.4vw, 104px); }
:lang(zh-CN) .hero-copy h1 span:last-child { padding-bottom: .08em; margin-bottom: -.08em; }
:lang(zh-CN) .index-head h2, :lang(zh-CN) .page-hero h1 { letter-spacing: 0; line-height: 1.18; font-weight: 300; }
:lang(zh-CN) .index-head h2 { font-size: clamp(30px, 3.4vw, 52px); max-width: 15em; }
:lang(zh-CN) .page-hero h1 { font-size: clamp(36px, 5vw, 76px); max-width: 14em; text-wrap: balance; }
:lang(zh-CN) .ix-name, :lang(zh-CN) .stage-list button b, :lang(zh-CN) .plate h3, :lang(zh-CN) .ip-name { letter-spacing: .01em; }
:lang(zh-CN) .prose h2 { letter-spacing: 0; line-height: 1.25; }
:lang(zh-CN) .prose p, :lang(zh-CN) .prose li, :lang(zh-CN) .hero-lead, :lang(zh-CN) .ix-desc, :lang(zh-CN) .lead { line-height: 1.8; letter-spacing: .02em; }
:lang(zh-CN) .kicker, :lang(zh-CN) .pillars { letter-spacing: .12em; }
:lang(zh-CN) .foot-brand .phrase { letter-spacing: .02em; line-height: 1.3; }
@media (max-width: 640px) { :lang(zh-CN) .hero-copy h1 { font-size: clamp(42px, 12vw, 58px); } }

/* 08 · External integration: code-led composition */
.s-integrate { padding: 140px 0; background: radial-gradient(80% 90% at 85% 40%, #161A1F, #0D0E10 70%); }
.integrate-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.s-integrate h2, .s-launch h2 { font-size: clamp(40px, 5.4vw, 88px); font-weight: 300; line-height: .93; letter-spacing: -.055em; margin-top: 16px; }
.s-integrate .lead, .s-launch .lead { font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 46ch; margin-top: 24px; }
.s-launch .lead { color: #3A3936; }
.int-steps { margin-top: 36px; border-top: 1px solid var(--line); }
.int-steps li { display: grid; grid-template-columns: 52px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.int-steps span { font: 12px/1.9 var(--mono); color: var(--mint); }
.int-steps b { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.int-steps p { color: var(--dim); font-size: 15px; margin-top: 4px; }
.int-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.terminal { position: relative; border-radius: 22px; background: #0A0B0C; border: 1px solid var(--line-2); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9); overflow: hidden; min-height: 480px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--faint); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2C30; }
.term-bar span { margin-left: 10px; }
.terminal pre { margin: 0; padding: 22px; font: 13.5px/1.75 var(--mono); color: #CFCDC7; white-space: pre-wrap; min-height: 400px; position: relative; z-index: 1; }
.terminal pre .c { color: #87918F; } .terminal pre .k { color: var(--mint); } .terminal pre .s { color: #B9C4FF; }
.term-art { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .85; pointer-events: none; }

/* 09 · Native launchpad: bone, interactive curve */
.s-launch { padding: 140px 0; }
.launch-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.targets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; }
.targets .kicker { width: 100%; margin-bottom: 4px; }
.targets button { font: 500 15px var(--ui); padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(18, 18, 20, .25); background: transparent; color: var(--carbon); cursor: pointer; }
.targets button[aria-checked="true"] { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }
.targets input { width: 100%; accent-color: var(--carbon); margin-top: 8px; }
.grad-line { font: 13px var(--mono); color: #4C4B47; margin-top: 14px; min-height: 20px; }
.fee-flow-viz { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; font-size: 14px; }
.fee-flow-viz span { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(18, 18, 20, .12); }
.fee-flow-viz span.in { background: var(--carbon); color: var(--bone); }
.fee-flow-viz span:nth-of-type(3) { background: #CFEFE3; border-color: #9DD9C3; }
.fee-flow-viz i { width: 18px; height: 1px; background: rgba(18, 18, 20, .4); }
.curve { background: #F6F4EF; border: 1px solid rgba(18, 18, 20, .1); border-radius: 26px; padding: 22px; margin: 0; }
.curve svg { width: 100%; height: auto; display: block; }
.curve figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; font: 12px var(--mono); color: #4C4B47; }
.curve figcaption .note { color: #5E5C56; }
.curve .axis { stroke: rgba(18, 18, 20, .2); } .curve .gridl { stroke: rgba(18, 18, 20, .07); }
.curve .price { fill: none; stroke: var(--carbon); stroke-width: 2.2; }
.curve .fill { fill: rgba(31, 158, 122, .16); }
.curve .grad { stroke: #1F9E7A; stroke-dasharray: 4 5; }
.curve text { font: 12px var(--mono); fill: #4C4B47; }
.curve .dot { fill: #1F9E7A; }

@media (max-width: 1100px) { .integrate-grid, .launch-grid { grid-template-columns: 1fr; } .terminal { min-height: 0; } .terminal pre { min-height: 340px; } }
@media (max-width: 640px) { .terminal pre { font-size: 12px; padding: 16px; } .term-art { width: 160px; } }
