/* ═══════════════════════════════════════════════════════
   OPS-VortexVexx — main.css  v8.1
   wavegxz-design · github.com/wavegxz-design
═══════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --g:    #00ff41;
  --gd:   #00c832;
  --gk:   #003b00;
  --g2:   #80ff80;
  --r:    #ff2d2d;
  --cy:   #00cfff;
  --pu:   #a855f7;
  --bg:   #000a00;
  --b2:   #010f01;
  --b3:   #020f02;
  --b4:   #030d03;
  --tx:   #c8ffc8;
  --tx2:  #6aaa6a;
  --brd:  #001a00;
  --brd2: #002800;
  --mo:   'Share Tech Mono', monospace;
  --di:   'Orbitron', sans-serif;
  --vt:   'VT323', monospace;
  --in:   'Inter', sans-serif;
  --ease:    cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.4,0,1,1);
  --ease-out:cubic-bezier(0,0,.2,1);
  --shadow-g: 0 0 30px rgba(0,255,65,.18), 0 0 60px rgba(0,255,65,.06);
  --shadow-r: 0 0 20px rgba(255,45,45,.18);
  --radius: 3px;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}
body {
  background: var(--bg);
  color: var(--g);
  font-family: var(--mo);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ── PAGE LOAD VEIL ───────────────────────────────────── */
#kx-veil {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  transition: opacity .8s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
#kx-veil::after {
  content: 'OPS-VortexVexx';
  font-family: var(--di);
  font-weight: 900;
  font-size: clamp(1.2rem, 5vw, 2.4rem);
  letter-spacing: .22em;
  color: var(--g);
  text-shadow: var(--shadow-g);
  animation: veil-pulse 1.2s ease-in-out infinite;
}
@keyframes veil-pulse {
  0%,100% { opacity: .3; }
  50%      { opacity: 1; }
}
#kx-veil.gone { opacity: 0; }

/* ── SCANLINES ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 997;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,.09) 2px, rgba(0,0,0,.09) 4px
  );
}

/* ── MATRIX CANVAS ────────────────────────────────────── */
#kx-matrix {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: .07;
  pointer-events: none;
  will-change: contents;
}

/* ── PARTICLES ────────────────────────────────────────── */
#kx-particles {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.kx-particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--g);
  opacity: 0;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: .4; }
  90%  { opacity: .2; }
  100% { transform: translateY(-10vh) translateX(var(--dx, 20px)); opacity: 0; }
}

/* ── CURSOR GLOW ──────────────────────────────────────── */
#kx-cg {
  position: fixed;
  pointer-events: none;
  z-index: 996;
  width: 500px; height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .5s;
  background: radial-gradient(
    circle,
    rgba(0,255,65,.055) 0%,
    rgba(0,255,65,.015) 40%,
    transparent 70%
  );
  will-change: left, top;
}
@media (hover: hover) {
  body { cursor: crosshair; }
  #kx-cg.on { opacity: 1; }
}

/* ── SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.vis { opacity: 1; transform: none; }

.kx-fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.kx-fadein.vis { opacity: 1; transform: none; }

/* ── REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .kx-fadein { opacity: 1; transform: none; }
  #kx-veil { display: none; }
}

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  height: 56px;
  background: rgba(0,4,0,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(0,2,0,.99);
  border-color: #002200;
  box-shadow: 0 1px 30px rgba(0,0,0,.7);
}
.nav-logo {
  font-family: var(--di);
  font-weight: 900;
  font-size: .86rem;
  letter-spacing: .18em;
  color: var(--g);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(0,255,65,.45);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo-slash { color: var(--r); }
.nav-logo::after {
  content: attr(data-t);
  position: absolute; inset: 0;
  color: var(--cy);
  opacity: 0;
  animation: logo-glitch 8s 5s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 55%, 0 55%);
  pointer-events: none;
}
@keyframes logo-glitch {
  0%,96%,100% { opacity: 0; transform: none; }
  97% { opacity: .7; transform: translateX(4px); }
  98% { opacity: 0; }
  99% { opacity: .4; transform: translateX(-3px); }
}
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: .63rem;
  color: #3a6a3a;
  text-decoration: none;
  letter-spacing: .1em;
  padding: 0 14px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links a::before {
  content: '> ';
  color: var(--r);
  opacity: .4;
  transition: opacity .25s;
}
.nav-links a.nav-gh::before { display: none; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 1px;
  background: var(--g);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
  box-shadow: 0 0 6px rgba(0,255,65,.5);
}
.nav-links a:hover,
.nav-links a.act { color: var(--g); }
.nav-links a:hover::before,
.nav-links a.act::before { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.act::after { transform: scaleX(1); }
.nav-links a.nav-gh {
  border: 1px solid #002200;
  border-radius: var(--radius);
  margin-left: 8px;
  padding: 0 12px;
  height: 34px;
  font-size: .6rem;
  transition: color .25s, border-color .25s, background .25s;
}
.nav-links a.nav-gh:hover {
  border-color: var(--g);
  background: rgba(0,255,65,.06);
  color: var(--g);
}
.nav-links a.nav-gh::after { display: none; }

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid #002200;
  padding: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s;
  border-radius: var(--radius);
}
.nav-burger:hover { border-color: var(--g); }
.nav-burger span {
  width: 18px; height: 1px;
  background: var(--g);
  display: block;
  transition: all .3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 299;
  background: rgba(0,3,0,.99);
  border-bottom: 1px solid var(--brd);
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: .74rem;
  color: #3a6a3a;
  text-decoration: none;
  letter-spacing: .12em;
  padding: 16px 28px;
  border-bottom: 1px solid #001200;
  transition: color .2s, background .2s, padding-left .2s;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.nav-drawer a::before { content: '> '; color: var(--r); opacity: .4; margin-right: 4px; }
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover,
.nav-drawer a.act {
  color: var(--g);
  background: rgba(0,255,65,.04);
  padding-left: 36px;
}
.nav-drawer a:hover::before,
.nav-drawer a.act::before { opacity: 1; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 340px) {
  .nav-logo { font-size: .74rem; }
  nav { padding: 0 16px; }
}

/* ══════════════════════════════════════════════════════
   TERMINAL BLOCKS
══════════════════════════════════════════════════════ */
.tb {
  background: var(--b2);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.tb:hover {
  border-color: #1a3a1a;
  box-shadow: 0 0 28px rgba(0,255,65,.08);
}
.tb-bar {
  background: #000d00;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #001500;
  min-height: 32px;
}
.tb-dot {
  width: 9px; height: 9px;
  min-width: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }
.tb-title {
  font-size: .58rem;
  color: #2a4a2a;
  margin-left: auto;
  letter-spacing: .1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-body {
  padding: 16px 18px;
  font-size: .74rem;
  line-height: 2;
  color: var(--tx);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.t-prompt { color: var(--g); }
.t-cmd    { color: #80ff80; }
.t-out    { color: #4a7a4a; padding-left: 14px; display: block; }
.t-hi     { color: var(--g); padding-left: 14px; display: block; font-weight: bold; }
.tb-body a {
  color: var(--gd);
  text-decoration: none;
  word-break: break-all;
  transition: color .2s;
}
.tb-body a:hover { color: var(--g); }

/* ══════════════════════════════════════════════════════
   LAYOUT UTILS
══════════════════════════════════════════════════════ */
.w {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section header */
.sh {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.sh-num {
  font-size: .6rem;
  color: var(--r);
  letter-spacing: .22em;
  border: 1px solid rgba(255,45,45,.4);
  padding: 3px 9px;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.sh-title {
  font-family: var(--di);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .16em;
  color: var(--g);
}
.sh-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, #002000, transparent);
}

.sec-intro {
  font-size: .78rem;
  color: var(--tx2);
  line-height: 1.9;
  max-width: 680px;
  margin-bottom: 44px;
}

/* ══════════════════════════════════════════════════════
   AUDIO PLAYER
══════════════════════════════════════════════════════ */
#kx-ap {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 500;
  background: linear-gradient(135deg, rgba(0,5,0,.98), rgba(0,14,0,.98));
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  max-width: 218px;
  transition: border-color .4s, box-shadow .4s;
  box-shadow: 0 4px 28px rgba(0,0,0,.7);
}
#kx-ap.on {
  border-color: var(--g);
  box-shadow: 0 0 28px rgba(0,255,65,.24), 0 0 60px rgba(0,255,65,.06);
}
#kx-ap-name {
  font-family: var(--mo);
  font-size: .55rem;
  color: #2a5a2a;
  letter-spacing: .07em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .4s;
}
#kx-ap.on #kx-ap-name { color: #7aff7a; }
#kx-ap-btn {
  background: none;
  border: 1px solid #002200;
  color: #008a20;
  width: 30px; height: 30px;
  min-width: 30px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .77rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  flex-shrink: 0;
  padding: 0;
}
#kx-ap-btn:hover { border-color: var(--g); color: var(--g); background: rgba(0,255,65,.08); }
#kx-ap.on #kx-ap-btn { border-color: var(--g); color: var(--g); }
#kx-ap-viz {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 15px;
  flex-shrink: 0;
}
#kx-ap-viz s {
  width: 3px;
  background: #002200;
  border-radius: 1px;
  height: 3px;
  display: block;
  text-decoration: none;
  transition: background .4s;
  will-change: height;
}
#kx-ap.on #kx-ap-viz s {
  background: var(--g);
  animation: av .88s ease-in-out infinite;
}
#kx-ap-viz s:nth-child(1) { animation-delay: 0s; }
#kx-ap-viz s:nth-child(2) { animation-delay: .13s; }
#kx-ap-viz s:nth-child(3) { animation-delay: .26s; }
#kx-ap-viz s:nth-child(4) { animation-delay: .13s; }
#kx-ap-viz s:nth-child(5) { animation-delay: 0s; }
@keyframes av {
  0%,100% { height: 3px; }
  22% { height: 13px; }
  55% { height: 6px; }
  77% { height: 15px; }
}
@media (max-width: 480px) {
  #kx-ap { min-width: 0; max-width: 52px; padding: 8px 10px; bottom: 16px; right: 16px; }
  #kx-ap-name, #kx-ap-viz { display: none; }
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid #001500;
  padding: 48px 0 32px;
  text-align: center;
  position: relative;
  z-index: 10;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}
