:root {
    --ink: #0b0d0f;
    --ink-2: #14171a;
    --ink-3: #202429;
    --paper: #eee9dd;
    --paper-2: #e3ddcf;
    --paper-3: #f5f1e8;
    --orange: #ff861c;
    --orange-hot: #ff9d3f;
    --orange-dark: #c95208;
    --moss: #7e9141;
    --moss-dark: #33451e;
    --steel: #8c949d;
    --line-dark: rgba(255, 255, 255, .13);
    --line-light: rgba(11, 13, 15, .16);
    --shell: min(1180px, calc(100vw - 48px));
    --header-height: 84px;
    --cut: 10px;
    --shadow-hard: 8px 8px 0 rgba(0, 0, 0, .18);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--ink);
    color: var(--paper-3);
    font-family: "Microsoft YaHei UI", "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.site-shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 16px; background: var(--orange); color: var(--ink); font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: var(--header-height);
    background: rgba(11, 13, 15, .93);
    border-bottom: 1px solid var(--line-dark);
    backdrop-filter: blur(18px);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--orange) 0 12%, transparent 12% 88%, var(--moss) 88%); opacity: .7; }
.header-grid { height: 100%; display: grid; grid-template-columns: 270px 1fr 188px; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { position: relative; width: 49px; height: 49px; display: grid; place-items: center; background: var(--orange); clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%); }
.brand-mark::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(11,13,15,.5); }
.brand-mark img { position: relative; width: 43px; height: 43px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 18px; letter-spacing: .03em; }
.brand-copy small { margin-top: 7px; color: var(--steel); font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.site-nav a { position: relative; padding: 12px 15px; color: #aeb5bd; font-size: 14px; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.header-download { justify-self: end; display: grid; min-width: 180px; padding: 9px 14px; background: var(--orange); color: var(--ink); border: 1px solid var(--orange-hot); box-shadow: 4px 4px 0 rgba(255,134,28,.2); line-height: 1.15; transition: transform .18s ease, box-shadow .18s ease; }
.header-download span { font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.header-download strong { margin-top: 4px; font: 800 16px/1 Bahnschrift, sans-serif; }
.header-download:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(255,134,28,.22); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; }

.hero { position: relative; min-height: calc(100vh - var(--header-height)); overflow: hidden; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero::after { content: ""; position: absolute; width: 440px; height: 440px; left: -230px; top: 18%; background: var(--orange); filter: blur(180px); opacity: .12; }
.hero-grid { position: relative; z-index: 2; min-height: 720px; display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 74px; padding: 84px 0 118px; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow, .section-index { display: inline-flex; align-items: center; gap: 9px; font: 800 11px/1.2 Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { color: #b8bec5; }
.status-pixel { width: 8px; height: 8px; background: var(--orange); box-shadow: 12px 0 0 rgba(255,134,28,.28); }
.hero h1 { margin: 25px 0 23px; font-size: clamp(52px, 6.3vw, 92px); line-height: .98; letter-spacing: -.07em; font-weight: 950; }
.hero h1 em { color: var(--orange); font-style: normal; font-family: Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: -.055em; }
.hero-copy > p { max-width: 540px; margin: 0; color: #aeb5bd; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; font-weight: 800; font-size: 14px; line-height: 1; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.button-large { min-height: 56px; padding-inline: 25px; font-size: 15px; }
.button-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange-dark); }
.button-primary:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--orange-dark); }
.button-ghost { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: var(--orange); color: var(--orange); }
.button-dark { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 rgba(11,13,15,.22); }
.button-dark:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(11,13,15,.22); }
.button-line { border-color: currentColor; color: var(--ink); background: transparent; }
.button-line:hover { color: var(--orange-dark); }
.button-icon { font-size: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; color: #79818a; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hero-meta span { padding: 0 13px; border-right: 1px solid var(--line-dark); }
.hero-meta span:first-child { padding-left: 0; }
.hero-machine { position: relative; min-width: 0; }
.machine-screen { position: relative; padding: 10px; background: #060708; border: 1px solid rgba(255,255,255,.18); box-shadow: 14px 14px 0 rgba(0,0,0,.42), 22px 22px 0 rgba(255,134,28,.08); transform: perspective(1100px) rotateY(-4deg) rotateX(1deg); overflow: hidden; }
.machine-screen::before { content: "ENGINE VISUAL / LIVE"; position: absolute; z-index: 4; top: 20px; left: 22px; padding: 5px 8px; background: rgba(8,10,11,.8); border-left: 2px solid var(--orange); color: #fff; font: 700 9px/1 Bahnschrift, sans-serif; letter-spacing: .17em; }
.machine-screen img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.screen-scanline { position: absolute; inset: 10px; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.025) 3px 4px); pointer-events: none; }
.machine-corner { position: absolute; z-index: 5; width: 26px; height: 26px; border-color: var(--orange); }
.machine-corner-a { left: -11px; top: -12px; border-left: 3px solid; border-top: 3px solid; }
.machine-corner-b { right: -12px; bottom: 100px; border-right: 3px solid; border-bottom: 3px solid; }
.build-cartridge { position: relative; z-index: 6; width: min(430px, 86%); margin: -34px 0 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; padding: 19px; background: var(--paper); color: var(--ink); border: 1px solid #fff; box-shadow: var(--shadow-hard); }
.build-cartridge::before { content: ""; position: absolute; width: 54px; height: 8px; left: 18px; top: -8px; background: var(--orange); }
.cartridge-label { display: flex; flex-direction: column; padding-right: 18px; border-right: 1px solid var(--line-light); }
.cartridge-label span { font: 800 9px/1 Bahnschrift, sans-serif; letter-spacing: .13em; color: #696f74; }
.cartridge-label strong { margin-top: 8px; font: 900 37px/1 Bahnschrift, sans-serif; letter-spacing: -.04em; }
.build-cartridge dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; }
.build-cartridge dl div { display: flex; flex-direction: column; justify-content: center; padding-left: 10px; }
.build-cartridge dt { color: #757b80; font-size: 10px; }
.build-cartridge dd { margin: 4px 0 0; font: 800 11px/1.2 Bahnschrift, sans-serif; }
.hero-ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 48px; overflow: hidden; display: flex; align-items: center; background: var(--orange); color: var(--ink); border-top: 1px solid var(--orange-hot); font: 900 12px/1 Bahnschrift, sans-serif; letter-spacing: .16em; white-space: nowrap; }
.hero-ticker div { min-width: max-content; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.showcase-section { position: relative; overflow: hidden; padding: 112px 0 126px; border-top: 1px solid #282d31; border-bottom: 1px solid #282d31; }
.showcase-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent); }
.showcase-section::after { content: "BE / LIVE"; position: absolute; right: -22px; bottom: -25px; color: rgba(255,134,28,.045); font: 950 150px/.8 Bahnschrift,sans-serif; letter-spacing: -.08em; pointer-events: none; }
.showcase-shell { position: relative; z-index: 2; }
.showcase-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 42px; }
.showcase-heading h2 { margin: 15px 0 0; font-size: clamp(42px,6vw,76px); line-height: .95; letter-spacing: -.065em; }
.showcase-counter { display: flex; align-items: baseline; min-width: 142px; padding: 14px 0 8px; border-top: 1px solid var(--orange); color: #747d85; font: 800 17px/1 Bahnschrift,sans-serif; }
.showcase-counter strong { margin-right: 8px; color: var(--orange); font-size: 48px; letter-spacing: -.07em; }
.showcase-stage { display: grid; grid-template-columns: minmax(0,1fr) 174px; gap: 14px; align-items: stretch; }
.showcase-stage.is-single { grid-template-columns: minmax(0,1fr); }
.showcase-main { min-width: 0; }
.showcase-slide { display: none; margin: 0; }
.showcase-slide.is-active { display: block; animation: showcase-in .32s ease both; }
@keyframes showcase-in { from { opacity: 0; transform: translateY(8px); } }
.showcase-frame { position: relative; padding: 8px; overflow: hidden; background: #050607; border: 1px solid #3b4248; box-shadow: 12px 12px 0 rgba(0,0,0,.28); }
.showcase-frame::before { content: "SOFTWARE OUTPUT"; position: absolute; z-index: 3; left: 20px; top: 20px; padding: 6px 9px; background: rgba(7,9,10,.78); border-left: 3px solid var(--orange); color: #fff; font: 800 9px/1 Bahnschrift,sans-serif; letter-spacing: .15em; }
.showcase-frame::after { content: ""; position: absolute; inset: 8px; background: repeating-linear-gradient(to bottom,transparent 0 4px,rgba(255,255,255,.018) 4px 5px); pointer-events: none; }
.showcase-frame img { width: 100%; height: auto; object-fit: contain; background: #111; }
.showcase-slide figcaption { display: grid; grid-template-columns: 145px 1fr; gap: 24px; align-items: start; padding: 24px 25px 0; }
.showcase-slide figcaption > span { color: var(--orange); font: 800 10px/1 Bahnschrift,sans-serif; letter-spacing: .15em; }
.showcase-slide figcaption strong { display: block; font-size: 21px; }
.showcase-slide figcaption p { max-width: 620px; margin: 6px 0 0; color: #929aa2; font-size: 13px; }
.showcase-rail { display: grid; align-content: start; gap: 8px; max-height: 635px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--orange) #202429; }
.showcase-thumb { position: relative; display: block; padding: 5px; overflow: hidden; background: #111417; border: 1px solid #383e43; color: #fff; cursor: pointer; opacity: .58; transition: opacity .18s,border-color .18s,transform .18s; }
.showcase-thumb:hover,.showcase-thumb.is-active { opacity: 1; border-color: var(--orange); }
.showcase-thumb.is-active { transform: translateX(-5px); box-shadow: 5px 0 0 var(--orange); }
.showcase-thumb span { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 4px 5px; background: rgba(5,6,7,.8); color: var(--orange); font: 800 9px/1 Bahnschrift,sans-serif; }
.showcase-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.section-light, .section-cream { color: var(--ink); }
.section-light { background: var(--paper-3); }
.section-cream { background: var(--paper); }
.section-dark { background: var(--ink-2); color: #f6f2e9; }
.workbench-section, .capability-section, .release-section, .license-section, .upstream-section, .source-checklist { padding: 120px 0; }
.section-light, .section-cream { background-image: linear-gradient(rgba(11,13,15,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,13,15,.045) 1px, transparent 1px); background-size: 42px 42px; }
.section-heading h2, .capability-intro h2, .release-copy h2, .open-source-grid h2, .community-grid h2, .license-grid h2, .upstream-layout h2, .source-checklist h2 { margin: 15px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.section-index { color: #6d7477; }
.section-index-orange { color: var(--orange); }
.split-heading { display: grid; grid-template-columns: 1.12fr .88fr; align-items: end; gap: 90px; }
.split-heading > p { max-width: 490px; margin: 0 0 8px; color: #5d6365; font-size: 17px; }
.engine-rail { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 76px; border: 1px solid var(--line-light); background: rgba(255,255,255,.34); }
.engine-rail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 72px; height: 3px; background: #a9a89f; }
.engine-rail::after { content: ""; position: absolute; left: 10%; top: 72px; width: 72%; height: 3px; background: var(--orange); }
.rail-station { position: relative; min-height: 280px; padding: 32px 26px 28px; border-right: 1px solid var(--line-light); }
.rail-station:last-child { border-right: 0; }
.station-number { position: absolute; top: 17px; right: 18px; color: #8b8d88; font: 800 10px/1 Bahnschrift, sans-serif; }
.station-icon { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; margin: 17px 0 50px; background: var(--ink); color: var(--orange); border: 5px solid var(--paper-3); outline: 1px solid var(--ink); font: 900 12px/1 Bahnschrift, sans-serif; }
.rail-station h3 { margin: 0 0 10px; font-size: 20px; }
.rail-station p { margin: 0; color: #646a6c; font-size: 14px; line-height: 1.8; }
.rail-station-live { background: var(--ink); color: #fff; }
.rail-station-live p { color: #aeb5bd; }
.rail-station-live .station-icon { background: var(--orange); color: var(--ink); border-color: var(--ink); outline-color: var(--orange); }

.capability-section { position: relative; overflow: hidden; }
.capability-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; }
.capability-layout { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.capability-intro { position: sticky; top: calc(var(--header-height) + 40px); }
.capability-intro p { max-width: 400px; margin: 25px 0; color: #9da4ab; }
.text-link { display: inline-flex; align-items: center; gap: 22px; padding-bottom: 4px; border-bottom: 1px solid var(--orange); color: var(--orange); font-weight: 800; }
.block-map { display: grid; grid-template-columns: repeat(2,1fr); grid-auto-rows: minmax(210px, auto); gap: 12px; }
.map-block { position: relative; min-height: 220px; padding: 27px; overflow: hidden; background: #1c2024; border: 1px solid rgba(255,255,255,.14); box-shadow: 6px 6px 0 rgba(0,0,0,.25); }
.map-block::after { content: ""; position: absolute; width: 28px; height: 28px; right: 13px; top: 13px; border-top: 2px solid #555c63; border-right: 2px solid #555c63; }
.map-block-wide { grid-column: span 2; min-height: 245px; }
.map-block-tall { grid-row: span 2; }
.map-block-orange { background: var(--orange); color: var(--ink); border-color: var(--orange-hot); }
.map-block-moss { background: var(--moss-dark); border-color: #566d32; }
.map-code { font: 800 10px/1 Bahnschrift, sans-serif; letter-spacing: .16em; color: #879099; }
.map-block-orange .map-code { color: #713003; }
.map-block h3 { max-width: 420px; margin: 28px 0 10px; font-size: clamp(25px,3vw,39px); line-height: 1.08; letter-spacing: -.04em; }
.map-block p { max-width: 470px; margin: 0; color: #abb1b7; }
.map-block-orange p { color: #572604; font-weight: 650; }
.map-block ul { display: grid; gap: 0; margin: 27px 0 0; padding: 0; list-style: none; }
.map-block li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.11); color: #c7ccd0; font-weight: 700; }
.map-mark { position: absolute; right: 24px; bottom: 5px; color: rgba(11,13,15,.12); font: 950 95px/1 Bahnschrift, sans-serif; }

.release-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.release-copy > p { max-width: 440px; color: #555d60; font-size: 17px; }
.release-notes-mini { margin: 28px 0 0; padding: 0; list-style: none; }
.release-notes-mini li { position: relative; padding: 9px 0 9px 25px; border-bottom: 1px solid var(--line-light); color: #34393b; }
.release-notes-mini li::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 9px; background: var(--orange); }
.release-crate { position: relative; background: var(--orange); color: var(--ink); border: 1px solid #b94c00; box-shadow: 14px 14px 0 rgba(11,13,15,.18); }
.release-crate::before, .release-crate::after { content: ""; position: absolute; width: 34px; height: 34px; background: var(--paper); }
.release-crate::before { left: -1px; bottom: -1px; clip-path: polygon(0 0,0 100%,100% 100%); }
.release-crate::after { right: -1px; top: -1px; clip-path: polygon(0 0,100% 0,100% 100%); }
.crate-top { display: flex; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid rgba(11,13,15,.25); font: 800 10px/1 Bahnschrift, sans-serif; letter-spacing: .12em; }
.crate-version { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px 32px 24px; }
.crate-version small { padding-bottom: 8px; font: 800 12px/1 Bahnschrift, sans-serif; letter-spacing: .15em; }
.crate-version strong { font: 950 clamp(55px,9vw,106px)/.8 Bahnschrift, sans-serif; letter-spacing: -.08em; }
.crate-specs { padding: 0 32px; }
.crate-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 12px 0; border-top: 1px solid rgba(11,13,15,.22); }
.crate-specs span { color: #6d2d00; font-size: 12px; font-weight: 800; }
.crate-specs strong, .crate-specs code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.crate-actions { display: flex; gap: 10px; padding: 28px 32px 34px; }

.open-source-strip { padding: 62px 0; background: #050607; border-top: 1px solid #2d3135; border-bottom: 1px solid #2d3135; }
.open-source-grid { display: grid; grid-template-columns: 135px .9fr 1fr auto; gap: 38px; align-items: center; }
.license-stamp { width: 116px; height: 116px; display: grid; place-content: center; text-align: center; border: 1px solid var(--orange); box-shadow: inset 0 0 0 7px #050607, inset 0 0 0 8px rgba(255,134,28,.35); transform: rotate(-3deg); }
.license-stamp span { color: var(--orange); font: 900 17px/1 Bahnschrift, sans-serif; letter-spacing: .13em; }
.license-stamp strong { font: 950 40px/1 Bahnschrift, sans-serif; }
.open-source-grid h2 { font-size: 37px; }
.open-source-grid p { margin: 0; color: #a8afb5; font-size: 14px; }
.community-cta { padding: 100px 0; }
.community-grid { display: grid; grid-template-columns: 1fr .65fr; gap: 90px; align-items: center; }
.community-grid p { color: #a8afb5; }
.qq-block { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 27px; border-left: 6px solid var(--orange); background: #1c2024; }
.qq-block span { color: #969da4; font-size: 12px; }
.qq-block strong { grid-column: 1; font: 950 46px/1.1 Bahnschrift, sans-serif; letter-spacing: .03em; }
.qq-block .button { grid-column: 2; grid-row: 1 / span 2; }

.page-masthead { padding: 105px 0 72px; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.masthead-grid { display: grid; grid-template-columns: 1fr 300px; align-items: end; gap: 70px; }
.page-masthead h1, .source-hero h1 { margin: 20px 0; font-size: clamp(60px,10vw,128px); line-height: .84; letter-spacing: -.08em; }
.page-masthead p { max-width: 650px; margin: 0; color: #aeb5bd; font-size: 18px; }
.repository-counter { position: relative; padding: 24px 28px; background: var(--orange); color: var(--ink); border: 1px solid var(--orange-hot); box-shadow: 9px 9px 0 #4c1d00; }
.repository-counter span { display: block; font: 800 10px/1 Bahnschrift, sans-serif; letter-spacing: .15em; }
.repository-counter strong { display: block; font: 950 78px/.95 Bahnschrift, sans-serif; }
.repository-counter small { font-weight: 700; }
.repository-section { padding: 90px 0 120px; }
.repository-layout { display: grid; grid-template-columns: 240px 1fr; gap: 55px; align-items: start; }
.repository-aside { position: sticky; top: calc(var(--header-height) + 35px); }
.aside-marker { width: 108px; padding: 17px; background: var(--ink); color: var(--orange); font: 900 13px/1.25 Bahnschrift, sans-serif; letter-spacing: .09em; box-shadow: 6px 6px 0 var(--orange); }
.repository-aside h2 { margin: 36px 0 15px; font-size: 18px; }
.repository-aside p { margin: 9px 0; color: #555d61; font-weight: 700; font-size: 13px; }
.channel-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; }
.channel-stable { background: var(--orange); }
.channel-beta { background: var(--moss); }
.api-mini { display: grid; gap: 8px; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.api-mini span { color: #6c7376; font-size: 11px; font-weight: 700; }
.api-mini code { word-break: break-all; color: #2d3336; font-size: 11px; }
.api-mini button, .hash-button { width: max-content; padding: 5px 8px; background: transparent; border: 1px solid var(--line-light); color: var(--ink); cursor: pointer; font-size: 11px; }
.release-list { border-top: 1px solid var(--ink); }
.release-row { display: grid; grid-template-columns: 66px 1fr; border-bottom: 1px solid var(--line-light); background: rgba(255,255,255,.28); }
.release-row.is-latest { background: rgba(255,134,28,.075); }
.release-row-index { padding: 27px 10px; border-right: 1px solid var(--line-light); color: #8d8d86; font: 800 12px/1 Bahnschrift, sans-serif; text-align: center; }
.release-row-main { padding: 28px 32px 34px; }
.release-row-heading { display: flex; justify-content: space-between; gap: 25px; align-items: start; }
.channel-label, .latest-label { display: inline-block; margin: 0 7px 9px 0; padding: 4px 7px; font: 800 9px/1 Bahnschrift, sans-serif; letter-spacing: .11em; }
.channel-label { background: var(--ink); color: #fff; }
.channel-beta { background: var(--moss-dark); }
.latest-label { background: var(--orange); color: var(--ink); }
.release-row h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.release-number { color: var(--orange-dark); font: 950 46px/1 Bahnschrift, sans-serif; letter-spacing: -.06em; }
.release-summary { max-width: 700px; margin: 13px 0; color: #555d60; }
.release-notes { display: grid; gap: 6px; margin: 18px 0; padding: 0; list-style: none; }
.release-notes li { position: relative; padding-left: 19px; font-size: 14px; }
.release-notes li::before { content: "+"; position: absolute; left: 0; color: var(--orange-dark); font-weight: 900; }
.release-file-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; border-top: 1px dashed rgba(11,13,15,.18); color: #70777a; font-size: 11px; }
.release-row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.empty-repository { padding: 70px; text-align: center; }
.empty-repository strong { display: block; font-size: 25px; }

.source-hero { padding: 110px 0; overflow: hidden; background: var(--ink); }
.source-hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 90px; align-items: center; }
.source-hero p { max-width: 620px; color: #aeb5bd; font-size: 18px; }
.license-monument { position: relative; min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 35px; background: var(--orange); color: var(--ink); box-shadow: 16px 16px 0 #431a00; }
.license-monument::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(11,13,15,.35); }
.license-monument > * { position: relative; z-index: 2; }
.license-monument span, .license-monument small { font: 800 10px/1.3 Bahnschrift, sans-serif; letter-spacing: .13em; }
.license-monument strong { font: 950 116px/.74 Bahnschrift, sans-serif; letter-spacing: -.08em; }
.license-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.license-rules { border-top: 1px solid var(--ink); }
.license-rules article { display: grid; grid-template-columns: 55px 210px 1fr; gap: 20px; align-items: baseline; padding: 25px 0; border-bottom: 1px solid var(--line-light); }
.license-rules article > span { color: var(--orange-dark); font: 900 12px/1 Bahnschrift, sans-serif; }
.license-rules h3 { margin: 0; font-size: 17px; }
.license-rules p { margin: 0; color: #5e6568; font-size: 14px; }
.upstream-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.credit-ledger { border: 1px solid var(--ink); box-shadow: var(--shadow-hard); }
.ledger-row { display: grid; grid-template-columns: 85px 1fr auto; gap: 18px; padding: 19px 22px; border-bottom: 1px solid var(--line-light); background: rgba(255,255,255,.3); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row span { color: #72787a; font-size: 12px; }
.ledger-row strong { font-size: 14px; }
.ledger-row em { color: var(--orange-dark); font-size: 11px; font-style: normal; font-weight: 800; }
.source-checklist-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.source-checklist ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.source-checklist li { display: flex; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); color: #c4c9cd; }
.source-checklist li span { width: 31px; height: 31px; display: grid; place-items: center; background: var(--orange); color: var(--ink); font: 900 11px/1 Bahnschrift, sans-serif; }

.site-footer { padding: 60px 0 28px; background: #050607; border-top: 1px solid #262a2d; color: #99a0a7; }
.footer-grid { display: grid; grid-template-columns: 260px 1fr auto; gap: 55px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 17px; }
.footer-brand span { font: 700 9px/1 Bahnschrift, sans-serif; letter-spacing: .14em; color: #808890; }
.footer-grid > p { max-width: 500px; margin: 0; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 15px; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: var(--orange); }
.footer-rule { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid #24282b; color: #5e646a; font: 700 9px/1 Bahnschrift, sans-serif; letter-spacing: .13em; }
.toast { position: fixed; z-index: 300; right: 24px; bottom: 24px; max-width: 330px; padding: 13px 17px; background: var(--orange); color: var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.25); font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(18px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
    :root { --shell: min(100% - 36px, 920px); }
    .header-grid { grid-template-columns: 230px 1fr 164px; gap: 10px; }
    .site-nav a { padding-inline: 9px; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 70px; }
    .hero-copy { max-width: 730px; }
    .hero-machine { width: min(780px, 100%); margin-left: auto; }
    .engine-rail { grid-template-columns: repeat(2,1fr); }
    .engine-rail::before, .engine-rail::after { display: none; }
    .rail-station:nth-child(2) { border-right: 0; }
    .rail-station:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
    .capability-layout, .release-layout, .license-grid, .upstream-layout, .source-checklist-grid { grid-template-columns: 1fr; }
    .capability-intro { position: static; }
    .open-source-grid { grid-template-columns: 120px 1fr 1fr; }
    .open-source-grid .button { grid-column: 2 / -1; width: max-content; }
    .source-hero-grid { grid-template-columns: 1fr 320px; gap: 45px; }
    .license-monument { min-height: 350px; }
    .license-monument strong { font-size: 88px; }
}

@media (max-width: 820px) {
    :root { --header-height: 70px; --shell: calc(100% - 28px); }
    .header-grid { grid-template-columns: 1fr auto; }
    .brand-mark { width: 42px; height: 42px; }
    .brand-mark img { width: 37px; height: 37px; }
    .brand-copy strong { font-size: 15px; }
    .header-download { display: none; }
    .nav-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; border: 1px solid var(--line-dark); cursor: pointer; }
    .nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: #fff; }
    .site-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 10px); display: none; align-items: stretch; flex-direction: column; padding: 11px; background: #121518; border: 1px solid #353a3f; box-shadow: 9px 9px 0 rgba(0,0,0,.35); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 13px; border-bottom: 1px solid #282d31; }
    .site-nav a:last-child { border-bottom: 0; }
    .hero-grid { min-height: 0; gap: 55px; padding: 65px 0 110px; }
    .showcase-section { padding: 80px 0; }
    .showcase-stage { grid-template-columns: 1fr; }
    .showcase-rail { grid-template-columns: repeat(4,minmax(130px,1fr)); max-height: none; overflow-x: auto; }
    .showcase-thumb.is-active { transform: translateY(-4px); box-shadow: 0 4px 0 var(--orange); }
    .hero h1 { font-size: clamp(46px, 13vw, 78px); }
    .hero-copy > p { font-size: 16px; }
    .build-cartridge { width: 92%; grid-template-columns: 1fr; }
    .cartridge-label { padding: 0 0 13px; border-right: 0; border-bottom: 1px solid var(--line-light); }
    .split-heading, .community-grid, .masthead-grid, .repository-layout, .source-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .workbench-section, .capability-section, .release-section, .license-section, .upstream-section, .source-checklist { padding: 80px 0; }
    .split-heading { align-items: start; }
    .engine-rail { margin-top: 48px; }
    .repository-counter { max-width: 300px; }
    .repository-aside { position: static; display: grid; grid-template-columns: auto 1fr; gap: 0 25px; }
    .repository-aside h2, .repository-aside p { display: none; }
    .api-mini { margin: 0; padding: 0; border: 0; align-content: center; }
    .open-source-grid { grid-template-columns: 105px 1fr; }
    .open-source-grid > p, .open-source-grid .button { grid-column: 1 / -1; }
    .source-hero h1 { font-size: clamp(58px, 16vw, 105px); }
    .license-monument { width: min(430px,100%); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { justify-content: start; }
}

@media (max-width: 560px) {
    .hero h1 { letter-spacing: -.06em; }
    .showcase-heading { align-items: start; }
    .showcase-counter { min-width: 78px; }
    .showcase-counter strong { font-size: 34px; }
    .showcase-slide figcaption { grid-template-columns: 1fr; gap: 8px; padding-inline: 8px; }
    .showcase-rail { grid-template-columns: repeat(4,112px); }
    .hero-actions, .crate-actions, .release-row-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .button, .crate-actions .button, .release-row-actions .button { width: 100%; }
    .hero-meta span { padding-inline: 8px; font-size: 10px; }
    .machine-screen { padding: 6px; transform: none; }
    .build-cartridge { width: calc(100% - 14px); margin-top: -15px; }
    .engine-rail { grid-template-columns: 1fr; }
    .rail-station { min-height: 225px; border-right: 0; border-bottom: 1px solid var(--line-light); }
    .rail-station:nth-child(3) { border-bottom: 1px solid var(--line-light); }
    .station-icon { margin-bottom: 27px; }
    .block-map { grid-template-columns: 1fr; }
    .map-block-wide { grid-column: auto; }
    .release-crate { box-shadow: 7px 7px 0 rgba(11,13,15,.18); }
    .crate-version { padding-inline: 21px; }
    .crate-version strong { font-size: 58px; }
    .crate-specs, .crate-actions { padding-inline: 21px; }
    .crate-specs > div { grid-template-columns: 85px 1fr; }
    .qq-block { grid-template-columns: 1fr; gap: 18px; }
    .qq-block .button { grid-column: 1; grid-row: auto; }
    .repository-aside { grid-template-columns: 1fr; }
    .api-mini { margin-top: 25px; }
    .release-row { grid-template-columns: 42px 1fr; }
    .release-row-main { padding: 23px 18px 28px; min-width: 0; }
    .release-row-heading { display: block; }
    .release-number { display: block; margin-top: 10px; font-size: 38px; }
    .license-rules article { grid-template-columns: 35px 1fr; }
    .license-rules p { grid-column: 2; }
    .ledger-row { grid-template-columns: 62px 1fr; }
    .ledger-row em { grid-column: 2; }
    .footer-rule { gap: 20px; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
