/* =========================================================
   noskid.xyz - CRT / amber phosphor terminal portfolio
   IBM Plex Mono (body) · VT323 (display) · vector 3D
   ========================================================= */

:root {
  --bg: #0b0a06;
  --bg2: #100d08;
  --amber: #ffb340;
  --amber-bright: #ffe2a8;
  --amber-dim: #b3812f;
  --amber-faint: #6f5326;
  --red: #ff5a4d;
  --glow: rgba(255, 179, 64, 0.45);
  --glow-soft: rgba(255, 179, 64, 0.18);
  --line: rgba(255, 179, 64, 0.16);
  --line-2: rgba(255, 179, 64, 0.34);
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --crt: 'VT323', 'IBM Plex Mono', monospace;
  --maxw: 1020px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 179, 64, 0.06), transparent 55%),
    linear-gradient(180deg, #0d0b07 0%, var(--bg) 60%, #070602 100%);
  background-attachment: fixed;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .01em;
  text-shadow: 0 0 1px rgba(255, 179, 64, 0.35);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
b, strong { font-weight: 600; color: var(--amber-bright); }
::selection { background: var(--amber); color: var(--bg); text-shadow: none; }

.hidden { display: none !important; }
.amber { color: var(--amber); }
.amber-dim { color: var(--amber-dim); }

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  display: block;
  pointer-events: none;
  opacity: 0.3;
}

/* =========================================================
   CRT overlays
   ========================================================= */

.crt { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }

.crt-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.26) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}
.crt-scan::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(255,179,64,0.05), transparent);
  animation: sweep 7s linear infinite;
}
.crt-flicker {
  position: absolute; inset: 0;
  background: rgba(255, 179, 64, 0.02);
  animation: flicker 5s ease-in-out infinite;
}
.crt-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(125% 110% at 50% 50%, transparent 52%, rgba(0,0,0,0.55) 100%);
  box-shadow: inset 0 0 220px rgba(0,0,0,0.75);
}
@keyframes sweep { 0% { transform: translateY(-140px); } 100% { transform: translateY(100vh); } }
@keyframes flicker { 0%,100% { opacity: .5; } 45% { opacity: .65; } 50% { opacity: .35; } 55% { opacity: .7; } }

/* =========================================================
   scroll progress (top hairline)
   ========================================================= */

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: rgba(255,179,64,0.06); }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--glow);
}

/* =========================================================
   caret + blink + glitch
   ========================================================= */

