:root {
  --bg: #f4f7fa; --surface: #ffffff; --surface-2: #eef2f6; --border: #d8dee6;
  --text: #0f1720; --muted: #536170; --accent: #0a8f5b; --accent-2: #2b6cb0;
  --accent-soft: rgba(10,143,91,.10); --glow: rgba(10,143,91,.18);
  --warn: #b7791f; --crit: #c53030; --info: #2b6cb0;
  --shadow: 0 1px 2px rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.06);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b10; --surface: #0f151d; --surface-2: #151d27; --border: #1f2a37;
    --text: #e6edf3; --muted: #8b98a7; --accent: #3ddc97; --accent-2: #63b3ed;
    --accent-soft: rgba(61,220,151,.10); --glow: rgba(61,220,151,.16);
    --warn: #f6c453; --crit: #ff6b6b; --info: #63b3ed;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg: #070b10; --surface: #0f151d; --surface-2: #151d27; --border: #1f2a37;
  --text: #e6edf3; --muted: #8b98a7; --accent: #3ddc97; --accent-2: #63b3ed;
  --accent-soft: rgba(61,220,151,.10); --glow: rgba(61,220,151,.16);
  --warn: #f6c453; --crit: #ff6b6b; --info: #63b3ed;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); }
::selection { background: var(--accent); color: #04140d; }

/* Boot overlay */
#boot { position: fixed; inset: 0; z-index: 100; background: #05080c; color: #3ddc97; font-family: var(--mono); font-size: 13.5px; padding: 32px 20px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; transition: opacity .5s, visibility .5s; }
#boot.done { opacity: 0; visibility: hidden; }
#boot .ln { white-space: pre-wrap; opacity: .9; }
#boot .ok { color: #3ddc97; } #boot .dim { color: #5d6b7a; }
#boot .skip { position: absolute; top: 20px; right: 24px; z-index: 10; color: #7e8d9f; font-size: 12px; font-family: var(--mono); background: rgba(13, 20, 28, 0.75); border: 1px solid rgba(61, 220, 151, 0.2); padding: 5px 12px; border-radius: 4px; letter-spacing: 0.3px; pointer-events: none; }

/* Progress bar */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 15px; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; transition: .2s; }
.nav ul a::before { content: ">"; font-family: var(--mono); color: var(--accent); margin-right: 5px; opacity: 0; transition: opacity .2s; }
.nav ul a:hover::before, .nav ul a.active::before { opacity: 1; }
.nav ul a:hover, .nav ul a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav ul a.active { color: var(--accent); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.theme-btn, .audio-btn, .menu-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 16px; flex-shrink: 0; transition: transform .3s, border-color .2s, color .2s, box-shadow .2s; display: grid; place-items: center; }
.theme-btn:hover, .audio-btn:hover { border-color: var(--accent); }
.theme-btn:hover { transform: rotate(180deg); }
.audio-btn.on { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--glow); }
.menu-btn { display: none; place-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); transition: transform .3s, opacity .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1040px) {
  .menu-btn { display: grid; }
  .nav ul { position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; }
  .nav ul.open { opacity: 1; visibility: visible; transform: none; }
  .nav ul a { display: block; padding: 11px 12px; font-size: 15px; }
}

