:root {
  --ink: #16191E; --ink-2: #565E6B; --act: #135BD1; --act-h: #0E47A6;
  --bg: #F6F7F9; --surface: #FFFFFF; --line: #E4E7EB; --chip: #F1F3F6;
  --d-bg: #16191E; --d-surface: #1A202B; --d-chip: #232A35; --d-line: #2A313B;
  --d-ink-2: #A6ADB8; --d-muted: #7C8490; --act-light: #4C86E8;
  --trace: #1D2129;          
  --mark-bg: #FFF4DC; --mark-ink: #7A4B00;

  --f-head: "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --head-w: 600; --h1-w: 600; --head-track: -0.02em; --head-stretch: 100%; --body-size: 17px;

  --wrap: 1200px; --gut: 24px; --header-h: 68px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
html[data-font="b"] { --f-head: "Source Serif 4", Georgia, serif; --f-body: "Source Sans 3", system-ui, sans-serif; --h1-w: 500; --head-track: -0.01em; --body-size: 17.5px; }
html[data-font="c"] { --f-head: "Archivo", system-ui, sans-serif; --f-body: "Archivo", system-ui, sans-serif; --head-track: -0.014em; --head-stretch: 88%; --body-size: 16.5px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; background: var(--d-bg); }
body { margin: 0; background: var(--d-bg); color: #fff; font-family: var(--f-body); font-size: var(--body-size); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: var(--act-light); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--act-light); outline-offset: 3px; border-radius: 3px; }
.light :focus-visible { outline-color: var(--act); }
h1, h2, h3 { font-family: var(--f-head); font-weight: var(--head-w); letter-spacing: var(--head-track); font-stretch: var(--head-stretch); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 1.2rem + 2.2vw, 46px); }
h3 { font-size: clamp(21px, 1rem + .6vw, 26px); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono, .eyebrow { font-family: var(--f-mono); font-stretch: 100%; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--d-ink-2); }
.muted { color: var(--d-ink-2); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 10px; }
.mark { background: var(--mark-bg); color: var(--mark-ink); font: 500 12.5px/1.5 var(--f-mono); padding: 1px 6px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 500 15.5px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.btn-primary { background: var(--act); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-primary:hover { background: var(--act-h); color: #fff; box-shadow: 0 0 0 4px rgba(76,134,232,.18); }
.btn-line { background: rgba(22,25,30,.35); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-line:hover { border-color: #fff; color: #fff; }
.btn-dark-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark-line:hover { background: var(--ink); color: #fff; }
.light .btn-primary { border-color: transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(22,25,30,.94); border-bottom-color: var(--d-line); }
@supports (backdrop-filter: blur(8px)) { .site-header.scrolled { background: rgba(22,25,30,.9); backdrop-filter: blur(14px) saturate(1.2); } } 
.header-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }

.brand.big { pointer-events: none; }
.brand.big svg { pointer-events: auto; }

.brand:focus-visible { outline: none; }
.brand:focus-visible svg { box-shadow: 0 0 0 calc(2px / var(--logo-s, 1)) var(--act-light); border-radius: calc(3px / var(--logo-s, 1)); }
.brand svg { width: 108px; height: auto; }
.brand .mark-ic path, .foot-brand .mark-ic path { stroke: var(--act-light); }
.brand .mark-ic circle, .foot-brand .mark-ic circle { fill: var(--act-light); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 500 15px/1 var(--f-body); color: #fff; text-decoration: none; border-radius: 8px; }
.nav > a:not(.btn):hover { background: rgba(255,255,255,.07); }
.nav .lang { font: 500 13px/1 var(--f-mono) !important; letter-spacing: .08em; color: var(--d-ink-2) !important; }
.header-cta { margin-left: 10px; min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 959px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; font: 500 15px/1 var(--f-body); color: #fff; background: rgba(22,25,30,.5); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; cursor: pointer; }
  .mobile-nav:not([hidden]) { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--d-bg); overflow-y: auto; padding: 16px var(--gut) 40px; border-top: 1px solid var(--d-line); }
  .mobile-nav a { display: flex; align-items: center; min-height: 54px; color: #fff; text-decoration: none; border-bottom: 1px solid var(--d-line); font-size: 19px; font-family: var(--f-head); }
}

body { position: relative; }
main, .site-footer { position: relative; z-index: 1; }
.pcb-page { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 70% 40%, #1A202B 0%, rgba(22,25,30,0) 60%) 0 0 / 100% 100svh no-repeat; }
.pcb-tile { position: absolute; inset: 0; background-image: var(--pcb-tile); background-size: var(--pcb-w) var(--pcb-h); opacity: 0; transition: opacity 1.2s ease; will-change: opacity; }
.pcb-page.ready .pcb-tile { opacity: 1; }
.pcb-spot { position: absolute; left: 0; top: 0; width: 520px; height: 520px; background-image: var(--pcb-tile-lit); background-size: var(--pcb-w) var(--pcb-h); opacity: 0; transition: opacity .3s ease; will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.5) 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.5) 45%, transparent 100%); }
.pcb-spot.on { opacity: .34; }
.pcb-pulses { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }
.pcb-pulses .pulse { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 48px) 0 120px; overflow: clip; isolation: isolate; }

.hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(58% 62% at 22% 50%, rgba(22,25,30,.5) 0%, rgba(22,25,30,.3) 55%, rgba(22,25,30,0) 100%); }
.hero-in { position: relative; z-index: 2; }
.hero-text { max-width: 860px; display: grid; gap: clamp(26px, 3vw, 40px); }

.hero-logo { width: clamp(260px, 34vw + 160px, 580px); max-width: 100%; aspect-ratio: 209.32 / 48.79; }
html:not(.js) .hero-logo { display: none; }
.hero-title { font-size: clamp(27px, 1rem + 2.7vw, 54px); font-weight: var(--h1-w); line-height: 1.12; letter-spacing: calc(var(--head-track) - .006em); color: #fff; text-wrap: balance; }
.hero-title .hw { display: inline-block; position: relative; transition: color .5s ease, text-shadow .5s ease; }
.hero-title .hw.on { color: var(--act-light); text-shadow: 0 0 28px rgba(76,134,232,.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-hint { position: absolute; z-index: 2; right: var(--gut); bottom: 34px; font-size: 12px; letter-spacing: .08em; color: var(--d-ink-2); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--d-ink-2); display: grid; place-items: center; width: 44px; height: 54px; }
.scroll-cue .cue-dot { animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(22px); opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }
@media (hover: none), (max-width: 767px) { .hero-hint { display: none; } }
@media (max-width: 767px) {
  .hero { padding-bottom: 96px; }
  .hero-glow { background: linear-gradient(180deg, rgba(22,25,30,0) 0%, rgba(22,25,30,.42) 34%, rgba(22,25,30,.42) 84%, rgba(22,25,30,0) 100%); }
}

.js .hero-text > :not(.hero-logo) { transform: translateY(18px); transition: transform .9s var(--ease-out); }
.js .hero.in .hero-text > :not(.hero-logo) { transform: none; }
.js .hero.in .hero-text > :nth-child(3) { transition-delay: .08s; }

.sec-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: 64px; }
.sec-lead { font-size: clamp(17px, 1rem + .3vw, 19.5px); color: var(--d-ink-2); max-width: 62ch; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.seen { opacity: 1; transform: none; }

:root { --step-h: clamp(420px, 62svh, 620px); }
.caps { position: relative; scroll-margin-top: -8px; }
.story { position: relative; }
html.pin .story { height: calc(var(--steps) * var(--step-h) + 100svh - var(--header-h)); }
html.pin .story-pane { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.story-grid { display: grid; gap: 40px; }
html.pin .story-grid { gap: clamp(14px, 2.4svh, 28px); }

html.pin .story-text { position: relative; background: var(--d-bg); box-shadow: 0 0 20px 14px var(--d-bg); border-radius: 8px; }
.story-steps { display: grid; gap: 72px; }
html.pin .story-steps { gap: 0; }
html.pin .step { grid-area: 1 / 1; opacity: 0; pointer-events: none; }
html.pin .step:first-child { opacity: 1; }
html.pin .step.on { pointer-events: auto; }
.step { display: grid; gap: 12px; align-content: start; }
.step h3 { font-size: clamp(22px, 1rem + 1.25vw, 34px); line-height: 1.16; }
.step p { color: var(--d-ink-2); max-width: 48ch; }

.story-gauge { display: none; }
html.pin .story-gauge { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(10px, 2svh, 22px); }
.gauge-rail { position: relative; flex: 1; max-width: 300px; display: flex; justify-content: space-between; }
.gauge-rail::before, .gauge-lit { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: var(--d-line); }
.gauge-lit { background: var(--act-light); transform-origin: 0 50%; transform: scaleX(0); }
.gauge-rail a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.gauge-rail a span { width: 10px; height: 10px; border-radius: 50%; background: #3A4250; transition: background-color .2s ease, transform .2s ease; }
.gauge-rail a.done span { background: var(--act-light); }
.gauge-rail a[aria-current] span { background: #fff; transform: scale(1.25); box-shadow: 0 0 0 3px rgba(76,134,232,.45); }
.gauge-rail a:hover span { background: #fff; }
.gauge-n { font-size: 12.5px; letter-spacing: .08em; color: var(--d-ink-2); white-space: nowrap; }
.gauge-n b { font-weight: 500; color: #fff; }

.story-frame { position: relative; width: 100%; background: var(--d-bg); box-shadow: 0 0 22px 16px var(--d-bg); border-radius: 8px; }
.scene { --sw: 1.6; position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1000 / 640; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
  html.pin .story-grid { gap: 56px; }
  html.pin .story-frame { max-width: calc((100svh - var(--header-h) - 40px) * 1000 / 640); justify-self: end; }
  html.rm .story-grid { grid-template-columns: minmax(0, 1fr); }
  html.rm .step { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 56px; }
  html.rm .step h3, html.rm .step p { grid-column: 1; }
  html.rm .step .story-frame { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (max-width: 959px) {
  html.pin .story-frame { order: -1; width: min(100%, calc(42svh * 1000 / 640)); justify-self: center; }
}

@media (max-width: 959px) and (max-height: 520px) {
  html.pin .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px; }
  html.pin .story-frame { order: 0; width: 100%; }
  html.pin .step p { font-size: 15px; line-height: 1.45; }
}

html:not(.pin) .story { padding: 96px 0; }
html.rm .story-grid > .story-frame { display: none; }
html.rm .step .story-frame { margin-top: 8px; }

html.pin .gr { --r: 0; --l: 0; }
.part { opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 12px)); }
.scene .obj { fill: #232C3A; stroke: #3F4B5E; stroke-width: calc(2px * var(--sw)); }
.scene .board { fill: #1B2534; }
.scene .scr { fill: #141A23; stroke: #303A49; stroke-width: calc(1.5px * var(--sw)); }
.scene .det, .scene .ground, .scene .grid, .scene .tr { fill: none; stroke: #4A566A; stroke-width: calc(2.5px * var(--sw)); stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.scene .ground { stroke: #303A49; stroke-width: calc(2px * var(--sw)); }
.scene .grid { stroke: #2B3442; stroke-width: calc(1.5px * var(--sw)); }
.scene .hole { fill: #141A23; stroke: #3F4B5E; stroke-width: calc(1.5px * var(--sw)); }
.scene .pad { fill: #566278; transition: fill .3s ease; }
.scene .chip { fill: #2C3748; stroke: #566278; stroke-width: calc(2px * var(--sw)); transition: fill .3s ease; }
.scene .ln { fill: none; stroke: #566278; stroke-width: calc(2.5px * var(--sw)); stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--l, 1)); transition: stroke .3s ease; }
.scene .ln.wl { stroke-dasharray: none; stroke-dashoffset: 0; opacity: var(--l, 1); }
.scene .fl { fill: none; stroke: var(--act-light); stroke-width: calc(3px * var(--sw)); stroke-linecap: round; stroke-dasharray: .001 .14; opacity: calc((var(--l, 1) - .9) * 10); }
.story.live .fl { animation: story-flow 3s linear infinite; }
@keyframes story-flow { to { stroke-dashoffset: -.141; } }
.scene .sig { fill: #fff; } .scene .sig-glow { fill: rgba(76,134,232,.4); }
.scene .box { fill: #566278; transition: transform .9s cubic-bezier(.45,0,.25,1), opacity .45s ease; }

.scene .tunnel { fill: #232C3A; }
.scene .tunnel-edge { fill: none; }

.scene .rail { fill: none; stroke: #4A5568; stroke-width: calc(3px * var(--sw)); }
.scene .wire { fill: none; stroke: #3F4B5E; stroke-width: calc(2px * var(--sw)); }
.scene .contact, .scene .coil { fill: none; stroke: #6B7482; stroke-width: calc(2.2px * var(--sw)); }
.scene .ladder text { font: 500 21px var(--f-mono); letter-spacing: -.02em; fill: var(--d-ink-2); text-anchor: middle; }
.scene .rung.live .wire { stroke: var(--act-light); stroke-dasharray: 6 6; }
.story.live .rung.live .wire { animation: wire-flow .6s linear infinite; }
@keyframes wire-flow { to { stroke-dashoffset: -12; } }
.scene .rung.live .contact { stroke: var(--act-light); }
.scene .rung.live .coil { stroke: var(--act-light); fill: rgba(76,134,232,.22); }
.scene .rung.live text { fill: #fff; }
.scene .m-press { fill: #3F4B5E; transition: transform .25s ease, fill .25s ease; }
.scene .machine.q2 .m-press { transform: translateY(10px); fill: var(--act-light); }
.scene .machine.q2 .m-lamp { fill: var(--act-light); }
.scene .m-gate { fill: #3F4B5E; transition: transform .25s ease, fill .25s ease; }
.scene .machine.q3 .m-gate { transform: translateY(-30px); fill: var(--act-light); }
.scene .auto-on .drive { stroke: var(--act-light); }
.scene .net { fill: none; stroke: #566278; stroke-width: calc(2.5px * var(--sw)); stroke-linecap: round; transition: stroke .3s ease; }
.scene .nd { fill: #7C8490; }
.story.live .gr.cur .nd, .story.live .all .nd { animation: story-node 1.8s ease-in-out infinite; }
.story.live .nd:nth-of-type(even) { animation-delay: -.9s; }
@keyframes story-node { 50% { fill: #fff; } }
.scene .spark { fill: #566278; transition: fill .3s ease; }
.scene .line { fill: none; stroke: #7C8490; stroke-width: calc(2.5px * var(--sw)); stroke-linejoin: round; transition: stroke .3s ease; }
.scene .area { fill: rgba(76,134,232,.12); }

.gr[data-gr="1"] .part { opacity: 1; transform: none; }
.scene .trd { fill: none; stroke: #566278; stroke-width: calc(2.5px * var(--sw)); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--l, 1)); transition: stroke .3s ease; }
.gr.cur .trd, .all .trd { stroke: var(--act-light); }
.scene .pas { fill: #566278; }

html.pin .gr { --w: 0; }
.scene .code { fill: #303A49; }
.scene .code-lit { fill: #566278; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(clamp(0, calc((var(--w, 1) - var(--a)) * 14), 1)); }
.scene .cable { fill: none; stroke: #3F4B5E; stroke-width: calc(4px * var(--sw)); opacity: var(--r, 1); }
.scene .pulse-t, .scene .pulse-c { fill: none; stroke: var(--act-light); stroke-width: calc(3px * var(--sw)); stroke-linecap: round; stroke-dasharray: .3 2; }
.scene .pulse-c { stroke-dashoffset: calc(.3 - clamp(0, calc((var(--w, 1) - .36) * 5), 1) * 1.3); }
.scene .pulse-t { stroke-dashoffset: calc(.3 - clamp(0, calc((var(--w, 1) - .54) * 7), 1) * 1.3); }
.scene .cell { fill: #354155; opacity: var(--r, 1); }
.scene .cell-lit { fill: #566278; opacity: clamp(0, calc((var(--w, 1) - .66 - var(--c) * .017) * 33), 1); }
.gr.cur .code-lit, .all .code-lit, .gr.cur .cell-lit, .all .cell-lit { fill: var(--act-light); }
.scene .led-base { fill: #303A49; }
.scene .led-s { fill: var(--act-light); opacity: clamp(0, calc((var(--w, 1) - .96) * 40), 1); }
.story.live .gr.cur .led-s { animation: led-blink 1.1s steps(2, end) infinite; }
@keyframes led-blink { 50% { fill: #303A49; } }

.scene .badge { color: #FFFFFF; opacity: .9; }

.scene .wbar { transform-box: fill-box; transform-origin: 50% 100%; fill: #566278; }
.story.live .wbar { animation: wbar 2.4s ease-in-out infinite; }
.story.live .wbar:nth-of-type(2) { animation-delay: -.8s; } .story.live .wbar:nth-of-type(3) { animation-delay: -1.6s; }
@keyframes wbar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.story.live .wlive { animation: blink 1.2s steps(2, end) infinite; }

.scene .tg-track { fill: #303A49; transition: fill .2s ease; }
.scene .tg-knob { fill: #C9CED6; }
.scene .tap { fill: none; stroke: var(--act-light); stroke-width: calc(1.5px * var(--sw)); opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .ph-st { fill: #303A49; }
.story.live .tg-knob { animation: tgk 3.6s ease-in-out infinite; }
.story.live .tg-track { animation: tgt 3.6s ease-in-out infinite; }
.story.live .ph-st { animation: tgt 3.6s ease-in-out infinite; }
.story.live .tap { animation: tap 3.6s ease-out infinite; }
@keyframes tgk { 0%, 38% { transform: translateX(0); } 46%, 88% { transform: translateX(13px); } 96%, 100% { transform: translateX(0); } }
@keyframes tgt { 0%, 40% { fill: #303A49; } 46%, 88% { fill: var(--act-light); } 96%, 100% { fill: #303A49; } }
@keyframes tap { 0%, 34% { opacity: 0; transform: scale(.4); } 38% { opacity: 1; transform: scale(.6); } 48%, 100% { opacity: 0; transform: scale(1.3); } }
html:not(.pin) .tg-knob { transform: translateX(13px); } html:not(.pin) .tg-track, html:not(.pin) .ph-st { fill: var(--act-light); }

.scene .dk-row { fill: #232C3A; stroke: #303A49; stroke-width: calc(1.2px * var(--sw)); }
.scene .dk-btn { fill: #303A49; }
.scene .dk-meter { fill: #232C3A; } .scene .dk-meter-f { fill: #566278; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.85); }
.story.live .dk-btn { animation: dkb 4s ease infinite; }
.story.live .dk-new { animation: dkn 4s ease infinite; }
.story.live .dk-meter-f { animation: dkm 4s ease infinite; }
@keyframes dkb { 0%, 22% { fill: #303A49; } 26%, 32% { fill: var(--act-light); } 38%, 100% { fill: #303A49; } }
@keyframes dkn { 0%, 30% { opacity: 0; } 38%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dkm { 0%, 30% { transform: scaleX(.45); } 40%, 92% { transform: scaleX(.85); } 100% { transform: scaleX(.45); } }

.scene .axis { fill: none; stroke: #566278; stroke-width: calc(2px * var(--sw)); stroke-linecap: round; }

.gr.cur .acc, .gr.cur .acc-s, .gr.cur .ln, .scene .gr.cur .line, .all .acc, .all .acc-s, .all .ln, .scene .all .line { stroke: var(--act-light); }
.gr.cur .acc-f, .all .acc-f { fill: var(--act-light); }
.gr.cur .chip.acc-f, .all .chip.acc-f { fill: #2F5FB0; }

.sols { position: relative; padding: 140px 0; overflow: clip; border-top: 1px solid var(--d-line); }
.sols-in { position: relative; z-index: 1; }
.chains { display: grid; gap: 18px; counter-reset: c; }
.chain { display: grid; gap: 24px; padding: 30px; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 16px; transition: border-color .3s ease, background-color .3s ease; }
.chain:hover, .chain:focus-within { border-color: #34507F; }
.chain-name { display: grid; gap: 8px; align-content: start; }
.chain-n { font-size: 12px; letter-spacing: .14em; color: var(--act-light); }
.chain-name h3 a { color: #fff; text-decoration: none; }
.chain-name h3 a:hover { text-decoration: underline; text-decoration-color: var(--act-light); }
.chain-name p { color: var(--d-ink-2); font-size: 16px; max-width: 46ch; }
.chain-flow { position: relative; display: grid; gap: 18px; }
.node { position: relative; z-index: 1; display: grid; gap: 6px; padding: 14px 16px; background: #151A22; border: 1px solid var(--d-line); border-radius: 10px; font-size: 15px; line-height: 1.4; transition: border-color .3s ease; }
.node-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted); transition: color .3s ease; }
.node.hot { border-color: var(--act-light); }
.node.hot .node-k { color: var(--act-light); }
.chain-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.chain-trace .ct-base { fill: none; stroke: #34404F; stroke-width: 1.5; stroke-linejoin: round; }
.chain-trace .ct-pulse { fill: none; stroke: var(--act-light); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--act-light)); }
@media (min-width: 1024px) {
  .chain { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; padding: 32px 36px; }
  .chain-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
}
@media (max-width: 1023px) { .chain-flow { padding-left: 22px; } }

.turnkey { position: relative; margin-top: 56px; display: grid; gap: 28px; padding: 36px; border-radius: 18px; background: var(--d-bg); }
.turnkey .blank { position: absolute; inset: 0; width: 100%; height: 100%; }
.blank-edge { fill: none; stroke: #4A5568; stroke-width: 1.5; stroke-dasharray: 8 8; vector-effect: non-scaling-stroke; }
.blank-route { fill: none; stroke: var(--act-light); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; opacity: .55; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.8s var(--ease-out); }
.turnkey.seen .blank-route { stroke-dashoffset: 0; }
.blank-pad { fill: #4A5568; } .turnkey.seen .blank-pad { fill: var(--act-light); transition: fill .3s ease 1.6s; } .turnkey.seen .blank-pad:first-of-type { transition-delay: 0s; }
.turnkey-text { position: relative; display: grid; gap: 14px; max-width: 620px; }
.turnkey-text p:not(.eyebrow) { color: var(--d-ink-2); }
.turnkey-text .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 960px) { .turnkey { padding: 56px; min-height: 320px; align-content: center; } }

.dpp, .contact { color: var(--ink); background: var(--bg); }
.dpp .eyebrow, .contact .eyebrow { color: var(--ink-2); }
.dpp a, .contact a { color: var(--act); }
.dpp a:hover, .contact a:hover { color: var(--act-h); }
.dpp :focus-visible, .contact :focus-visible { outline-color: var(--act); }

.dpp, .contact { position: relative; isolation: isolate; }
.dpp::before, .contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--pcb-tile-light); background-size: var(--pcb-w) var(--pcb-h); background-position: 0 var(--pcb-oy, 0); }
.dpp { padding: 96px 0; background: var(--surface); }
.dpp-in { display: grid; gap: 32px; align-items: center; }
.dpp-text { display: grid; gap: 14px; }
.dpp-text p { color: var(--ink-2); max-width: 60ch; }
.ph { display: grid; place-content: center; gap: 6px; text-align: center; aspect-ratio: 3 / 1; max-width: 380px; width: 100%; background: var(--chip); border: 1px dashed #8A929E; border-radius: 12px; color: var(--ink-2); }
.ph-k { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.ph-r { font: 400 12px/1.4 var(--f-mono); }
@media (min-width: 960px) { .dpp-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }

.contact { padding: 120px 0; border-top: 1px solid var(--line); }
.contact .sec-head { margin-bottom: 48px; }
.paths { display: grid; gap: 20px; }
@media (min-width: 768px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
.path:hover { border-color: var(--act); transform: translateY(-2px); }
.path p:not(.eyebrow) { color: var(--ink-2); }
.path .btn { justify-self: start; margin-top: 8px; }
.contact-grid { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } }
.form { display: grid; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #8A929E; border-radius: 8px; overflow: hidden; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 10px; text-align: center; font-weight: 500; font-size: 15px; cursor: pointer; line-height: 1.25; }
.seg label + label { border-left: 1px solid #8A929E; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--act); outline-offset: -4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid #8A929E; border-radius: 8px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--act); outline-offset: 1px; border-color: var(--act); }
.contact .muted { color: var(--ink-2); }
.row-2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form-foot { display: grid; gap: 14px; }
.form-foot p { font-size: 13.5px; color: var(--ink-2); }
.direct dl { margin: 0; display: grid; gap: 18px; }
.direct dt { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.direct dd { margin: 0; }

.site-footer { position: relative; overflow: clip; padding: 80px 0 32px; border-top: 1px solid var(--d-line); }
.foot-in { position: relative; z-index: 1; }
.foot-top { display: grid; gap: 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; max-width: 320px; }
.foot-brand svg { width: 124px; height: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot-cols h2 { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--d-ink-2); margin-bottom: 12px; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--act-light); text-decoration: underline; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--d-line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; color: var(--d-ink-2); }
@media (min-width: 960px) { .foot-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mock-tools { position: fixed; right: 12px; bottom: 12px; z-index: 150; max-width: min(380px, calc(100vw - 24px)); background: #232A35; color: #fff; border: 1px solid #3A4250; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 400 13.5px/1.45 "IBM Plex Sans", system-ui, sans-serif; }
.mock-tools summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.mock-tools summary::-webkit-details-marker { display: none; }
.mock-tools summary .cur { color: var(--d-ink-2); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.mock-tools .mt-body { padding: 0 14px 14px; display: grid; gap: 8px; }
.mock-tools .mt-opts { display: grid; gap: 6px; }
.mock-tools button { display: grid; gap: 2px; text-align: left; width: 100%; padding: 10px 12px; min-height: 44px; background: #1A202B; color: #fff; border: 1px solid #3A4250; border-radius: 8px; font: inherit; cursor: pointer; }
.mock-tools button:hover { border-color: var(--d-ink-2); }
.mock-tools button[aria-pressed="true"] { border-color: var(--act-light); box-shadow: inset 0 0 0 1px var(--act-light); }
.mock-tools button b { font-weight: 600; }
.mock-tools button span { color: var(--d-ink-2); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: 76px; z-index: 160; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--mark-bg); color: var(--mark-ink); font: 500 13px/1.4 var(--f-mono); padding: 10px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-text > :not(.hero-logo) { opacity: 1 !important; transform: none !important; }
}
html.rm { scroll-behavior: auto; }
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
html.rm .js .reveal, html.rm.js .reveal, html.rm.js .hero-text > :not(.hero-logo) { opacity: 1 !important; transform: none !important; }

html.rm .blank-route { stroke-dashoffset: 0; }
html.rm .blank-pad { fill: var(--act-light); }
html.rm .scroll-cue .cue-dot { opacity: 1; }