.foot-logo {
  font-family: var(--di);
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .2em;
  color: var(--g);
  text-shadow: 0 0 14px rgba(0,255,65,.3);
}
.foot-tagline {
  font-size: .56rem;
  color: #2a5a2a;
  letter-spacing: .18em;
}
.foot-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  list-style: none;
}
.foot-links a {
  font-size: .6rem;
  color: #2a5a2a;
  text-decoration: none;
  letter-spacing: .09em;
  transition: color .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-links a:hover { color: var(--g); }
.foot-copy {
  font-size: .56rem;
  color: #1a3a1a;
  letter-spacing: .13em;
}

/* ══════════════════════════════════════════════════════
   GLOBAL KEYFRAMES
══════════════════════════════════════════════════════ */
@keyframes fi {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--g); }
  50%      { opacity: .25; box-shadow: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes counter-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
#kx-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 10;
}
#kx-hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,255,65,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .6rem;
  letter-spacing: .28em;
  color: var(--r);
  border: 1px solid rgba(255,45,45,.45);
  padding: 5px 16px;
  margin-bottom: 26px;
  animation: fi 1s ease both;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-badge::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,45,45,.14), transparent);
  animation: shine 2.4s 1.2s infinite;
}
.hero-name {
  font-family: var(--di);
  font-weight: 900;
  font-size: clamp(2.8rem, 11vw, 8rem);
  line-height: .92;
  letter-spacing: .04em;
  color: var(--g);
  text-shadow: 0 0 40px rgba(0,255,65,.5), 0 0 80px rgba(0,255,65,.12);
  animation: fi 1s .25s ease both, name-glitch 10s 4s infinite;
  position: relative;
  display: inline-block;
  will-change: transform;
}
.hero-name::before,
.hero-name::after {
  content: attr(data-t);
  position: absolute; inset: 0;
  font-family: inherit; font-size: inherit;
  font-weight: inherit; letter-spacing: inherit;
  color: transparent;
  pointer-events: none;
}
.hero-name::before {
  color: var(--r);
  animation: glitch-r 10s 4s infinite;
  opacity: 0;
  clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%);
}
.hero-name::after {
  color: var(--cy);
  animation: glitch-c 10s 4.08s infinite;
  opacity: 0;
  clip-path: polygon(0 57%, 100% 57%, 100% 78%, 0 78%);
}
@keyframes name-glitch {
  0%,88%,100% { transform: none; }
  89%  { transform: skew(-1.5deg); }
  91%  { transform: skew(1.5deg) translateX(5px); }
  93%  { transform: none; }
  95%  { transform: skew(-.8deg) translateX(-3px); }
  97%  { transform: none; }
}
@keyframes glitch-r {
  0%,88%,100% { opacity: 0; transform: none; }
  89% { opacity: .8; transform: translateX(-6px); }
  91% { opacity: 0; }
  94% { opacity: .5; transform: translateX(6px); }
  96% { opacity: 0; }
}
@keyframes glitch-c {
  0%,88%,100% { opacity: 0; transform: none; }
  90% { opacity: .7; transform: translateX(6px); }
  92% { opacity: 0; }
  95% { opacity: .4; transform: translateX(-5px); }
  97% { opacity: 0; }
}
.hero-spec {
  font-family: var(--vt);
  font-size: clamp(1rem, 3.5vw, 1.9rem);
  color: var(--tx);
  letter-spacing: .18em;
  margin-top: 16px;
  animation: fi 1s .55s ease both;
}
.hero-typed {
  font-size: .78rem;
  color: #6aff6a;
  letter-spacing: .07em;
  margin-top: 10px;
  min-height: 1.4em;
  animation: fi 1s .85s ease both;
}
.kx-cur {
  display: inline-block;
  width: 8px; height: .95em;
  background: var(--g);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
.hero-div {
  width: 240px; height: 1px;
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--g), transparent);
  box-shadow: 0 0 12px rgba(0,255,65,.3);
  animation: fi 1s 1s ease both;
}
.hero-tag {
  font-size: .74rem;
  color: #5a9f5a;
  max-width: 520px;
  margin: 0 auto;
  line-height: 2.2;
  animation: fi 1s 1.2s ease both;
}
.hero-btns {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fi 1s 1.4s ease both;
}
.hbtn {
  font-family: var(--di);
  font-size: .64rem;
  letter-spacing: .18em;
  padding: 13px 32px;
  border: 1px solid;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color .3s, box-shadow .3s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
}
.hbtn::before {
  content: '';
  position: absolute; inset: 0;
  transform: translateX(-101%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}
.hbtn-p { border-color: var(--g); color: var(--g); }
.hbtn-p::before { background: var(--g); }
.hbtn-p:hover { color: var(--bg); box-shadow: 0 0 32px rgba(0,255,65,.5); }
.hbtn-s { border-color: #2a5a2a; color: #4a8a4a; }
.hbtn-s::before { background: #2a5a2a; }
.hbtn-s:hover { color: var(--bg); box-shadow: 0 0 20px rgba(0,255,65,.2); }
.hbtn:hover::before { transform: translateX(0); }

/* Hero stats */
.hero-stats {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  animation: fi 1s 1.7s ease both;
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,8,0,.6);
  backdrop-filter: blur(10px);
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  gap: 5px;
  flex: 1;
  min-width: 120px;
  position: relative;
}
.hstat-div {
  width: 1px;
  height: 40px;
  background: var(--brd);
  flex-shrink: 0;
}
.hstat-n {
  font-family: var(--di);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--g);
  text-shadow: 0 0 20px rgba(0,255,65,.4);
  line-height: 1;
}
.hstat-l {
  font-size: .58rem;
  color: #3a6a3a;
  letter-spacing: .12em;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .hero-stats { flex-direction: column; }
  .hstat-div { width: 80%; height: 1px; }
  .hstat { padding: 16px 24px; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fi 1s 2s ease both;
  z-index: 2;
}
.hero-scroll span {
  font-size: .5rem;
  letter-spacing: .3em;
  color: #2a4a2a;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--g), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* HOME sections */
section.kx-sec {
  padding: 90px 0;
  border-top: 1px solid #001500;
  position: relative;
  z-index: 10;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .projects-grid { grid-template-columns: 1fr; } }

.proj-card {
  background: var(--b2);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color .35s, box-shadow .35s, transform .3s;
  display: flex;
  flex-direction: column;
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--g), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.proj-card:hover {
  border-color: #1a4a1a;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 30px rgba(0,255,65,.1);
  transform: translateY(-4px);
}
.proj-card:hover::before { opacity: 1; }

/* Card header */
.proj-header {
  padding: 22px 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.proj-icon-wrap {
  width: 44px; height: 44px;
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(0,255,65,.04);
  transition: border-color .3s, background .3s;
}
.proj-card:hover .proj-icon-wrap {
  border-color: var(--g);
  background: rgba(0,255,65,.08);
}
.proj-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.proj-badge {
  font-size: .52rem;
  letter-spacing: .1em;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: var(--radius);
  white-space: nowrap;
}
.badge-red  { color: var(--r); border-color: rgba(255,45,45,.4); background: rgba(255,45,45,.05); }
.badge-cyan { color: var(--cy); border-color: rgba(0,207,255,.4); background: rgba(0,207,255,.05); }
.badge-green{ color: var(--g); border-color: rgba(0,255,65,.4); background: rgba(0,255,65,.05); }
.badge-pu   { color: var(--pu); border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.05); }

/* Card body */
.proj-body {
  padding: 16px 22px 0;
  flex: 1;
}
.proj-name {
  font-family: var(--di);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--g);
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(0,255,65,.2);
}
.proj-desc {
  font-size: .72rem;
  color: var(--tx2);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* Feature tags */
.proj-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.proj-feat {
  font-size: .56rem;
  letter-spacing: .08em;
  color: #4a7a4a;
  border: 1px solid #001a00;
  padding: 3px 8px;
  border-radius: var(--radius);
  transition: color .2s, border-color .2s;
}
.proj-card:hover .proj-feat {
  color: #6aaa6a;
  border-color: #002800;
}

/* Tech stack */
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.proj-tech {
  font-family: var(--mo);
  font-size: .56rem;
  color: #3a6a3a;
  background: rgba(0,255,65,.04);
  border: 1px solid #001500;
  padding: 2px 7px;
  border-radius: var(--radius);
}

/* Card footer */
.proj-footer {
  padding: 16px 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #001200;
  margin-top: 16px;
}
.proj-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  color: #3a6a3a;
}
.proj-stat svg { opacity: .6; }
.proj-actions {
  display: flex;
  gap: 8px;
}
.proj-btn {
  font-family: var(--di);
  font-size: .56rem;
  letter-spacing: .12em;
  padding: 8px 14px;
  border: 1px solid;
  text-decoration: none;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .25s;
  cursor: pointer;
  background: none;
  white-space: nowrap;
  min-height: 36px;
}
.proj-btn-p {
  border-color: var(--g);
  color: var(--g);
}
.proj-btn-p:hover {
  background: var(--g);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0,255,65,.4);
}
.proj-btn-s {
  border-color: #2a5a2a;
  color: #4a8a4a;
}
.proj-btn-s:hover {
  border-color: var(--g);
  color: var(--g);
  background: rgba(0,255,65,.06);
}

/* ══════════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .skills-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
  background: var(--b2);
  border: 1px solid #001500;
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .25s;
  border-radius: var(--radius);
}
.skill-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--g);
  opacity: 0;
  transition: opacity .3s;
  box-shadow: 0 0 8px rgba(0,255,65,.5);
}
.skill-card:hover {
  border-color: var(--g);
  box-shadow: 0 0 26px rgba(0,255,65,.1);
  transform: translateY(-3px);
}
.skill-card:hover::after { opacity: 1; }
.sk-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}
.sk-name {
  font-family: var(--di);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--g);
  margin-bottom: 8px;
}
.sk-desc {
  font-size: .67rem;
  color: #4a7a4a;
  line-height: 1.7;
}
.sk-bar {
  margin-top: 14px;
  height: 2px;
  background: #001500;
  overflow: hidden;
  border-radius: 2px;
}
.sk-fill {
  height: 100%;
  background: linear-gradient(90deg, #003a00, var(--g));
  box-shadow: 0 0 6px rgba(0,255,65,.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.skill-card.vis .sk-fill { transform: scaleX(var(--pct, 1)); }

/* ══════════════════════════════════════════════════════
   CTF LIST
══════════════════════════════════════════════════════ */
.ctf-list { display: flex; flex-direction: column; gap: 12px; }
.ctf-row {
  background: var(--b2);
  border: 1px solid #001500;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  transition: border-color .3s, box-shadow .3s, transform .2s;
  border-radius: var(--radius);
}
@media (max-width: 480px) {
  .ctf-row { grid-template-columns: 44px 1fr; }
  .ctf-tags { display: none; }
}
.ctf-row:hover {
  border-color: #2a5a2a;
  box-shadow: 0 0 20px rgba(0,255,65,.08);
  transform: translateX(5px);
}
.ctf-num {
  font-family: var(--vt);
  font-size: 1.9rem;
  color: #003300;
  line-height: 1;
  transition: color .2s;
}
.ctf-row:hover .ctf-num { color: #005500; }
.ctf-name {
  font-family: var(--di);
  font-size: .72rem;
  letter-spacing: .09em;
  color: var(--g);
  margin-bottom: 4px;
}
.ctf-sub { font-size: .62rem; color: #4a7a4a; }
.ctf-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  font-size: .55rem;
  letter-spacing: .09em;
  border: 1px solid #002200;
  color: #4a7a4a;
  padding: 2px 7px;
  transition: all .25s;
  border-radius: var(--radius);
}
.ctf-row:hover .tag { border-color: #2a5a2a; color: #6aff6a; }
.tag-hot { border-color: rgba(255,45,45,.4) !important; color: var(--r) !important; }

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   COPY TOAST
══════════════════════════════════════════════════════ */
.kx-toast {
  position: fixed;
  bottom: 80px; right: 20px;
  z-index: 600;
  background: rgba(0,255,65,.12);
  border: 1px solid rgba(0,255,65,.4);
  color: var(--g);
  font-size: .65rem;
  letter-spacing: .1em;
  padding: 10px 18px;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  backdrop-filter: blur(10px);
}
.kx-toast.show { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  section.kx-sec { padding: 64px 0; }
  .sh { margin-bottom: 32px; }
  .hero-btns { gap: 10px; }
  .hbtn { padding: 11px 22px; font-size: .6rem; }
  .proj-footer { flex-direction: column; align-items: flex-start; }
  .proj-actions { width: 100%; }
  .proj-btn { flex: 1; justify-content: center; }
}
@media (max-width: 360px) {
  .hero-name { font-size: 2.4rem; }
  .w { padding: 0 16px; }
}


/* ══════════════════════════════════════════════════════
   SUBPAGE STYLES (tools · intel · resources)
   Ported from v7, adapted for v8 design tokens
══════════════════════════════════════════════════════ */

.ph {
  padding: 108px 24px 52px;
  text-align: center;
  position: relative;
  z-index: 10;
}
.ph-badge {
  display: inline-block;
  font-size: .59rem;
  letter-spacing: .28em;
  color: var(--r);
  border: 1px solid rgba(255,45,45,.45);
  padding: 4px 16px;
  margin-bottom: 16px;
  animation: fi .7s ease both;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.ph-badge::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,45,45,.12), transparent);
  animation: shine 2.8s 1s infinite;
}
.ph-title {
  font-family: var(--di);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 5rem);
  color: var(--g);
  letter-spacing: .07em;
  text-shadow: 0 0 36px rgba(0,255,65,.5), 0 0 72px rgba(0,255,65,.1);
  animation: fi .7s .15s ease both;
  line-height: 1;
}
.ph-sub {
  font-family: var(--vt);
  font-size: 1.2rem;
  color: #4a7a4a;
  letter-spacing: .14em;
  margin-top: 12px;
  animation: fi .7s .3s ease both;
}

