  :root {
    --bg: #191127;
    --surface: #23133a;
    --surface2: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #7c3aed;
    --accent3: #b29dce;
    --text: #e8eff1;
    --muted: #d6d6d6;
    --warning: #af62c8;
    --glow: 0 0 20px rgba(115, 0, 255, 0.4);
    --glow2: 0 0 20px rgba(178, 62, 255, 0.4);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    cursor: default;
  }

  /* ── ANIMATED GRID BACKGROUND ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(98, 0, 255, 0.047) 1px, transparent 1px),
      linear-gradient(90deg, rgba(132, 0, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* ── SCANLINE OVERLAY ── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: #180f26;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    text-shadow: var(--glow);
    letter-spacing: 0.05em;
  }
  .nav-logo span { color: var(--accent2); }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--accent3);
  }
  .status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent3);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent3); }
    50% { opacity: 0.4; box-shadow: none; }
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2.5rem 4rem;
    z-index: 1;
    overflow: hidden;
  }
  .hero-content { max-width: 680px; }
  .hero-tag {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease;
  }
  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.9s ease 0.1s both;
  }
  .hero h1 .line1 { display: block; color: var(--text); }
  .hero h1 .line2 { display: block; color: var(--accent); text-shadow: var(--glow); }
  .hero h1 .line3 { display: block; color: var(--accent2); text-shadow: var(--glow2); }
  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 520px;
    animation: slideUp 0.9s ease 0.2s both;
  }
  .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUp 0.9s ease 0.3s both;
  }
  .btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.8rem 1.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
  }
  .btn-primary:hover { box-shadow: var(--glow); transform: translateY(-2px); }
  .btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.8rem 1.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
  }
  .btn-ghost:hover { background: #1f1232; transform: translateY(-2px); }

  /* ── HERO TERMINAL ── */
  .hero-terminal {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    box-shadow: 0 0 60px rgba(162, 0, 255, 0.15);
    animation: slideLeft 1s ease 0.4s both;
  }
  @media (max-width: 900px) {
    .hero-terminal { display: none; }
  }
  .term-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #2a1647;
  }
  .term-dot { width: 10px; height: 10px; border-radius: 50%; }
  .td-r { background: var(--accent2); }
  .td-y { background: var(--warning); }
  .td-g { background: var(--accent3); }
  .term-title { font-size: 0.65rem; color: var(--muted); margin-left: 0.5rem; letter-spacing: 0.1em; }
  .term-body {
    padding: 1.2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    line-height: 2;
    min-height: 280px;
  }
  .t-green { color: var(--accent3); }
  .t-cyan { color: var(--accent); }
  .t-red { color: var(--accent2); }
  .t-yellow { color: var(--warning); }
  .t-muted { color: var(--muted); }
  .t-white { color: var(--text); }
  .cursor-blink { animation: blink 1s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .typed-line { overflow: hidden; white-space: nowrap; }

  /* ── STATS STRIP ── */
  .stats-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item {
    padding: 2rem 2rem;
    border-right: 1px solid var(--border);
    transition: background 0.3s;
  }
  .stat-item:last-child { border-right: none; }
  .stat-item:hover { background: #1f1232; }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
  }
  .stat-num.red { color: var(--accent2); }
  .stat-num.green { color: var(--accent3); }
  .stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

  /* ── SECTION BASE ── */
  section { position: relative; z-index: 1; }
  .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  /* ── THREAT MATRIX ── */
  .threat-section {
    padding: 6rem 2.5rem;
    background: var(--surface);
  }
  .threat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 3rem;
    border: 1px solid var(--border);
  }
  @media (max-width: 700px) {
    .threat-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
  }
  .threat-card {
    padding: 2rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .threat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: bottom;
  }
  .threat-card:hover::before { transform: scaleY(1); }
  .threat-card:hover { background: #1f1232; padding-left: 2.5rem; }
  .threat-card:nth-child(2n) { border-right: none; }
  .threat-card:nth-child(n+5) { border-bottom: none; }
  .threat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    display: block;
  }
  .threat-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  .threat-desc {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.8;
  }
  .threat-badge {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border: 1px solid;
  }
  .badge-high { color: var(--accent2); border-color: var(--accent2); }
  .badge-med { color: var(--warning); border-color: var(--warning); }
  .badge-low { color: var(--accent3); border-color: var(--accent3); }

  /* ── PAM INTERACTIVE SECTION ── */
  .pam-section { padding: 6rem 2.5rem; }
  .pam-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }
  @media (max-width: 800px) {
    .pam-layout { grid-template-columns: 1fr; }
  }
  .pam-menu { border: 1px solid var(--border); }
  .pam-menu-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.2s;
    color: var(--muted);
  }
  .pam-menu-item:last-child { border-bottom: none; }
  .pam-menu-item:hover { background: #1f1232; color: var(--text); }
  .pam-menu-item.active {
    background: #1f1232;
    color: var(--accent);
    border-left: 3px solid var(--accent);
  }
  .pam-menu-icon { font-size: 1rem; }
  .pam-panel {
    border: 1px solid var(--border);
    padding: 2rem;
    min-height: 360px;
    display: none;
  }
  .pam-panel.active { display: block; animation: fadeIn 0.4s ease; }
  .pam-panel h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
  }
  .pam-panel p {
    font-size: 0.78rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 1rem;
  }
  .pam-checklist { list-style: none; margin-top: 1rem; }
  .pam-checklist li {
    font-size: 0.74rem;
    color: var(--text);
    padding: 0.5rem 0;
    border-bottom: 1px solid #5e309d;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .pam-checklist li::before {
    content: '▸';
    color: var(--accent3);
    flex-shrink: 0;
  }

  /* ── RISK SIMULATOR ── */
  .sim-section {
    padding: 6rem 2.5rem;
    background: var(--surface);
  }
  .sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
  }
  @media (max-width: 800px) { .sim-grid { grid-template-columns: 1fr; } }

  .sim-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
    display: block;
  }
  .sim-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .sim-toggle {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .sim-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .sim-toggle.on {
    background: #291a3e;
    border-color: var(--accent2);
    color: var(--accent2);
  }
  .sim-toggle.off {
    background: rgba(0,255,159,0.1);
    border-color: var(--accent3);
    color: var(--accent3);
  }
  .risk-meter {
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-top: 1rem;
  }
  .risk-bar-outer {
    height: 24px;
    background: #282035;
    position: relative;
    overflow: hidden;
    margin: 0.8rem 0;
  }
  .risk-bar-inner {
    height: 100%;
    transition: width 0.6s ease, background 0.6s;
    position: relative;
  }
  .risk-bar-inner::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: rgba(255,255,255,0.4);
  }
  .risk-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--muted);
  }
  .risk-score {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    transition: color 0.6s;
    margin: 0.5rem 0;
  }
  .risk-advice {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.8rem;
    line-height: 1.8;
    font-style: italic;
  }

  /* ── INCIDENT TIMELINE ── */
  .timeline-section { padding: 6rem 2.5rem; }
  .timeline { position: relative; margin-top: 3rem; padding-left: 2rem; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: var(--border);
  }
  .timeline-item {
    position: relative;
    padding: 0 0 2.5rem 2.5rem;
    cursor: pointer;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -5px; top: 4px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--border);
    transition: all 0.3s;
  }
  .timeline-item:hover::before,
  .timeline-item.expanded::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--glow);
  }
  .timeline-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.4rem;
  }
  .timeline-date { font-size: 0.65rem; color: var(--muted); }
  .timeline-severity {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border: 1px solid;
  }
  .sev-critical { color: var(--accent2); border-color: var(--accent2); }
  .sev-high { color: var(--warning); border-color: var(--warning); }
  .timeline-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
  }
  .timeline-expand {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .timeline-item.expanded .timeline-expand { max-height: 200px; }
  .timeline-lesson {
    margin-top: 0.6rem;
    padding: 0.7rem 1rem;
    background: #cb56f90a;
    border-left: 2px solid var(--accent);
    font-size: 0.7rem;
    color: var(--accent);
  }

  /* ── ABOUT ── */
  .about-section {
    padding: 6rem 2.5rem;
    background: var(--surface);
  }
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
  }
  @media (max-width: 850px) { .about-layout { grid-template-columns: 1fr; } }
  .about-text p {
    font-size: 0.8rem;
    line-height: 2;
    color: var(--muted);
    margin-bottom: 1.2rem;
  }
  .about-text p strong { color: var(--text); }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
  .skill-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    color: var(--muted);
    text-transform: uppercase;
    transition: all 0.2s;
  }
  .skill-tag:hover { border-color: var(--accent); color: var(--accent); }
  .about-card {
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 1.5rem;
  }
  .about-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }
  .about-role { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; }
  .about-stat-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid #5e309d; }
  .about-stat-row:last-of-type { border-bottom: none; }
  .as-key { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
  .as-val { font-size: 0.75rem; color: var(--text); }
  .contact-links { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
  .contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .contact-link:hover { color: var(--accent); }
  .contact-link-icon { font-size: 0.9rem; }

  /* ── FOOTER ── */
  footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }
  .footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent);
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes slideLeft {
    from { opacity: 0; transform: translate(40px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
  }

  /* scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }