/* ════════════════════════════════════════
   Verlintas — personal site
   black · diamonds · red · white
   ════════════════════════════════════════ */

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --red: #ff0000;
  --red-soft: rgba(255, 0, 0, 0.55);
  --white: #ffffff;
  --gray: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);
  --font-head: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-head);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── global diamond grid overlay ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(45deg, transparent 46.5%, var(--line) 46.5%, var(--line) 50%, transparent 50%, transparent 96.5%, var(--line) 96.5%, var(--line) 100%),
    linear-gradient(-45deg, transparent 46.5%, var(--line) 46.5%, var(--line) 50%, transparent 50%, transparent 96.5%, var(--line) 96.5%, var(--line) 100%);
  background-size: 64px 64px;
  opacity: 0.55;
}

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 72px);
  background: linear-gradient(to bottom, rgba(5,5,5,0.85), transparent);
  backdrop-filter: blur(2px);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-logo-accent { color: var(--red); }
.nav-term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  background: rgba(255, 0, 0, 0.06);
  border: 1px solid rgba(255, 0, 0, 0.45);
  border-radius: 8px;
  color: var(--red);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.nav-term:hover { background: var(--red); color: #fff; box-shadow: 0 0 16px rgba(255, 0, 0, 0.55); transform: translateY(-1px); }
.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; }
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

main, .footer { position: relative; z-index: 1; }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,0,0,0.14) 0%, transparent 62%);
  animation: breath 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breath {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}
.hero-content { position: relative; }
.hero-hello {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 400;
}
.hero-name {
  font-size: clamp(4.2rem, 16vw, 11.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--red);
  text-shadow:
    0 0 24px rgba(255,0,0,0.35),
    0 0 90px rgba(255,0,0,0.18);
  margin: 6px 0 18px;
  user-select: none;
}
.hero-sub {
  font-size: clamp(0.8rem, 1.7vw, 1.05rem);
  letter-spacing: 0.14em;
  color: var(--white);
  font-weight: 300;
  opacity: 0.92;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 38px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #cfcfcf;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 7px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes blinkfast { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-scroll {
  display: inline-flex;
  margin-top: 44px;
  color: var(--gray);
  animation: bob 1.8s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--red); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* entrance */
.fade-up { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.55s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.1s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.marquee-track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  gap: 0;
  animation: scrollX 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0 18px;
  white-space: nowrap;
}
.marquee-track .sep { color: var(--red); opacity: 0.8; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════ SECTIONS ═══════════ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(90px, 13vh, 150px) clamp(22px, 6vw, 48px);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}
.section-title em { font-style: normal; color: var(--red); }

/* ── about ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about-copy { font-size: clamp(1rem, 2vw, 1.2rem); color: #d5d5d5; font-weight: 300; }
.about-copy strong { color: var(--white); font-weight: 600; }
.about-quote {
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 22px;
  color: var(--gray);
  font-style: italic;
  font-size: 0.98rem;
}
.about-quote footer { margin-top: 10px; font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; color: var(--red); }

/* ── timeline ── */
.timeline { display: grid; gap: 18px; max-width: 720px; }
.tl-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
  opacity: 0.6;
}
.tl-item:hover { border-color: rgba(255,0,0,0.4); transform: translateX(6px); }
.tl-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.tl-year { font-family: var(--font-mono); font-size: 0.72rem; color: var(--red); letter-spacing: 0.12em; }
.tl-item h3 { font-size: 1.3rem; }
.tl-desc { color: var(--gray); font-size: 0.95rem; margin-bottom: 12px; }
.tl-links { display: flex; gap: 18px; flex-wrap: wrap; }
.tl-link { color: var(--white); text-decoration: none; font-family: var(--font-mono); font-size: 0.8rem; border-bottom: 1px solid var(--red); padding-bottom: 1px; transition: color 0.2s; }
.tl-link:hover { color: var(--red); }
.tl-flag {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  border: 1px dashed var(--line);
  color: #6a6a6a;
  border-radius: 100px;
}