.w-wide {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}
.kx-sep {
  text-align: center;
  padding: 0 0 48px;
  font-size: .58rem;
  color: #1a3a1a;
  letter-spacing: .28em;
  position: relative;
  z-index: 10;
}
.kx-fadein {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.kx-fadein.vis { opacity: 1; transform: none; }

/* ══ TOOLS PAGE ══════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 18px;
  padding: 0 0 72px;
  position: relative;
  z-index: 10;
}
@media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr; gap: 12px; } }

.tool-card {
  background: linear-gradient(145deg, #010f01, #020f02, #010a01);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .3s, border-color .35s, box-shadow .4s;
  display: flex;
  flex-direction: column;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,.85), transparent);
  transition: left .6s var(--ease);
}
.tool-card:hover::before { left: 140%; }
.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-bottom: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: width .3s, height .3s, border-color .3s;
}
.tool-card:hover::after { width: 28px; height: 28px; border-color: var(--g); }
.tool-card:hover {
  border-color: rgba(0,255,65,.45);
  box-shadow: 0 0 0 1px rgba(0,255,65,.07), 0 10px 40px rgba(0,0,0,.55),
              inset 0 0 40px rgba(0,255,65,.025);
  transform: translateY(-3px);
}
.tool-top {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--brd);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.tool-icon { font-size: 2rem; display: block; margin-bottom: 9px;
             filter: drop-shadow(0 0 6px rgba(0,255,65,.3)); }
.tool-name {
  font-family: var(--di); font-size: .88rem; letter-spacing: .12em;
  color: var(--g); margin-bottom: 7px;
  text-shadow: 0 0 8px rgba(0,255,65,.25);
}
.tool-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.badge { font-size: .54rem; letter-spacing: .09em; padding: 2px 8px; border: 1px solid;
         border-radius: var(--radius); }
.badge-v { border-color: rgba(0,255,65,.5); color: var(--g); background: rgba(0,255,65,.06); }
.badge-l { border-color: #004500; color: #6aff6a; }
.badge-m { border-color: #4a0000; color: #ff8080; }
.tool-desc { font-size: .69rem; color: #4a7a4a; line-height: 1.75; max-width: 300px; }
.tool-status { flex-shrink: 0; }
.status-dot { display: inline-flex; align-items: center; gap: 5px;
              font-size: .57rem; color: #2a5a2a; letter-spacing: .09em; }
.status-led { width: 7px; height: 7px; min-width: 7px; border-radius: 50%;
              background: var(--g); box-shadow: 0 0 7px var(--g);
              animation: pulse 2.3s infinite; }
.tool-feats {
  padding: 10px 20px;
  border-bottom: 1px solid var(--brd);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.feat-item { font-size: .62rem; color: #3a6a3a; padding: 3px 0; transition: color .25s; }
.feat-item::before { content: "→ "; color: #004800; }
.tool-card:hover .feat-item { color: #4a8a4a; }
.tool-term { border: none; border-top: 1px solid var(--brd); border-radius: 0; background: transparent; }
.tool-term:hover { box-shadow: none; }
.tool-actions {
  padding: 11px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}
.install-bar {
  flex: 1; min-width: 120px;
  background: #000900; border: 1px solid #002200; border-radius: var(--radius);
  display: flex; align-items: center; overflow: hidden;
  cursor: pointer; transition: border-color .25s, box-shadow .25s;
}
.install-bar:hover { border-color: #2a6a2a; box-shadow: 0 0 12px rgba(0,255,65,.1); }
.install-cmd {
  font-family: var(--mo); font-size: .59rem; color: #3a6a3a;
  padding: 7px 8px; flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none; transition: color .2s;
}
.install-bar:hover .install-cmd { color: var(--g); }
.copy-btn {
  background: none; border: none; border-left: 1px solid #002200;
  color: #2a5a2a; cursor: pointer; padding: 0 12px;
  font-size: .72rem; min-height: 36px; min-width: 36px;
  transition: all .2s; flex-shrink: 0;
}
.copy-btn:hover { color: var(--g); background: rgba(0,255,65,.08); }
.gh-btn {
  font-size: .62rem; letter-spacing: .09em; padding: 9px 16px;
  border: 1px solid var(--g); color: var(--g); text-decoration: none;
  position: relative; overflow: hidden; border-radius: var(--radius);
  transition: color .3s, box-shadow .3s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
.gh-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--g); transform: translateX(-101%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.gh-btn:hover { color: var(--bg); box-shadow: 0 0 18px rgba(0,255,65,.4); }
.gh-btn:hover::before { transform: translateX(0); }
.gh-btn span { position: relative; z-index: 1; }
@media (max-width: 480px) {
  .tool-top { flex-wrap: wrap; }
  .tool-desc { max-width: 100%; }
  .tool-actions { flex-direction: column; align-items: stretch; }
  .gh-btn { justify-content: center; }
  .tool-feats { grid-template-columns: 1fr; }
}

/* ══ INTEL PAGE ══════════════════════════════════════ */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
  padding: 0 0 72px;
  position: relative;
  z-index: 10;
}
@media (max-width: 500px) { .intel-grid { grid-template-columns: 1fr; gap: 10px; } }

