/* ===================================================================
   ZENNJXD PORTFOLIO v3 — zennOS
   server-console brutalism: flat, dense, honest.
   fonts: Anton / JetBrains Mono / Silkscreen
   =================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg:        #0a0806;
  --bg-alt:    #0d0b08;
  --panel:     #121009;
  --panel-2:   #16130d;
  --line:      rgba(237, 230, 218, 0.10);
  --line-hard: rgba(237, 230, 218, 0.20);

  --txt:       #ede6da;
  --dim:       #a2937f;
  --mute:      #66594a;

  --orange:    #ff6b1a;
  --amber:     #ffb454;
  --gold:      #ffd166;
  --green:     #3dd68c;
  --red:       #ff5555;
  --cyan:      #56c8ff;

  /* minecraft chat palette */
  --mc-gold:   #ffaa00;
  --mc-aqua:   #55ffff;
  --mc-green:  #55ff55;
  --mc-gray:   #aaaaaa;
  --mc-yellow: #ffff55;

  --font-disp: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'JetBrains Mono', 'Consolas', monospace;
  --font-pix:  'Silkscreen', monospace;

  --wrap: 1180px;
  --tb-h: 52px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--bg);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,26,0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.033) 1px, transparent 1px),
    linear-gradient(rgba(255,107,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.05) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 256px 256px, 256px 256px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(255,107,26,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--orange); color: #140700; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2a1c; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 1px dashed var(--orange); outline-offset: 3px; }

kbd {
  font-family: var(--font-pix);
  font-size: 0.6rem;
  border: 1px solid var(--line-hard);
  border-bottom-width: 3px;
  padding: 2px 7px;
  color: var(--txt);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; }

.c-orange{color:var(--orange)} .c-green{color:var(--green)} .c-mute{color:var(--mute)} .c-dim{color:var(--dim)}
.c-red{color:var(--red)} .c-yellow{color:var(--mc-yellow)}
.mc-gold{color:var(--mc-gold);font-weight:500} .mc-aqua{color:#8ce8e8;font-weight:500}
.mc-green{color:var(--mc-green);font-weight:500} .mc-gray{color:var(--mc-gray)}
.mc-red{color:var(--red)}

.site-hidden { display: none !important; }

/* ===================================================================
   BOOT SEQUENCE
   =================================================================== */
#boot {
  position: fixed; inset: 0;
  background: #060403;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.boot-inner { width: min(640px, 90vw); }
.boot-logo {
  width: 44px; height: 44px;
  image-rendering: pixelated;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 14px rgba(255,107,26,0.45));
}
.boot-log {
  min-height: 240px;
  font-size: 0.78rem;
  line-height: 1.9;
}
.boot-line .bt { color: var(--mute); }
.boot-line b { color: var(--green); font-weight: 500; }
.boot-line.warn b { color: var(--amber); }
.boot-log .cursor-blk {
  display: inline-block; width: 8px; height: 14px;
  background: var(--orange);
  vertical-align: -2px;
  animation: caretBlink 0.7s steps(1) infinite;
}
.boot-enter {
  margin-top: 26px;
  background: var(--orange);
  color: #140700;
  border: none;
  font-family: var(--font-pix);
  font-size: 0.72rem;
  padding: 14px 30px;
  letter-spacing: 0.08em;
  transition: background 0.15s;
}
.boot-enter:hover { background: var(--gold); }
.boot-skip { margin-top: 16px; font-size: 0.66rem; color: var(--mute); }
#boot.done {
  animation: crtOff 0.52s cubic-bezier(0.7, 0, 0.84, 0) forwards;
  pointer-events: none;
}
@keyframes crtOff {
  0%   { opacity: 1; transform: scaleY(1); filter: brightness(1); }
  55%  { opacity: 1; transform: scaleY(0.004); filter: brightness(2.6); }
  78%  { opacity: 1; transform: scaleY(0.004) scaleX(0.4); filter: brightness(4); }
  100% { opacity: 0; transform: scaleY(0.004) scaleX(0); visibility: hidden; }
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* __PART2__ */

/* ===================================================================
   TOP BAR
   =================================================================== */
#topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--tb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  z-index: 900;
  background: rgba(10, 8, 6, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tb-brand {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--txt);
  min-width: 0; white-space: nowrap; overflow: hidden;
}
.tb-brand:hover { color: var(--gold); }
.tb-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61,214,140,0.8);
  animation: statusPulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes statusPulse { 50% { opacity: 0.45; } }
