:root {
  --bg: #655040;
  --bg-panel: #3D3028;
  --bg-panel-2: #5A493C;
  --border: #927A65;
  --accent: #FF5C1F;
  --accent-dark: #FFB18F;
  --on-accent: #2A201A;
  --text: #F6EFE6;
  --text-muted: #E0CDBB;
  --success: #8DBA7F;
  --warn: #E3A94B;
  --error: #E0614A;
  --white: #594536;
  --paper: var(--bg);
  --ink: var(--text);
  --ink-soft: var(--text-muted);
  --ink-faint: #D4BDA8;
  --line-light: var(--border);
  --accent-wash: #754C36;
  --shade: #2A201A;
  --shade-a20: rgba(42, 32, 26, .20);
  --shade-a45: rgba(42, 32, 26, .45);
  --shade-a72: rgba(42, 32, 26, .72);
  --shade-a88: rgba(42, 32, 26, .88);
  --line-dark: rgba(201, 184, 166, .24);
  --line-dark-strong: rgba(201, 184, 166, .42);
  --accent-a40: rgba(255, 92, 31, .40);
  --clear: transparent;
  --ill-wall-top: #3F322A;
  --ill-wall: #5A4839;
  --ill-ceiling: #2C231D;
  --ill-beam: #A88A6A;
  --ill-beam-shade: #7E654E;
  --ill-post: #6A5442;
  --ill-frame: #8A6F56;
  --ill-cork: #775C43;
  --ill-sheet: #E4D9C8;
  --ill-sheet-ink: #4A3B30;
  --ill-lamp: #2A221C;
  --ill-lamp-rim: #55443A;
  --ill-glow: #E8B66E;
  --ill-glow-a14: rgba(232, 182, 110, .14);
  --ill-bulb: #F7E4BF;
  --ill-desk-lit: #94734F;
  --ill-desk: #6A513C;
  --ill-desk-edge: #B8946C;
  --ill-device: #221B16;
  --ill-device-edge: #4E3F34;
  --ill-screen: #2B221C;
  --ill-line: #463830;
  --ill-bar: #5A493C;
  --ill-bar-hi: #7A6552;
  --font-display: Georgia, 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --r-ctl: 4px;
  --r-card: 8px;
  --r-pill: 999px;
  --r-tab: 3px 3px 0 0;
  --r-device: 10px 10px 3px 3px;
  --r-phone: 13px;
  --shadow-float: 0 12px 32px rgba(42, 32, 26, .26), 0 2px 6px rgba(42, 32, 26, .16);
  --gutter: 40px;
  --content-width: 1240px;
  --reading-width: 800px;
  --header-width: 1280px;
  --utility-height: 40px;
  --masthead-height: 72px;
  --header-height: 112px;
  --section-space: 80px;
  --ease: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img, svg, video { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; flex-shrink: 0; }
button svg, a svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-wash); color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .65em; line-height: 1.25; text-wrap: balance; overflow-wrap: break-word; }
h1 { font: 400 clamp(34px, 3.4vw, 48px)/1.12 var(--font-display); letter-spacing: -.005em; }
h2 { font: 400 clamp(27px, 2.5vw, 36px)/1.25 var(--font-display); }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1.2em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre { max-width: 100%; min-width: 0; margin: 24px 0; padding: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text); font-size: 13px; line-height: 1.8; tab-size: 2; }
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--line-light); margin: 32px 0; }
.wrap { width: 100%; max-width: var(--content-width); margin-inline: auto; padding-inline: var(--gutter); }
.reading { width: 100%; max-width: calc(var(--reading-width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.header-wrap { width: 100%; max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--bg-panel); color: var(--text); }
.section--warm { background: var(--bg); color: var(--text); }
.section--dark p, .section--warm p { color: var(--text-muted); }
.section-head { max-width: 740px; margin-bottom: 36px; }
.kicker { margin: 0 0 10px; font: 500 12px/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.section--dark .kicker, .section--warm .kicker { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-soft); }
.dot { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid > *, .feature-spread > *, .footer-grid > *, .prose, .prose div { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 56px; scroll-margin-top: 24px; }
.prose h3 { margin-top: 32px; }
.prose li + li { margin-top: 8px; }
.prose a:not(.btn) { text-decoration-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 10px 16px; transform: translateY(-160%); background: var(--white); color: var(--ink); }
.skip-link:focus { transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; max-width: 100%; padding: 10px 28px; border: 2px solid var(--clear); border-radius: var(--r-ctl); font: 600 16px/1.35 var(--font-body); text-align: center; text-decoration: none; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn--line { background: var(--white); border-color: var(--accent); color: var(--accent-dark); }
.btn--line:hover, .btn--line.is-hover { background: var(--accent-wash); color: var(--accent-dark); }
.btn--ghost { background: var(--clear); border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--shade); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--line-light); border-color: var(--line-light); color: var(--ink-soft); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

#site-header { position: relative; z-index: 60; }
.utility { background: var(--white); color: var(--ink-soft); border-bottom: 1px solid var(--line-light); font-size: 13px; }
.utility__row { display: flex; align-items: center; height: var(--utility-height); gap: 30px; }
.utility__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.utility a, .lang { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--font-body); color: var(--ink-soft); text-decoration: none; }
.utility a:hover, .lang:hover { color: var(--ink); }
.utility svg, .lang svg { width: 14px; height: 14px; }
.utility__end { margin-left: auto; }
.language { position: relative; flex-shrink: 0; }
.lang { min-height: 36px; padding: 0; background: var(--clear); border: 0; }
.lang__caret { font-size: 10px; color: var(--ink-faint); }
.language-menu { position: absolute; top: 100%; left: 0; z-index: 70; min-width: 180px; padding: 8px; margin: 0; list-style: none; background: var(--white); color: var(--ink); border: 1px solid var(--line-light); border-radius: var(--r-ctl); box-shadow: var(--shadow-float); }
.language-menu a { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--paper); color: var(--ink); }
.masthead { position: relative; background: var(--white); color: var(--ink); }
html.nav-open .masthead { z-index: 62; }
.masthead__row { display: flex; align-items: center; min-height: var(--masthead-height); gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.brand img { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.desktop-nav { min-width: 0; align-self: stretch; }
.tabs { display: flex; align-items: center; height: 100%; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tabs li { display: flex; align-self: stretch; }
.tabs a { position: relative; display: flex; align-items: center; padding: 0 15px; white-space: nowrap; color: var(--ink-soft); font-size: 15.5px; font-weight: 500; text-decoration: none; }
.tabs a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; border-radius: var(--r-tab); background: var(--clear); }
.tabs a:hover { color: var(--ink); }
.tabs a:hover::after { background: var(--line-light); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.mobile-language, .menu-toggle { display: none; }
.menu-toggle { align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line-light); border-radius: var(--r-ctl); background: var(--white); color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 61; border: 0; background: var(--shade-a45); color: var(--text); }
.mobile-drawer { position: fixed; inset: var(--header-height) 0 auto; z-index: 62; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 24px; background: var(--white); color: var(--ink); border-top: 1px solid var(--line-light); }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; text-decoration: none; }
.mobile-drawer a[aria-current] { border-left: 3px solid var(--accent); background: var(--paper); color: var(--ink); }
.drawer-languages { margin-top: 16px !important; border-top: 1px solid var(--line-light); }
.drawer-label { padding: 16px 16px 4px; color: var(--ink-soft); font-size: 13px; }

.hero { position: relative; overflow: hidden; overflow-x: clip; height: clamp(660px, calc(100vh - 140px), 780px); background: var(--bg); color: var(--text); }
.scene { position: absolute; bottom: 0; left: 50%; width: 1600px; height: 760px; margin-left: -800px; pointer-events: none; }
.scene__art { position: absolute; inset: 0; display: block; width: 1600px; max-width: none; height: 760px; }
.s-wall-top { stop-color: var(--ill-wall-top); }
.s-wall { stop-color: var(--ill-wall); }
.s-beam { stop-color: var(--ill-beam); }
.s-beam-shade { stop-color: var(--ill-beam-shade); }
.s-glow { stop-color: var(--ill-glow); }
.s-desk-lit { stop-color: var(--ill-desk-lit); }
.s-desk { stop-color: var(--ill-desk); }
.s-shade { stop-color: var(--shade); }
.ill-ceiling { fill: var(--ill-ceiling); }
.ill-post { fill: var(--ill-post); }
.ill-frame { fill: var(--ill-frame); }
.ill-cork { fill: var(--ill-cork); }
.ill-sheet { fill: var(--ill-sheet); }
.ill-code { fill: var(--ill-sheet-ink); font: 10px var(--font-mono); }
.ill-pin { fill: var(--text-muted); }
.ill-edge { fill: var(--ill-desk-edge); }
.ill-lamp { fill: var(--ill-lamp); }
.ill-lamp-rim { fill: var(--ill-lamp-rim); }
.ill-bulb { fill: var(--ill-bulb); }
.ill-arm { fill: none; stroke: var(--ill-lamp); stroke-width: 7; stroke-linecap: round; }
.ill-cord { fill: none; stroke: var(--ill-lamp); stroke-width: 2; }
.laptop { position: absolute; left: 635px; top: 380px; width: 420px; }
.laptop__lid { height: 262px; padding: 9px 9px 12px; border: 1px solid var(--ill-device-edge); border-radius: var(--r-device); background: var(--ill-device); color: var(--text-muted); transform: perspective(1200px) rotateX(6deg); transform-origin: 50% 100%; }
.laptop__deck { width: 470px; height: 14px; margin-left: -25px; background: linear-gradient(var(--ill-device-edge), var(--ill-device)); color: var(--text-muted); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); }
.v2n { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-ctl); background: var(--ill-screen); color: var(--text-muted); font: 400 10.5px/1 var(--font-body); overflow: hidden; }
.v2n__title, .v2n__bar, .v2n__status { display: flex; align-items: center; gap: 10px; min-height: 23px; padding: 0 10px; border-bottom: 1px solid var(--ill-line); }
.v2n__title, .v2n__status { background: var(--bg-panel); color: var(--text); }
.v2n__ctrl { margin-left: auto; }
.v2n__groups { display: flex; align-items: center; gap: 8px; min-height: 25px; padding: 0 10px; border-bottom: 1px solid var(--ill-line); }
.v2n__tab { width: 48px; height: 14px; border: 1px solid var(--ill-line); border-radius: var(--r-tab); background: var(--bg-panel-2); color: var(--text-muted); }
.v2n__table { flex: 1; padding-top: 6px; }
.v2n__row { display: grid; grid-template-columns: 62px 1fr 1.15fr 30px; gap: 10px; align-items: center; height: 20px; padding: 0 10px; font-family: var(--font-mono); font-size: 9px; }
.v2n__row i, .v2n__log i { display: block; height: 3px; background: var(--ill-bar); color: var(--text-muted); border-radius: var(--r-ctl); }
.v2n__row.is-on { background: var(--bg-panel-2); color: var(--text-muted); }
.v2n__row.is-on i { background: var(--ill-bar-hi); color: var(--text-muted); }
.v2n__log { padding: 7px 10px; border-top: 1px solid var(--ill-line); }
.v2n__log i { width: 72%; margin-top: 6px; }
.v2n__log i:last-child { width: 54%; }
.phone { position: absolute; left: 505px; top: 488px; width: 84px; height: 166px; padding: 7px 5px; border: 1px solid var(--ill-device-edge); border-radius: var(--r-phone); transform: rotate(-9deg); background: var(--ill-device); color: var(--text-muted); }
.vng { position: relative; height: 100%; border-radius: var(--r-card); background: var(--ill-screen); color: var(--text-muted); overflow: hidden; font-size: 9px; }
.vng__bar { padding: 4px 6px; background: var(--bg-panel); color: var(--text); }
.vng__item { height: 19px; margin: 5px; border: 1px solid var(--ill-line); border-radius: var(--r-ctl); }
.vng__switch { position: absolute; right: 6px; bottom: 7px; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--text-muted); border-radius: var(--r-pill); }
.vng__switch svg { width: 13px; height: 13px; }
.veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--shade) 0, var(--shade-a88) 10%, var(--shade-a20) 24%, var(--clear) 38%), radial-gradient(ellipse 46% 42% at 50% 22%, var(--shade-a45), var(--clear) 72%), var(--shade-a20); }
.hero__copy { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; padding: 46px 24px 0; text-align: center; }
.eyebrow { margin: 0 0 20px; font: 500 12px/16px var(--font-mono); letter-spacing: .2em; color: var(--text-muted); }
.hero__title { margin: 0; font: 400 clamp(34px, 3.4vw, 48px)/1.1 var(--font-display); letter-spacing: -.005em; color: var(--text); }
.hero__title > span { display: block; }
.hero__title .dot { display: inline; color: var(--accent); }
.lede { margin: 18px auto 0; max-width: 640px; color: var(--text-muted); font-size: 17px; line-height: 1.65; }
.lede strong { color: var(--text); font-weight: 600; padding-bottom: 1px; background-image: linear-gradient(var(--accent-a40), var(--accent-a40)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.rail { position: absolute; inset: auto 0 0; z-index: 2; min-height: 96px; padding: 12px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; background: var(--shade-a72); color: var(--text-muted); border-top: 1px solid var(--line-dark); }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.platforms li + li { border-left: 1px solid var(--line-dark); }
.platforms a { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 0 22px; color: var(--text-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.platforms a:hover { color: var(--text); }
.platforms svg { width: 16px; height: 16px; }
.protocols { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.protocols li { padding: 2px 11px; border: 1px solid var(--line-dark-strong); border-radius: var(--r-pill); font: 500 12px/18px var(--font-mono); color: var(--text-muted); }

.card, .panel { padding: 28px; border: 1px solid var(--line-light); border-radius: var(--r-card); background: var(--white); color: var(--ink); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.panel--dark { background: var(--bg-panel); color: var(--text); border-color: var(--border); }
.panel--dark p { color: var(--text-muted); }
.site-footer { background: var(--bg-panel); color: var(--text); padding-top: 64px; padding-bottom: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1.3fr .7fr; gap: 40px; }
.site-footer .brand { color: var(--text); }
.site-footer p { margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.site-footer h2 { font: 600 15px/1.5 var(--font-body); margin-bottom: 18px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 5px; color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--text-muted); font-size: 13px; }
.footer-bottom p { margin: 0; font-size: inherit; }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .masthead__row { gap: 18px; }
  .tabs a { padding-inline: 10px; font-size: 14px; }
  .tabs a::after { left: 10px; right: 10px; }
  .header-tools .btn--line { display: none; }
}
@media (max-width: 1100px) {
  .utility__links { display: none; }
  .desktop-nav, .header-tools > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-space: 56px; }
  h1, .hero__title { font-size: clamp(24px, 4.3vw, 30px); line-height: 1.15; }
  .lede { font-size: 15.5px; }
  .hero__copy { padding-inline: var(--gutter); }
  .platforms a { padding-inline: 12px; font-size: 13px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-language { display: block; }
  .utility .language { display: none; }
  .header-tools .language-menu { left: auto; right: 0; }
  .header-tools { margin-left: auto; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .card, .panel { padding: 22px; }
}
@media (max-width: 640px) {
  .tilt, [data-tilt] { transform: none !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero { height: 690px; }
  .hero__copy { padding-top: 36px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .hero__title > span { white-space: normal; }
  .actions { gap: 10px; }
  .actions .btn { padding-inline: 20px; font-size: 15px; }
  .scene { left: 50%; }
  .rail { gap: 10px; }
  .platforms a { gap: 5px; padding-inline: 7px; font-size: 11px; }
  .platforms svg { width: 13px; height: 13px; }
  .protocols { gap: 5px; }
  .protocols li { padding-inline: 8px; font-size: 10px; }
  pre { padding: 16px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 14px; }
  .header-tools { gap: 8px; }
  .mobile-language .lang { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}