/* A.S.P: game HUD. Fixed frame + side rail, vertical "stages", a 3D rig that rotates with scroll. No horizontal scroll, no step-swap. */
:root {
  --bg: #04050A; --panel: #0A0E1A; --cy: #19F0FF; --mg: #FF2E9A; --lime: #A6FF00; --amber: #FFB020; --fg: #E6EBFA; --mut: #7F89A8;
  --accent: var(--cy); --line: rgba(127, 137, 168, .22); --hdr-bg: transparent;
  --pad: clamp(1.25rem, 6vw, 5.5rem); --section: clamp(5rem, 10vw, 8rem);
  --sans: "Rubik", system-ui, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
  --loader-bg: #000; --loader-fg: var(--cy);
}
body { background: var(--bg); color: var(--fg); font: 300 1.0625rem/1.7 var(--sans);
  background-image: linear-gradient(rgba(25, 240, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 240, 255, .035) 1px, transparent 1px); background-size: 64px 64px; }
h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -.01em; }
em { font-style: normal; background: linear-gradient(90deg, var(--cy), var(--mg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
i { font-style: normal; }
.tag { font: 400 .78rem var(--mono); letter-spacing: .24em; color: var(--cy); margin-bottom: 1rem; direction: ltr; text-align: start; }
.scan { position: fixed; inset: 0; z-index: 180; pointer-events: none; opacity: .45; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.loader-brand { font-family: var(--mono); font-weight: 700; text-shadow: 0 0 24px var(--cy); } .loader-brand i, .brand i { color: var(--mg); }
.loader-sub { position: absolute; bottom: 2rem; inset-inline-start: var(--pad); font: 400 .8rem var(--mono); letter-spacing: .3em; color: var(--mut); }
.brand { font: 700 1.4rem var(--mono); direction: ltr; }
.site-header { z-index: 210; }
.site-header li a { font-size: .92rem; } .site-header.is-solid { background: rgba(4, 5, 10, .85); }
.nav-cta { border: 1px solid var(--cy); color: var(--cy); padding: .4rem 1rem; box-shadow: 0 0 14px rgba(25, 240, 255, .35); transition: .3s; } .nav-cta:hover { background: var(--cy); color: #000; }
.btn { display: inline-block; border: 0; cursor: pointer; background: linear-gradient(90deg, var(--cy), var(--mg)); color: #04050A; font: 700 1rem var(--sans); padding: 1rem 2.2rem; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); will-change: transform; }
.link { border-bottom: 1px solid var(--line); padding-block: .3rem; } .link span { display: inline-block; transition: transform .4s; } .link:hover span { transform: translateX(-6px); }

/* fixed HUD frame */
.hud { position: fixed; inset: 0; z-index: 170; pointer-events: none; font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; color: var(--mut); direction: ltr; }
.hud .c { position: absolute; width: 26px; height: 26px; border: 2px solid var(--cy); opacity: .8; }
.hud .tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; } .hud .tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud .bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; } .hud .br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.hud-l, .hud-r { position: absolute; bottom: 24px; display: flex; gap: .6rem; align-items: baseline; } .hud-l { left: 52px; } .hud-r { right: 52px; }
.hud b { color: var(--fg); font-weight: 400; }
.rail { position: absolute; right: 20px; top: 50%; translate: 0 -50%; display: grid; gap: 1.1rem; }
.rail li { display: grid; justify-items: end; gap: .1rem; opacity: .35; transition: opacity .4s, color .4s; }
.rail li span { font-size: .6rem; max-width: 0; overflow: hidden; transition: max-width .5s; white-space: nowrap; } .rail li b { font-size: .8rem; }
.rail li.on { opacity: 1; color: var(--cy); } .rail li.on span { max-width: 8rem; } .rail li.on b { color: var(--cy); text-shadow: 0 0 12px var(--cy); }

/* 01 boot */
.boot { min-height: 100svh; display: grid; align-content: center; gap: 3rem; padding: 7rem var(--pad) 5rem; position: relative; }
.term, .term-form { background: rgba(10, 14, 26, .85); border: 1px solid rgba(25, 240, 255, .5); box-shadow: 0 0 40px rgba(25, 240, 255, .15), inset 0 0 30px rgba(25, 240, 255, .05); font-family: var(--mono); }
.term { max-width: 44rem; width: 100%; margin-inline: auto; }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--mut); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mg); } .term-bar i:nth-child(2) { background: var(--amber); } .term-bar i:nth-child(3) { background: var(--lime); } .term-bar span { margin-inline-start: auto; }
.term-lines { padding: 1.2rem 1.2rem .8rem; font-size: clamp(.72rem, 1.4vw, .95rem); line-height: 1.9; color: #b6c2e6; overflow: hidden; } .term-lines li { white-space: pre; }
.orb i { box-shadow: 0 0 14px rgba(25, 240, 255, .35); } .sq { width: 46px; height: 46px; border: 1px solid var(--cy); animation: tumble 14s linear infinite; } .sq.s2 { width: 28px; height: 28px; border-color: var(--mg); animation-duration: 9s; }
.ring { width: 74px; height: 74px; border-radius: 50%; border: 2px dashed var(--mg); animation: spin 18s linear infinite; box-shadow: 0 0 14px rgba(255, 46, 154, .35); } .ring.r2 { width: 46px; height: 46px; border-color: var(--lime); animation-duration: 10s; animation-direction: reverse; box-shadow: none; }
.plus { width: 26px; height: 26px; background: linear-gradient(var(--lime), var(--lime)) center / 100% 2px no-repeat, linear-gradient(var(--lime), var(--lime)) center / 2px 100% no-repeat; animation: spin 9s linear infinite; box-shadow: none; } .plus.p2 { background: linear-gradient(var(--amber), var(--amber)) center / 100% 2px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 2px 100% no-repeat; animation-direction: reverse; }
.chip { width: 56px; height: 56px; border: 1px solid var(--amber); display: grid; place-items: center; font: 700 .62rem var(--mono); color: var(--amber); letter-spacing: .1em; animation: tumble 20s linear infinite reverse; box-shadow: 0 0 14px rgba(255, 176, 32, .3); } .chip.c2 { border-color: var(--cy); color: var(--cy); animation-duration: 16s; }
.orbit { position: absolute; left: 50%; top: 50%; width: min(58vw, 720px); aspect-ratio: 1; border: 1px dashed rgba(25, 240, 255, .45); border-radius: 50%; margin: calc(min(58vw, 720px) / -2) 0 0 calc(min(58vw, 720px) / -2); transform: rotateX(72deg); animation: orbit 14s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 18px var(--cy); }
.orbit.o2 { width: min(44vw, 540px); margin: calc(min(44vw, 540px) / -2) 0 0 calc(min(44vw, 540px) / -2); border-color: rgba(255, 46, 154, .5); animation-duration: 9s; animation-direction: reverse; } .orbit.o2::after { background: var(--mg); box-shadow: 0 0 18px var(--mg); }
.orbit.o3 { width: min(70vw, 880px); margin: calc(min(70vw, 880px) / -2) 0 0 calc(min(70vw, 880px) / -2); border-color: rgba(166, 255, 0, .3); animation-duration: 24s; transform: rotateX(72deg) rotateY(18deg); } .orbit.o3::after { background: var(--lime); box-shadow: 0 0 18px var(--lime); }
@keyframes orbit { to { transform: rotateX(72deg) rotateZ(360deg); } }
.term-lines b { color: var(--lime); } .term-lines .last { color: var(--cy); } .cur { animation: blink 1s steps(2) infinite; } @keyframes blink { 50% { opacity: 0; } }
.term-prog { height: 4px; background: var(--line); } .term-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), var(--mg)); transform-origin: left; transform: scaleX(1); box-shadow: 0 0 12px var(--cy); }
.boot-title h1 { font-size: clamp(3.4rem, 10vw, 9rem); margin-bottom: 1.2rem; text-shadow: 0 0 40px rgba(25, 240, 255, .25); }
.boot-title .sub { max-width: 36ch; color: var(--mut); font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-bottom: 2rem; }
.acts { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.boot.is-stack { height: 100svh; min-height: 640px; padding-block: 0; overflow: hidden; }
.is-stack .term { position: absolute; inset-inline: var(--pad); top: 50%; translate: 0 -50%; max-width: 46rem; margin: auto; }
.is-stack .boot-title { position: absolute; inset-inline: var(--pad); top: 50%; translate: 0 -50%; text-align: center; display: grid; justify-items: center; }
.is-stack .boot-title .sub { margin-inline: auto; }

/* 02 rig (3D) */
.rig { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(50% 55% at 50% 55%, rgba(25, 240, 255, .14), transparent 70%); }
.rig-head { position: absolute; top: 6.5rem; inset-inline-start: var(--pad); z-index: 3; max-width: 12ch; } .rig-head h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.scene3d { perspective: 1500px; width: 100%; height: 100%; display: grid; place-items: center; }
.case { --w: min(24vw, 320px); --h: min(52vh, 470px); --d: min(20vw, 270px); position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(-28deg); will-change: transform; }
.face { position: absolute; border: 1px solid rgba(25, 240, 255, .75); background: linear-gradient(135deg, rgba(25, 240, 255, .1), rgba(255, 46, 154, .1)); box-shadow: inset 0 0 40px rgba(25, 240, 255, .18), 0 0 20px rgba(25, 240, 255, .2); }
.f-front { inset: 0; transform: translateZ(calc(var(--d) / 2)); display: grid; grid-template-rows: auto 1fr auto auto; gap: 8%; padding: 8%; background: linear-gradient(135deg, rgba(25, 240, 255, .14), rgba(255, 46, 154, .12)); }
.f-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: repeating-linear-gradient(0deg, rgba(25, 240, 255, .1) 0 2px, transparent 2px 10px); }
.f-left, .f-right { width: var(--d); height: 100%; left: calc((var(--w) - var(--d)) / 2); background: repeating-linear-gradient(90deg, rgba(25, 240, 255, .12) 0 2px, transparent 2px 12px); }
.f-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); } .f-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); border-color: rgba(255, 46, 154, .8); }
.f-top, .f-bottom { width: 100%; height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.f-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); } .f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.rgb { height: 3px; background: linear-gradient(90deg, var(--cy), var(--mg), var(--lime), var(--cy)); background-size: 300% 100%; animation: rgb 4s linear infinite; box-shadow: 0 0 12px var(--mg); } @keyframes rgb { to { background-position: 300% 0; } }
.fans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; align-content: center; } .gpu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8%; padding: 6%; border: 1px solid var(--mg); border-radius: 6px; box-shadow: 0 0 16px rgba(255, 46, 154, .4); }
.fanbox { display: block; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--cy); background: repeating-conic-gradient(from 0deg, rgba(25, 240, 255, .7) 0 8deg, transparent 8deg 45deg); animation: spin 1.6s linear infinite; }
.gpu .fanbox { border-color: var(--mg); background: repeating-conic-gradient(from 0deg, rgba(255, 46, 154, .75) 0 8deg, transparent 8deg 45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.psu { height: 14%; border: 1px solid var(--lime); background: repeating-linear-gradient(90deg, rgba(166, 255, 0, .35) 0 2px, transparent 2px 8px); }
.callouts li { position: absolute; left: var(--x); top: var(--y); z-index: 3; padding: .6rem .9rem; border-inline-start: 3px solid var(--cy); background: rgba(4, 5, 10, .75); backdrop-filter: blur(6px); font-family: var(--mono); font-size: .8rem; display: grid; opacity: .0; animation: bobv 4s ease-in-out infinite; } .callouts li:nth-child(2n) { animation-delay: -1.4s; } .callouts li:nth-child(3n) { animation-delay: -2.6s; }
.callouts li b { color: var(--cy); letter-spacing: .15em; } .callouts li span { color: var(--fg); }

/* 03 bench */
.bench { padding: var(--section) var(--pad); }
.bench-head h2, .lineup-head h2, .trace-head h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); max-width: 14ch; margin-bottom: 3rem; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-bottom: 3rem; }
.gauge { position: relative; display: grid; justify-items: center; text-align: center; }
.gauge svg { width: min(100%, 22rem); rotate: -90deg; }
.gauge circle { fill: none; stroke-width: 6; stroke-linecap: round; } .g-bg { stroke: var(--line); }
.g-fg { stroke: var(--cy); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--g, 1) * var(--v, .8)); filter: drop-shadow(0 0 8px var(--cy)); }
.gauge:nth-child(2) .g-fg { stroke: var(--mg); filter: drop-shadow(0 0 8px var(--mg)); } .gauge:nth-child(3) .g-fg { stroke: var(--lime); filter: drop-shadow(0 0 8px var(--lime)); }
.gauge strong { position: absolute; top: 32%; direction: ltr; font: 700 clamp(2.4rem, 5vw, 4.4rem)/1 var(--mono); text-shadow: 0 0 20px rgba(25, 240, 255, .4); } .gauge span { color: var(--mut); margin-top: .5rem; }
.race { display: grid; gap: 1rem; max-width: 56rem; } .race li { display: grid; grid-template-columns: 9rem 1fr 4rem; gap: 1rem; align-items: center; font-family: var(--mono); font-size: .85rem; color: var(--mut); }
.race div { height: 10px; background: var(--line); overflow: hidden; direction: ltr; } .race i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), var(--lime)); box-shadow: 0 0 12px var(--cy); transform-origin: left; transform: scaleX(calc(var(--g, 1) * var(--w))); } .race b { color: var(--fg); direction: ltr; }