.tb-user { font-weight: 700; }
.tb-at, .tb-path { color: var(--dim); }
.tb-status {
  margin-left: 10px;
  font-size: 0.58rem;
  font-family: var(--font-pix);
  color: var(--green);
  border: 1px solid rgba(61,214,140,0.35);
  padding: 2px 7px;
  letter-spacing: 0.06em;
}
.tb-right { display: flex; align-items: center; gap: 14px; flex: none; }
.tb-tps { font-size: 0.68rem; color: var(--dim); white-space: nowrap; }
.tb-tps b { color: var(--green); font-weight: 500; }
.tb-clock { font-size: 0.68rem; color: var(--dim); white-space: nowrap; }

#audio-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-hard);
  color: var(--dim);
  transition: color 0.15s, border-color 0.15s;
}
#audio-toggle:hover { color: var(--orange); border-color: var(--orange); }
#audio-toggle svg[hidden] { display: none !important; }

.tb-burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.tb-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--txt);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.tb-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tb-burger.open span:nth-child(2) { opacity: 0; }
.tb-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#scroll-progress {
  position: fixed; top: var(--tb-h); left: 0;
  height: 2px; width: 0%;
  background: var(--orange);
  z-index: 901;
}

/* fullscreen menu */
#menu-overlay {
  position: fixed; inset: 0;
  background: rgba(6,4,3,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 850;
  display: none;
  flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 max(6vw, 32px);
}
#menu-overlay.open { display: flex; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-disp);
  font-size: clamp(1.9rem, 6vh, 3.4rem);
  text-transform: uppercase;
  color: var(--txt);
  line-height: 1.15;
  padding: 4px 0;
  transition: color 0.15s, transform 0.3s var(--ease);
}
.menu-links a em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--mute);
}
.menu-links a:hover { color: var(--orange); transform: translateX(14px); }
.menu-foot { margin-top: 5vh; font-size: 0.68rem; color: var(--mute); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,8,6,0.88) 0%, rgba(10,8,6,0.62) 45%, var(--bg) 100%),
    radial-gradient(ellipse at 70% 30%, transparent 30%, rgba(10,8,6,0.55) 100%);
}
#embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-grid {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--tb-h) + 64px) 28px 80px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow { font-size: 0.74rem; color: var(--dim); margin-bottom: 22px; letter-spacing: 0.04em; }

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.ht-line { display: block; }
.ht-ok { color: var(--green); font-weight: inherit; }
.ht-ok i { font-style: normal; color: var(--mute); font-size: 0.45em; vertical-align: super; }