.caret { display: inline-block; color: var(--amber); animation: blink 1.06s steps(1) infinite; font-weight: 400; }
.blink { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: #18e0c8; left: 2px; mix-blend-mode: screen; animation: glitch-a 4.5s steps(2) infinite; opacity: .55; }
.glitch::after  { color: #ff2e7e; left: -2px; mix-blend-mode: screen; animation: glitch-b 5.7s steps(2) infinite; opacity: .5; }
@keyframes glitch-a { 0%,92%,100% { transform: translate(0,0); clip-path: inset(0 0 95% 0); } 93% { transform: translate(-3px,1px); clip-path: inset(20% 0 35% 0); } 96% { transform: translate(2px,-1px); clip-path: inset(60% 0 10% 0); } }
@keyframes glitch-b { 0%,90%,100% { transform: translate(0,0); clip-path: inset(80% 0 5% 0); } 91% { transform: translate(3px,0); clip-path: inset(10% 0 60% 0); } 94% { transform: translate(-2px,1px); clip-path: inset(45% 0 30% 0); } }

/* =========================================================
   boot sequence + blocked
   ========================================================= */

.boot {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(circle at 50% 45%, #100d08, #050402 75%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity .5s ease, transform .5s ease;
}
.boot.gone { opacity: 0; transform: scale(1.02); pointer-events: none; }
.boot-screen { width: 100%; max-width: 560px; font-family: var(--mono); font-size: 13.5px; }
.boot-log { margin: 0; white-space: pre-wrap; color: var(--amber-dim); line-height: 1.7; min-height: 150px; }
.boot-line { margin-top: 6px; color: var(--amber); }
.boot-ok { color: var(--amber-bright); }
.boot-ok.error { color: var(--red); }

.blocked-screen {
  position: fixed; inset: 0; z-index: 220;
  background: radial-gradient(ellipse at center, rgba(40,10,8,0.75), #050402 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px;
}
.blocked-art { margin: 0; font-family: var(--crt); font-size: 46px; color: var(--red); text-shadow: 0 0 22px rgba(255,90,77,0.6); }
.blocked-sub { font-family: var(--mono); font-size: 13px; color: var(--amber-dim); text-align: center; max-width: 380px; line-height: 1.6; }

/* =========================================================
   terminal buttons
   ========================================================= */

.tbtn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px; font-weight: 500;
  color: var(--amber);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.tbtn:hover { background: var(--amber); color: var(--bg); text-shadow: none; box-shadow: 0 0 22px var(--glow); }
.tbtn:active { transform: translateY(1px); }
.tbtn-ghost { color: var(--amber-dim); border-color: var(--line); }
.tbtn-ghost:hover { color: var(--bg); background: var(--amber-dim); }
.tbtn-lg { font-size: 15px; padding: 13px 20px; }

/* =========================================================
   top nav
   ========================================================= */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  font-family: var(--mono); font-size: 13.5px;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(8,7,3,0.82); backdrop-filter: blur(4px); border-bottom-color: var(--line); }
.nav-brand { text-decoration: none; color: var(--amber-bright); font-weight: 500; }
.nav-user { color: var(--amber); }
.nav-dim { color: var(--amber-dim); }
.nav-path { color: var(--amber-bright); }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.nav-links a { position: relative; color: var(--amber-dim); text-decoration: none; transition: color .18s ease; }
.nav-links a:hover { color: var(--amber); }
.nav-links a.active { color: var(--amber-bright); }
.nav-links a.active::before { content: "▸ "; color: var(--amber); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* =========================================================
   bottom tmux statusline
   ========================================================= */

.statusline {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch;
  height: 28px;
  font-family: var(--mono); font-size: 11.5px;
  background: rgba(8,7,3,0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  color: var(--amber-dim);
}
.statusline > * { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; }
.statusline i { font-size: 10px; }

/* mode block with a powerline tip */
.sl-mode {
  position: relative; margin-right: 8px;
  background: var(--amber); color: var(--bg); border: 0; font: inherit; font-weight: 700;
  text-shadow: none; letter-spacing: .1em; cursor: pointer;
}
.sl-mode::after {
  content: ""; position: absolute; left: 100%; top: 0;
  border: 14px solid transparent; border-right: 0; border-left: 8px solid var(--amber);
}
.sl-mode:hover, .sl-mode:hover::after { background: var(--amber-bright); }
.sl-mode:hover::after { border-left-color: var(--amber-bright); background: transparent; }

.sl-path { color: var(--amber-bright); }
.sl-spacer { flex: 1; padding: 0; }
.sl-seg { border-left: 1px solid var(--line); }
.sl-seg .fa-star { color: var(--amber); }

/* pct: amber segment with a left powerline tip */
.sl-pct {
  position: relative; margin-left: 8px; border-left: 0;
  background: rgba(255,179,64,0.16); color: var(--amber-bright); font-weight: 600;
}
.sl-pct::before {
  content: ""; position: absolute; right: 100%; top: 0;
  border: 14px solid transparent; border-left: 0; border-right: 8px solid rgba(255,179,64,0.16);
}
@media (max-width: 620px) { .sl-path, #view-count { display: none; } }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6256; display: inline-block; transition: background .3s ease, box-shadow .3s ease; }
.status-dot.online  { background: #6ee787; box-shadow: 0 0 8px rgba(110,231,135,0.8); }
.status-dot.idle    { background: var(--amber); box-shadow: 0 0 8px var(--glow); }
.status-dot.dnd     { background: var(--red); box-shadow: 0 0 8px rgba(255,90,77,0.7); }
.status-dot.offline { background: #6b6256; }

/* =========================================================
   reveal (uses `translate` so nothing else fights it)
   ========================================================= */

.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }

/* =========================================================
   sections + command headers
   ========================================================= */

.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 13vh, 150px) clamp(18px, 5vw, 36px); }

.cmd { font-size: clamp(15px, 2.2vw, 21px); color: var(--amber-bright); margin-bottom: 30px; }
.cmd-path { color: var(--amber-dim); }
.cmd-d { color: var(--amber); }

/* =========================================================
   hero
   ========================================================= */

.hero { min-height: 100vh; min-height: 100dvh; max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(18px, 7vw, 80px) 70px; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.prompt-line { font-size: clamp(14px, 2vw, 18px); color: var(--amber); margin-bottom: 8px; }
.pl-user { color: var(--amber); } .pl-dim { color: var(--amber-dim); } .pl-path { color: var(--amber-bright); }

.hero-name {
  margin: 0;
  font-family: var(--crt);
  font-weight: 400;
  font-size: clamp(120px, 30vw, 420px);
  line-height: .82;
  letter-spacing: .01em;
  color: var(--amber-bright);
  text-shadow: 0 0 14px var(--glow), 0 0 40px rgba(255,179,64,0.35);
}

.hero-roles { font-size: clamp(16px, 2.4vw, 24px); margin-top: 14px; color: var(--amber); }
#role-rotator { color: var(--amber-bright); transition: opacity .25s ease, translate .25s ease; }
#role-rotator.swap-out { opacity: 0; translate: 0 -6px; }

.hero-bio { max-width: 60ch; margin: 24px 0 0; font-size: clamp(14px, 1.7vw, 17px); line-height: 1.75; color: #cda04e; text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg); }
.bio-brand { color: var(--amber-bright); }
.bio-brand::before { content: "["; color: var(--amber-dim); }
.bio-brand::after { content: "]"; color: var(--amber-dim); }
.bio-mark { color: var(--amber); }
.bio-dot { color: var(--amber-faint); margin: 0 4px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-scroll { position: absolute; left: clamp(18px, 7vw, 80px); bottom: 64px; font-family: var(--mono); font-size: 13px; color: var(--amber-dim); text-decoration: none; }
.hero-scroll .blink { color: var(--amber); margin-right: 4px; }

/* =========================================================
   about
   ========================================================= */

.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 60px); align-items: start; }
.about-portrait { display: flex; flex-direction: column; gap: 16px; }
.ascii-frame {
  position: relative;
  width: min(220px, 60vw); aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255,179,64,0.03);
}
.ascii-frame::before { content: "[ user.png ]"; position: absolute; top: -10px; left: 12px; padding: 0 6px; background: var(--bg); font-size: 11px; color: var(--amber-dim); }
.avatar { width: 100%; height: 100%; object-fit: cover; background: #15110a; filter: sepia(.5) saturate(1.3) hue-rotate(-12deg) brightness(1.02) contrast(1.05); border: 1px solid var(--line); }
.about-handle { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--amber-dim); }
.about-name { color: var(--amber-bright); font-weight: 600; }
.about-username { color: var(--amber-dim); }
.guild-tag { display: inline-block; width: max-content; font-size: 11px; padding: 1px 7px; border: 1px solid var(--line-2); color: var(--amber); margin: 2px 0; }

.about-body { display: flex; flex-direction: column; gap: 14px; }
.about-line { margin: 0; font-size: clamp(15px, 2vw, 19px); line-height: 1.6; color: var(--amber); }
.about-line::before { content: "> "; color: var(--amber-dim); }
.about-line:first-child { color: var(--amber-bright); }

@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }

/* =========================================================
   stack - package chips
   ========================================================= */

.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.pkg {
  font-family: var(--mono); font-size: 13px;
  color: var(--amber); padding: 5px 11px;
  border: 1px solid var(--line); background: rgba(255,179,64,0.03);
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pkg::before { content: "› "; color: var(--amber-dim); }
.pkg:hover { background: var(--amber); color: var(--bg); text-shadow: none; border-color: var(--amber); box-shadow: 0 0 16px var(--glow); }
.pkg:hover::before { color: var(--bg); }

/* =========================================================
   work - ls -la projects
   ========================================================= */

.ls-head, .project-row { display: grid; grid-template-columns: 108px 1fr 130px 22px; gap: 16px; align-items: baseline; }
.ls-head { font-size: 11px; color: var(--amber-faint); text-transform: uppercase; letter-spacing: .12em; padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.projects { display: flex; flex-direction: column; }
.project {
  display: block; text-decoration: none; color: inherit;
  padding: 15px 4px 14px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.project:hover { background: rgba(255,179,64,0.05); }
.project-perms { color: var(--amber-faint); font-size: 12.5px; }
.project-name { color: var(--amber-bright); font-size: clamp(16px, 2.2vw, 21px); font-weight: 600; }
.project-name .slash { color: var(--amber-dim); }
.project:hover .project-name { text-shadow: 0 0 12px var(--glow); }
.project-tag { color: var(--amber); font-size: 12.5px; }
.project-tag::before { content: "<"; color: var(--amber-dim); } .project-tag::after { content: ">"; color: var(--amber-dim); }
.project-year { color: var(--amber-dim); font-size: 12.5px; }
.project-go { color: var(--amber); justify-self: end; transition: transform .18s ease; }
.project:hover .project-go { transform: translateX(4px); }
.project-desc { margin: 8px 0 0; padding-left: 124px; font-size: 13px; line-height: 1.6; color: var(--amber-dim); }
.project-stack { color: var(--amber-faint); }
@media (max-width: 720px) {
  .ls-head { display: none; }
  .project-row { grid-template-columns: 1fr auto; gap: 8px; }
  .project-perms, .project-tag { display: none; }
  .project-desc { padding-left: 0; }
}

/* =========================================================
   now - panels (activity + neofetch) + stats
   ========================================================= */

.now-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "rig now" "rig stat";
  gap: 16px;
  align-items: start;
}
.now-setup { grid-area: rig; }
.now-activity { grid-area: now; }
.now-uptime { grid-area: stat; }
.panel { border: 1px solid var(--line); background: rgba(255,179,64,0.02); padding: 16px 18px; }
.panel-title { font-size: 12.5px; color: var(--amber-bright); margin-bottom: 16px; }
.np-platform { color: var(--amber-dim); font-size: 11px; }

.activity-inner { display: flex; align-items: center; gap: 13px; }
.activity-art-wrap { position: relative; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; background: #15110a; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.activity-art { width: 100%; height: 100%; object-fit: cover; filter: sepia(.4) saturate(1.2) hue-rotate(-10deg); }
.activity-fallback { color: var(--amber); font-size: 22px; animation: blink 2.4s steps(1) infinite; }
.activity-meta { min-width: 0; flex: 1; }
.activity-title { color: var(--amber-bright); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-artist { margin-top: 2px; color: var(--amber-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.activity-empty { text-align: center; padding: 6px 0; }
.empty-clock { font-family: var(--crt); font-size: 50px; line-height: 1; color: var(--amber-bright); text-shadow: 0 0 16px var(--glow); }
.empty-vibe { font-size: 12px; color: var(--amber-dim); margin-top: 4px; transition: opacity .28s ease; }
.empty-date { font-size: 11.5px; color: var(--amber-faint); margin-top: 2px; }

.activity-progress { margin-top: 16px; }
.progress-row { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--amber-dim); font-variant-numeric: tabular-nums; }
.progress-bar { position: relative; flex: 1; height: 8px; border: 1px solid var(--line); background: rgba(255,179,64,0.04); overflow: hidden; }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 8px); box-shadow: 0 0 8px var(--glow); transition: width .9s linear; }
.activity-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.eq-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq-bars span { width: 3px; height: 4px; background: var(--amber); box-shadow: 0 0 6px var(--glow); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq-bars span:nth-child(1) { animation-delay: -.2s; animation-duration: .85s; }
.eq-bars span:nth-child(2) { animation-delay: -.5s; animation-duration: 1.15s; }
.eq-bars span:nth-child(3) { animation-delay: -.05s; animation-duration: .7s; }
.eq-bars span:nth-child(4) { animation-delay: -.35s; animation-duration: 1.3s; }
.eq-bars span:nth-child(5) { animation-delay: -.15s; animation-duration: .95s; }
@keyframes eq { 0%,100% { height: 3px; opacity: .5; } 50% { height: 14px; opacity: 1; } }
.activity-link { color: var(--amber-dim); text-decoration: none; font-size: 11.5px; transition: color .15s ease; }
.activity-link:hover { color: var(--amber); }

/* fastfetch */
.fastfetch { display: flex; gap: 18px; align-items: flex-start; }
.ff-logo { margin: 0; font-size: 9px; line-height: 1.08; color: var(--amber); text-shadow: 0 0 8px var(--glow); white-space: pre; flex: 0 0 auto; }
.ff-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ff-title { font-size: 13px; }
.ff-title b { color: var(--amber-bright); }
.ff-rule { color: var(--amber-faint); font-size: 12px; letter-spacing: -1px; overflow: hidden; }
.setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.setup-item { display: flex; gap: 8px; font-size: 12px; }
.setup-key { color: var(--amber-bright); font-weight: 600; min-width: 58px; }
.setup-key::after { content: ":"; }
.setup-val { color: var(--amber-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-dots { display: flex; gap: 4px; margin-top: 6px; }
.ff-dots i { width: 13px; height: 9px; display: inline-block; }
.ff-dots i:nth-child(1) { background: #6e5326; }
.ff-dots i:nth-child(2) { background: #8a6a2c; }
.ff-dots i:nth-child(3) { background: #a87f30; }
.ff-dots i:nth-child(4) { background: #c89436; }
.ff-dots i:nth-child(5) { background: #ffb340; }
.ff-dots i:nth-child(6) { background: #ffc55f; }
.ff-dots i:nth-child(7) { background: #ffd58a; }
.ff-dots i:nth-child(8) { background: #ffe2a8; }
@media (max-width: 520px) { .ff-logo { display: none; } }

/* stats */
/* uptime readout (stats) */
.now-uptime .panel-title { margin-bottom: 14px; }
.readout { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ro-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.ro-key { color: var(--amber); white-space: nowrap; }
.ro-lead { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--amber-faint); transform: translateY(-4px); }
.ro-val { font-family: var(--crt); font-size: 24px; line-height: .75; color: var(--amber-bright); text-shadow: 0 0 10px var(--glow); }
.ro-val.off { font-family: var(--mono); font-size: 13px; color: var(--amber-dim); text-shadow: none; }
.ro-bar { flex: 0 0 64px; height: 9px; border: 1px solid var(--line); background: rgba(255,179,64,0.04); position: relative; align-self: center; }
.ro-bar i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 6px); box-shadow: 0 0 6px var(--glow); }
.ro-note { flex: 0 0 56px; text-align: right; color: var(--amber-dim); font-size: 11px; }
.ro-stat { display: inline-flex; align-items: center; font-size: 13px; color: var(--amber-dim); }
.ro-stat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: currentColor; box-shadow: 0 0 7px currentColor; }
.ro-stat.up { color: #6ee787; }
.ro-stat.down { color: var(--red); }
@media (max-width: 760px) {
  .now-grid { grid-template-columns: 1fr; grid-template-areas: "now" "rig" "stat"; }
}

/* =========================================================
   contact + footer
   ========================================================= */

.contact-headline { margin: 0 0 34px; font-family: var(--crt); font-weight: 400; font-size: clamp(54px, 12vw, 150px); line-height: .9; color: var(--amber-bright); text-shadow: 0 0 18px var(--glow); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.foot { margin-top: clamp(60px, 10vh, 110px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 12px; color: var(--amber-dim); text-align: center; }
.foot-logo { height: 30px; width: auto; opacity: 0.92; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.foot-credit b { color: var(--amber-bright); }
.foot-legal { display: inline-flex; gap: 10px; }
.foot-legal a { color: var(--amber-dim); text-decoration: none; transition: color .15s ease; }
.foot-legal a:hover { color: var(--amber); }
.foot-sep { color: var(--amber-faint); }

/* =========================================================
   legal pages
   ========================================================= */

.legal-stage { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 70px 18px 70px; }
.legal-card { width: 100%; max-width: 680px; padding: 30px clamp(20px, 4vw, 34px); border: 1px solid var(--line-2); background: rgba(255,179,64,0.025); }
.legal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--amber-dim); text-decoration: none; transition: color .15s ease; }
.legal-back:hover { color: var(--amber); }
.legal-back svg { width: 13px; height: 13px; fill: currentColor; }
.legal-mark { font-size: 20px; color: var(--amber); }
.legal-logo { height: 26px; width: auto; opacity: .95; }
.legal-title { margin: 0 0 8px; font-family: var(--crt); font-weight: 400; font-size: clamp(36px, 8vw, 60px); line-height: .9; color: var(--amber-bright); text-shadow: 0 0 14px var(--glow); }
.legal-lead { margin: 0 0 26px; font-size: 12px; color: var(--amber-dim); }
.legal-section { margin: 0 0 22px; }
.legal-section h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--amber-bright); }
.legal-section h2::before { content: "## "; color: var(--amber-dim); }
.legal-section p, .legal-section li { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: var(--amber-dim); }
.legal-section p strong { color: var(--amber-bright); }
.legal-section a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.legal-list { margin: 4px 0 8px; padding: 0 0 0 18px; list-style: none; }
.legal-list li::before { content: "- "; color: var(--amber-dim); }
.legal-mono { color: var(--amber-bright); background: rgba(255,179,64,0.08); border: 1px solid var(--line); padding: 1px 5px; }
.legal-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--amber-faint); }
.legal-nav { display: inline-flex; gap: 14px; }
.legal-nav a { color: var(--amber-dim); text-decoration: none; }
.legal-nav a:hover { color: var(--amber); }

/* =========================================================
   responsive + reduced motion
   ========================================================= */

@media (max-width: 600px) {
  body { padding-bottom: 26px; }
  .hero { padding: 90px 20px 80px; }
}

/* sl-mode easter egg: CRT power-cycle + quick blip */
.crt-power { position: fixed; inset: 0; z-index: 9500; pointer-events: none; background: #000; opacity: 0; }
.crt-power::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 62vh; transform: translateY(-50%) scale(1, 1); transform-origin: center;
  background: #fff; box-shadow: 0 0 70px 16px var(--amber); opacity: 0;
}
body.power-cycle .crt-power { animation: crt-screen 1.7s ease forwards; }
body.power-cycle .crt-power::before { animation: crt-beam 1.7s ease forwards; }
@keyframes crt-screen { 0% { opacity: 0; } 7% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes crt-beam {
  0%   { opacity: 0; transform: translateY(-50%) scale(1, 1); }
  6%   { opacity: 1; transform: translateY(-50%) scale(1, 0.03); }
  14%  { opacity: 1; transform: translateY(-50%) scale(0.004, 0.03); }
  26%  { opacity: 0; transform: translateY(-50%) scale(0.004, 0.03); }
  70%  { opacity: 0; transform: translateY(-50%) scale(0.004, 0.03); }
  77%  { opacity: 1; transform: translateY(-50%) scale(1, 0.03); }
  88%  { opacity: 1; transform: translateY(-50%) scale(1, 1); }
  100% { opacity: 0; transform: translateY(-50%) scale(1, 1); }
}
body.blip main, body.blip .nav, body.blip .statusline { animation: crt-blip .18s steps(2); }
@keyframes crt-blip { 50% { filter: brightness(1.5) saturate(1.3); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .crt-flicker, .crt-scan::after { display: none; }
}