/* 04 bento */
.lineup { padding: var(--section) var(--pad); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(13rem, auto); gap: 1.1rem; }
.tile { --c: var(--cy); position: relative; overflow: hidden; border: 1px solid var(--c); background: radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), var(--panel); padding: clamp(1.2rem, 2.2vw, 2rem); display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s, box-shadow .3s; will-change: transform; }
.tile:hover { box-shadow: 0 0 40px color-mix(in srgb, var(--c) 40%, transparent); }
.tile .n { position: absolute; top: .6rem; inset-inline-end: 1rem; font: 700 clamp(3rem, 7vw, 6.5rem)/1 var(--mono); color: transparent; -webkit-text-stroke: 1px var(--c); opacity: .6; direction: ltr; }
.tile h3 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); } .tile p { color: var(--mut); } .tile ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; } .tile li { font: 400 .72rem var(--mono); border: 1px solid var(--line); padding: .25rem .6rem; }
.tile .price { font: 700 1.1rem var(--mono); color: var(--c); margin-top: .6rem; }
.t1 { grid-column: span 7; grid-row: span 2; --c: var(--cy); } .t2 { grid-column: span 5; --c: var(--mg); } .t3 { grid-column: span 5; --c: var(--lime); } .t4 { grid-column: span 8; --c: var(--amber); } .t5 { grid-column: span 4; --c: var(--cy); }
.t1 h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); }