.hero-sub { max-width: 54ch; color: var(--dim); font-size: 0.92rem; margin-bottom: 34px; }
.hero-sub strong { color: var(--txt); font-weight: 500; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 15px 26px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-arrow { transition: transform 0.2s var(--ease); font-weight: 400; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-solid { background: var(--orange); color: #140700; }
.btn-solid:hover { background: var(--gold); color: #140700; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,26,0.25); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line-hard); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-wide { width: 100%; justify-content: center; }

.hero-fn { font-size: 0.68rem; color: var(--mute); }

/* __PART3__ */

/* terminal window (hero + overlay reuse) */
.term {
  background: rgba(9, 6, 4, 0.86);
  border: 1px solid var(--line-hard);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.term-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,107,26,0.05);
}
.term-title { font-size: 0.66rem; color: var(--dim); letter-spacing: 0.04em; }
.term-live {
  margin-left: auto;
  font-family: var(--font-pix);
  font-size: 0.52rem;
  color: var(--green);
  animation: statusPulse 1.6s ease-in-out infinite;
}
.term-body { padding: 18px 16px 20px; font-size: 0.78rem; line-height: 1.85; min-height: 168px; }
.term-cmd { color: var(--dim); }
.term-out { color: var(--txt); }
.term-input-row { color: var(--mute); }
.type-caret {
  display: inline-block; width: 8px; height: 13px;
  background: var(--orange);
  vertical-align: -2px;
  animation: caretBlink 0.8s steps(1) infinite;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: none;
  background: rgba(9,6,4,0.7);
}
.hero-stats li { padding: 14px 10px; text-align: center; border-right: 1px solid var(--line); }
.hero-stats li:last-child { border-right: none; }
.hero-stats b {
  display: block;
  font-family: var(--font-disp);
  font-size: 1.35rem;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.hero-stats span { font-size: 0.58rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-scrollhint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--mute);
  font-size: 0.58rem;
  font-family: var(--font-pix);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scrollhint i {
  width: 1px; height: 34px;
  background: var(--line-hard);
  position: relative;
  overflow: hidden;
}
.hero-scrollhint i::after {
  content: '';
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--orange);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  user-select: none;
}
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 26s linear infinite;
  font-family: var(--font-pix);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}
.marquee-track span:nth-of-type(even) { color: var(--orange); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================================
   SECTIONS — generic
   =================================================================== */
.sec { padding: 110px 0; position: relative; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { margin-bottom: 54px; }
.sec-tag { font-size: 0.7rem; color: var(--mute); margin-bottom: 14px; }
.sec-tag .lv-info { color: var(--green); }
.sec-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sec-desc { max-width: 62ch; color: var(--dim); font-size: 0.88rem; margin-top: 14px; }
.sec-foot { margin-top: 34px; font-size: 0.7rem; color: var(--mute); }

/* __PART4__ */

/* ===================================================================
   ABOUT
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo { position: relative; padding: 18px; }
.about-photo img { border: 1px solid var(--line-hard); filter: saturate(0.92); }
.about-photo img.skin {
  max-width: 250px;
  margin: 0 auto;
  image-rendering: pixelated;
  border: 1px solid var(--line-hard);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,107,26,0.03) 10px 20px),
    var(--panel-2);
}
.about-photo figcaption { margin-top: 14px; font-size: 0.68rem; color: var(--mute); font-style: italic; }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--orange); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.about-copy p { color: var(--dim); margin-bottom: 18px; max-width: 62ch; }
.about-copy strong { color: var(--txt); font-weight: 500; }
.about-copy em { color: var(--amber); }

.factfile { margin-top: 30px; border: 1px solid var(--line); background: var(--panel); }
.factfile div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}
.factfile div:last-child { border-bottom: none; }
.factfile dt {
  padding: 10px 16px;
  font-size: 0.68rem;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
}
.factfile dd { padding: 10px 16px; font-size: 0.82rem; color: var(--txt); }

/* ===================================================================
   TOOLS — /plugins listing
   =================================================================== */
.pluginbox { border: 1px solid var(--line-hard); background: var(--panel); max-width: 880px; margin: 0 auto; }
.pluginbox-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,107,26,0.05);
  font-family: var(--font-pix);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}
.pluginbox-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  color: var(--mute);
  font-style: italic;
}
.plugin-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.plugin-list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.plugin-list li:nth-child(2n) { border-right: none; }
.plugin-list li:hover { background: rgba(255,107,26,0.05); }
.pl-on, .pl-off {
  width: 8px; height: 8px;
  display: inline-block;
  transform: translateY(-1px);
}
.pl-on { background: var(--green); box-shadow: 0 0 6px rgba(61,214,140,0.7); }
.pl-off { background: transparent; border: 1px solid var(--mute); }
.plugin-list b { font-size: 0.84rem; color: var(--txt); font-weight: 700; }
.plugin-list u {
  text-decoration: none;
  font-size: 0.62rem;
  color: var(--amber);
  white-space: nowrap;
}
.plugin-list span {
  grid-column: 2 / -1;
  font-size: 0.72rem;
  color: var(--mute);
  line-height: 1.5;
}
.pl-strike { text-decoration: line-through; text-decoration-color: rgba(255,85,85,0.5); }

/* ===================================================================
   PROJECTS — server list
   =================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-hard);
  padding: 8px 16px;
  transition: all 0.15s;
}
.chip s { text-decoration: none; color: var(--mute); margin-left: 4px; font-size: 0.62rem; }
.chip:hover { color: var(--txt); border-color: var(--orange); }
.chip.active { background: var(--orange); border-color: var(--orange); color: #140700; font-weight: 700; }
.chip.active s { color: rgba(20,7,0,0.55); }

.srvlist { border-top: 2px solid var(--line-hard); }
.srow {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}
@media (hover: hover) {
  .srow:hover {
    background: var(--panel);
    transform: translateX(6px);
    box-shadow: inset 3px 0 0 var(--orange);
  }
}
.srow.featured {
  background: linear-gradient(90deg, rgba(255,107,26,0.08), transparent 60%);
  box-shadow: inset 3px 0 0 var(--gold);
}
.srow-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid var(--line-hard);
  background: var(--panel-2);
}
.srow-main { min-width: 0; }
.srow-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.srow-top h3 {
  font-family: var(--font-disp);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--txt);
}
.stag {
  font-family: var(--font-pix);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line-hard);
  padding: 3px 8px;
}
.stag-gold { color: #140700; background: var(--gold); border-color: var(--gold); }
.srow-year { font-size: 0.66rem; color: var(--mute); }
.motd { font-size: 0.8rem; color: var(--dim); line-height: 1.7; max-width: 70ch; }
.motd b { font-weight: 500; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tech span {
  font-size: 0.64rem;
  color: var(--dim);
  border: 1px dashed var(--line-hard);
  padding: 2px 9px;
}
.srow-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  min-width: 110px;
}
.pingbars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 16px;
}
.pingbars i {
  width: 3px;
  background: var(--line-hard);
  transition: background 0.15s;
}
.pingbars i:nth-child(1) { height: 4px; }
.pingbars i:nth-child(2) { height: 7px; }
.pingbars i:nth-child(3) { height: 10px; }
.pingbars i:nth-child(4) { height: 13px; }
.pingbars i:nth-child(5) { height: 16px; }
.p1 i:nth-child(-n+1), .p2 i:nth-child(-n+2), .p3 i:nth-child(-n+3),
.p4 i:nth-child(-n+4), .p5 i:nth-child(-n+5) { background: var(--green); }
.p1 i:nth-child(-n+1) { background: var(--red); }
.p2 i:nth-child(-n+2) { background: var(--mc-yellow); }
.p3 i:nth-child(-n+3) { background: var(--amber); }
.srow:hover .pingbars i { animation: pingPulse 0.5s ease infinite alternate; }
@keyframes pingPulse { to { opacity: 0.35; } }
.srow-ver { font-size: 0.6rem; font-family: var(--font-pix); letter-spacing: 0.08em; }
.c-green { color: var(--green); }
.srow-open {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(255,107,26,0.4);
  padding: 5px 12px;
  transition: all 0.15s;
}
.srow-open:hover { background: var(--orange); color: #140700; }

/* __PART5__ */

/* ===================================================================
   TIMELINE — server.log
   =================================================================== */
.loglist {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
  border-left: 2px solid var(--line-hard);
  padding-left: 0;
}
.log {
  position: relative;
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  gap: 20px;
  padding: 20px 24px 20px 28px;
  border-bottom: 1px dashed var(--line);
}
.log::before {
  content: '';
  position: absolute;
  left: -5px; top: 30px;
  width: 8px; height: 8px;
  background: var(--bg);
  border: 1px solid var(--orange);
  transform: rotate(45deg);
}
.log:hover { background: rgba(255,107,26,0.04); }
.log-time { font-family: var(--font-pix); font-size: 0.66rem; color: var(--amber); padding-top: 3px; }
.log-lv { font-size: 0.6rem; letter-spacing: 0.08em; padding-top: 4px; }
.lv-info { color: var(--green); }
.lv-warn { color: var(--amber); }
.lv-err  { color: var(--red); }
.lv-ok   { color: var(--cyan); }
.lv-run  { color: #140700; background: var(--green); padding: 3px 8px; justify-self: start; }
.log-body b { display: block; font-size: 0.9rem; color: var(--txt); margin-bottom: 4px; }
.log-body p { font-size: 0.78rem; color: var(--dim); line-height: 1.7; }
.log-now { background: rgba(61,214,140,0.05); }

/* ===================================================================
   TESTIMONIALS — chat log
   =================================================================== */
.chatbox {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-hard);
  padding: 22px 24px;
  font-size: 0.78rem;
  line-height: 1.9;
}
.chat-sep { text-align: center; color: var(--mute); font-size: 0.62rem; letter-spacing: 0.14em; margin: 14px 0; text-transform: uppercase; }
.cline { opacity: 0; transform: translateY(8px); transition: all 0.45s var(--ease); margin-bottom: 10px; color: #d9d2c5; }
.cline.visible { opacity: 1; transform: none; }
.cname { font-weight: 700; }
.rank-owner { color: var(--red); }
.rank-admin { color: var(--mc-green); }
.rank-vip   { color: var(--mc-gold); }
.rank-dev   { color: var(--mc-aqua); }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-lede { color: var(--dim); font-size: 0.95rem; max-width: 48ch; margin-bottom: 22px; }
.rate {
  font-size: 0.74rem;
  color: var(--mute);
  border-left: 2px solid var(--orange);
  padding: 6px 16px;
  margin-bottom: 34px;
  max-width: 52ch;
}
.rate span { color: var(--orange); font-family: var(--font-pix); font-size: 0.56rem; letter-spacing: 0.1em; margin-right: 8px; }
.socials { list-style: none; border-top: 1px solid var(--line-hard); }
.socials li {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, padding-left 0.2s var(--ease);
}
.socials li:hover { background: rgba(255,107,26,0.05); padding-left: 14px; }
.so-name { min-width: 130px; font-size: 0.72rem; color: var(--txt); font-weight: 700; }
.so-name em { color: var(--mute); font-style: normal; font-weight: 400; }
.socials code {
  font-size: 0.82rem;
  color: var(--amber);
  background: var(--panel);
  border: 1px dashed var(--line-hard);
  padding: 4px 12px;
}
.socials a { font-size: 0.82rem; }
.copy-btn {
  margin-left: auto;
  font-size: 0.6rem;
  font-family: var(--font-pix);
  letter-spacing: 0.08em;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-hard);
  padding: 6px 12px;
  transition: all 0.15s;
}
.copy-btn:hover { color: #140700; background: var(--green); border-color: var(--green); }

.cmdform {
  border: 1px solid var(--line-hard);
  background: var(--panel);
  padding: 26px;
}
.cmdform-head {
  font-family: var(--font-pix);
  font-size: 0.62rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.cmdform label { display: block; margin-bottom: 18px; }
.cmdform label span { display: block; font-size: 0.68rem; color: var(--mute); margin-bottom: 7px; }
.cmdform input,
.cmdform textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.cmdform input:focus,
.cmdform textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(255,107,26,0.25), 0 0 18px rgba(255,107,26,0.08);
}
.cmdform ::placeholder { color: var(--mute); opacity: 0.7; }
.cmdform-foot { margin-top: 14px; font-size: 0.66rem; color: var(--mute); text-align: center; }

/* __PART6__ */

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  border-top: 1px solid var(--line-hard);
  background: #070503;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 48px;
  align-items: end;
}
.f-mark {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,230,218,0.22);
  letter-spacing: 0.02em;
  user-select: none;
}
.f-note { margin-top: 16px; font-size: 0.68rem; color: var(--mute); max-width: 46ch; }
.f-nav { display: flex; flex-direction: column; gap: 8px; }
.f-nav a { font-size: 0.76rem; color: var(--dim); }
.f-nav a:hover { color: var(--orange); }

