/* ruwaidportfolio.online: dark, minimal, animated. Shared by index, shell, rue and 404 */
:root {
  --bg: #050608;
  --ink: #eef1f4;
  --muted: #8d95a3;
  --faint: #5b6270;
  --line: rgb(255 255 255 / .08);
  --card: rgb(255 255 255 / .03);
  --em: #34d399;
  --cy: #22d3ee;
  --grad: linear-gradient(100deg, #34d399, #22d3ee);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Geist, Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.mono { font-family: "Geist Mono", ui-monospace, Menlo, monospace; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Background: slow aurora and a fine grid that fades out */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45; }
.aurora i:nth-child(1) { width: 60vmax; height: 40vmax; background: #10b981; top: -22vmax; left: -10vmax; opacity: .22; animation: au1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vmax; height: 36vmax; background: #06b6d4; top: -20vmax; right: -16vmax; opacity: .18; animation: au2 30s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 40vmax; height: 40vmax; background: #6366f1; bottom: -30vmax; left: 30vw; opacity: .1; animation: au1 34s ease-in-out infinite alternate-reverse; }
@keyframes au1 { to { transform: translate(14vmax, 8vmax) scale(1.15); } }
@keyframes au2 { to { transform: translate(-12vmax, 10vmax) scale(.9); } }
.aurora b {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .6;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000, transparent 75%);
}

/* Top dock: floating glass bar with my local time, links with a sliding highlight, and "Let's talk" */
.dock { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.dock-in {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 18px;
  background: rgb(12 14 18 / .55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px -14px rgb(0 0 0 / .8); transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s;
}
.dock.scrolled .dock-in { background: rgb(12 14 18 / .82); }
.dock.away .dock-in { transform: translateY(-150%); }
.clock { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; margin-right: 2px; border-right: 1px solid var(--line); font: 12px "Geist Mono", monospace; color: var(--muted); white-space: nowrap; }
.clock b { color: var(--ink); font-weight: 500; }
.clk { width: 15px; height: 15px; fill: none; stroke: var(--em); stroke-width: 1.4; stroke-linecap: round; }
.clk .hand { transform-origin: 8px 8px; animation: tick 60s steps(60) infinite; }
@keyframes tick { to { transform: rotate(360deg); } }
.links { position: relative; display: flex; align-items: center; }
.links a { position: relative; z-index: 1; text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 13px; border-radius: 12px; transition: color .25s; }
.links a:hover, .links a.on { color: var(--ink); }
.ind { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 12px; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); opacity: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1), width .4s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.talk { display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; font-weight: 600; color: #03110b; background: var(--grad); padding: 8px 15px; border-radius: 12px; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.talk:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgb(52 211 153 / .8); }
.menu-btn { display: none; font: 600 14px Geist, sans-serif; color: var(--ink); background: rgb(255 255 255 / .07); border: 0; border-radius: 12px; padding: 9px 16px; cursor: pointer; }

/* Full-screen menu on phones */
.overlay { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px; background: rgb(5 6 8 / .97); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay a { display: block; font-size: clamp(38px, 11vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.3; text-decoration: none; opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .55s cubic-bezier(.2, .7, .2, 1), color .2s; transition-delay: calc(var(--i) * 55ms + 60ms); }
.overlay a:hover { color: var(--em); }
.overlay a small { font: 13px "Geist Mono", monospace; color: var(--em); margin-right: 16px; vertical-align: middle; letter-spacing: 0; }
.overlay p { margin: 34px 0 0; color: var(--faint); font: 13px "Geist Mono", monospace; opacity: 0; transition: opacity .5s .4s; }
.menu-open { overflow: hidden; }
.menu-open .overlay { opacity: 1; visibility: visible; }
.menu-open .overlay a, .menu-open .overlay p { opacity: 1; transform: none; }

/* Floating "Ask Rue" button with a living orb */
.rue-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px; background: rgb(12 14 18 / .82); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 14px 34px -12px #000; transition: transform .25s, border-color .25s; }
.rue-fab:hover { transform: translateY(-3px); border-color: rgb(52 211 153 / .4); }
.orb { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: #0b1a17; }
.orb i { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(5px); animation: blob 6s ease-in-out infinite; }
.orb i:nth-child(1) { background: #34d399; left: -10%; top: 0; }
.orb i:nth-child(2) { background: #22d3ee; right: -10%; top: 20%; animation-delay: -2s; animation-duration: 7s; }
.orb i:nth-child(3) { background: #a78bfa; left: 20%; bottom: -15%; animation-delay: -4s; animation-duration: 8s; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .7), transparent 32%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); }
@keyframes blob { 33% { transform: translate(25%, 15%) scale(1.15); } 66% { transform: translate(-15%, 25%) scale(.9); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.btn.primary { background: var(--grad); color: #03110b; box-shadow: 0 10px 30px -12px rgb(52 211 153 / .7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(52 211 153 / .8); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: rgb(255 255 255 / .25); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero */
.hero { position: relative; padding: 120px 0 90px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; min-height: 100vh; }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 11px "Geist Mono", monospace; letter-spacing: .2em; color: var(--faint); text-decoration: none; }
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--em), transparent); transform-origin: top; animation: drop 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes drop { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
h1 { font-size: clamp(44px, 6.3vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shine { background: linear-gradient(100deg, #34d399, #22d3ee, #a5b4fc, #34d399); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 33em; margin: 22px 0 32px; }
.lead b { color: var(--ink); font-weight: 500; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.shell-link { font-size: 14px; color: var(--muted); text-decoration: none; padding: 12px 6px; transition: color .2s; }
.shell-link:hover { color: var(--em); }

/* Terminal */
.term { border-radius: 18px; border: 1px solid var(--line); background: rgb(10 12 16 / .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgb(255 255 255 / .02) inset; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e36; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-size: 12px; color: var(--faint); }
.term-body { padding: 16px 18px 20px; font: 13.5px/1.7 "Geist Mono", ui-monospace, monospace; min-height: 300px; color: #c9d1db; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .p { color: var(--em); }
.term-body .o { color: var(--muted); }
.term-body .ok { color: var(--em); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--em); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--card); margin-bottom: 120px; }
.stat { padding: 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 14px; }

/* Sections */
section.block { padding-bottom: 130px; }
.kicker { font: 500 13px "Geist Mono", monospace; color: var(--em); letter-spacing: .04em; margin: 0 0 12px; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 36em; margin: 0 0 40px; font-size: 17px; }

/* Project cards with a spotlight that follows the pointer */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; grid-column: span 2; border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 24px; display: flex; flex-direction: column; overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; isolation: isolate; }
.card.big { grid-column: span 3; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgb(52 211 153 / .12), transparent 45%); }
.card:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / .16); }
.card:hover::before { opacity: 1; }
.visual { height: 150px; border-radius: 14px; margin-bottom: 20px; border: 1px solid var(--line); background: #08090c; position: relative; overflow: hidden; display: grid; place-items: center; }
.card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags span { font: 12px "Geist Mono", monospace; color: var(--muted); padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--em); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.more .arr { transition: transform .2s; }
.more:hover .arr { transform: translateX(3px); }

/* Card visuals */
.v-octo { background: radial-gradient(circle at 50% 120%, rgb(244 114 182 / .25), transparent 60%), #08090c; }
.v-octo svg { width: 150px; }
.v-octo .needle { transform-origin: 75px 70px; animation: needle 5s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: rotate(-60deg); } 35% { transform: rotate(40deg); } 60% { transform: rotate(-10deg); } }
.v-taiseer { background: radial-gradient(circle at 50% 120%, rgb(217 160 102 / .3), transparent 60%), #0d0b09; }
.v-taiseer img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 14px 30px -10px rgb(217 160 102 / .6); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.card.wide { grid-column: 1 / -1; }
.v-nahw { background: radial-gradient(circle at 50% 120%, rgb(99 102 241 / .3), transparent 60%), #0e1328; }
.v-nahw img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 14px 30px -10px rgb(99 102 241 / .6); animation: bob 5s ease-in-out infinite; }
.v-rue { padding: 18px; place-items: stretch; align-content: center; gap: 8px; }
.bubble { max-width: 75%; padding: 7px 12px; border-radius: 12px; font-size: 13px; }
.bubble.u { justify-self: end; background: #12382a; border: 1px solid #1f5a43; }
.bubble.r { justify-self: start; background: #12151b; border: 1px solid var(--line); color: var(--muted); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.v-lab { grid-template-columns: repeat(6, 18px); gap: 8px; align-content: center; }
.v-lab i { width: 18px; height: 18px; border-radius: 5px; background: #12161c; border: 1px solid var(--line); animation: led 3s infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes led { 0%, 70%, 100% { background: #12161c; } 80% { background: var(--em); box-shadow: 0 0 10px rgb(52 211 153 / .7); } }
.v-pipe { grid-auto-flow: column; gap: 6px; font: 11px "Geist Mono", monospace; color: var(--muted); }
.v-pipe span { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: #0d1014; }
.v-pipe em { position: relative; width: 22px; height: 1px; background: var(--line); font-style: normal; }
.v-pipe em::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--em); box-shadow: 0 0 8px var(--em); animation: hop 1.6s linear infinite; }
.v-pipe em:nth-of-type(2)::after { animation-delay: .4s; } .v-pipe em:nth-of-type(3)::after { animation-delay: .8s; }
@keyframes hop { to { left: 100%; } }

/* How it's built: request path with moving packets */
.flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr 70px 1.3fr; align-items: center; margin-bottom: 56px; }
.node { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 18px; text-align: center; }
.node .n { font: 12px "Geist Mono", monospace; color: var(--faint); }
.node b { display: block; font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.node span { font-size: 13px; color: var(--muted); }
.node.lab { border-color: rgb(52 211 153 / .35); background: rgb(52 211 153 / .05); }
.svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; }
.svc em { font: 11px "Geist Mono", monospace; font-style: normal; padding: 2px 7px; border-radius: 6px; background: rgb(255 255 255 / .05); color: #c9d1db; }
.wire { position: relative; height: 1px; background: linear-gradient(90deg, var(--line), rgb(52 211 153 / .4), var(--line)); }
.wire::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--em); box-shadow: 0 0 12px var(--em); animation: packet 2.4s linear infinite; }
.wire:nth-of-type(4)::after { animation-delay: .8s; } .wire:nth-of-type(6)::after { animation-delay: 1.6s; }
@keyframes packet { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }

/* Skills marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-bottom: 14px; }
.track { display: flex; gap: 10px; width: max-content; animation: scroll 50s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip { white-space: nowrap; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.chip.l { color: var(--muted); border-style: dashed; }
.legend { display: flex; gap: 20px; font-size: 13px; color: var(--muted); margin-top: 18px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); margin-right: 7px; vertical-align: -1px; }
.legend span.l::before { border-style: dashed; background: none; }

/* About */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgb(5 6 8 / .55)); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.principles div { border-top: 1px solid var(--line); padding-top: 14px; }
.principles b { display: block; font-weight: 600; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
form { border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgb(0 0 0 / .35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: rgb(52 211 153 / .6); box-shadow: 0 0 0 4px rgb(52 211 153 / .12); }
textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.status.ok { background: rgb(52 211 153 / .1); border: 1px solid rgb(52 211 153 / .35); color: #6ee7b7; }
.status.err { background: rgb(244 63 94 / .1); border: 1px solid rgb(244 63 94 / .35); color: #fda4af; }
.status[hidden] { display: none; }
.status a { color: inherit; font-weight: 600; }
button[disabled] { opacity: .6; cursor: default; }
.facts { display: grid; gap: 14px; margin-top: 30px; }
.facts div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.facts i { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; color: var(--em); background: var(--card); flex: none; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* Entrance and scroll animations (only when JavaScript runs) */
.js .rise { opacity: 0; transform: translateY(20px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 110px; }
  .cue { display: none; }
  .projects { grid-template-columns: 1fr 1fr; }
  .card, .card.big { grid-column: span 1; }
  .card.big:first-child { grid-column: span 2; }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin-left: auto; margin-right: auto; }
  .wire { width: 1px; height: 36px; margin: 0 auto; background: linear-gradient(180deg, var(--line), rgb(52 211 153 / .4), var(--line)); }
  .wire::after { left: -3px; animation-name: packet-v; }
  @keyframes packet-v { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 7px); opacity: 0; } }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .photo { max-width: 340px; }
}
@media (max-width: 760px) {
  .links, .talk { display: none; }
  .menu-btn { display: block; }
  .dock-in { width: 100%; max-width: 520px; justify-content: space-between; }
  .clock { border-right: 0; }
  .hero { padding-top: 100px; }
  .cue { display: none; }
  .stats { grid-template-columns: 1fr 1fr; margin-bottom: 90px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .projects { grid-template-columns: 1fr; }
  .card.big:first-child { grid-column: span 1; }
  .principles { grid-template-columns: 1fr; }
  section.block { padding-bottom: 96px; }
  .term-body { min-height: 260px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rise, .js .reveal { opacity: 1; transform: none; }
}

/* >_ shell page */
.shell-page { padding: 110px 0 40px; }
.shell-page h1 { font-size: clamp(38px, 6vw, 64px); }
.shell-page .lead { margin-bottom: 26px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.quick button { font: 13px "Geist Mono", monospace; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.quick button:hover { color: var(--em); border-color: rgb(52 211 153 / .4); }
#cli-window { cursor: text; }
#cli-output { height: min(56vh, 520px); overflow-y: auto; padding: 16px 18px 6px; font: 14px/1.7 "Geist Mono", ui-monospace, monospace; color: #c9d1db; }
.cli-entry { margin-bottom: 12px; }
.cli-entry .p { color: var(--em); }
.cli-out { padding-left: 12px; border-left: 2px solid rgb(52 211 153 / .35); margin-top: 4px; }
.cli-out b { color: var(--em); font-weight: 500; }
.cli-out a { color: var(--cy); }
.cli-dim { color: var(--faint); }
.cli-warn { color: #fbbf24; margin-top: 4px; }
#cli-form { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 18px; border-radius: 0; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
#cli-form .p { color: var(--em); font: 14px "Geist Mono", monospace; white-space: nowrap; }
#cli-input { border: 0; background: none; padding: 4px 0; font: 16px "Geist Mono", monospace; box-shadow: none; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 0 80px; }
.lost .code { font: 600 clamp(110px, 24vw, 220px)/1 Geist, sans-serif; letter-spacing: -.06em; position: relative; }
.lost .code::before, .lost .code::after { content: "404"; position: absolute; inset: 0; opacity: .6; }
.lost .code::before { color: var(--em); animation: glitch 2.6s infinite steps(1); }
.lost .code::after { color: var(--cy); animation: glitch 3.1s infinite steps(1) reverse; }
@keyframes glitch { 0%, 88%, 100% { transform: none; clip-path: none; opacity: 0; } 90% { transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); opacity: .7; } 94% { transform: translate(4px, -2px); clip-path: inset(60% 0 10% 0); opacity: .7; } }
.lost p { color: var(--muted); margin: 10px 0 28px; font-size: 18px; }