/* 05 trace */
.trace { padding: var(--section) var(--pad); }
.trace-body { position: relative; display: grid; gap: clamp(3rem, 9vw, 7rem); max-width: 70rem; margin-inline: auto; }
.spine { position: absolute; inset-block: 0; left: 50%; width: 2px; background: var(--line); translate: -1px 0; } .spine i { position: absolute; inset: 0; background: linear-gradient(var(--cy), var(--mg)); transform-origin: top; transform: scaleY(var(--s, 1)); box-shadow: 0 0 14px var(--cy); }
.t-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; } .t-item:nth-child(odd) .t-card { grid-column: 1; text-align: end; } .t-item:nth-child(even) .t-card { grid-column: 2; }
.node { position: absolute; left: 50%; top: 1.2rem; width: 18px; height: 18px; translate: -50% 0; border: 2px solid var(--line); background: var(--bg); transform: rotate(45deg); transition: .5s; }
.t-item.on .node { border-color: var(--cy); background: var(--cy); box-shadow: 0 0 22px var(--cy); }
.t-card { padding: 0 clamp(1.5rem, 4vw, 3.5rem); opacity: .35; transition: opacity .6s; } .t-item.on .t-card { opacity: 1; }
.t-card b { font: 400 .75rem var(--mono); letter-spacing: .2em; color: var(--mg); } .t-card h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: .3rem 0 .5rem; } .t-card p { color: var(--mut); max-width: 34ch; display: inline-block; }