/* Hero */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, transparent 30%, var(--bg) 85%); pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
h1 { font-family: "Orbitron", var(--sans); font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: .01em; margin: 20px 0 14px; font-weight: 900; }
.glitch { position: relative; display: inline-block; color: var(--accent); text-shadow: 0 0 28px var(--glow); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%; clip-path: inset(0 0 100% 0); pointer-events: none; text-shadow: none; }
.glitch::before { color: var(--accent-2); animation: g1 5s infinite; }
.glitch::after { color: var(--crit); animation: g2 5s infinite; }
.glitch:hover::before, .glitch:hover::after { animation-duration: .7s; }
@keyframes g1 { 0%,8%,100% { clip-path: inset(0 0 100% 0); transform: none; } 2% { clip-path: inset(20% 0 60% 0); transform: translate(-3px,-1px); } 4% { clip-path: inset(55% 0 25% 0); transform: translate(3px,1px); } 6% { clip-path: inset(80% 0 5% 0); transform: translate(-2px,0); } }
@keyframes g2 { 0%,9%,100% { clip-path: inset(0 0 100% 0); transform: none; } 3% { clip-path: inset(60% 0 20% 0); transform: translate(3px,1px); } 5% { clip-path: inset(10% 0 75% 0); transform: translate(-3px,-1px); } 7% { clip-path: inset(40% 0 45% 0); transform: translate(2px,-1px); } }
.role { font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); color: var(--muted); margin: 0 0 20px; min-height: 1.6em; }
.role b { color: var(--accent); font-weight: 500; }
.caret { display: inline-block; width: 9px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: pulse 1s steps(1) infinite; }
.lead { font-size: 17px; color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; font-family: inherit; transition: transform .15s, border-color .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: #04140d; border-color: var(--accent); }

/* Terminal */
.term { background: #0a0f15; color: #d7e0ea; border: 1px solid #1f2a36; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(61,220,151,.05); overflow: hidden; font-family: var(--mono); font-size: 13px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #111922; border-bottom: 1px solid #1f2a36; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; color: #7d8a99; font-size: 12px; }
.term-body { padding: 14px 16px; height: 330px; overflow-y: auto; line-height: 1.7; cursor: text; scrollbar-width: thin; scrollbar-color: #26323f transparent; }
.term-body .p { color: #3ddc97; } .term-body .k { color: #63b3ed; } .term-body .s { color: #f6c453; } .term-body .c { color: #6b7886; } .term-body .e { color: #ff6b6b; }
.term-body a { color: #63b3ed; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-input { display: flex; gap: 8px; }
.term-input input { flex: 1; background: transparent; border: 0; outline: 0; color: #e6edf3; font: inherit; caret-color: #3ddc97; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid #1f2a36; background: #0d131a; }
.chips button { font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid #26323f; background: #111922; color: #9fb0c0; cursor: pointer; transition: .15s; }
.chips button:hover { color: #3ddc97; border-color: #3ddc97; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--border); position: relative; }
.sec-head { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-label { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 0 0 6px; }
h2 { font-family: "Orbitron", var(--sans); font-weight: 800; font-size: clamp(22px, 3.2vw, 32px); margin: 0; letter-spacing: .01em; }
h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent); }
.contact h2::after { margin: 12px auto 0; }
.sec-sub { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* Spotlight cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, border-color .25s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card > * { position: relative; }
.lift:hover { transform: translateY(-4px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--mono); color: var(--accent); }
.stat .lbl { font-size: 13px; color: var(--muted); }
.about-text { font-size: 16.5px; color: var(--muted); max-width: 72ch; margin: 0; }
.about-text strong { color: var(--text); }

/* Experience */
.timeline { display: grid; gap: 20px; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.timeline article::after { content: ""; position: absolute; left: -27px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 12px var(--accent); }
.timeline article { overflow: visible; }
.job-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.job-head h3 { margin: 0; font-size: 19px; }
.date { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.org { color: var(--accent); font-weight: 600; font-size: 15px; margin: 2px 0 16px; }
.duties { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.duties li { position: relative; padding-left: 22px; color: var(--muted); }
.duties li::before { content: "›"; position: absolute; left: 4px; top: -1px; color: var(--accent); font-family: var(--mono); font-weight: 700; }
.duties li strong { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: .2s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }
.step { padding: 18px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h4 { margin: 4px 0 0; font-size: 16px; }
.step.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px var(--glow); }
.step-detail { margin-top: 14px; padding: 20px 22px; font-size: 15px; color: var(--muted); }
.step-detail h4 { margin: 0 0 6px; color: var(--text); font-size: 17px; }
.step-detail p { margin: 0 0 10px; }
.step-detail .tools { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }

/* SOC Defense Sandbox (Unified Labs) */
.lab-nav { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; background: var(--surface-2); padding: 6px; border-radius: 12px; border: 1px solid var(--border); }
.lab-tab { flex: 1; min-width: 150px; font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.lab-tab:hover { color: var(--text); background: var(--surface); }
.lab-tab.on { background: var(--surface); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow); }
.lab-pane { display: none; }
.lab-pane.active { display: block; animation: pop .25s ease; }

/* Incident War Room / Attack Graph */
.incident-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 960px) { .incident-layout { grid-template-columns: 1fr; } }
.incident-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.incident-status-pill { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .05em; }
.incident-status-pill.active { background: color-mix(in srgb, var(--crit) 18%, transparent); color: var(--crit); border: 1px solid var(--crit); animation: pulse 1.8s infinite; }
.incident-status-pill.contained { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.chain-grid { display: grid; gap: 14px; }
.incident-node { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); transition: all .3s; cursor: pointer; position: relative; }
.incident-node:hover { border-color: var(--accent); }
.incident-node.active-node { box-shadow: 0 0 0 2px var(--accent); }
.incident-node.compromised { border-left: 4px solid var(--crit); }
.incident-node.contained { border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.incident-node-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.incident-node-top h4 { margin: 0; font-size: 15.5px; }
.node-tactic { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.node-host { font-family: var(--mono); font-size: 12px; color: var(--accent-2); margin-bottom: 6px; }
.node-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.node-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.incident-node.compromised .node-badge { background: color-mix(in srgb, var(--crit) 15%, transparent); color: var(--crit); }
.incident-node.contained .node-badge { background: var(--accent-soft); color: var(--accent); }
.containment-card { display: flex; flex-direction: column; gap: 16px; }
.containment-title { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; }
.action-list { display: grid; gap: 10px; }
.action-btn { width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: inherit; cursor: pointer; transition: all .2s; }
.action-btn:hover:not(:disabled) { border-color: var(--accent); transform: translateX(3px); }
.action-btn.done { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); cursor: default; }
.action-btn b { display: block; font-size: 14px; margin-bottom: 2px; }
.action-btn span { font-size: 12.5px; color: var(--muted); display: block; }
.action-btn.done span { color: var(--accent); opacity: .85; }
.contain-banner { padding: 14px; border-radius: 10px; font-size: 13.5px; background: var(--accent-soft); border: 1px solid var(--accent); display: none; }
.contain-banner.show { display: block; animation: pop .3s ease; }

/* Packet Inspector / Mini-Wireshark */
.ws-card { padding: 0; overflow: hidden; }
.ws-scenarios { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.ws-tab { font-family: var(--mono); font-size: 12.5px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: .2s; }
.ws-tab:hover { color: var(--text); border-color: var(--accent); }
.ws-tab.on { background: var(--accent); color: #04140d; border-color: var(--accent); font-weight: 600; }
.ws-filter-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 90%, transparent); font-family: var(--mono); font-size: 12.5px; }
.ws-filter-lbl { color: var(--accent); font-weight: 700; }
.ws-filter-input { flex: 1; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--accent-2); font-family: var(--mono); font-size: 12px; overflow-x: auto; white-space: nowrap; }
.ws-table-wrap { max-height: 220px; overflow-y: auto; overflow-x: auto; scrollbar-width: thin; }
.ws-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; text-align: left; }
.ws-table th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); font-weight: 600; z-index: 2; }
.ws-table td { padding: 7px 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); color: var(--text); white-space: nowrap; cursor: pointer; }
.ws-table tr:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ws-table tr.active td { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 600; }
.ws-panes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
@media (max-width: 860px) { .ws-panes { grid-template-columns: 1fr; } }
.ws-pane { padding: 16px 18px; font-family: var(--mono); font-size: 12px; }
.ws-pane:first-child { border-right: 1px solid var(--border); }
@media (max-width: 860px) { .ws-pane:first-child { border-right: 0; border-bottom: 1px solid var(--border); } }
.ws-pane h5 { margin: 0 0 10px; font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.ws-tree { white-space: pre-wrap; line-height: 1.6; color: var(--muted); }
.ws-hex { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); white-space: pre; overflow-x: auto; background: var(--surface-2); padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); }
.ws-analyst { padding: 16px 18px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 13.5px; display: grid; gap: 8px; }
.ws-analyst b { color: var(--text); }
.ws-mitigate { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* Triage game */
.game { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } }
.alert-card { font-family: var(--mono); font-size: 13.5px; }
.alert-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sev { padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; }
.sev.high { background: color-mix(in srgb, var(--crit) 18%, transparent); color: var(--crit); }
.sev.med { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.sev.low { background: color-mix(in srgb, var(--info) 18%, transparent); color: var(--info); }
.alert-title { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.alert-log { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--muted); white-space: pre-wrap; word-break: break-word; line-height: 1.65; }
.verdict { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.verdict .btn { flex: 1; justify-content: center; min-width: 150px; }
.btn.tp:hover { border-color: var(--crit); box-shadow: 0 6px 20px color-mix(in srgb, var(--crit) 25%, transparent); }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-family: var(--sans); font-size: 14.5px; display: none; }
.feedback.show { display: block; animation: pop .3s ease; }
.feedback.good { background: var(--accent-soft); border: 1px solid var(--accent); }
.feedback.bad { background: color-mix(in srgb, var(--crit) 10%, transparent); border: 1px solid var(--crit); }
.feedback-actions { margin-top: 12px; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.score-panel { display: flex; flex-direction: column; gap: 14px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-grid div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.score-grid b { display: block; font-family: var(--mono); font-size: 26px; color: var(--accent); }
.score-grid span { font-size: 12.5px; color: var(--muted); }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s; }
.prog-label { margin-bottom: 8px; }
.rank { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rank b { color: var(--text); }
.kbd-hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 0; }
.kbd-hint kbd { padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text); font-family: inherit; }
#restart { justify-content: center; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin: 0; }
.mitre { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mitre a { padding: 3px 9px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.mitre a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.mitre a b { color: var(--crit); font-weight: 700; }

/* Phish hunt */
.phish { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .phish { grid-template-columns: 1fr; } }
.mail { padding: 0; cursor: crosshair; }
.mail-head { padding: 16px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 14px; display: grid; gap: 6px; }
.mail-head .row { display: flex; gap: 10px; align-items: baseline; }
.mail-head .lbl { width: 70px; flex-shrink: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.mail-subj { font-weight: 700; font-size: 16px; }
.mail-body { padding: 20px 22px 24px; font-size: 15px; }
.mail-body p { margin: 0 0 12px; }
.mail-sign { margin-top: 16px; }
.flag { cursor: pointer; border-radius: 4px; padding: 0 2px; transition: background .2s, box-shadow .2s; }
.flag:hover { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.flag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flag.found { background: color-mix(in srgb, var(--crit) 18%, transparent); box-shadow: 0 0 0 1px var(--crit); }
.mail-btn { position: relative; display: inline-block; padding: 10px 18px; border-radius: 8px; background: #1a73e8; color: #fff; font-weight: 600; }
.mail-btn:hover::after, .mail-btn:focus-visible::after { content: "🔗 " attr(data-href); position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; font-family: var(--mono); font-size: 11.5px; font-weight: 400; padding: 4px 8px; border-radius: 6px; background: #111922; color: #ff9b9b; border: 1px solid #26323f; z-index: 5; }
.attach { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--mono); font-size: 13px; background: var(--surface-2); }
.found-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.found-list li { font-size: 13.5px; color: var(--muted); padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--crit); animation: pop .3s ease; }
.found-list li b { color: var(--text); display: block; font-size: 14px; }
.found-list li.found-empty { border: 0; background: none; padding: 0; font-size: 13.5px; color: var(--muted); font-style: italic; animation: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; justify-content: center; }

/* Skills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font-family: var(--mono); font-size: 12.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: .2s; }
.filters button:hover { color: var(--text); }
.filters button.on { background: var(--accent); color: #04140d; border-color: var(--accent); }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.skill { padding: 18px 20px; transition: opacity .3s, transform .3s, border-color .25s; }
.skill.dim { opacity: .2; transform: scale(.97); }
.skill-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.skill-top h4 { margin: 0; font-size: 15.5px; }
.skill-cat { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); transition: background .4s; }
.meter i.f { background: var(--accent); border-color: var(--accent); }
.lvl { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; display: block; }

/* Certs (flip) */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .certs { grid-template-columns: 1fr; } }
.flip { perspective: 1200px; height: 220px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; }
.flip-back { transform: rotateY(180deg); }
.flip-back .tags { margin-top: 0; }
.cert-front { display: flex; flex-direction: row; justify-content: flex-start; gap: 20px; align-items: center; }
.print-only { display: none; }
.badge { flex-shrink: 0; width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); overflow: hidden; padding: 10px; }
.badge.sec-plus { background: color-mix(in srgb, #c8202f 12%, transparent); border-color: color-mix(in srgb, #c8202f 35%, transparent); box-shadow: 0 0 30px color-mix(in srgb, #c8202f 18%, transparent); }
.badge.mtcna { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.badge.cisco { background: color-mix(in srgb, #049fd9 12%, transparent); border-color: color-mix(in srgb, #049fd9 35%, transparent); box-shadow: 0 0 30px color-mix(in srgb, #049fd9 18%, transparent); }
.badge-img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.badge-svg { width: 44px; height: 44px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.certs-academy { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.cert h3 { margin: 0; font-size: 18px; }
.cert .issuer { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.flip-back p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }

/* Projects */
.projects { display: grid; grid-template-columns: 1fr; gap: 20px; }
.proj { transform-style: preserve-3d; transition: transform .15s ease-out, border-color .25s; }
.proj.featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 12%, transparent); }
.proj-group-title { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 0; }
.projects-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .projects-secondary { grid-template-columns: 1fr; } }
.proj-banner { height: 150px; margin: -24px -24px 22px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bnr); }
.proj-banner.bnr-owlsight { --bnr: radial-gradient(circle at 50% 20%, color-mix(in srgb, #f5b73d 28%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); }
.proj-banner.bnr-1 { --bnr: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 14%, var(--surface)), var(--surface)); }
.proj-banner.bnr-2 { --bnr: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--warn) 18%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.proj-banner::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; -webkit-mask: radial-gradient(circle at center, #000, transparent 75%); mask: radial-gradient(circle at center, #000, transparent 75%); }
.proj-banner .ico { position: relative; z-index: 1; font-size: 58px; transition: transform .35s; filter: drop-shadow(0 0 18px var(--glow)); }
.proj:hover .proj-banner .ico { transform: scale(1.18) rotate(-6deg); }
.pill { position: absolute; top: 14px; z-index: 2; font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.pill.status { right: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.pill.kind { left: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); border: 1px solid var(--border); }
.proj h3 { margin: 0 0 4px; font-size: 19px; }
.proj .sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.sec-note { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; background: var(--accent-soft); border-left: 3px solid var(--accent); }

/* Education */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .edu { grid-template-columns: 1fr; } }
.edu-item h3 { font-size: 17px; margin: 0; }
.edu-item .deg { color: var(--muted); margin: 8px 0 14px; font-size: 15px; }
.award { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin: 0 6px 6px 0; }
.gpa { font-family: var(--mono); color: var(--accent); font-weight: 700; }

/* Contact */
.contact { text-align: center; padding: 56px 24px; }
.contact h2 { margin-bottom: 12px; }
.contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.contact .cta { justify-content: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; text-align: left; max-width: 920px; margin: 0 auto 26px; }
.c-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; }
a.c-item:hover { text-decoration: none; border-color: var(--accent); transform: translateX(5px); box-shadow: 0 8px 24px var(--glow); }
.c-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); font-size: 20px; flex-shrink: 0; }
.c-item h4 { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.contact .c-item p { margin: 0; max-width: none; color: var(--text); font-size: 14px; word-break: break-word; }
footer { padding: 36px 0 44px; text-align: center; color: var(--muted); font-size: 13px; font-family: var(--mono); border-top: 1px solid var(--border); overflow: hidden; }
.ascii { display: inline-block; text-align: left; white-space: pre; margin: 0 0 18px; font-family: var(--mono); font-size: clamp(6px, 1.5vw, 11px); line-height: 1.15; color: var(--accent); opacity: .55; text-shadow: 0 0 8px var(--glow); }
footer b { color: var(--accent); font-weight: 500; }
.uptime { margin-top: 6px; }
@media (max-width: 600px) { footer { padding-bottom: 84px; } }

/* Matrix rain */
#rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .14; }
:root[data-theme="light"] #rain { opacity: .07; }
#bootRain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
#boot > div { position: relative; z-index: 1; }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.fx-canvas.matrix-burst { background: #05080c; transition: opacity .6s; }
.fx-canvas.fade-out { opacity: 0; }

/* CRT scanlines */
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 40; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(61,220,151,.022) 2px 4px); }
.scanlines::after { content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px; background: linear-gradient(transparent, rgba(61,220,151,.035), transparent); animation: scan 8s linear infinite; }
@keyframes scan { to { top: 100%; } }
:root[data-theme="light"] .scanlines { opacity: .35; }

/* Custom cursor */
.cur-ring, .cur-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 95; border-radius: 50%; display: none; }
@media (pointer: fine) { .cur-ring, .cur-dot { display: block; } }
.cur-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1.5px solid var(--accent); opacity: .55; transition: width .2s, height .2s, margin .2s, border-color .2s, opacity .2s; }
.cur-ring.hover { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-color: var(--accent-2); opacity: .9; }
.cur-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Hover sweep line on cards */
.skill::after, .proj::after, .edu-item::after, .stat::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transition: left .6s ease; pointer-events: none; z-index: 3; }
.skill:hover::after, .proj:hover::after, .edu-item:hover::after, .stat:hover::after { left: 100%; }

/* Scrollbar */
html { scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 6px; border: 2px solid var(--bg); }

/* Toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--surface); border: 1px solid var(--accent); color: var(--text); padding: 10px 18px; border-radius: 10px; font-family: var(--mono); font-size: 13px; opacity: 0; transition: .3s; z-index: 60; box-shadow: 0 10px 30px var(--glow); pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

#toTop { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--accent); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; z-index: 30; }
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { border-color: var(--accent); transform: translateY(-3px); }

/* Print: clean one-column resume layout */
@media print {
  #boot, #progress, .scanlines, .cur-ring, .cur-dot, header.nav, #rain, #net, .term, #workflow, #labs, #incident, #packets, #triage, #phishing, #toTop, #toast,
  .filters, .hint, .cta, .ascii, .uptime, .proj-banner, .sec-sub, .status, .flip-back, .role, .meter { display: none !important; }
  .print-only { display: block; margin: 0 0 10px; font-family: var(--mono); font-size: 10pt; color: #0a7a4d; }
  .sec-head, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .contact p, .contact .sec-label { margin-left: 0 !important; text-align: left; }
  .contact { text-align: left !important; }
  .contact h2::after { display: none; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) { --bg: #fff; --surface: #fff; --surface-2: #f3f4f6; --border: #d1d5db; --text: #111; --muted: #374151; --accent: #0a7a4d; --accent-2: #0a7a4d; --accent-soft: transparent; --glow: transparent; }
  body { background: #fff; font-size: 10.5pt; }
  .hero { padding: 0 0 8px; } .hero::after { display: none; } .hero-grid { display: block; }
  h1 { font-size: 24pt; margin: 0 0 4px; }
  .glitch::before, .glitch::after, h2::after, .card::before, .card::after { display: none !important; }
  .glitch { text-shadow: none; }
  h2 { font-size: 14pt; }
  section { padding: 10px 0; border-top: 1px solid #ccc; }
  .sec-head { margin-bottom: 10px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card { box-shadow: none; padding: 10px 14px; break-inside: avoid; }
  .timeline { padding-left: 0; } .timeline::before, .timeline article::after { display: none; }
  .stats, .skills, .certs, .projects, .edu { gap: 8px; }
  .skills { grid-template-columns: repeat(3, 1fr); }
  .skill.dim { opacity: 1; transform: none; }
  .flip { height: auto; } .flip-inner { transform: none !important; } .flip-face { position: static; }
  .contact { padding: 12px; text-align: left; } .contact-grid { grid-template-columns: 1fr 1fr; margin: 0; }
  footer { border: 0; padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