.intel-card {
  background: linear-gradient(145deg, #010f01, #020f02);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .35s, box-shadow .3s, transform .25s;
}
.intel-card:hover {
  border-color: #1a3a1a;
  box-shadow: 0 4px 28px rgba(0,0,0,.45);
  transform: translateY(-2px);
}
.intel-head {
  padding: 15px 17px;
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-left: 2px solid;
}
.intel-ico { font-size: 1.65rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.intel-cat { font-family: var(--di); font-size: .68rem; letter-spacing: .13em;
             margin-bottom: 6px; font-weight: 700; }
.intel-sum { font-size: .66rem; color: #4a7a4a; line-height: 1.72; }
.intel-items { padding: 2px 0; }
.intel-item {
  padding: 9px 17px;
  border-bottom: 1px solid rgba(0,35,0,.6);
  transition: background .2s;
}
.intel-item:last-child { border-bottom: none; }
.intel-item:hover { background: rgba(0,255,65,.022); }
.intel-item-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.intel-link {
  font-size: .7rem; color: var(--gd); text-decoration: none;
  letter-spacing: .05em; flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s, text-shadow .2s;
  min-height: 32px; display: flex; align-items: center;
}
.intel-link:hover { color: var(--g); text-shadow: 0 0 8px rgba(0,255,65,.4); }
.intel-tag {
  font-size: .51rem; letter-spacing: .1em;
  border: 1px solid #002500; color: #2a5a2a; padding: 1px 6px;
  border-radius: var(--radius); flex-shrink: 0; white-space: nowrap;
  transition: all .2s;
}
.intel-item:hover .intel-tag { border-color: #3a7a3a; color: #5aaa5a; }
.intel-desc { font-size: .62rem; color: #2a5a2a; line-height: 1.55; transition: color .2s; }
.intel-item:hover .intel-desc { color: #4a8a4a; }

/* ══ RESOURCES PAGE ══════════════════════════════════ */
.res-stats {
  display: flex; gap: 0; margin-bottom: 28px;
  border: 1px solid var(--brd); background: var(--b2);
  border-radius: var(--radius); overflow: hidden;
  position: relative; z-index: 10;
  animation: fi .5s ease both;
}
.res-stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 14px 10px; border-right: 1px solid var(--brd);
  transition: background .2s;
}
.res-stat:last-child { border-right: none; }
.res-stat:hover { background: rgba(0,255,65,.025); }
.res-stat-n {
  font-family: var(--di); font-size: 1.1rem; color: var(--g);
  letter-spacing: .06em; text-shadow: 0 0 10px rgba(0,255,65,.3);
}
.res-stat-l { font-size: .52rem; color: #2a5a2a; letter-spacing: .14em; }
.res-search-wrap {
  position: relative; z-index: 10; margin-bottom: 28px;
  animation: fi .55s .05s ease both;
}
.res-search {
  width: 100%; background: var(--b2); border: 1px solid var(--brd2);
  border-radius: var(--radius); padding: 11px 100px 11px 40px;
  font-family: var(--mo); font-size: .73rem; color: var(--g);
  letter-spacing: .06em; outline: none; -webkit-appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.res-search:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 1px rgba(0,255,65,.15), 0 0 20px rgba(0,255,65,.07);
}
.res-search::placeholder { color: #1a3a1a; }
.res-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #2a5a2a; font-size: .85rem; pointer-events: none; user-select: none;
}
.res-search-count {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: .57rem; color: #2a4a2a; letter-spacing: .1em; white-space: nowrap;
}
.res-section { margin-bottom: 36px; position: relative; z-index: 10;
               animation: fi .6s ease both; }
.res-section:nth-child(1){animation-delay:.06s} .res-section:nth-child(2){animation-delay:.11s}
.res-section:nth-child(3){animation-delay:.16s} .res-section:nth-child(4){animation-delay:.21s}
.res-section:nth-child(5){animation-delay:.26s} .res-section:nth-child(6){animation-delay:.31s}

.res-header {
  display: flex; align-items: center; gap: 13px; padding: 12px 18px;
  background: linear-gradient(135deg, #010f01, #020f02);
  border: 1px solid var(--brd2); border-bottom: none;
  border-left: 3px solid var(--g);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative; overflow: hidden; cursor: pointer;
  transition: background .2s;
}
.res-header:hover { background: rgba(0,255,65,.02); }
.res-icon { font-size: 1.25rem; flex-shrink: 0; }
.res-title { font-family: var(--di); font-size: .72rem; letter-spacing: .13em;
             color: var(--g); text-shadow: 0 0 8px rgba(0,255,65,.25); flex-shrink: 0; }
.res-hdesc { font-size: .63rem; color: #3a6a3a; letter-spacing: .05em;
             flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-count {
  font-size: .56rem; color: #2a5a2a; letter-spacing: .1em;
  border: 1px solid #002500; padding: 2px 8px; border-radius: var(--radius);
  flex-shrink: 0; transition: all .2s;
}
.res-header:hover .res-count { border-color: #3a7a3a; color: #5aaa5a; }
.res-list {
  border: 1px solid var(--brd); border-top: none;
  background: var(--b2); overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}
.res-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 16px; padding: 10px 18px;
  border-bottom: 1px solid rgba(0,25,0,.7);
  border-left: 2px solid transparent;
  transition: background .18s, border-left-color .18s;
}
.res-item:last-child { border-bottom: none; }
.res-item:hover { background: rgba(0,255,65,.022); border-left-color: var(--g); }
.res-item-name {
  font-family: var(--mo); font-size: .71rem; color: var(--gd);
  letter-spacing: .04em; margin-bottom: 3px;
  transition: color .18s; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.res-item:hover .res-item-name { color: var(--g); }
.res-item-desc { font-size: .61rem; color: #2a5a2a; line-height: 1.52; transition: color .18s; }
.res-item:hover .res-item-desc { color: #3a7a3a; }
.res-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.res-tag {
  font-size: .51rem; letter-spacing: .1em; border: 1px solid #002200;
  color: #2a5a2a; padding: 1px 7px; border-radius: var(--radius);
  white-space: nowrap; transition: all .18s;
}
.res-item:hover .res-tag { border-color: #3a7a3a; color: #5aaa5a; }
.res-link {
  font-size: .57rem; color: #1a3a1a; letter-spacing: .09em; text-decoration: none;
  padding: 4px 10px; border: 1px solid var(--brd); border-radius: var(--radius);
  min-height: 28px; display: inline-flex; align-items: center;
  transition: all .2s; white-space: nowrap; position: relative; overflow: hidden;
}
.res-link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--g); transform: translateX(-101%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.res-link:hover { color: var(--bg); border-color: var(--g); box-shadow: 0 0 10px rgba(0,255,65,.2); }
.res-link:hover::before { transform: translateX(0); }
.res-link span { position: relative; z-index: 1; }
.res-item.kx-hidden { display: none; }
.res-section.kx-empty { display: none; }
@media (max-width: 500px) {
  .res-item { grid-template-columns: 1fr; gap: 8px; }
  .res-item-right { flex-direction: row; align-items: center; }
  .res-hdesc { display: none; }
  .res-stats { flex-wrap: wrap; }
  .res-stat { flex: 1 1 50%; border-bottom: 1px solid var(--brd); }
}

/* ══ CONTACT CARDS ═══════════════════════════════════ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--b2);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--g);
  transform: scaleY(0);
  transition: transform .3s var(--ease);
  transform-origin: bottom;
}
.contact-card:hover::before { transform: scaleY(1); }
.contact-card:hover {
  border-color: var(--brd2);
  box-shadow: 0 4px 24px rgba(0,255,65,.08);
  transform: translateX(4px);
  background: var(--b3);
}
.contact-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--brd2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--g);
  flex-shrink: 0;
  transition: border-color .25s, background .25s;
}
.contact-card:hover .contact-icon {
  border-color: var(--g);
  background: rgba(0,255,65,.08);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.contact-label {
  font-size: .58rem;
  color: #3a6a3a;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-val {
  font-size: .72rem;
  color: var(--tx);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
.contact-card:hover .contact-val { color: var(--g); }
.contact-arrow {
  color: #2a5a2a;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.contact-card:hover .contact-arrow {
  color: var(--g);
  transform: translateX(3px);
}
@media (max-width: 560px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ══ INTEL LIVE NEWS FEED ════════════════════════════ */


.intel-news-wrap {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #010f01, #020f02);
  border: 1px solid #001800;
  border-top: 2px solid #ff2d2d;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4px;
}
.intel-news-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #001800;
  background: rgba(255,45,45,.04);
}
.intel-news-icon { font-size: 1.4rem; flex-shrink: 0; }
.intel-news-title {
  font-family: var(--di);
  font-size: .76rem;
  letter-spacing: .15em;
  color: var(--r);
  text-shadow: 0 0 12px rgba(255,45,45,.3);
}
.intel-news-sub {
  font-size: .62rem;
  color: #4a6a4a;
  margin-top: 3px;
  letter-spacing: .06em;
}
.intel-news-badge {
  margin-left: auto;
  font-size: .55rem;
  letter-spacing: .2em;
  color: var(--r);
  border: 1px solid rgba(255,45,45,.5);
  padding: 3px 10px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.intel-news-badge::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--r);
  box-shadow: 0 0 6px var(--r);
  animation: pulse 1.4s infinite;
}
.intel-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 800px) { .intel-news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .intel-news-grid { grid-template-columns: 1fr; } }

.intel-news-col {
  border-right: 1px solid #001800;
  padding: 12px 0;
}
.intel-news-col:last-child,
.intel-news-col:nth-child(3) { border-right: none; }
.intel-news-col-head {
  font-family: var(--di);
  font-size: .6rem;
  letter-spacing: .14em;
  padding: 0 14px 10px;
  border-bottom: 1px solid #001200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.intel-news-col-tag {
  font-size: .5rem;
  letter-spacing: .1em;
  border: 1px solid;
  padding: 1px 6px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.intel-news-items { padding: 4px 0; }
.intel-news-item {
  display: block;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0,20,0,.8);
  text-decoration: none;
  transition: background .18s;
}
.intel-news-item:last-child { border-bottom: none; }
.intel-news-item:hover { background: rgba(0,255,65,.025); }
.intel-news-item-title {
  font-size: .66rem;
  color: var(--tx);
  line-height: 1.5;
  transition: color .18s;
}
.intel-news-item:hover .intel-news-item-title { color: var(--g); }
.intel-news-item-time {
  font-size: .56rem;
  color: #2a5a2a;
  margin-top: 3px;
  letter-spacing: .06em;
}
/* Loading dots */
.intel-news-loading {
  display: flex;
  align-items: center;
  padding: 16px 14px;
}
.intel-news-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2a5a2a;
  margin-right: 4px;
  animation: intel-dot 1.2s ease-in-out infinite;
}
.intel-news-dot:nth-child(2) { animation-delay: .2s; }
.intel-news-dot:nth-child(3) { animation-delay: .4s; }
@keyframes intel-dot {
  0%,80%,100% { transform: scale(.6); opacity: .3; }
  40%         { transform: scale(1);   opacity: 1; }
}
.intel-news-err { padding: 12px 14px; }