/* 06 contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--section) var(--pad); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); margin-bottom: 1rem; } .contact-intro > p:not(.tag) { color: var(--mut); max-width: 34ch; }
.details { margin-top: 2rem; display: grid; gap: 1rem; } .details div { border-top: 1px solid var(--line); padding-top: .7rem; } .details dt { font: 400 .72rem var(--mono); letter-spacing: .15em; color: var(--cy); } .details dd { margin: 0; }
.term-form { display: grid; gap: 0; padding-bottom: 1.4rem; } .term-form label { display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: .5rem; padding: .5rem 1.2rem; border-bottom: 1px dashed var(--line); } .term-form label b { color: var(--lime); font-weight: 400; font-size: .85rem; }
.term-form input, .term-form select, .term-form textarea { font: 400 1rem var(--mono); color: var(--fg); background: transparent; border: 0; width: 100%; padding: .4rem 0; } .term-form select option { background: var(--panel); } .term-form input:focus, .term-form select:focus, .term-form textarea:focus { outline: 0; text-shadow: 0 0 10px var(--cy); }
.term-form input[aria-invalid="true"] { color: var(--mg); } .term-form .btn { margin: 1.2rem 1.2rem 0; justify-self: start; } .form-note { margin: .6rem 1.2rem 0; min-height: 1.4em; color: var(--lime); font-family: var(--mono); font-size: .85rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 5rem; overflow: hidden; color: var(--mut); font-size: .85rem; text-align: center; }
.ticker .m-track { gap: 3rem; font: 700 clamp(5rem, 16vw, 14rem)/1 var(--mono); color: transparent; -webkit-text-stroke: 1px var(--cy); } .ticker i { font-size: .3em; color: var(--mg); -webkit-text-stroke: 0; } .site-footer p { margin-top: 2rem; }
.motion-toggle { background: var(--bg); color: var(--cy); border-color: var(--cy); font-family: var(--mono); bottom: 3.4rem; z-index: 300; }

@media (max-width: 860px) {
  .hud .rail, .hud-l, .hud-r { display: none; } .callouts { display: none; } .gauges { grid-template-columns: 1fr; } .race li { grid-template-columns: 6rem 1fr 3rem; }
  .bento { grid-template-columns: 1fr; } .tile { grid-column: auto !important; grid-row: auto !important; min-height: 15rem; } .contact { grid-template-columns: 1fr; }
  .spine { left: 14px; } .node { left: 14px; } .t-item { grid-template-columns: 1fr; } .t-item .t-card { grid-column: 1 !important; text-align: start !important; padding-inline-start: 2.8rem; }
  .case { --w: 46vw; --d: 36vw; --h: 46vh; } .rig-head { top: 5.5rem; }
}