/* ── projects ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  text-decoration: none;
  color: var(--white);
  background: rgba(255,255,255,0.02);
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.proj-card:hover {
  border-color: rgba(255,0,0,0.55);
  box-shadow: 0 18px 60px -18px rgba(255,0,0,0.28);
}
.proj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.proj-name { font-size: 1.25rem; font-weight: 600; }
.proj-star { font-family: var(--font-mono); font-size: 0.72rem; color: var(--red); white-space: nowrap; }
/* the name carries a stretched link so the whole card still opens GitHub,
   while a second link (project website) can live inside the card without nesting anchors */
.proj-main { color: inherit; text-decoration: none; }
.proj-main::after { content: ""; position: absolute; inset: 0; }
.proj-desc { color: var(--gray); font-size: 0.92rem; flex: 1; }
.proj-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.clone-line {
  display: block;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #6a6a6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  cursor: copy;
  user-select: all;
  transition: color 0.2s;
}
.proj-card:hover .clone-line { color: #b9b9b9; }
.clone-line.copied { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 0, 0, 0.35); }
.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: #cfcfcf;
}
.chip-site {
  color: var(--red);
  border-color: rgba(255,0,0,0.45);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s, border-color 0.2s;
}
.chip-site:hover { color: var(--white); border-color: var(--red); }
.btn-ghost {
  display: inline-block;
  margin-top: 34px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid rgba(255,0,0,0.55);
  padding: 12px 22px;
  border-radius: 100px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-ghost:hover { background: var(--red); color: #fff; box-shadow: 0 0 30px rgba(255,0,0,0.4); }

/* ── stack ── */
.stack-group { margin-bottom: 34px; }
.stack-group:last-child { margin-bottom: 0; }
.stack-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.stack-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-item {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #e8e8e8;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
a.stack-item:hover { transform: translateY(-4px); }
.stack-no { cursor: default; opacity: 0.75; }
.stack-no:hover { transform: none; }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--white);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px -16px rgba(255,0,0,0.35);
}
.c-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
.c-value { font-size: 1.05rem; word-break: break-all; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 56px 24px 70px;
}
.footer-quote { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 600; }
.footer-attrib { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray); margin-left: 10px; }
.footer-meta { margin-top: 14px; color: #6a6a6a; font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ── reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.alive-panel { border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; background: rgba(255,255,255,0.02); text-align: center; }
.alive-num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 0 22px rgba(255,0,0,0.25);
}
.alive-sub { margin-top: 6px; color: #6a6a6a; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .alive-panel { text-align: left; }
}

/* ═══════════ LOADER ═══════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-stage { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.loader-diamond { width: clamp(120px, 22vw, 170px); height: auto; }
.ld-base {
  fill: none;
  stroke: rgba(255, 0, 0, 0.18);
  stroke-width: 1.5;
}
.ld-flow {
  fill: none;
  stroke: #ff0000;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.9));
  stroke-dasharray: 46 486;
  animation: dashFlow 1.5s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -532; } }
.loader-name {
  display: flex;
  gap: 0.02em;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  letter-spacing: 0.16em;
  color: var(--white);
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.06);
  animation: nameReveal 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) 0.55s forwards;
}
.loader-name::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 16px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
  transform: scaleX(0);
  animation: lineGrow 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 1.05s forwards;
}
.boot-log {
  margin-top: 22px;
  min-width: 300px;
  display: grid;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #8a8a8a;
  text-align: left;
}
.boot-log div { opacity: 0; animation: bootIn 0.3s ease forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-log .ok { color: #ff5555; }
.boot-log .warn { color: #ff9d4d; }
@keyframes bootIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes nameReveal {
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes lineGrow {
  to { transform: scaleX(1); }
}
body.is-loading .fade-up { animation-play-state: paused; }
body.is-loading { overflow: hidden; }

/* ── 2AM easter egg ── */
.two-am {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: none;
}

