/* RCS landing page: house style (smoked glass, chamfered frames, glowing inlays), brand orange */

/* Fonts: local only, no Google. Drop Sora / Share Tech Mono .woff2 files into fonts/ to use them; system fallbacks otherwise. */
@font-face { font-family: "Sora"; src: local("Sora"), url("fonts/Sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: local("Share Tech Mono"), url("fonts/ShareTechMono.woff2") format("woff2"); font-display: swap; }

:root {
  --intro: .8s; /* time from the light clicking on to the logo intro */
  --orange: #F7931E;
  --orange-hi: #ffb347;
  --ink: #0b0d11;
  --text: #e8eef6;
  --muted: #9aa6b5;
  --line: rgba(255,255,255,.09);
  --glass: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 45%, rgba(255,170,90,.05)), rgba(14,16,22,.70);
  --chamfer: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --sans: "Sora", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #3a2a18 #0b0d11; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0d11; }
::-webkit-scrollbar-thumb { background: linear-gradient(#5a3a14, #2b1d0e); border: 2px solid #0b0d11; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; }
.mono { font-family: var(--mono); letter-spacing: .14em; }
a { color: inherit; }

/* ---------- backdrop ---------- */
#board, #board-blur { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* blurred copy of the board, shown only in a soft oval behind the logo; fades as you scroll */
#board-blur { filter: blur(2.5px); -webkit-mask-image: radial-gradient(ellipse 40% 40% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 40% 40% at 50% 50%, #000 50%, transparent 100%); }
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(247,147,30,.07), transparent 70%),
    radial-gradient(ellipse at center, transparent 35%, rgba(5,6,9,.85) 100%),
    linear-gradient(to bottom, transparent 60%, rgba(5,6,9,.9)); }

/* ---------- hanging bulb intro ---------- */
#lights-off { position: fixed; inset: 0; z-index: -1; background: #020203; opacity: .86; pointer-events: none; }
#lamp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
#lamp-g { will-change: transform; }
#lamp .socket, #lamp .cord, #lamp .chain, #lamp .filament, #lamp .glass, #lamp .glass-edge { display: none; }
#board-blur { opacity: 0; }
/* the hero waits in the dark until the light clicks on */
body:not(.lit) .hero, body:not(.lit) .hero * { animation-play-state: paused !important; }
#lamp .cord { stroke: #1d1f24; stroke-width: 6; }
#lamp .socket rect { fill: url(#lg-metal); }
#lamp .socket .band { stroke: rgba(0,0,0,.45); stroke-width: 3; }
#lamp .glow { mix-blend-mode: screen; opacity: 0; }
#lamp .glass { fill: url(#lg-glass); opacity: .3; }
#lamp .glass-edge { fill: none; stroke: rgba(255,226,190,.07); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#lamp .filament path { fill: none; stroke-linejoin: round; }
#lamp .wire { stroke: rgba(200,205,212,.45); stroke-width: 1.6; }
#lamp .coil { stroke: #6a4a2a; stroke-width: 2.4; }
#lamp .coil-hot { opacity: 0; stroke: #fff1cf; filter: drop-shadow(0 0 4px #ffb347) drop-shadow(0 0 10px #f7931e); }
#lamp .chain circle { fill: #9aa0a8; }
#lamp .chain .knob { fill: url(#lg-metal); }

/* small hanging bulb above the logo */
#lamp { display: none; }
.hero { overflow: hidden; }
.hang { position: relative; width: 72px; height: 108px; margin: 0 auto 20px; }
.hang .cord { position: absolute; left: 50%; bottom: 96%; width: 2px; height: 3000px; margin-left: -1px; background: #1b1c20; }
.hang .bulb { position: relative; display: block; width: 100%; height: 100%; opacity: .6; filter: brightness(.28) saturate(.35); }
.hang .glow { position: absolute; left: 50%; top: 64%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(circle, rgba(255,217,160,.32), rgba(247,147,30,.09) 25%, transparent 65%); }
@media (max-width: 700px) { .hang { width: 60px; height: 90px; margin-bottom: 16px; } }

/* ---------- the other intros (mock-ups: ?intro=power | rack | board | crt) ---------- */
.intro-el { display: none; }
body:not(.intro-bulb) .hang { display: none; }
body.intro-power .pwr, body.intro-rack .rack1u, body.intro-board .boot-wave, body.intro-crt .crt { display: block; }

/* power button */
.pwr { position: relative; width: 78px; height: 78px; margin: 0 auto 26px; }
.pwr .cap { position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3f48, #16181d 70%); box-shadow: inset 0 2px 2px rgba(255,255,255,.12), inset 0 -3px 6px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.6), 0 0 0 3px #0d0f13, 0 0 0 4px rgba(255,255,255,.06); }
.pwr svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pwr .ring { opacity: 0; } .pwr .ring circle { fill: none; stroke: var(--orange); stroke-width: 2.5; filter: drop-shadow(0 0 4px var(--orange)) drop-shadow(0 0 10px rgba(247,147,30,.6)); }
.pwr .icon { inset: 24%; width: 52%; height: 52%; opacity: .25; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--orange)); }
.pwr .glow { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(circle, rgba(255,190,110,.22), rgba(247,147,30,.07) 25%, transparent 62%); }
.pwr .shock { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,190,110,.8); opacity: 0; pointer-events: none; box-shadow: 0 0 18px rgba(247,147,30,.6); }

/* 1U server */
.rack1u { position: relative; width: min(320px, 80vw); margin: 0 auto 28px; }
.rack1u .glow { position: absolute; left: 50%; top: 50%; width: 620px; height: 300px; margin: -150px 0 0 -310px; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(ellipse, rgba(120,255,170,.08), rgba(247,147,30,.07) 35%, transparent 65%); }
.rack1u .face { position: relative; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 4px;
  background: linear-gradient(180deg, #3a3f47, #1b1e23 55%, #121418); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 3px rgba(0,0,0,.6), 0 10px 24px rgba(0,0,0,.6); }
.rack1u .ear { width: 12px; height: 38px; border-radius: 2px; background: linear-gradient(90deg, #2a2e35, #4a505a, #2a2e35); position: relative; }
.rack1u .ear::after { content: ""; position: absolute; left: 3px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: #111; box-shadow: inset 0 1px 1px rgba(255,255,255,.2); }
.rack1u .leds { display: grid; grid-template-columns: repeat(2, 7px); gap: 5px; }
.rack1u .led { width: 7px; height: 7px; border-radius: 50%; opacity: 0; }
.rack1u .led.g { background: #5dff9c; box-shadow: 0 0 6px #5dff9c; } .rack1u .led.o { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.rack1u .bays { display: flex; gap: 4px; flex: 1; }
.rack1u .bays span { position: relative; flex: 1; height: 30px; border-radius: 2px; background: linear-gradient(180deg, #23272e, #15171b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.rack1u .act { position: absolute; right: 4px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #2c3138; }
.rack-busy .rack1u .act { background: #6cf; box-shadow: 0 0 5px #6cf; animation: hdd 1.3s steps(1) infinite; }
.rack-busy .rack1u .bays span:nth-child(2) .act { animation-duration: .7s; } .rack-busy .rack1u .bays span:nth-child(3) .act { animation-duration: 1.9s; } .rack-busy .rack1u .bays span:nth-child(4) .act { animation-duration: .95s; }
@keyframes hdd { 0%, 40%, 70% { opacity: 1; } 20%, 55%, 90% { opacity: .1; } }
.rack1u .vent { width: 34px; height: 30px; background: repeating-linear-gradient(90deg, #0b0c0f 0 2px, transparent 2px 5px); opacity: .9; }
.rack1u .tag { font: 9px var(--mono); letter-spacing: .15em; color: #8b96a5; }

/* motherboard boot: a ring of current rolls out from the centre */
.boot-wave { position: fixed; left: 50%; top: 42%; width: 100vmax; height: 100vmax; margin: -50vmax 0 0 -50vmax; border-radius: 50%; z-index: -1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, transparent 50%, rgba(247,147,30,.28) 60%, rgba(255,200,130,.12) 64%, transparent 70%); }

/* old monitor switching on */
.crt { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.crt .beam { position: absolute; inset: 0; opacity: 0; transform-origin: center; background: radial-gradient(ellipse at center, rgba(255,226,180,.55) 0%, rgba(255,190,120,.28) 40%, rgba(247,147,30,.08) 80%, transparent 100%); }
.crt .lines { position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }

/* ---------- more computer intros: kbd | eth | post | term | fan | fiber ---------- */
body.intro-kbd .kbd, body.intro-eth .eth, body.intro-term .term, body.intro-fan .fan, body.intro-post .post, body.intro-fiber .fiber { display: block; }
.kbd .glow, .eth .glow, .term .glow, .fan .glow { position: absolute; left: 50%; top: 50%; width: 600px; height: 320px; margin: -160px 0 0 -300px; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,190,110,.16), rgba(247,147,30,.06) 30%, transparent 65%); }

/* RGB keyboard */
.kbd { position: relative; width: min(330px, 84vw); margin: 0 auto 26px; }
.kbd .keys { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 8px; border-radius: 8px;
  background: linear-gradient(180deg, #1c1f25, #0f1114); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.6); }
.kbd .key { height: 20px; border-radius: 3px; background: #16181d; box-shadow: inset 0 -2px 0 rgba(0,0,0,.6); font: 8px/20px var(--mono); color: rgba(255,255,255,.35); text-align: center; }

/* network cable + port */
.eth { position: relative; width: 64px; height: 118px; margin: 0 auto 20px; }
.eth .plug { position: absolute; left: 50%; top: 22px; width: 32px; height: 40px; margin-left: -16px; z-index: 1; border-radius: 3px;
  background: linear-gradient(90deg, rgba(190,205,220,.22), rgba(240,248,255,.42), rgba(190,205,220,.22)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.eth .plug .cable { position: absolute; left: 50%; bottom: 100%; width: 7px; height: 3000px; margin-left: -3.5px; background: linear-gradient(90deg, #1d2026, #3c414a, #1d2026); }
.eth .plug b { position: absolute; left: 5px; right: 5px; bottom: 3px; height: 9px; background: repeating-linear-gradient(90deg, #d9b25a 0 1.5px, transparent 1.5px 3.2px); }
.eth .port { position: absolute; left: 50%; top: 64px; width: 56px; height: 50px; margin-left: -28px; z-index: 2; border-radius: 4px;
  background: linear-gradient(180deg, #2b2f36, #16181c); box-shadow: inset 0 0 0 2px #535a64, 0 8px 18px rgba(0,0,0,.6); }
.eth .hole { position: absolute; left: 11px; right: 11px; top: 7px; height: 22px; border-radius: 2px; background: #050607; box-shadow: inset 0 3px 5px #000; }
.eth .led { position: absolute; bottom: 7px; width: 10px; height: 6px; border-radius: 1px; opacity: .15; }
.eth .link { left: 9px; background: #5dff9c; box-shadow: 0 0 7px #5dff9c; }
.eth .act { right: 9px; background: var(--orange); box-shadow: 0 0 7px var(--orange); }

/* terminal */
.term { position: relative; width: min(390px, 88vw); margin: 0 auto 24px; text-align: left; }
.term .twin { position: relative; border-radius: 8px; overflow: hidden; background: rgba(10,12,16,.88); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 14px 30px rgba(0,0,0,.6); }
.term .tbar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px; background: #1a1d23; }
.term .tbar i { width: 8px; height: 8px; border-radius: 50%; background: #3a404c; }
.term .tbar i:first-child { background: var(--orange); }
.term .tbar span { margin-left: 8px; font: 10px var(--mono); color: #7d8896; }
.term .tbody { padding: 10px 14px 12px; font: 14px/1.7 var(--mono); color: #e8eef6; }
.term .p { color: var(--orange); }
.term .cmd { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; width: 0; }
.term .cur { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--orange); animation: blink 1s steps(1) infinite; }
.term .ok { opacity: 0; color: #9aa6b5; font-size: 12.5px; }
.term .ok b { color: #5dff9c; font-weight: 400; }

/* case fan */
.fan { position: relative; width: 96px; height: 96px; margin: 0 auto 24px; }
.fan svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.fan .frame { fill: #14161a; stroke: #2c3037; stroke-width: 2; }
.fan .screw { fill: #2a2e35; }
.fan .ring { fill: none; stroke: var(--orange); stroke-width: 3; opacity: 0; filter: drop-shadow(0 0 4px var(--orange)); }
.fan .chase { fill: none; stroke: #ffe0b0; stroke-width: 3; stroke-dasharray: 30 228; opacity: 0; transform-box: view-box; transform-origin: 0 0; animation: spin 1.2s linear infinite; }
.fan .blades { transform-box: view-box; transform-origin: 0 0; }
.fan .blades path { fill: #2a2e36; stroke: #3c424c; stroke-width: .6; }
.fan .hub { fill: #1b1e23; stroke: rgba(247,147,30,.5); stroke-width: 1.2; }
@keyframes spin { to { transform: rotate(360deg); } }

/* BIOS boot screen */
.post { position: fixed; inset: 0; z-index: 45; background: #050607; pointer-events: none; }
.post .scr { position: absolute; left: clamp(18px, 6vw, 80px); top: clamp(30px, 8vh, 90px); font: clamp(11px, 1.4vw, 16px)/1.8 var(--mono); color: #ffb347; text-shadow: 0 0 6px rgba(247,147,30,.6); white-space: pre; }
.post .scr div { opacity: 0; }
.post .scr .hd { color: #fff1dc; margin-bottom: .8em; }

/* fiber optics */
.fiber { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fiber .base { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fiber .lite { fill: none; stroke: #ffb347; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 70 2000; stroke-dashoffset: 70; filter: drop-shadow(0 0 4px #f7931e); }
.fiber-idle .fiber .lite { animation: fib 3.6s linear infinite; }
@keyframes fib { from { stroke-dashoffset: 70; } to { stroke-dashoffset: -1000; } }

/* ---------- device intros: router | tower ---------- */
body.intro-router .router, body.intro-tower .tower { display: block; }
.router .glow, .tower .glow { position: absolute; left: 50%; top: 50%; width: 600px; height: 340px; margin: -170px 0 0 -300px; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,190,110,.16), rgba(247,147,30,.06) 30%, transparent 65%); }

/* Wi-Fi router */
.router { position: relative; width: 240px; height: 118px; margin: 0 auto 22px; }
.router .waves { position: absolute; left: 50%; top: 0; width: 120px; height: 60px; margin-left: -60px; overflow: visible; }
.router .waves path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px var(--orange)); }
.router .body { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; border-radius: 8px 8px 12px 12px;
  background: linear-gradient(180deg, #2c3038, #15171b); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px rgba(0,0,0,.6); }
.router .ant { position: absolute; bottom: 34px; width: 7px; height: 52px; border-radius: 4px; background: linear-gradient(90deg, #1b1e23, #3b414a, #1b1e23); }
.router .ant.l { left: 22px; transform: rotate(-12deg); transform-origin: bottom; } .router .ant.r { right: 22px; transform: rotate(12deg); transform-origin: bottom; }
.router .leds { position: absolute; left: 50%; top: 16px; display: flex; gap: 12px; transform: translateX(-50%); }
.router .leds i { width: 9px; height: 5px; border-radius: 2px; background: #2c3138; }
.router .brand { position: absolute; right: 12px; top: 13px; font: 9px var(--mono); letter-spacing: .2em; color: #6f7a88; }

/* tower PC with a glass side */
.tower { position: relative; width: 96px; height: 132px; margin: 0 auto 22px; }
.tower .case { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, #1d2026, #2b2f37 50%, #16181c); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 26px rgba(0,0,0,.65); }
.tower .pbtn { position: absolute; right: 10px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #2a2e35; box-shadow: 0 0 0 1px #3d434c; }
.tower .glass { position: absolute; left: 7px; right: 7px; top: 20px; bottom: 16px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.4) 40%), #08090b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tower .fanr { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #23262c; }
.tower .fanr.b { top: 44px; }
.tower .ram { position: absolute; right: 18px; top: 10px; width: 4px; height: 30px; border-radius: 1px; background: #23262c; }
.tower .ram + .ram { right: 10px; }
.tower .gpu { position: absolute; left: 6px; right: 6px; bottom: 12px; height: 9px; border-radius: 2px; background: #23262c; }
.tower .strip { position: absolute; left: 7px; right: 7px; bottom: 6px; height: 3px; border-radius: 2px; background: #2a2e35; }

/* 3D PC (Meshy model, rendered with three.js by pc3d.js) */
body.intro-pc3d .pc3d { display: block; }
.pc3d { position: relative; width: 250px; height: 250px; margin: -16px auto 0; opacity: 0; transition: opacity .6s; }
.pc3d.ready { opacity: 1; }
.pc3d.failed { display: none !important; }
.pc3d canvas { width: 100%; height: 100%; display: block; }
/* orange halo behind the case that rises with the power level (set by pc3d.js) */
.pc3d::before { content: ""; position: absolute; inset: 8% 22%; border-radius: 40%; background: radial-gradient(closest-side, rgba(247,147,30,.55), transparent); filter: blur(22px); opacity: calc(var(--lvl, 0) * .8); pointer-events: none; }
@media (max-width: 700px) { .pc3d { width: 200px; height: 200px; } }

/* ---------- realistic tower PC (?intro=rig) ----------
   One light source, top-left, for every highlight and shadow.
   Metal = base gradient + 1px brushing lines + a hot spot. Raised parts: light edge top-left, dark edge bottom-right.
   Recessed parts flip that. LEDs: white core into the colour + glow. */
body.intro-rig .rig { display: block; }
.rig { position: relative; width: 150px; height: 214px; margin: 0 auto 30px; filter: drop-shadow(10px 16px 18px rgba(0,0,0,.7)); }
.rig .rg-halo { position: absolute; left: 50%; top: 46%; width: 520px; height: 420px; margin: -210px 0 0 -260px; border-radius: 50%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(247,147,30,.24), rgba(247,147,30,.08) 45%, transparent); }
.rig .rg-shell { position: absolute; inset: 0 0 8px; display: flex; }
/* front panel: brushed gunmetal with a chamfered top-right corner */
.rig .rg-front { position: relative; width: 112px; height: 100%; border-radius: 6px 2px 4px 6px;
  background:
    radial-gradient(120% 60% at 18% 6%, rgba(255,255,255,.16), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #4a5059 0%, #2a2e35 38%, #17191d 100%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.28), inset -1px -1px 0 rgba(0,0,0,.65), inset 0 0 0 1px #3b4049; }
.rig .rg-front::after { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 1px; background: linear-gradient(90deg, transparent, rgba(247,147,30,.75), transparent); }
/* tempered-glass side, seen at an angle */
.rig .rg-side { position: relative; width: 38px; height: 100%; margin-left: -1px; border-radius: 0 4px 4px 0; transform: skewY(-10deg); transform-origin: left top; overflow: hidden;
  background: linear-gradient(90deg, #0c0e11, #16191e); box-shadow: inset 1px 0 0 rgba(255,255,255,.12), inset -1px 0 0 rgba(0,0,0,.7), inset 0 0 0 2px #23272d; }
.rig .rg-sheen { position: absolute; inset: -20% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.09) 48%, transparent 56%); }
/* recessed mesh bay: dark edge top-left, light edge bottom-right */
.rig .rg-mesh { position: absolute; left: 12px; right: 12px; top: 30px; bottom: 26px; border-radius: 4px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 4px; padding: 5px;
  background: radial-gradient(circle, #0d0f12 1px, transparent 1.3px) 0 0 / 4px 4px, #050607;
  box-shadow: inset 2px 2px 3px rgba(0,0,0,.9), inset -1px -1px 0 rgba(255,255,255,.1); }
.rig .rg-fan { position: relative; justify-self: center; aspect-ratio: 1; height: 100%; border-radius: 50%; }
.rig .rg-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #2a2e34;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.6), 1px 1px 0 rgba(255,255,255,.06); transition: border-color .25s, box-shadow .25s; }
.rig .rg-blades { position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(from 0deg, #2c3138 0 22deg, #0b0c0f 22deg 51deg, #2c3138 51deg 73deg, #0b0c0f 73deg 102deg, #2c3138 102deg 124deg, #0b0c0f 124deg 153deg, #2c3138 153deg 175deg, #0b0c0f 175deg 204deg, #2c3138 204deg 226deg, #0b0c0f 226deg 255deg, #2c3138 255deg 277deg, #0b0c0f 277deg 306deg, #2c3138 306deg 328deg, #0b0c0f 328deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 30%); mask: radial-gradient(circle, transparent 28%, #000 30%); }
.rig .rg-hub { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a5059, #1a1d21 70%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.2), 0 0 0 1px #0b0c0f; }
.rig .rg-pbtn { position: absolute; left: 50%; top: 9px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a616b, #22262b 70%); box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.6), 0 0 0 2px #15171a; transition: box-shadow .2s; }
.rig .rg-usb { position: absolute; top: 13px; width: 9px; height: 4px; border-radius: 1px; background: #050607; box-shadow: inset 1px 1px 1px #000, 0 1px 0 rgba(255,255,255,.1); }
.rig .rg-usb:nth-of-type(1) { left: 18px; } .rig .rg-usb:nth-of-type(2) { right: 18px; }
.rig .rg-bar { position: absolute; left: 14px; right: 14px; bottom: 15px; height: 3px; border-radius: 2px; background: #1d2025; box-shadow: inset 0 1px 1px rgba(0,0,0,.7); transition: background .25s, box-shadow .25s; }
.rig .rg-badge { position: absolute; right: 9px; bottom: 4px; font: 700 7px var(--mono); letter-spacing: .2em; color: #59606a; text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.08); }
.rig .rg-foot { position: absolute; bottom: 0; width: 22px; height: 9px; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #1c1f23, #0b0c0e); }
.rig .rg-foot.l { left: 10px; } .rig .rg-foot.r { left: 82px; }

/* powered on: swap state, staggered, with a short electrical flicker */
@keyframes zap { 0% { opacity: 0; } 30% { opacity: 1; } 45% { opacity: .25; } 60% { opacity: 1; } 75% { opacity: .6; } 100% { opacity: 1; } }
@keyframes spinup { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.rig-on .rig .rg-pbtn { box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), 0 0 0 2px #15171a, 0 0 0 3.5px #F7931E, 0 0 10px #F7931E; }
.rig-on .rig .rg-ring { border-color: #ffb347; box-shadow: 0 0 6px #F7931E, 0 0 14px rgba(247,147,30,.55), inset 0 0 6px rgba(255,200,130,.8); animation: zap .5s both; }
.rig-on .rig .rg-fan:nth-child(2) .ring { animation-delay: .12s; } .rig-on .rig .rg-fan:nth-child(3) .ring { animation-delay: .24s; }
.rig-on .rig .rg-blades { animation: spinup .35s linear infinite; animation-delay: .1s; }
.rig .rg-blades { animation: spinup 1.6s linear infinite; animation-play-state: paused; }
.rig-on .rig .rg-blades { animation-play-state: running; }
.rig-on .rig .rg-bar { background: linear-gradient(90deg, #F7931E, #fff1dc, #F7931E); box-shadow: 0 0 8px #F7931E, 0 0 16px rgba(247,147,30,.5); animation: zap .5s .35s both; }
.rig-on .rig .rg-halo { opacity: 1; transition: opacity 1.2s .2s; }

/* ---------- photo-real PC (?intro=photo) ---------- */
body.intro-photo .photo-pc { display: block; }
.photo-pc { position: relative; height: 240px; aspect-ratio: var(--ar, 470 / 990); margin: -10px auto 6px; opacity: 0; transition: opacity .5s; }
.photo-pc.ready { opacity: 1; }
.photo-pc.failed { display: none !important; }
.photo-pc .stack { position: relative; width: 100%; height: 100%; }
.photo-pc.ready { filter: drop-shadow(10px 16px 18px rgba(0,0,0,.75)); }   /* on the wrapper: a filter on .stack would flatten the 3D side */
.photo-pc canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-pc .lit { opacity: 0; }
/* fan discs: still and dark until the power comes on, then they spin up to speed with a little motion blur */
.photo-pc .fanwrap { position: absolute; perspective: 900px; }
.photo-pc .fantilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.photo-pc .fanblur { position: absolute; opacity: 0; transition: opacity .6s .15s; }
.photo-on .photo-pc .fanblur { opacity: 1; }
/* tiny front-panel lights and the CPU cooler glow: dark until the power comes on */
.photo-pc .led { position: absolute; display: block; margin: 0; border-radius: 50%; transform: scale(.6); opacity: 0; box-shadow: none; }
.photo-pc .led.power { background: radial-gradient(circle, #fff 0 30%, #ffd9a0 55%, transparent 72%); box-shadow: 0 0 6px rgba(255,217,160,.8); }
.photo-pc .led.hdd { background: radial-gradient(circle, #fff6e0 0 25%, #F7931E 55%, transparent 72%); box-shadow: 0 0 6px rgba(247,147,30,.9); }
.photo-on .photo-pc .led.power { opacity: .95; }
.photo-on .photo-pc .led.hdd.on { opacity: .9; }
.photo-pc .cpu-glow { position: absolute; border-radius: 50%; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(circle, rgba(255,200,130,.75), rgba(247,147,30,.35) 40%, transparent 70%); }
.photo-on .photo-pc .cpu-glow { opacity: .5; animation: cpubreathe 3.6s ease-in-out infinite; }
@keyframes cpubreathe { 0%, 100% { opacity: .1; } 50% { opacity: .85; } }
/* the new fans are there from the start: dark and still while the PC is off, lit and spinning once it is on */
.photo-pc .spin { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: .75; filter: brightness(.3) saturate(.2) blur(.6px); transition: filter .6s .15s; }
.photo-pc .fanblur.off-blur { opacity: 1 !important; transition: none; }
.photo-on .photo-pc .spin { opacity: .75; filter: brightness(1) saturate(1) blur(1.6px); }
.photo-pc .halo { position: absolute; left: 50%; top: 45%; width: 560px; height: 440px; margin: -220px 0 0 -280px; border-radius: 50%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(247,147,30,.26), rgba(247,147,30,.08) 45%, transparent); }
@media (max-width: 700px) { .photo-pc { height: 210px; } }

/* ---------- stage intro (?intro=stage): PC powers up in the middle, logo rises and expands, PC slides left ---------- */
.intro-stage { --intro: 1.2s; }   /* the logo's own expand animation starts as it finishes rising */
.intro-stage .headline, .intro-stage .sub, .intro-stage .cta { animation-name: slidein; }
.intro-stage .headline { animation-delay: 3.6s; } .intro-stage .sub { animation-delay: 3.78s; } .intro-stage .cta { animation-delay: 4s; }
.intro-stage .kicker { animation: slidein .6s cubic-bezier(.2,.7,.2,1) 3.45s both; }
@keyframes slidein { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
.intro-stage .photo-pc, .intro-stage .hero-logo { will-change: transform; }
.intro-stage .photo-pc { opacity: 0 !important; transition: none; }
.intro-stage .photo-pc.staged { opacity: 1 !important; transition: opacity .4s; }   /* only shown once placed in the middle */
@media (min-width: 900px) {
  .intro-stage .hero-inner { max-width: 1120px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; text-align: left; }
  .intro-stage .hero-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 14px; }
  .intro-stage .photo-pc { grid-column: 1; grid-row: 2 / span 4; justify-self: end; height: min(380px, 46vh); margin: 0; }
  .intro-stage .kicker { grid-column: 2; grid-row: 2; margin: 0 0 12px; }
  .intro-stage .headline { grid-column: 2; grid-row: 3; font-size: clamp(32px, 4vw, 54px); }
  .intro-stage .sub { grid-column: 2; grid-row: 4; margin: 0 0 26px; max-width: 36em; text-wrap: balance; }
  .intro-stage .cta { grid-column: 2; grid-row: 5; justify-content: flex-start; }
}

/* ---------- desk set test (?intro=stage&desk=1): monitor + keyboard + mouse beside the PC ---------- */
.desk-on .desk-pc { display: block; }
.desk-pc { position: relative; aspect-ratio: var(--ar, 4 / 3); opacity: 0; transition: opacity .5s; filter: drop-shadow(10px 16px 18px rgba(0,0,0,.7)); }
.desk-pc.ready { opacity: 1; }
.desk-pc .stack { position: relative; width: 100%; height: 100%; }
.desk-pc canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.desk-pc .off { filter: brightness(.55); }
.desk-pc .lit { opacity: 0; }
/* the lit render's screen is bright; on the page it only comes up to a dimmed glow */
.intro-stage.desk-on .desk-pc.ready { opacity: 0; }   /* in the staged intro it slides in with the PC (app.js) */
.desk-pc .screen-glow { position: absolute; left: 8%; top: 4%; width: 62%; height: 62%; border-radius: 30%; opacity: 0; pointer-events: none; mix-blend-mode: screen; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(255,215,170,.35), rgba(247,147,30,.12) 60%, transparent); }
@media (min-width: 900px) {
  /* PC column becomes a small desk scene: monitor set on the left, PC on the right of it */
  .desk-on.intro-stage .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .desk-on.intro-stage .desk-pc { grid-column: 1; grid-row: 2 / span 4; justify-self: start; align-self: end; width: min(430px, 30vw); margin-bottom: 6px; }
  .desk-on.intro-stage .photo-pc { justify-self: end; }
  /* ?desk=swap: PC on the left, monitor set to its right */
  .desk-swap.intro-stage .photo-pc { justify-self: start; }
  .desk-swap.intro-stage .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .desk-swap.intro-stage .photo-pc { position: relative; z-index: 2; }   /* tower in front, monitor just behind it */
  /* monitor starts just past the tower (tower width = its height x .74), so the two never overlap */
  .desk-swap.intro-stage .desk-pc { justify-self: start; width: min(400px, 27vw); margin-left: calc(min(380px, 46vh) * .74 + 4px); }
}
@media (max-width: 899px) { .desk-on .desk-pc { width: min(420px, 86vw); margin: 0 auto 10px; } }

/* swap: the </> sits on the monitor screen longer, so the logo opens and the text comes in later */
.desk-swap.intro-stage .logo-anim { animation: none; }   /* no flicker: it dims in softly on the screen (app.js) */
.desk-swap.intro-stage .hero-logo { opacity: 0; }   /* hidden until the intro places it on the screen (the animation takes over) */
.desk-swap.intro-stage .hero-logo .p-lt, .desk-swap.intro-stage .hero-logo .p-sl, .desk-swap.intro-stage .hero-logo .p-gt { animation-delay: 2.2s; }
.desk-swap.intro-stage .hero-logo .p-c { animation-delay: 2.4s; }
.desk-swap.intro-stage .hero-logo .p-r, .desk-swap.intro-stage .hero-logo .p-s { animation-delay: 2.5s; }
.desk-swap.intro-stage .hero-logo .or { animation-delay: 3s; }
.desk-swap.intro-stage .kicker { animation-delay: 3.35s; }
.desk-swap.intro-stage .headline { animation-delay: 3.5s; } .desk-swap.intro-stage .sub { animation-delay: 3.65s; } .desk-swap.intro-stage .cta { animation-delay: 3.85s; }
.desk-swap.intro-stage .desk-pc { will-change: transform; transition: none; }

/* swap test: a dim terminal on the monitor, running a quick system check after the logo lifts off */
.screen-ui { display: none; }
.desk-swap .screen-ui { display: block; position: absolute; left: 0; top: 0; width: 480px; height: 270px; transform-origin: 0 0; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 20%, rgba(38,24,12,.93), rgba(12,9,7,.96)); font: 20px/1.5 var(--mono); color: #e9d9c4; overflow: hidden;
  box-shadow: inset 0 0 40px rgba(247,147,30,.12); }
.screen-ui .bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(247,147,30,.18); font-size: 12px; color: #9c8a75; }
.screen-ui .bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a3a2a; }
.screen-ui .bar i:first-child { background: #f7931e; box-shadow: 0 0 6px #f7931e; }
.screen-ui .bar span { margin-left: 8px; }
.screen-ui .bar b { margin-left: auto; color: #f7931e; font-weight: 400; letter-spacing: 1px; opacity: .8; }
.screen-ui .term { padding: 14px 26px; }
.screen-ui p { margin: 0; white-space: pre; opacity: 0; text-shadow: 0 0 6px rgba(255,214,160,.35); }
.screen-ui em { font-style: normal; color: #f7931e; }
.screen-ui s { text-decoration: none; color: #5dff9c; text-shadow: 0 0 6px rgba(93,255,156,.5); }
.screen-ui .last { color: #ffb45c; margin-top: 4px; }
.screen-ui u { display: inline-block; width: 11px; height: 20px; margin-left: 4px; vertical-align: -2px; background: #f7931e; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(10,12,16,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .4s ease; }
.nav.show { transform: none; }
.nav-logo svg { height: 30px; width: auto; display: block; }
/* blacked-out logo in the bar: charcoal shapes with a faint lit edge; the orange glows in on hover */
.blackout .bo-sh { fill: #000; opacity: .7; }
.blackout .bo-or, .blackout .bo-ink { fill: #1d1f24; stroke: rgba(255,255,255,.16); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .3s, stroke .3s; }
.blackout .bo-edge { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 29; stroke-linejoin: round; }
.blackout .bo-let { fill: none; stroke: #1d1f24; stroke-width: 26; stroke-linejoin: round; transition: stroke .3s; }
.nav-logo:hover .blackout .bo-or { fill: var(--orange); stroke: transparent; }
.nav-logo:hover .blackout .bo-ink { fill: #f2f2f2; stroke: transparent; }
.nav-logo:hover .blackout .bo-let { stroke: #f2f2f2; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 28px); align-items: center; font-size: 14px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn { --c: var(--orange); display: inline-block; text-decoration: none; font: 600 15px var(--sans); padding: 14px 26px; border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #140b02; box-shadow: 0 0 24px rgba(247,147,30,.45); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-glass { background: rgba(255,255,255,.07); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.btn-glass:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; padding: 40px 20px 110px; text-align: center; }
.hero-inner { max-width: 900px; width: 100%; position: relative; z-index: 1; }
/* soft frosted pool behind the logo: blur fades out toward the edges */
.hero-blur { position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); height: min(720px, 90vh); transform: translate(-50%, -54%);
  background: rgba(8,9,12,.22); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  animation: rise 1s ease-out calc(var(--intro) + .2s) both; }
.hero-logo { width: min(640px, 88vw); height: auto; overflow: visible; }

/* logo parts */
.hero-logo .or, .nav-logo .or { fill: var(--orange); }
.hero-logo .sh, .nav-logo .sh { fill: #000; opacity: .65; }
.hero-logo .ink, .nav-logo .ink { fill: #f2f2f2; }
.hero-logo .let, .nav-logo .let { fill: none; stroke: #f2f2f2; stroke-width: 26; stroke-linejoin: round; }

/* intro: </> sits together in the middle, then the brackets and slash slide out and RCS is revealed */
.logo-anim { filter: drop-shadow(0 0 14px rgba(247,147,30,.26)); }
.hero-logo .p-lt, .hero-logo .p-sl, .hero-logo .p-gt { animation: .8s cubic-bezier(.7,0,.2,1) calc(var(--intro) + .7s) both; }
.hero-logo .p-lt { animation-name: lt-out; }
.hero-logo .p-sl { animation-name: sl-out; }
.hero-logo .p-gt { animation-name: gt-out; }
@keyframes lt-out { from { transform: translateX(var(--lt-from, 161px)); } to { transform: none; } }
@keyframes sl-out { from { transform: translateX(var(--lt-from, 161px)); } to { transform: none; } }
@keyframes gt-out { from { transform: translateX(var(--gt-from, -179px)); } to { transform: none; } }
/* R variants: the new R (slash = stem) by default; ?r=classic brings back the R with its own stem */
.r-classic { display: none; }
.r-classic-on .r-classic { display: inline; } .r-classic-on .r-new { display: none; }
.r-classic-on { --lt-from: 190px; --gt-from: -208px; }
.logo-anim { animation: power-on .7s ease-out calc(var(--intro) + .1s) both; }
@keyframes power-on {
  0% { opacity: 0; }  12% { opacity: .9; } 18% { opacity: .2; } 30% { opacity: 1; } 36% { opacity: .5; } 100% { opacity: 1; } }
.hero-logo .p-r, .hero-logo .p-c, .hero-logo .p-s { animation: letter-in .7s cubic-bezier(.2,.7,.2,1) both; transform-box: fill-box; transform-origin: center; }
.hero-logo .p-c { animation-delay: calc(var(--intro) + .9s); }
.hero-logo .p-r { animation-delay: calc(var(--intro) + 1s); }
.hero-logo .p-s { animation-delay: calc(var(--intro) + 1s); }
@keyframes letter-in { from { opacity: 0; transform: scale(.6); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* a single pulse through the orange once it's all open */
.hero-logo .or { animation: flare 1s ease-out calc(var(--intro) + 1.5s) both; }
@keyframes flare { 0% { fill: var(--orange); } 30% { fill: #ffd9a8; } 100% { fill: var(--orange); } }

/* hero type: one centre axis, an 8px spacing scale, balanced line breaks */
.kicker { --ls: .42em; margin: 24px 0 16px; font: 15px/1.6 var(--mono); letter-spacing: var(--ls); color: var(--orange); white-space: nowrap; }
/* the full line is laid out invisibly so the centring never shifts while it types;
   the negative margin cancels the trailing letter-spacing so it centres optically */
.kick { position: relative; display: inline-block; margin-right: calc(-1 * var(--ls)); }
.ghost { visibility: hidden; }
.type-line { position: absolute; left: 0; top: 0; white-space: nowrap; }
.caret { animation: blink 1s steps(1) infinite; opacity: 0; }
.caret.on { opacity: 1; }
@keyframes blink { 50% { visibility: hidden; } }
.headline { font-weight: 300; font-size: clamp(30px, 5.4vw, 58px); line-height: 1.08; margin: 0 0 24px; letter-spacing: -.015em; text-wrap: balance; }
.headline span { color: var(--orange); font-weight: 600; white-space: nowrap; }
.sub { color: var(--muted); max-width: 48em; margin: 0 auto 32px; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6; text-wrap: balance; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.headline, .sub, .cta { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.headline { animation-delay: calc(var(--intro) + 1.8s); } .sub { animation-delay: calc(var(--intro) + 1.95s); } .cta { animation-delay: calc(var(--intro) + 2.1s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; bottom: 58px; left: 0; right: 0; margin: 0 auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--orange); animation: rise .8s calc(var(--intro) + 2.4s) both; }
.scroll-cue span { font-size: 12px; letter-spacing: .4em; margin-right: -.4em; text-shadow: 0 0 10px rgba(247,147,30,.6); }
.scroll-cue svg { width: 22px; height: 13px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: square; filter: drop-shadow(0 0 6px var(--orange)); animation: flash 1.1s ease-in-out infinite; }
.scroll-cue:hover span { color: var(--orange-hi); }
@keyframes flash { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: .15; transform: translateY(5px); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.status { position: absolute; bottom: 16px; left: 0; right: 0; font-size: 11px; color: #6f7a88; animation: rise .8s calc(var(--intro) + 2.4s) both; }
.led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5dff9c; box-shadow: 0 0 8px #5dff9c; margin: 0 10px 1px; }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 40px); }
.sec-head { text-align: center; margin-bottom: 40px; }
.label { color: var(--orange); font-size: 13px; margin: 0 0 8px; }
h2 { font-weight: 300; font-size: clamp(26px, 3.6vw, 40px); margin: 0; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }

/* glass panel: chamfered frame, 1px glowing edge, corner brackets, glowing inlay */
.panel { position: relative; background: var(--glass); backdrop-filter: blur(14px) saturate(140%); clip-path: var(--chamfer);
  padding: 28px 26px 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.14); transition: transform .25s, box-shadow .25s; }
.panel::before, .panel::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(247,147,30,.55); pointer-events: none; transition: border-color .25s; }
.panel::before { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.panel::after { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.panel:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(247,147,30,.5), inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 40px rgba(247,147,30,.08); }
.panel:hover::before, .panel:hover::after { border-color: var(--orange); }
.panel p { color: var(--muted); margin: 0; font-size: 15px; }
.inlay { position: absolute; left: 26px; bottom: 0; width: 56px; height: 3px; background: var(--orange); box-shadow: 0 0 10px var(--orange); border-radius: 3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ico { width: 48px; height: 48px; margin-bottom: 16px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(247,147,30,.5)); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: s; }
.num { display: block; font-size: 34px; color: var(--orange); margin-bottom: 8px; text-shadow: 0 0 14px rgba(247,147,30,.6); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(26px, 4vw, 48px); }
.contact > div > p { margin: 12px 0 20px; }
.details { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--text); }
.details li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.details b { display: inline-block; width: 80px; color: var(--orange); font-weight: 400; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form textarea { font: 15px var(--sans); color: var(--text); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); padding: 12px 14px; resize: vertical;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.form .btn { justify-self: start; }
.sent { color: #5dff9c; font-size: 12px; margin: 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-size: 11px; color: #6f7a88; background: rgba(5,6,9,.8); }

/* ---------- websites & self-hosting ---------- */
.sec-sub { color: var(--muted); max-width: 620px; margin: 12px auto 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.feature { padding: 0 0 32px; }
.feature h3 { font-size: 22px; margin: 26px 30px 10px; }
.feature > p { margin: 0 30px 18px; }
.feature .inlay { left: 30px; width: 80px; }
.ticks { list-style: none; margin: 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 12px; letter-spacing: .06em; color: var(--text); }
.ticks li::before { content: "// "; color: var(--orange); }
.center { text-align: center; margin-top: 32px; }

.art { height: 220px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(247,147,30,.22), transparent 65%), linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05));
  border-bottom: 1px solid rgba(247,147,30,.25); }
.art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 22px 22px; }

/* mini browser */
.win { width: 74%; height: 158px; background: #0d1016; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; overflow: hidden; position: relative; z-index: 1;
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(247,147,30,.15); transform: perspective(700px) rotateX(8deg); transition: transform .5s; }
.feature:hover .win { transform: perspective(700px) rotateX(0) translateY(-4px); }
.bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 8px; background: #161a22; border-bottom: 1px solid rgba(255,255,255,.06); }
.bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a404c; }
.bar i:first-child { background: var(--orange); }
.url { margin-left: 8px; font-size: 9px; color: #6f7a88; letter-spacing: .08em; background: rgba(255,255,255,.04); padding: 1px 10px; border-radius: 6px; }
.page { padding: 14px 16px; }
.pg-hero { display: grid; justify-items: center; gap: 6px; padding: 6px 0 12px; background: radial-gradient(ellipse at 50% 40%, rgba(247,147,30,.18), transparent 70%); }
.pg-hero b { width: 46%; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--orange), #ffd29a, var(--orange)); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
.pg-hero em { width: 62%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); }
.pg-hero em.short { width: 40%; }
.pg-btn { width: 50px; height: 12px; margin-top: 4px; background: var(--orange); clip-path: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px); box-shadow: 0 0 10px var(--orange); }
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-cards s { height: 30px; border-radius: 3px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.pg-cards s:nth-child(2) { border-color: rgba(247,147,30,.5); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* mini server rack */
.rack { width: 62%; padding: 10px; display: grid; gap: 7px; position: relative; z-index: 1;
  background: linear-gradient(180deg, #2a2f38, #14171c); border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(247,147,30,.12); }
.unit { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: linear-gradient(180deg, #1a1e25, #0f1216); border: 1px solid rgba(255,255,255,.07); border-radius: 3px; }
.unit span { font-size: 10px; color: #8b96a5; letter-spacing: .2em; margin-left: 6px; }
.unit b { margin-left: auto; width: 34%; height: 10px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 5px); }
.l { width: 6px; height: 6px; border-radius: 50%; background: #2c323c; }
.l.on { background: #5dff9c; box-shadow: 0 0 6px #5dff9c; animation: led 2.4s steps(1) infinite; }
.unit:nth-child(2) .l.on:last-of-type, .unit:nth-child(4) .l.on:last-of-type { background: var(--orange); box-shadow: 0 0 6px var(--orange); animation-duration: .9s; }
.unit:nth-child(3) .l.on { animation-delay: .7s; }
@keyframes led { 0%, 85% { opacity: 1; } 90% { opacity: .25; } }

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .win { width: 88%; } .rack { width: 80%; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
}

@media (max-width: 400px) { .headline span { white-space: normal; } .kicker { --ls: .22em; font-size: 13px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
}