/* ===================================================================
   FAB / TOAST
   =================================================================== */
.fab-stack {
  position: fixed;
  right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 920;
}
#term-btn, #to-top {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(10,8,6,0.9);
  border: 1px solid var(--line-hard);
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s;
}
#term-btn:hover { color: var(--green); border-color: var(--green); box-shadow: 0 0 18px rgba(61,214,140,0.25); }
#to-top { opacity: 0; visibility: hidden; transform: translateY(8px); }
#to-top.visible { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { color: var(--orange); border-color: var(--orange); }

#toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 80px);
  background: var(--panel-2);
  border: 1px solid var(--green);
  border-left-width: 4px;
  color: var(--txt);
  font-size: 0.74rem;
  padding: 12px 22px;
  z-index: 9600;
  opacity: 0;
  transition: all 0.35s var(--ease);
  pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===================================================================
   INTERACTIVE TERMINAL OVERLAY
   =================================================================== */
#term-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 2, 1, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9500;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
#term-overlay.open { display: flex; }
.termwin {
  width: min(760px, 100%);
  height: min(480px, 80vh);
  display: flex; flex-direction: column;
  background: #0b0806;
  border: 1px solid var(--line-hard);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,107,26,0.08);
  animation: termIn 0.22s var(--ease);
}
@keyframes termIn { from { transform: scale(0.96); opacity: 0; } }
.termwin .term-head { cursor: default; }
.term-close {
  margin-left: 12px;
  background: none; border: 1px solid var(--line-hard);
  color: var(--dim);
  width: 24px; height: 24px;
  font-size: 0.8rem; line-height: 1;
  transition: all 0.15s;
}
.term-close:hover { color: var(--red); border-color: var(--red); }
.term-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  font-size: 0.78rem;
  line-height: 1.85;
}
.term-scroll .t-cmd { color: var(--txt); }
.term-scroll .t-cmd::before { content: 'guest@zennjxd:~$ '; color: var(--orange); }
.term-scroll .t-out { color: var(--dim); white-space: pre-wrap; }
.term-scroll .t-ok { color: var(--green); }
.term-scroll .t-err { color: var(--red); }
.term-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,107,26,0.04);
}
.term-prompt { color: var(--orange); font-size: 0.78rem; white-space: nowrap; }
#term-in {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 0.8rem;
}
.term-hint {
  padding: 8px 18px;
  border-top: 1px dashed var(--line);
  font-size: 0.6rem;
  color: var(--mute);
}