/* ═══════════ HIDDEN TERMINAL ═══════════ */
.term {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  max-width: 760px;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 14px;
  background: rgba(4, 4, 4, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 90px -20px rgba(255, 0, 0, 0.25);
  overflow: hidden;
  font-family: var(--font-mono);
}
.term[hidden] { display: none; }
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.term-title { flex: 1; text-align: left; color: #8a8a8a; font-size: 0.68rem; letter-spacing: 0.14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-close { background: none; border: none; color: #8a8a8a; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.term-close:hover { color: var(--red); }
.term-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 16px 4px;
  font-size: 0.8rem;
  line-height: 1.7;
}
.term-body::-webkit-scrollbar { width: 5px; }
.term-body::-webkit-scrollbar-thumb { background: #333; }
.t-line { white-space: pre-wrap; word-break: break-all; color: #cfcfcf; }
.t-line .tk-c { color: var(--red); }
.t-line .tk-g { color: #7a7a7a; }
.t-line .tk-w { color: var(--white); }
.t-line .tk-y { color: #ffd54f; }
.t-line .t-prompt { color: var(--red); }
.say-line { white-space: pre-wrap; }
.say-line.typing::after {
  content: "▍";
  color: var(--red);
  margin-left: 2px;
  animation: caretBlink 0.85s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.t-line.t-err { color: #ff6b6b; }
.term-line { display: flex; align-items: center; gap: 8px; padding: 2px 16px 14px; }
.term-prompt { color: var(--red); font-size: 0.8rem; white-space: nowrap; }
.term-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  caret-color: var(--red);
}
@media (max-width: 760px) {
  .term { margin: 0 12px 12px; }
}

/* ═══════════ fx canvas / progress / to-top ═══════════ */
#fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  box-shadow: 0 0 8px var(--red-soft);
  z-index: 80;
}
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,0,0,0.5);
  color: #fff;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 70;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--red); box-shadow: 0 0 24px rgba(255,0,0,0.45); }

/* ── org line ── */
.org-line {
  margin-top: 26px;
  color: #8a8a8a;
  font-size: 0.86rem;
}
.org-line a {
  color: #ff9d9d;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,0,0,0.5);
  transition: color 0.2s;
}
.org-line a:hover { color: var(--red); }

/* ── live ── */
.live-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.live-left { display: grid; gap: 18px; }
.live-clock { border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; background: rgba(255,255,255,0.02); }
.clock-time {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.clock-time .secs { color: var(--red); }
.clock-date { margin-top: 10px; color: var(--gray); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em; }
.clock-dot { animation: clockblink 1s steps(1) infinite; }
@keyframes clockblink { 50% { opacity: 0.15; } }
.status-panel { border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; background: rgba(255,255,255,0.02); }
.status-list { list-style: none; display: grid; gap: 8px; }
.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cfcfcf;
}
.status-item .s-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.s-up { background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,0.7); animation: pulse 2.2s ease-in-out infinite; }
.s-down { background: var(--red); box-shadow: 0 0 8px rgba(255,0,0,0.7); animation: blinkfast 0.7s steps(1) infinite; }
.s-unknown { background: #555; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.status-item .s-name { width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.status-item .s-state { color: #6a6a6a; margin-left: auto; text-align: right; font-size: 0.72rem; }
.status-item a { color: inherit; text-decoration: none; }
.status-probing { color: #6a6a6a; }
.feed-list { list-style: none; display: grid; gap: 10px; }
.feed-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  font-size: 0.9rem;
  transition: border-color 0.25s, transform 0.25s;
}
.feed-item:hover { border-color: rgba(255,0,0,0.45); transform: translateX(4px); }
.feed-ico { color: var(--red); font-family: var(--font-mono); font-size: 0.8rem; flex-shrink: 0; width: 58px; }
.feed-msg { color: #d5d5d5; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed-msg b { color: var(--white); font-weight: 600; }
.feed-msg a { color: #ff9d9d; text-decoration: none; border-bottom: 1px dashed rgba(255,0,0,0.5); }
.feed-msg a:hover { color: var(--red); }
.feed-when { color: #6a6a6a; font-family: var(--font-mono); font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; }
.feed-empty { color: #6a6a6a; font-family: var(--font-mono); font-size: 0.85rem; }

/* accessibility: tame animations when the OS asks for it */
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; }
  .marquee-track { animation: none; }
  .hero-glow { animation: none; }
  .dot, .s-up, .s-down { animation: none; }
  .hero-scroll { animation: none; }
  .ld-flow { animation: none; }
  .loader-name { animation: none; opacity: 1; filter: none; transform: none; }
  .loader-name::after { animation: none; transform: scaleX(1); }
  .reveal { transition: none; opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.72rem; }
  .live-grid { grid-template-columns: 1fr; }
}
