:root {
  color-scheme: dark;
  --bg: #0d0f0c;
  --panel: #11140f;
  --fg: #eeeee7;
  --muted: #a2a69a;
  --line: #2a3026;
  --lime: #c8ff57;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2,.75,.22,1);
  --gutter: clamp(18px, 4.25vw, 90px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; display: block; height: 3px; background: var(--lime); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
button { border: 0; background: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--bg); }
h1, h2, h3, p, ol, ul { margin: 0; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1660px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .065em; text-transform: uppercase; }
.skip-link { position: absolute; z-index: 20; left: 1rem; top: -10rem; background: var(--lime); color: var(--bg); padding: .75rem; }
.skip-link:focus { top: 1rem; }
section[id] { scroll-margin-top: 1.5rem; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.wordmark { display: inline-flex; align-items: center; white-space: nowrap; font-size: 1.7rem; font-weight: 820; letter-spacing: -.085em; line-height: 1; }
.wordmark > span:last-child { color: var(--lime); }
.logo-mark { display: inline-flex; align-items: center; gap: 3px; margin-right: 11px; }
.logo-mark i { display: block; background: var(--lime); width: 3px; height: 10px; transform: skewX(-25deg); }
.logo-mark i:nth-child(2) { height: 17px; }
.logo-mark i:nth-child(3) { height: 12px; }
.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { justify-content: center; gap: clamp(18px, 2.55vw, 47px); }
.site-nav a { font-size: .875rem; white-space: nowrap; color: #c4c7bc; transition: color .2s; }
.site-nav a:hover, .text-link:hover, .footer-inner a:hover { color: var(--lime); }
.header-actions { gap: clamp(12px, 2vw, 32px); }
.languages { display: flex; gap: 2px; }
.languages a { display: grid; place-items: center; width: 31px; height: 36px; border: 1px solid transparent; color: var(--muted); letter-spacing: 0; }
.languages a:hover { color: var(--fg); }
.languages [aria-current] { border-color: #364425; color: var(--lime); background: #1b2413; }
.header-cta { display: flex; align-items: center; gap: 13px; min-height: 43px; padding: 0 13px; border: 1px solid #40483a; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.header-cta:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.menu-toggle { display: none; padding: .7rem 0 .7rem .5rem; color: var(--lime); }

.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(90deg, #b1bfa712 0 1px, transparent 1px 9.14%), repeating-linear-gradient(0deg, #b1bfa709 0 1px, transparent 1px 65px); mask-image: radial-gradient(ellipse at 70% 45%, #000 3%, transparent 75%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(20px, 3.5vw, 58px); align-items: center; min-height: min(700px, calc(100svh - 140px)); padding-block: clamp(44px, 5.3vw, 96px); }
.eyebrow { color: var(--lime); display: flex; align-items: center; gap: 12px; line-height: 1.45; }
.eyebrow::before { content: ""; width: 22px; height: 1px; flex: 0 0 auto; background: currentColor; }
.hero-title { font-size: clamp(70px, 11vw, 192px); letter-spacing: -.055em; line-height: .79; font-weight: 820; margin: 29px 0 23px; text-transform: uppercase; }
.hero-line { display: block; overflow: clip; padding: .07em .1em .14em .04em; margin: -.07em -.10em -.14em -.04em; perspective: 650px; }
.hero-line + .hero-line { margin-top: .045em; }
.hero-line-inner { display: block; }
.hero-line:last-child { color: var(--lime); }
.hero-word { display: inline-block; white-space: nowrap; }
.hero-word + .hero-word { margin-inline-start: .06em; }
html:not([lang="en"]) .hero-title { font-size: clamp(63px, 9vw, 152px); }
html:not([lang="en"]) .hero-line:last-child { font-size: .79em; }
.hero-promise { color: #e9eee0; font-size: clamp(1rem, 1.57vw, 1.5rem); line-height: 1.16; letter-spacing: -.03em; font-weight: 740; text-transform: uppercase; margin-bottom: 10px; }
.hero-intro { max-width: 395px; color: #c0c4b7; font-size: clamp(1rem, 1.22vw, 1.24rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 25px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--lime); color: #151b0d; min-height: 55px; padding: 0 17px; font-weight: 700; transition: background .2s, box-shadow .25s; }
.button:hover { background: #d6ff87; box-shadow: 0 0 34px #c8ff5730; }
[data-magnet] { transform: translate(var(--mx, 0px), var(--my, 0px)); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #c6cbbd; transition: color .2s; }

.scene { min-width: 0; border: 1px solid #30372a; position: relative; background: #10130e; box-shadow: 0 22px 75px #0004; }
.scene::before, .scene::after { content: ""; position: absolute; pointer-events: none; z-index: 2; width: 9px; height: 9px; border-color: #718747; border-style: solid; }
.scene::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.scene::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.scene-bar { min-height: 43px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 15px; color: #d1d6c7; }
.scene-bar span:last-child { display: flex; align-items: center; gap: 7px; color: var(--muted); text-align: right; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px #c8ff5773; }
.scene-viewport { position: relative; isolation: isolate; overflow: hidden; perspective: 800px; background: radial-gradient(ellipse at 49% 56%, #273518 0%, #151c10 38%, #10130e 77%); }
.scene-art { position: relative; aspect-ratio: 640 / 450; transform: translateY(var(--shift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .24s var(--ease); }
.topology { display: block; width: 100%; height: 100%; }
.iso-grid { stroke: #5f7849; stroke-width: .8; opacity: .46; fill: none; }
.traces { stroke: #405430; stroke-width: 1.2; fill: none; opacity: .74; }
.traces circle { fill: #1e2b15; }
.route-back, .route-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-back { stroke: #8ab448; stroke-opacity: .65; stroke-width: 1.45; }
.route-flow { stroke: #dcff9b; stroke-width: 2.4; stroke-dasharray: 5 95; animation: packet 2.4s linear infinite; animation-delay: var(--delay); }
@keyframes packet { to { stroke-dashoffset: -100; } }
.scene:not(.in-view) .route-flow { animation-play-state: paused; }
.board { --board-line: #6c8949; --board-top: #293a1b; --board-side: #141e0e; }
.board-2, .board.is-active { --board-line: #b4e75b; --board-top: #374d1e; --board-side: #1b290e; }
.board-shadow { fill: #030502; opacity: .48; }
.plate-top { fill: var(--board-top); stroke: var(--board-line); stroke-width: 1.25; }
.plate-front { fill: var(--board-side); stroke: var(--board-line); stroke-width: 1; }
.plate-seam, .chip-trace, .pins { fill: none; stroke: var(--board-line); stroke-width: 1; opacity: .74; }
.chip-zone { stroke: var(--board-line); fill: #2b4016; fill-rule: evenodd; opacity: .88; }
.chip-icon { stroke: #d9ff9b; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.chip-led { fill: var(--lime); filter: url(#point-glow); opacity: .83; }
.scene-axis { position: absolute; bottom: 9px; left: 12px; color: #849374; font-size: .75rem; pointer-events: none; }
.scene-node { position: absolute; left: var(--left); top: var(--top); transform: translate(-50%, -50%); color: #d9e2cc; background: #11170ff2; border: 1px solid #4d613d; min-height: 32px; padding: 3px 8px; white-space: nowrap; font: 700 .75rem/1.2 var(--mono); text-transform: uppercase; }
.scene-node span { font-size: .69rem; color: #a1ad94; margin-right: 5px; }
.scene-node[aria-pressed="true"], .scene-node:hover { color: var(--lime); border-color: var(--lime); background: #1d2a12; }
.scene-node:focus-visible { z-index: 2; }
@media (hover: hover) and (min-width: 751px) {
  .scene-node::before { content: ""; position: absolute; inset: -42px -8px 0; }
  .scene-node[data-node="2"]::before { inset: -100px -24px 0; }
}
.scene-detail { min-height: 93px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-content: center; padding: 12px 15px; }
.scene-detail-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--lime); background: #1d2815; border: 1px solid #35482a; }
.scene-detail strong { display: block; font-size: .875rem; line-height: 1.2; }
.scene-detail p { max-width: 540px; font-size: .8125rem; line-height: 1.45; color: var(--muted); margin-top: 5px; }

.hero-sequence { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-block: 1px solid var(--line); padding: 0; list-style: none; background: var(--line); }
.hero-sequence li { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 11px; padding: 13px 3px; background: #111510; color: #b7c0af; text-align: center; }
.hero-sequence li::before { content: ""; display: block; width: 6px; height: 6px; background: #5d6a53; transform: rotate(45deg); flex: 0 0 auto; }
.hero-sequence li:last-child { color: var(--lime); }
.hero-sequence li:last-child::before { background: var(--lime); }
.section { padding-block: clamp(76px, 9vw, 168px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 23px 50px; margin-bottom: clamp(30px, 4vw, 65px); }
.section-title, .contact-title { font-size: clamp(54px, 7.5vw, 140px); line-height: .95; letter-spacing: -.065em; font-weight: 790; margin-top: 17px; overflow-wrap: break-word; }
.section-title span { display: block; }
.section-title span + span { color: #969c8e; }
.section-head > p, .studio-note { width: min(100%, 360px); color: var(--muted); line-height: 1.66; padding-bottom: 4px; }
.section-head > div { min-width: 0; }

.cap-layout { display: grid; grid-template-columns: 1.23fr .77fr; gap: clamp(25px, 5vw, 90px); align-items: start; }
.cap-accordion, .faq-item:first-child { border-top: 1px solid var(--line); }
.cap-item, .faq-item { border-bottom: 1px solid var(--line); }
.cap-item summary { display: grid; align-items: center; grid-template-columns: 36px 1fr 20px; padding: 16px 10px; gap: 12px; min-height: 62px; font-size: clamp(1.05rem, 1.9vw, 1.75rem); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; transition: color .2s, background .2s; }
.cap-item summary:hover, .cap-item[open] summary { color: var(--lime); background: #141a10; }
.cap-icon { color: var(--lime); display: grid; place-items: center; }
.plus { width: 15px; height: 15px; display: block; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; width: 15px; height: 1px; left: 0; top: 7px; background: currentColor; transition: transform .25s; }
.plus::after { transform: rotate(90deg); }
[open] > summary .plus::after { transform: rotate(0deg); }
.cap-description { padding: 0 32px 18px 58px; color: #bfc5b7; background: #141a10; }
.cap-description p { max-width: 500px; }
.cap-description .mono { display: inline-block; color: var(--lime); margin-top: 12px; }
.cap-display { position: sticky; top: 22px; }
.cap-viz { border: 1px solid #323d2b; overflow: hidden; background: #11160f; }
.cap-viz-bar, .cap-viz-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #c3cbb9; padding: 13px 15px; }
.cap-viz-bar { border-bottom: 1px solid var(--line); }
.cap-viz-footer { border-top: 1px solid var(--line); color: #a3b492; }
.cap-art { width: 100%; height: auto; display: block; background: radial-gradient(ellipse at center, #25351a, #11160f 75%); stroke: #a1c86d; stroke-width: 1.05; }
.cap-art .art-guides { stroke: #2f4228; stroke-dasharray: 3 4; }
.cap-art .art-signal { stroke: var(--lime); stroke-dasharray: 4 6; animation: signal 1.2s linear infinite; }
.cap-viz:not(.in-view) .art-signal { animation-play-state: paused; }
@keyframes signal { to { stroke-dashoffset: -20; } }

.process { color-scheme: light; background: #e9eadf; color: #151a12; position: relative; isolation: isolate; }
.process::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .53; background-image: linear-gradient(#89977a32 1px, transparent 1px), linear-gradient(90deg, #89977a32 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(110deg, transparent 13%, #000); }
.process .eyebrow, .process .section-head p { color: #4e5d44; }
.process .section-title span + span { color: #596651; }
.process-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid #adb7a4; }
.process-steps li { padding: 17px clamp(9px, 1.5vw, 24px) 23px; min-height: 180px; border-right: 1px solid #adb7a4; }
.process-steps li:last-child { border-right: 0; }
.step-index { color: #4e5d44; display: inline-flex; align-items: center; gap: 7px; }
.step-index::before { content: ""; background: #354c22; width: 6px; height: 6px; }
.process-steps h3 { font-size: clamp(1rem, 1.45vw, 1.45rem); line-height: 1.15; overflow-wrap: anywhere; margin: 16px 0 9px; }
.process-steps p { color: #414a3d; font-size: .9375rem; overflow-wrap: anywhere; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); gap: clamp(20px, 4vw, 80px); align-items: stretch; }
.studio-note { margin-top: 22px; }
.experience { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 44px); border: 1px solid var(--line); background: radial-gradient(ellipse at 4% 0%, #202c16, #10130e 70%); }
.experience span { font-size: clamp(90px, 13vw, 194px); font-weight: 780; line-height: .93; letter-spacing: -.1em; color: var(--lime); }
.experience p { color: #bac7af; margin-top: 20px; }
.faq { display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(55px, 7vw, 114px); }
.faq h3 { font-size: clamp(1.55rem, 3.25vw, 3.2rem); letter-spacing: -.06em; line-height: 1; }
.faq-item summary { display: grid; grid-template-columns: 1fr 16px; align-items: center; gap: 10px; font-weight: 650; padding: 17px 4px; }
.faq-item summary:hover { color: var(--lime); }
.faq-item p { color: var(--muted); padding: 0 30px 18px 4px; max-width: 720px; }
.contact { min-height: 100svh; display: grid; align-items: center; background: var(--lime); color: #10170b; position: relative; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; background-image: linear-gradient(#31461524 1px, transparent 1px), linear-gradient(90deg, #31461524 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(140deg, transparent 30%, #000); }
.contact .eyebrow { color: #283e16; }
.contact-inner { padding-block: clamp(68px, 9vw, 148px); }
.contact-title { font-size: clamp(56px, 10.6vw, 180px); line-height: .93; margin: 25px 0 38px; }
.contact-title span { display: block; }
.contact-title span + span { color: transparent; -webkit-text-stroke: 1.5px #18280f; }
.contact-bottom { display: grid; grid-template-columns: minmax(0, .64fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 6vw, 110px); padding-top: 30px; border-top: 1px solid #283e1666; }
.contact-bottom > div:first-child p { font-size: clamp(1.05rem, 2vw, 1.6rem); font-weight: 620; }
.contact-button { margin-top: 19px; background: #10170b; color: var(--lime); min-width: min(100%, 230px); }
.contact-button:hover { background: #263819; }
.contact :focus-visible { outline-color: #10170b; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 76px; color: #aeb7a6; padding: 14px 0; }
.footer-inner a { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-word { animation: title-entrance .88s var(--ease) both; animation-delay: calc(var(--line) * 125ms + var(--word) * 70ms); transform-origin: left bottom; }
  @keyframes title-entrance { from { opacity: .25; transform: translateY(105%) rotateX(-33deg) skewY(3deg); } }
  .scene { animation: scene-entrance 1s var(--ease) both; }
  @keyframes scene-entrance { from { opacity: .3; transform: translateY(14px); } }
  [data-reveal].reveal-pending { opacity: .25; transform: translateY(25px); }
  [data-reveal] { transition: opacity .72s var(--ease), transform .72s var(--ease); }
}
@media (max-width: 1160px) {
  .site-header { gap: 14px; }
  .site-nav { gap: 16px; }
  .header-actions { gap: 11px; }
}
@media (max-width: 1000px) {
  .header-cta { display: none; }
  .hero-title { font-size: clamp(62px, 10vw, 110px); }
  html:not([lang="en"]) .hero-title { font-size: clamp(55px, 8.4vw, 92px); }
  .scene-detail { min-height: 108px; }
  .scene-bar { font-size: .75rem; }
}
@media (max-width: 750px) {
  .site-header { min-height: 67px; flex-wrap: wrap; gap: 0 6px; }
  .wordmark { margin-right: auto; font-size: 1.48rem; }
  .header-actions { order: 1; }
  .menu-toggle { order: 2; }
  .js .menu-toggle { display: block; }
  .site-nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; justify-content: flex-start; gap: 6px 19px; padding: 0 0 9px; }
  .js .site-header .site-nav { display: none; }
  .js .site-header .site-nav.is-open { display: flex; position: absolute; inset: calc(100% + 1px) 0 auto; background: #151a12; border: 1px solid #364331; padding: 8px 13px; box-shadow: 0 16px 35px #0008; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 38px; }
  .languages a { width: 28px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 42px 34px; gap: 32px; }
  .hero-title { font-size: clamp(69px, 15.4vw, 116px); margin-block: 25px 18px; }
  html:not([lang="en"]) .hero-title { font-size: clamp(57px, 13vw, 99px); }
  .hero-actions { margin-top: 21px; }
  .hero-copy .eyebrow { font-size: .75rem; }
  .scene { width: min(100%, 565px); }
  .scene-detail { min-height: 88px; }
  .section-head { align-items: start; flex-direction: column; }
  .cap-layout { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .cap-display { position: static; }
  .cap-art { max-height: 240px; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .process-steps li { min-height: auto; border-bottom: 1px solid #adb7a4; }
  .process-steps li:nth-child(2n) { border-right: 0; }
  .process-steps li:last-child { grid-column: 1 / -1; }
  .studio-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .contact-title { font-size: clamp(43px, 10.5vw, 82px); }
  .contact-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .menu-toggle { font-size: .75rem; }
  .hero-title { font-size: clamp(62px, 16vw, 72px); }
  html:not([lang="en"]) .hero-title { font-size: clamp(54px, 14vw, 64px); }
  .logo-mark { margin-right: 7px; }
  .hero-actions { gap: 6px 14px; }
  .hero-actions .button { padding-inline: 12px; gap: 9px; }
  .hero-actions .text-link { gap: 5px; font-size: .75rem; }
  .scene-bar { padding-inline: 8px; min-height: 37px; }
  .scene-node { font-size: .65rem; min-height: 31px; padding-inline: 4px; }
  .scene-node span { margin-right: 3px; font-size: .6rem; }
  .scene-detail { min-height: 98px; padding-inline: 9px; gap: 8px; }
  .section-title { font-size: clamp(43px, 12.5vw, 54px); }
  .cap-item summary { grid-template-columns: 25px 1fr 16px; padding-inline: 5px; }
  .cap-description { padding-left: 42px; padding-right: 10px; }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .route-flow, .graph-packet { display: none; }
  .scene-art, [data-magnet] { transform: none; }
}

/* The studio console and its five product previews. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lab-section { background: #111511; position: relative; isolation: isolate; padding-top: clamp(68px, 7vw, 115px); }
.lab-section::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #34402b44 calc(25% - 1px) 25%); mask-image: linear-gradient(#000, transparent 90%); }
.lab-section .section-title span + span { color: var(--lime); }
.forge { --rail: #363d31; --pulse: #c8ff57; border: 1px solid #3d4736; background: #0d100d; }
.forge[data-theme="telegram"] { --demo: #94d9ff; }
.forge[data-theme="web"] { --demo: #c1b4ff; }
.forge[data-theme="cross"] { --demo: #9fdfbd; }
.forge[data-theme="system"] { --demo: #f5ca83; }
.forge[data-theme="ai"] { --demo: var(--lime); }
.forge-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rail); border-bottom: 1px solid var(--rail); }
.forge-tab { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 9px; min-height: 57px; padding: 8px clamp(9px, 1.4vw, 22px); font-size: .875rem; text-align: left; line-height: 1.25; background: #151914; color: #b9c2b4; }
.forge-tab svg { flex: 0 0 auto; }
.forge-tab:hover { background: #222b1d; color: #f0f2e8; }
.forge-tab[aria-selected="true"] { color: var(--pulse); background: #1d2718; box-shadow: inset 0 -2px var(--pulse); }
.forge-tab:focus-visible, .forge-stage-rail button:focus-visible { outline-offset: -3px; }

.forge-panes { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, .9fr) minmax(0, 1.18fr); }
.forge-pane { min-width: 0; position: relative; }
.forge-pane + .forge-pane { border-left: 1px solid var(--rail); }
.forge-pane-bar { min-height: 51px; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px clamp(8px, 1vw, 16px); background: #191e17; color: #e2e5db; border-bottom: 1px solid var(--rail); line-height: 1.25; }
.forge-pane-bar > :last-child { color: #a4b19a; text-align: right; font-size: .72rem; letter-spacing: 0; overflow-wrap: anywhere; }
[data-file] { text-transform: none; }
[data-product-state] { display: flex; gap: 6px; align-items: center; }
[data-product-state] .status-dot { background: #8c9982; box-shadow: none; }
.forge[data-phase="4"] [data-product-state] .status-dot { background: var(--pulse); box-shadow: 0 0 9px #c8ff5760; }
.forge-pane + .forge-pane::after { content: ""; position: absolute; left: -6px; top: 56%; width: 11px; height: 11px; border: 1px solid #6b785e; background: #20281b; transform: rotate(45deg); z-index: 1; pointer-events: none; transition: background .3s, box-shadow .3s; }
.forge:is([data-phase="1"], [data-phase="2"], [data-phase="3"], [data-phase="4"]) .forge-blueprint::after,
.forge:is([data-phase="2"], [data-phase="3"], [data-phase="4"]) .forge-render::after { background: var(--pulse); box-shadow: 0 0 16px #c8ff5760; border-color: var(--pulse); }
.code { height: 365px; margin: 0; padding: 17px 10px; overflow: auto; font: .8125rem/1.72 var(--mono); tab-size: 2; color: #d3decf; white-space: pre; }
.code:focus-visible { outline-offset: -4px; }
.code-line { display: block; width: max-content; min-width: 100%; border-left: 2px solid transparent; padding-right: 7px; }
.code-line:not(.typed) { visibility: hidden; }
.code-line .ln { display: inline-block; width: 2.5ch; margin-right: 9px; text-align: right; color: #899885; user-select: none; font-size: .91em; }
.code-line.is-traced { border-color: var(--pulse); background: #baff491a; }
.token-keyword { color: #c6b1fa; }
.token-string { color: #c7f491; }
.token-number { color: #f2cb90; }
.token-function { color: #a1d9ef; }

.blueprint-body, .render-body { min-height: 365px; display: grid; align-content: center; min-width: 0; }
.blueprint-body { padding: 13px 12px 15px; background: #121812; gap: 9px; grid-template-rows: 1fr auto; }
.graph-surface { position: relative; display: grid; place-items: center; background: radial-gradient(#7187634a 1px, transparent 1px) 0 0 / 13px 13px; }
.forge-graph { width: 100%; height: auto; max-width: 420px; overflow: visible; fill: none; stroke: none; }
.graph-wire, .graph-packet { fill: none; stroke: #6e8c52; stroke-width: 1.35; vector-effect: non-scaling-stroke; transition: opacity .5s; }
.graph-packet { stroke: var(--pulse); stroke-width: 2; stroke-dasharray: 8 92; animation: forge-flow 1.5s linear infinite paused; animation-delay: calc(var(--wire) * -.25s); opacity: 0; }
.graph-node { transform-box: fill-box; transform-origin: center; transition: opacity .44s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--node) * 76ms); }
.graph-node rect { fill: #202b1c; stroke: #849b6f; }
.graph-node svg { fill: none; color: var(--pulse); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.graph-node text { fill: #e2ebd9; font-size: 12px; font-weight: 650; }
.forge[data-phase="0"] .graph-node { opacity: .23; transform: translateY(7px) scale(.88); transition-delay: 0ms; }
.forge[data-phase="0"] .graph-wire { opacity: .16; }
.forge:is([data-phase="2"], [data-phase="3"], [data-phase="4"]) .graph-packet { opacity: .8; }
.forge[data-playing="true"]:is([data-phase="2"], [data-phase="3"], [data-phase="4"]) .graph-packet, .forge[data-burst] .graph-packet { animation-play-state: running; }
@keyframes forge-flow { to { stroke-dashoffset: -100; } }
.forge-brief { border-top: 1px solid var(--rail); padding: 11px 4px 1px; min-height: 78px; }
.forge-brief .mono { color: #b9c3b2; font-size: .72rem; }
.forge-brief p { color: #e1e7dc; margin-top: 5px; line-height: 1.35; font-size: .875rem; overflow-wrap: anywhere; }
.render-body { padding: clamp(9px, 1.4vw, 20px); background: radial-gradient(#6472603a 1px, transparent 1px) 0 0 / 15px 15px, #141914; }
.render-body:empty::before { content: ""; display: block; min-height: 235px; border: 1px dashed #434e3d; }
.product { min-width: 0; border: 1px solid #495348; background: #151a16; color: #e9efe5; box-shadow: 0 13px 31px #0006; border-radius: 8px; transition: transform .55s var(--ease), opacity .44s var(--ease), border-color .4s; }
.forge:is([data-phase="0"], [data-phase="1"]) .product { opacity: .22; transform: perspective(800px) rotateY(-9deg) scale(.93); border-style: dashed; box-shadow: none; }
.forge[data-phase="2"] .product { transform: scale(.98); }
[data-build] { transition: transform .48s var(--ease), opacity .44s var(--ease); transition-delay: calc(var(--build, 0) * 75ms); }
[data-build="1"] { --build: 1; }
[data-build="2"] { --build: 2; }
.forge:is([data-phase="0"], [data-phase="1"]) [data-build] { transform: translate(-7px, 8px); opacity: .35; transition-delay: 0ms; }
.forge[data-phase="2"] [data-build="2"] { transform: translateY(5px); opacity: .47; }
.product-head { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 8px 10px; gap: 7px; border-bottom: 1px solid #424c3e; color: #e5efdf; font-size: .84375rem; font-weight: 690; line-height: 1.2; }
.product-head > span, .product-status { display: flex; align-items: center; gap: 6px; }
.product-head svg { color: var(--demo); flex: 0 0 auto; }
.product-status { color: var(--demo); text-align: right; font-size: .7rem; }
.product-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.forge:not([data-phase="4"]) .product-status { visibility: hidden; }
.product-body { display: grid; gap: 10px; padding: 10px; font-size: .8125rem; line-height: 1.35; }
.product button, .product select { min-width: 0; min-height: 34px; padding: 5px 8px; border: 1px solid #4b5749; border-radius: 4px; color: #e5eae1; background: #1c241d; font-size: .75rem; }
.product button:hover, .product button[aria-pressed="true"] { border-color: var(--demo); color: var(--demo); }
.product button:focus-visible, .product select:focus-visible { outline-color: var(--demo); outline-offset: 2px; }
.product .product-action { justify-self: start; font-weight: 700; color: var(--demo); }
.product-response { position: relative; display: grid; padding: 9px; min-height: 78px; border-left: 2px solid var(--demo); background: #23301f; color: #d8e5d3; }
.product-response > p { grid-area: 1 / 1; }
[data-ai-process] { visibility: hidden; }
.forge:not([data-phase="4"]) [data-ai-answer], .forge[data-burst="query"] [data-ai-answer] { visibility: hidden; }
.forge[data-phase="3"] [data-ai-process], .forge[data-burst="query"] [data-ai-process] { visibility: visible; }
.query-label { display: grid; gap: 5px; color: #c2ccbe; }
.query-label select { width: 100%; }
.telegram-product { background: #142027; border-color: #3d5665; }
.telegram-product .product-head { background: #1c2b35; border-color: #3d5665; }
.telegram-product button { background: #1b2e38; border-color: #486777; }
.chat-messages { display: grid; gap: 8px; }
.chat-messages p { max-width: 92%; border-radius: 7px; padding: 6px 8px; }
.chat-out { justify-self: end; background: #234452; }
.chat-out code { color: var(--demo); }
.chat-in { background: #273842; min-height: 52px; }
.chat-inline { display: flex; flex-wrap: wrap; gap: 5px; }
.forge:not([data-phase="4"]) .chat-in, .forge:not([data-phase="4"]) .chat-inline { visibility: hidden; }
.web-product { background: #181a24; border-color: #4d4b64; }
.web-product .product-head { background: #222439; border-color: #4d4b64; }
.web-product button, .web-product select { background: #232638; border-color: #575774; }
.dashboard-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.product-tabs { display: flex; gap: 4px; }
.dashboard-stats, .system-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.dashboard-stats > div, .system-stats > div { padding: 7px; background: #25283a; border: 1px solid #454864; border-radius: 4px; overflow-wrap: anywhere; }
.dashboard-stats b, .system-stats b { display: block; font-size: clamp(1rem, 1.4vw, 1.3rem); margin-top: 2px; color: var(--demo); }
.product-chart { background: #202338; padding: 8px; border-radius: 4px; }
.chart-bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 4px; height: 57px; margin-top: 5px; border-bottom: 1px solid #676487; }
.chart-bars i { height: var(--bar); background: var(--demo); opacity: .78; transition: height .38s var(--ease); border-radius: 2px 2px 0 0; }
.forge:is([data-phase="0"], [data-phase="1"], [data-phase="2"]) .chart-bars i { height: 12%; }
.dashboard-events { margin-top: 7px; padding-left: 17px; }
.dashboard-events li + li { margin-top: 5px; }

.device-collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.device-collection .device-option { display: grid; justify-items: center; align-content: center; min-height: 80px; gap: 5px; padding: 5px 2px; line-height: 1.14; transition: border-color .23s, transform .4s var(--ease), opacity .35s; }
.device-option[data-linked="false"] { opacity: .33; transform: translateY(6px) scale(.92); }
.device-drawing { display: flex; position: relative; flex-direction: column; justify-content: center; gap: 2px; width: 31px; height: 42px; border-radius: 6px; border: 1px solid #91bda5; background: #1c3329; padding: 7px 5px 3px; color: var(--demo); }
.device-drawing::before { content: ""; position: absolute; width: 10px; height: 2px; border-radius: 4px; background: #99b4a4; top: 3px; left: calc(50% - 5px); }
.device-drawing i { height: 2px; width: 100%; background: #94cfaf94; }
.device-drawing i:nth-child(2) { width: 70%; }
.device-drawing b { font: 700 .6rem/1 var(--mono); }
.device-1 { border-radius: 3px; }
.device-1::before { width: 3px; height: 3px; left: calc(50% - 1.5px); }
.device-2, .device-3 { width: 54px; height: 33px; border-radius: 4px; }
.device-2::before { top: unset; bottom: -3px; width: 62px; left: -5px; }
.device-3 { border-radius: 1px; }
.device-3::before { width: 16px; left: calc(50% - 8px); top: unset; bottom: -4px; }
.forge[data-burst="sync"] .device-drawing { animation: sync-screen .49s var(--ease) both; animation-delay: calc(var(--device-index) * 35ms); }
@keyframes sync-screen { 45% { background: #325543; box-shadow: 0 0 16px #a7edbb73; } }
.sync-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; }
.sync-row p { font-size: .75rem; color: #c0d6c5; }
.sync-row b { color: var(--demo); }

.system-product { background: #201d16; border-color: #5b5139; }
.system-product .product-head { background: #2b2619; border-color: #5b5139; }
.system-product button { background: #2b281d; border-color: #695a3d; }
.system-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.system-stats > div { background: #2d281e; border-color: #625337; }
.latency-chart { width: 100%; max-height: 45px; fill: none; stroke-width: 1.4; }
.latency-chart path { stroke: #6b5e43; }
.latency-chart polyline { stroke: var(--demo); stroke-dasharray: 100; stroke-dashoffset: 84; opacity: .25; transition: opacity .4s var(--ease), stroke-dashoffset .75s var(--ease); }
.forge:is([data-phase="3"], [data-phase="4"]) .latency-chart polyline { stroke-dashoffset: 0; opacity: 1; }
.route-checks { display: grid; gap: 3px; list-style: none; padding: 0; }
.route-checks li { display: flex; justify-content: space-between; gap: 5px; border-bottom: 1px solid #504630; padding-bottom: 4px; }
.route-checks span { color: #adab9e; text-align: right; }
.route-checks span.is-ready { color: var(--demo); }

.forge-control { border-top: 1px solid var(--rail); }
.forge-stage-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rail); border-bottom: 1px solid var(--rail); }
.forge-stage-rail button { display: flex; gap: 7px; align-items: center; min-height: 48px; padding: 6px clamp(6px, 1vw, 16px); background: #141a14; color: #c0caba; text-align: left; line-height: 1.2; }
.forge-stage-rail button > span { font: 700 .72rem/1 var(--mono); color: #a4b49a; }
.forge-stage-rail button > b { font-size: .8125rem; overflow-wrap: anywhere; }
.forge-stage-rail button:hover, .forge-stage-rail [aria-current="step"] { background: #26351d; color: var(--pulse); }
.forge-stage-rail [aria-current="step"] { box-shadow: inset 0 -2px var(--pulse); }
.forge-stage-rail .is-past span, .forge-stage-rail [aria-current="step"] span { color: var(--pulse); }
.forge-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 9px 14px; color: #c8d3c3; }
.forge-controls p { font-size: .875rem; }
.forge-playback { display: flex; gap: 7px; align-items: center; }
.forge-playback > span { font-size: .7rem; padding-right: 4px; }
.forge-playback button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; min-height: 35px; border: 1px solid #485740; font-size: .8125rem; white-space: nowrap; }
.forge-playback button:hover { color: var(--pulse); background: #1c2b17; }
.load-error { padding: 0 14px 13px; }
.lab-disclosure { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.forge:not([data-initialized]) .forge-control { visibility: hidden; }

.brief { display: none; color: #ebf2e5; background: #141b11; padding: clamp(15px, 2.3vw, 34px); border: 1px solid #25371a; }
.js .brief { display: block; }
.brief h3 { font-size: clamp(1.5rem, 2.75vw, 2.5rem); line-height: 1.06; letter-spacing: -.045em; }
.brief > p { color: #bcc9b6; margin: 6px 0 20px; }
.brief-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.brief-description { grid-column: 1 / -1; }
.brief-timeframe { grid-column: 1 / -1; }
.brief label { display: grid; align-content: start; gap: 5px; font-size: .875rem; color: #e4ebde; }
.brief label small { color: #a8b5a2; }
.brief select, .brief textarea, .brief input { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; font: inherit; color: #eff4eb; background: #1e291c; border: 1px solid #4b5e43; border-radius: 0; }
.brief textarea { resize: vertical; }
.brief input::placeholder, .brief textarea::placeholder { color: #a5b4a0; }
.brief :focus-visible { outline-color: var(--lime); }
.brief .button { min-height: 43px; }
.brief-output { border-top: 1px solid #4d613f; padding-top: 13px; margin-top: 14px; }
.brief-output p { color: #b9c8b4; font-size: .875rem; margin: 8px 0; }
.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; }
.brief-telegram { display: inline-flex; align-items: center; gap: 7px; min-height: 43px; color: var(--lime); }
.brief-telegram:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .forge-pane-bar { flex-wrap: wrap; }
  .code { font-size: .75rem; }
}
@media (max-width: 850px) {
  .forge-panes { display: block; }
  .forge-pane + .forge-pane { border: 0; }
  .forge-pane + .forge-pane::after { display: none; }
  .forge:not([data-phase="0"]) .forge-editor,
  .forge:is([data-phase="0"], [data-phase="3"], [data-phase="4"]) .forge-blueprint,
  .forge:is([data-phase="0"], [data-phase="1"], [data-phase="2"]) .forge-render { display: none; }
  .forge-pane-bar { min-height: 44px; }
  .blueprint-body, .render-body { min-height: 310px; }
  .code { height: 310px; padding: 10px 8px; }
  .blueprint-body { grid-template-rows: 1fr auto; }
  .product { width: min(100%, 430px); margin-inline: auto; }
}
@media (max-width: 590px) {
  .hero-sequence { width: 100%; }
  .hero-sequence li { font-size: .61rem; letter-spacing: 0; gap: 4px; overflow-wrap: anywhere; }
  .hero-sequence li::before { width: 3px; height: 3px; }
  .forge-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .forge-tab { grid-column: span 2; padding: 6px 5px; gap: 4px; min-height: 43px; font-size: .7rem; }
  .forge-tab:nth-child(n+4) { grid-column: span 3; }
  .forge-tab svg { width: 13px; height: 13px; }
  .forge-stage-rail button { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 51px; padding: 4px; }
  .forge-stage-rail button > b { font-size: .665rem; }
  .forge-controls { flex-wrap: wrap; padding-inline: 8px; min-height: 91px; align-content: space-between; }
  .forge-controls p { flex: 1 1 100%; font-size: .8rem; }
  .forge-playback { margin-left: auto; }
  .forge-playback > span { font-size: .66rem; }
  .forge-playback button { font-size: .75rem; }
  .brief-fields { grid-template-columns: minmax(0, 1fr); }
}

.scene { background: #0e130e; border-color: #46513e; }
.scene-viewport { background: radial-gradient(ellipse at 49% 52%, #27351c 0%, #151e14 36%, #10140f 77%); }
.scene-orbit { fill: none; stroke: #637851; stroke-width: .85; opacity: calc(.34 + var(--orbit, 0) * .26); transform-origin: 310px 246px; transform: scale(calc(1 + var(--orbit, 0) * .036)); }
.scene-orbit ellipse:first-child { stroke-dasharray: 2 5; }
.scene-orbit ellipse:nth-child(2) { stroke-dasharray: 30 8 2 8; opacity: .62; }
.scene-orbit path { opacity: .5; }
.scene-orbit circle { fill: #b4ee59; stroke: none; }
.plate-top, .plate-front, .chip-zone { transition: fill .22s, stroke .22s; }

.cap-inline { display: none; }
.cap-display { min-width: 0; }
.cap-viz { background: #151c14; }
.cap-art { position: relative; }
.cap-art > g { stroke: #b5e77b; }
.cap-art .cap-parts { fill: #99cc6255; animation: cap-web 2.5s var(--ease) infinite; transform-origin: 115px 100px; }
.cap-art .cap-messages { fill: #95bc6045; animation: cap-chat 2.7s var(--ease) infinite; }
.cap-art .cap-scroll { fill: #86b34c50; animation: cap-scroll 2.6s var(--ease) infinite; }
.cap-art .cap-window { fill: #99c95538; animation: cap-window 2.7s var(--ease) infinite; transform-origin: 182px 110px; }
.cap-art .cap-network { fill: #caff70; animation: cap-network 2s ease-in-out infinite; }
.cap-art .cap-layers { fill: #a5da4822; animation: cap-layers 2.8s var(--ease) infinite; }
.cap-art .cap-packets { fill: #cefb86; animation: cap-route 2s ease-in-out infinite; }
.cap-art .cap-custom { stroke-dasharray: 9 4; animation: cap-build 2.7s linear infinite; }
@keyframes cap-web { 0%, 100% { opacity: .35; transform: scale(.91); } 50% { opacity: 1; transform: scale(1); } }
@keyframes cap-chat { 0%, 100% { opacity: .5; transform: translateY(5px); } 45%, 72% { opacity: 1; transform: none; } }
@keyframes cap-scroll { 0%, 100% { opacity: .3; transform: translateY(6px); } 45% { opacity: 1; transform: translateY(-6px); } }
@keyframes cap-window { 0%, 100% { opacity: .32; transform: perspective(220px) rotateY(-8deg); } 55% { opacity: 1; transform: none; } }
@keyframes cap-network { 50% { opacity: .35; } }
@keyframes cap-layers { 0%, 100% { opacity: .4; transform: translateY(3px); } 52% { opacity: 1; transform: translateY(-9px); } }
@keyframes cap-route { 0%, 100% { opacity: .35; } 45% { opacity: 1; } }
@keyframes cap-build { to { stroke-dashoffset: -39; } }
.cap-art > g { animation-play-state: paused; }
.in-view .cap-art > g { animation-play-state: running; }
@media (max-width: 440px) {
  .forge-playback > span { display: none; }
}
@media (min-width: 851px) and (prefers-reduced-motion: no-preference) {
  .forge-pane + .forge-pane::before {
    content: ""; position: absolute; z-index: 1; pointer-events: none; top: 56%; left: -34px;
    width: 67px; height: 1px; background: var(--pulse); box-shadow: 0 0 8px var(--pulse);
    transform: scaleX(.05); opacity: 0;
  }
  .forge[data-playing="true"][data-phase="2"] .forge-blueprint::before,
  .forge[data-playing="true"][data-phase="3"] .forge-render::before,
  .forge[data-burst] .forge-render::before { animation: handoff-pulse .86s var(--ease) both; }
  @keyframes handoff-pulse {
    24% { opacity: .8; }
    49% { transform: scaleX(1); opacity: 1; }
    100% { transform: translateX(12px) scaleX(.02); opacity: 0; }
  }
}
@media (max-width: 750px) {
  .cap-display { display: none; }
  .cap-inline { display: block; margin-top: 12px; border: 1px solid #3a4a31; }
  .cap-inline .cap-art { max-height: 180px; }
}
@media (max-width: 590px) {
  .forge-stage-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .forge-stage-rail button { grid-column: span 2; flex-direction: row; justify-content: flex-start; align-items: center; min-height: 39px; }
  .forge-stage-rail button:nth-child(n+4) { grid-column: span 3; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-orbit { transform: none; }
}