/* ===================================================================
   REVEAL ANIMATIONS
   =================================================================== */
.rv, .rv-l, .rv-r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rv-l { transform: translateX(-32px); }
.rv-r { transform: translateX(32px); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.in { opacity: 1 !important; transform: none !important; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .sec { padding: 80px 0; }
  .wrap { padding: 0 20px; }
  .tb-clock, .tb-status, .tb-path, .tb-at { display: none; }
  .plugin-list { grid-template-columns: 1fr; }
  .plugin-list li:nth-child(2n) { border-right: 1px solid var(--line); }
  .plugin-list li:last-child { border-right: none; }
  .srow { grid-template-columns: 52px 1fr; row-gap: 12px; }
  .srow-icon { width: 52px; height: 52px; }
  .srow-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .log { grid-template-columns: 54px 1fr; row-gap: 6px; padding-left: 20px; }
  .log-lv { grid-column: 2; justify-self: start; order: -1; }
  .log-body { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li { border-bottom: 1px solid var(--line); }
  .hero-stats li:nth-child(2n) { border-right: none; }
  .hero-stats li:nth-last-child(-n+2) { border-bottom: none; }
  .factfile div { grid-template-columns: 110px 1fr; }
  .chatbox { padding: 16px 14px; }
  .cmdform { padding: 18px; }
}

/* ===================================================================
   MOTION v2 — decode titles, stagger cascade, sheen, glitch, parallax
   =================================================================== */
.ht-line { will-change: transform, opacity; }

.hero-grid { will-change: transform; }

/* stagger containers — children cascade in when parent enters view */
.rv-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.rv-stagger.in > * { opacity: 1; transform: none; }
.rv-stagger.srow-stagger > * { transform: translateX(-18px); }
.rv-stagger.srow-stagger.in > * { transform: none; }

/* solid button sheen sweep */
.btn-solid { position: relative; overflow: hidden; }
.btn-solid::after {
  content: '';
  position: absolute;
  top: -25%; bottom: -25%; left: -35%;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-22deg) translateX(-180%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn-solid:hover::after { transform: skewX(-22deg) translateX(560%); }

/* project row icon micro-interaction */
.srow-icon svg { transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .srow:hover .srow-icon svg { transform: scale(1.14) rotate(-5deg); }
}

/* footer wordmark RGB-split glitch on hover */
.f-mark { position: relative; }
.f-mark::before,
.f-mark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-text-stroke: 0;
}
.footer:hover .f-mark::before {
  opacity: 0.75;
  color: var(--orange);
  clip-path: inset(0 0 52% 0);
  animation: glitchTop 0.7s steps(2) infinite;
}
.footer:hover .f-mark::after {
  opacity: 0.75;
  color: var(--cyan);
  clip-path: inset(55% 0 0 0);
  animation: glitchBottom 0.8s steps(2) infinite;
}
@keyframes glitchTop {
  0%, 100% { transform: translate(3px, -2px); clip-path: inset(0 0 52% 0); }
  50%      { transform: translate(-4px, 1px); clip-path: inset(18% 0 34% 0); }
}
@keyframes glitchBottom {
  0%, 100% { transform: translate(-3px, 2px); clip-path: inset(55% 0 0 0); }
  50%      { transform: translate(4px, -1px); clip-path: inset(64% 0 12% 0); }
}

/* section tag blinking cursor tail */
.sec-tag::after {
  content: '_';
  color: var(--orange);
  animation: caretBlink 1s steps(1) infinite;
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .rv, .rv-l, .rv-r, .cline { opacity: 1; transform: none; }
  .rv-stagger > * { opacity: 1; transform: none; transition: none; }
  .sec-tag::after { content: ''; }
  .footer:hover .f-mark::before,
  .footer:hover .f-mark::after { display: none; }
}

