/* ─────────────────────────────────────────────────────────────
   alex burst — detection engineer portfolio
   ───────────────────────────────────────────────────────────── */

:root{
  --bg: #06080b;
  --bg-2: #0a0e14;
  --surface: #0c1219;
  --surface-2: #11171f;
  --border: #1a2230;
  --border-bright: #2a3548;
  --text: #d6deeb;
  --text-dim: #7a8aa3;
  --text-faint: #4a5870;

  /* accents — same chroma, varied hue */
  --primary: oklch(0.88 0.18 155);          /* neon green */
  --primary-dim: oklch(0.55 0.14 155);
  --magenta: oklch(0.72 0.22 340);
  --cyan: oklch(0.85 0.14 220);
  --amber: oklch(0.82 0.16 75);
  --red: oklch(0.70 0.22 25);

  --primary-glow: color-mix(in oklch, var(--primary) 35%, transparent);

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;

  --density-pad: 28px;
  --density-gap: 18px;

  --scanline-opacity: 0.04;
  --motion-scale: 1;
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body{
  min-height: 100vh;
  overflow-x: hidden;
}

/* background grid + noise + scanlines */
.bg-fx{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-fx::before{
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--primary) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.6;
}
.bg-fx::after{
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,var(--scanline-opacity)) 3px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.noise{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── shared chrome ───────────────────────────────────────── */

.container{
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

a{ color: var(--primary); text-decoration: none; }
a:hover{ text-shadow: 0 0 12px var(--primary-glow); }

::selection{ background: var(--primary); color: var(--bg); }

button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* terminal-window frame, used for several sections */
.tw{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.tw__bar{
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  font-size: 11px;
  color: var(--text-dim);
}
.tw__dots{ display: flex; gap: 6px; }
.tw__dots span{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-bright);
}
.tw__dots span:nth-child(1){ background: oklch(0.55 0.18 25); }
.tw__dots span:nth-child(2){ background: oklch(0.70 0.16 75); }
.tw__dots span:nth-child(3){ background: oklch(0.65 0.16 155); }
.tw__title{ flex: 1; text-align: center; letter-spacing: 0.04em; }
.tw__meta{ color: var(--text-faint); }
.tw__body{ padding: 20px; }

/* corner brackets — for cyberpunk feel */
.brackets{ position: relative; }
.brackets::before, .brackets::after,
.brackets > .br-tr, .brackets > .br-bl{
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--primary); border-style: solid; border-width: 0;
  pointer-events: none;
}
.brackets::before{ top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.brackets::after{ bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.brackets > .br-tr{ top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.brackets > .br-bl{ bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }

/* labels */
.kicker{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}
.kicker::before{
  content: ""; width: 8px; height: 8px; background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.section-num{
  font-size: 11px; color: var(--text-faint); letter-spacing: 0.2em;
}

section{
  padding: var(--density-pad) 0;
  position: relative; z-index: 2;
}

/* ─── nav ─────────────────────────────────────────────────── */

.nav{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  max-width: 1280px; margin: 0 auto;
}
.brand{
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.brand__logo{
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  color: var(--primary);
  font-size: 13px; line-height: 1;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 25%, transparent) inset,
              0 0 18px var(--primary-glow);
  position: relative;
}
.brand__logo::after{
  content: ""; position: absolute; inset: -4px; border: 1px solid var(--border-bright);
  pointer-events: none;
}
.brand__status{ color: var(--text-dim); font-weight: 400; }
.brand__status .dot{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); margin-right: 6px;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.4; }
}
.nav__links{
  display: flex; gap: 24px; font-size: 12px;
  color: var(--text-dim);
}
.nav__links a{
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
}
.nav__links a::before{
  content: "// "; color: var(--text-faint);
}
.nav__links a:hover{ color: var(--primary); }
.nav__cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px; letter-spacing: 0.06em;
  position: relative;
  background: color-mix(in oklch, var(--primary) 6%, transparent);
}
.nav__cta:hover{
  background: color-mix(in oklch, var(--primary) 14%, transparent);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ─── hero ───────────────────────────────────────────────── */

.hero{
  padding: 80px 0 64px;
  position: relative;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
}

.hero__left{
  display: flex; flex-direction: column; gap: 28px;
}
.hero__id{
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.1em;
}
.hero__id b{ color: var(--text-dim); font-weight: 400; }
.hero__id span{ color: var(--text); font-weight: 500; }

.hero__name{
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 30px color-mix(in oklch, var(--primary) 18%, transparent);
}
.hero__name span{
  color: var(--primary);
  display: inline-block;
}
.hero__name .glitch{
  position: relative;
  display: inline-block;
}
.hero__name .glitch::before,
.hero__name .glitch::after{
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none;
}
.hero__name .glitch::before{
  color: var(--magenta);
  transform: translate(-2px, 0);
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-a calc(4s / var(--motion-scale)) steps(1) infinite;
}
.hero__name .glitch::after{
  color: var(--cyan);
  transform: translate(2px, 0);
  mix-blend-mode: screen;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-b calc(5s / var(--motion-scale)) steps(1) infinite;
}
@keyframes glitch-a{
  0%, 92%, 100%{ transform: translate(0,0); opacity:0;}
  93%{ transform: translate(-3px, -1px); opacity: 0.8;}
  94%{ transform: translate(2px, 1px); opacity: 0.8;}
  95%{ transform: translate(-1px, 0); opacity: 0.8;}
  96%{ opacity: 0;}
}
@keyframes glitch-b{
  0%, 88%, 100%{ transform: translate(0,0); opacity: 0;}
  89%{ transform: translate(3px, 1px); opacity: 0.7;}
  91%{ transform: translate(-2px, 0); opacity: 0.7;}
  92%{ opacity: 0;}
}

.hero__role{
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.6;
}
.hero__role b{
  color: var(--text);
  font-weight: 500;
}

.hero__stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.hero__stat{
  padding: 14px 16px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
}
.hero__stat b{
  font-size: 22px; color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 14px var(--primary-glow);
}
.hero__stat span{
  font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.14em; text-transform: uppercase;
}

.hero__cta{
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  transition: all .2s ease;
}
.btn--primary{
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}
.btn--primary:hover{
  background: var(--primary); color: var(--bg);
  box-shadow: 0 0 24px var(--primary-glow);
}
.btn:hover{ border-color: var(--primary); color: var(--primary); }
.btn .arrow{ transition: transform .2s; }
.btn:hover .arrow{ transform: translateX(3px); }

/* hero terminal */
.hero__term{
  display: flex; flex-direction: column;
  min-height: 380px;
}
.term-body{
  flex: 1;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.term-line{
  display: flex; gap: 10px;
  color: var(--text-dim);
  white-space: pre-wrap;
}
.term-line .prompt{
  color: var(--primary);
  flex-shrink: 0;
}
.term-line .out{ color: var(--text-dim); }
.term-line .key{ color: var(--cyan); }
.term-line .val{ color: var(--text); }
.term-line .warn{ color: var(--amber); }
.term-line .ok{ color: var(--primary); }
.cursor{
  display: inline-block; width: 8px; height: 14px;
  background: var(--primary);
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 8px var(--primary-glow);
}
@keyframes blink{ 50%{ opacity: 0;} }

/* ─── section headers ─────────────────────────────────────── */

.section-head{
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.section-head h2{
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1;
}
.section-head h2 .punc{ color: var(--primary); }
.section-head__sub{
  font-size: 12px; color: var(--text-dim);
  text-align: right;
  max-width: 320px;
}

/* ─── about ───────────────────────────────────────────────── */

.about__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
@media (max-width: 880px){ .about__grid{ grid-template-columns: 1fr; } }

.about__body{
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.about__body p{ margin: 0 0 18px; }
.about__body p:last-child{ margin: 0; }
.about__body .hi{
  color: var(--primary);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
  padding: 0 4px;
}

.about__sidecard{
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.about__row{
  display: grid; grid-template-columns: 90px 1fr;
  font-size: 12px; align-items: baseline;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
}
.about__row:last-child{ border-bottom: 0; padding-bottom: 0; }
.about__row b{ color: var(--text-faint); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.about__row span{ color: var(--text); }
.about__row .badge{
  display: inline-block; padding: 2px 8px; margin-right: 6px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  font-size: 11px;
}

/* ─── detections ──────────────────────────────────────────── */

.det__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 880px){ .det__grid{ grid-template-columns: 1fr; } }

.det-card{
  position: relative;
  display: flex; flex-direction: column;
}
.det-card__head{
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.det-card__sev{
  font-size: 10px; letter-spacing: 0.14em;
  padding: 3px 7px; border: 1px solid;
  text-transform: uppercase;
}
.det-card__sev.high{ color: var(--red); border-color: color-mix(in oklch, var(--red) 50%, transparent); background: color-mix(in oklch, var(--red) 8%, transparent); }
.det-card__sev.med{ color: var(--amber); border-color: color-mix(in oklch, var(--amber) 50%, transparent); background: color-mix(in oklch, var(--amber) 8%, transparent); }
.det-card__sev.low{ color: var(--cyan); border-color: color-mix(in oklch, var(--cyan) 50%, transparent); background: color-mix(in oklch, var(--cyan) 8%, transparent); }
.det-card__title{
  font-size: 13px; font-weight: 600; color: var(--text);
  flex: 1;
}
.det-card__id{
  font-size: 10px; color: var(--text-faint); letter-spacing: 0.1em;
}
.det-card__body{
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
}
.det-card__code{
  font-size: 11.5px;
  color: var(--text-dim);
  overflow: hidden;
  position: relative;
  max-height: 140px;
  transition: max-height .3s ease;
}
.det-card:hover .det-card__code{ max-height: 320px; }
.det-card__code pre{
  margin: 0;
  font-family: var(--mono);
  white-space: pre;
}
.det-card__code .k{ color: var(--magenta); }
.det-card__code .s{ color: var(--primary); }
.det-card__code .c{ color: var(--text-faint); font-style: italic; }
.det-card__code .n{ color: var(--cyan); }
.det-card__foot{
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.det-card__tags{ display: flex; gap: 8px; }
.det-card__tags span{ color: var(--text-dim); }
.det-card__expand{
  color: var(--primary); cursor: pointer;
  display: none;
}

/* ─── projects ────────────────────────────────────────────── */

.proj__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 980px){ .proj__grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .proj__grid{ grid-template-columns: 1fr; } }

.proj-card{
  position: relative;
  background: var(--surface);
  padding: 24px;
  min-height: 280px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background .25s ease;
}
.proj-card:hover{
  background: var(--surface-2);
}
.proj-card::before{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, transparent 40%);
  opacity: 0; transition: opacity .25s ease;
  mix-blend-mode: overlay; pointer-events: none;
}
.proj-card:hover::before{ opacity: 0.07; }

.proj-card__num{
  font-size: 11px; color: var(--text-faint); letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.proj-card__title{
  font-size: 18px; font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.proj-card__sub{
  font-size: 11px; color: var(--primary);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.proj-card__desc{
  font-size: 12px; color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.proj-card__hover{
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  opacity: 0; transform: translateY(8px);
  transition: all .25s ease;
}
.proj-card:hover .proj-card__hover{ opacity: 1; transform: translateY(0); }
.proj-card__hover .go{ color: var(--primary); }

.proj-card__stack{
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px;
  font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.08em;
}
.proj-card__stack span{
  padding: 2px 7px;
  border: 1px solid var(--border-bright);
}

/* large featured card spans 2 cols on first row */
.proj-card.feat{
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
@media (max-width: 980px){ .proj-card.feat{ grid-column: span 2; } }
@media (max-width: 640px){ .proj-card.feat{ grid-column: span 1; } }
.proj-card.feat .proj-card__title{ font-size: 24px; }

/* ─── experience timeline ─────────────────────────────────── */

.xp{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
@media (max-width: 880px){ .xp{ grid-template-columns: 1fr; } }

.xp__list{
  display: flex; flex-direction: column;
  position: relative;
}
.xp__list::before{
  content: ""; position: absolute;
  left: 4px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  opacity: 0.4;
}
.xp-item{
  padding: 18px 0 18px 32px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.xp-item:last-child{ border-bottom: 0; }
.xp-item::before{
  content: ""; position: absolute;
  left: 0; top: 24px;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.xp-item:hover::before{ background: var(--primary); }
.xp-item__head{
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 4px;
}
.xp-item__role{
  font-size: 15px; font-weight: 600; color: var(--text);
}
.xp-item__co{
  font-size: 12px; color: var(--primary);
  letter-spacing: 0.06em;
}
.xp-item__date{
  font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em;
}
.xp-item__desc{
  font-size: 12px; color: var(--text-dim);
  line-height: 1.65;
}
.xp-item__desc li{
  list-style: none;
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}
.xp-item__desc li::before{
  content: "└"; position: absolute; left: 0; color: var(--text-faint);
}
.xp-item__desc ul{ margin: 8px 0 0; padding: 0; }

.xp__certs{
  padding: 24px;
}
.xp__certs h3{
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 16px;
}
.cert{
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}
.cert:last-child{ border-bottom: 0; }
.cert__seal{
  width: 36px; height: 36px;
  border: 1px solid var(--primary);
  display: grid; place-items: center;
  color: var(--primary);
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 3px var(--bg), 0 0 12px var(--primary-glow);
}
.cert__name{ color: var(--text); font-weight: 500; }
.cert__org{ color: var(--text-faint); font-size: 11px; }

/* vertical auto-scroll carousel */
.xp__certs{
  display: flex; flex-direction: column;
  align-self: start;
}
.cert-carousel{
  height: 480px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.cert-track{
  display: flex; flex-direction: column;
  animation: cert-scroll 38s linear infinite;
  will-change: transform;
}
.cert-carousel:hover .cert-track{ animation-play-state: paused; }
.cert-track .cert{ border-bottom: 1px dashed var(--border); }
@keyframes cert-scroll{
  from{ transform: translateY(0); }
  to  { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .cert-track{ animation: none; }
  .cert-carousel{ overflow: auto; }
}

/* ─── skills + log feed + graph ───────────────────────────── */

.skills__grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}
@media (max-width: 980px){ .skills__grid{ grid-template-columns: 1fr; } }

.skills__col{
  display: flex; flex-direction: column; gap: 18px;
}

.tools{ padding: 22px; }
.tools h3{
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 14px;
  display: flex; justify-content: space-between;
}
.tools h3 span{ color: var(--primary); }
.tools__list{
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tools__list span{
  padding: 5px 10px;
  border: 1px solid var(--border-bright);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  transition: all .15s ease;
}
.tools__list span:hover{
  color: var(--primary); border-color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}
.tools__list span.hi{
  color: var(--text); border-color: var(--primary);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}

.feed{
  height: 320px;
  display: flex; flex-direction: column;
}
.feed__body{
  flex: 1;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.5;
  position: relative;
  padding: 12px 16px;
}
.feed__row{
  display: grid;
  grid-template-columns: 78px 60px 60px 1fr auto;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  align-items: baseline;
}
.feed__row .t{ color: var(--text-faint); }
.feed__row .src{ color: var(--cyan); }
.feed__row .sev-high{ color: var(--red); }
.feed__row .sev-med{ color: var(--amber); }
.feed__row .sev-low{ color: var(--text-dim); }
.feed__row .sev-info{ color: var(--text-faint); }
.feed__row .msg{ color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.feed__row .stat{ color: var(--primary); font-size: 10px; letter-spacing: 0.1em; }
.feed__row .stat.bl{ color: var(--red); }
.feed__row.new{ animation: feedIn 0.3s ease-out; }
@keyframes feedIn{
  from{ opacity: 0; transform: translateX(-4px); }
  to{ opacity: 1; transform: translateX(0); }
}

.graph{
  height: 360px;
  position: relative;
  display: flex; flex-direction: column;
}
.graph__body{
  flex: 1;
  position: relative;
  overflow: hidden;
}
.graph__canvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.graph__legend{
  position: absolute; left: 16px; bottom: 12px;
  display: flex; gap: 14px;
  font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.graph__legend i{
  display: inline-block; width: 8px; height: 8px;
  margin-right: 6px; vertical-align: middle;
}
.graph__legend i.host{ background: var(--cyan); }
.graph__legend i.attacker{ background: var(--red); }
.graph__legend i.sensor{ background: var(--primary); }
.graph__legend i.payload{ background: var(--magenta); }

/* ─── footer ──────────────────────────────────────────────── */

.foot{
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  position: relative; z-index: 2;
}
.foot__inner{
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 24px;
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.1em;
}
.foot__inner a{ color: var(--text-dim); }
.foot__inner a:hover{ color: var(--primary); }
.foot__links{ display: flex; gap: 20px; }
.foot__sig{
  font-family: var(--mono);
  color: var(--text-faint);
}

/* ─── density modes ───────────────────────────────────────── */
body.density-compact{ --density-pad: 18px; }
body.density-airy{ --density-pad: 48px; }

/* ─── responsive nav collapse ─────────────────────────────── */
@media (max-width: 720px){
  .nav__links{ display: none; }
  .hero__stats{ grid-template-columns: repeat(2, 1fr); }
}
