/* ============================================================
   Subash Jaganathan - DFIR Portfolio
   Theme: dark cyber / terminal
   ============================================================ */
:root {
  --bg: #060a12;
  --bg-soft: #0b1220;
  --bg-card: #0e1626;
  --border: #1c2a42;
  --text: #cdd6e4;
  --text-dim: #8593a8;
  --accent: #22e58c;
  --accent-soft: rgba(34, 229, 140, 0.12);
  --accent2: #38bdf8;
  --accent3: #a78bfa;
  --accent4: #f472b6;
  --red: #ff5c5c;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #22e58c 0%, #38bdf8 50%, #a78bfa 100%);
  --grad-warm: linear-gradient(120deg, #38bdf8 0%, #a78bfa 60%, #f472b6 100%);
  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: "Sora", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(34, 229, 140, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 25%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 72%, rgba(167, 139, 250, 0.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #04130b; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* skip link (visible on keyboard focus) */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--accent); color: #04130b; font-family: var(--mono);
  font-size: 0.85rem; font-weight: 700; padding: 0.6rem 1.2rem; border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; text-decoration: none; outline: 2px solid #04130b; outline-offset: -5px; }

.contact-noscript {
  display: inline-block; margin-top: 1rem; font-family: var(--mono);
  font-size: 0.85rem; color: var(--accent);
}

/* inline icons */
.ico {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  width: 22px; height: 22px; flex-shrink: 0;
}
.hl-icon .ico, .ic-icon .ico, .edu-icon .ico { width: 26px; height: 26px; }
.proj-icon .ico { width: 20px; height: 20px; }
.loc-icon .ico { width: 15px; height: 15px; vertical-align: -2px; }
.cert-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.5rem; }
.cl-icon .ico { width: 22px; height: 22px; stroke: var(--accent); }

/* ============ background fx ============ */
#matrix-bg {
  position: fixed; inset: 0; z-index: -2;
  opacity: 0.55;
}
.scan-line {
  position: fixed; left: 0; right: 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(34, 229, 140, 0.04), transparent);
  animation: scan 9s linear infinite;
  pointer-events: none;
}
@keyframes scan { 0% { top: -15%; } 100% { top: 110%; } }

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 1.25rem;
  color: var(--text); letter-spacing: 1px;
}
.nav-logo:hover { text-decoration: none; }
.logo-bracket { color: var(--accent); }
.logo-cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 0.83rem; color: var(--text-dim);
  transition: color 0.2s; white-space: nowrap;
}
@media (max-width: 1080px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.78rem; }
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--accent); color: var(--accent) !important;
  padding: 0.42rem 1rem; border-radius: 6px; transition: all 0.25s;
}
.nav-cta:hover { background: var(--accent-soft); box-shadow: 0 0 18px rgba(34, 229, 140, 0.35); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--accent); transition: 0.3s; }

/* ============ hero ============ */
.hero {
  min-height: 100vh; max-width: 1180px; margin: 0 auto;
  padding: 8.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
  position: relative;
}
.hero-pre { font-family: var(--mono); color: var(--accent); font-size: 0.95rem; margin-bottom: 0.8rem; }
.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -1px; color: #f1f5fb;
}
.accent { color: var(--accent); }
.hero-name .accent {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.35));
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.hero-type {
  font-family: var(--mono); font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--accent2); margin: 1.1rem 0 1rem; min-height: 1.8em;
}
.prompt { color: var(--accent); }
.type-cursor { animation: blink 0.9s step-end infinite; color: var(--accent2); }
.hero-sub { color: var(--text-dim); max-width: 540px; margin-bottom: 1.8rem; font-size: 1.02rem; }
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.btn {
  font-family: var(--mono); font-size: 0.9rem; padding: 0.75rem 1.5rem;
  border-radius: 8px; transition: all 0.25s; display: inline-block;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); background-size: 150% auto; color: #04130b; font-weight: 700;
  box-shadow: 0 4px 24px rgba(34, 229, 140, 0.3);
  transition: all 0.3s;
}
.btn-primary:hover { background-position: right center; box-shadow: 0 6px 34px rgba(56, 189, 248, 0.45); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-family: var(--mono); font-size: 0.72rem; padding: 0.3rem 0.7rem;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim);
  background: var(--bg-soft);
}

/* hero terminal */
.hero-terminal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  font-family: var(--mono); font-size: 0.82rem;
}
.term-bar {
  background: #121c30; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.term-title { margin-left: 0.6rem; color: var(--text-dim); font-size: 0.74rem; }
.term-body { padding: 1.1rem 1.2rem; }
.term-body p { margin: 0.32rem 0; white-space: nowrap; overflow: hidden; }
.t-green { color: var(--accent); } .t-red { color: var(--red); } .t-amber { color: var(--amber); }
.t-dim { color: var(--text-dim); }
.blink { animation: blink 0.9s step-end infinite; color: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: drop 1.8s infinite;
}
@keyframes drop { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ============ sections ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 5.5rem 1.5rem; }
.section-title {
  font-family: var(--mono); font-size: clamp(1.4rem, 3vw, 2rem);
  color: #f1f5fb; margin-bottom: 2.8rem; display: flex; align-items: center; gap: 0.8rem;
}
.section-title::before { content: "$"; color: var(--accent); }
.section-title::after {
  content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2) 40%, var(--accent3) 70%, transparent);
  opacity: 0.5;
}
.sec-num {
  font-size: 0.85em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============ about ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; }
.about-text p { margin-bottom: 1.1rem; color: var(--text-dim); }
.about-text strong { color: var(--text); }
.about-highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; margin-top: 1.4rem;
}
.about-highlight p { margin: 0; color: var(--text); font-size: 0.95rem; }
.hl-icon { font-size: 1.5rem; }

.about-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem; position: sticky; top: 90px;
}
.about-card h3 {
  font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px dashed var(--border);
}
.json-block {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word; color: var(--text-dim);
}
.j-key { color: var(--accent2); } .j-val { color: var(--amber); }
.j-num { color: var(--accent); } .j-green { color: var(--accent); }

/* ============ skills ============ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.3rem; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
/* colored top accent bar, distinct per card */
.skill-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent)); opacity: 0.9;
}
.skill-card:nth-child(1) { --card-accent: #22e58c; }
.skill-card:nth-child(2) { --card-accent: #38bdf8; }
.skill-card:nth-child(3) { --card-accent: #a78bfa; }
.skill-card:nth-child(4) { --card-accent: #f472b6; }
.skill-card:nth-child(5) { --card-accent: #fbbf24; }
.skill-card:nth-child(6) { --card-accent: #2dd4bf; }
.skill-card:nth-child(1) .skill-icon .ico { stroke: #22e58c; }
.skill-card:nth-child(2) .skill-icon .ico { stroke: #38bdf8; }
.skill-card:nth-child(3) .skill-icon .ico { stroke: #a78bfa; }
.skill-card:nth-child(4) .skill-icon .ico { stroke: #f472b6; }
.skill-card:nth-child(5) .skill-icon .ico { stroke: #fbbf24; }
.skill-card:nth-child(6) .skill-icon .ico { stroke: #2dd4bf; }
.skill-card:hover {
  transform: translateY(-4px); border-color: var(--card-accent, var(--accent));
  box-shadow: 0 12px 36px color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent);
}
.skill-card:hover .tags span:hover { color: var(--card-accent); border-color: var(--card-accent); }
.skill-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.skill-icon { font-size: 1.4rem; }
.skill-head h3 { font-size: 1.02rem; color: #f1f5fb; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags span {
  font-family: var(--mono); font-size: 0.72rem; padding: 0.28rem 0.65rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-dim); transition: all 0.2s; cursor: default;
}
.tags span:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ============ projects ============ */
.section-intro { color: var(--text-dim); margin: -1.6rem 0 2.2rem; font-size: 0.97rem; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.3rem; }
.proj-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; color: var(--text); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.proj-card:hover {
  transform: translateY(-4px); border-color: var(--accent); text-decoration: none;
  box-shadow: 0 12px 36px rgba(34, 229, 140, 0.12);
}
.proj-top { display: flex; justify-content: space-between; align-items: center; }
.proj-icon { font-size: 1.3rem; }
.proj-stars {
  font-family: var(--mono); font-size: 0.72rem; color: var(--amber);
  background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.2rem 0.6rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.star-ico { width: 12px; height: 12px; fill: var(--amber); stroke: var(--amber); }
.proj-card h3 { font-family: var(--mono); font-size: 1rem; color: var(--accent2); }
.proj-card p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }
.proj-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim);
  border-top: 1px dashed var(--border); padding-top: 0.8rem; margin-top: 0.3rem;
}
.lang-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lang-dot.ps { background: #012456; border: 1px solid #2b88d8; }
.lang-dot.sh { background: #89e051; }
.lang-dot.py { background: #3572A5; }
.lang-dot.md { background: var(--accent2); }
.proj-license { margin-left: auto; border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.45rem; }
.proj-more { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.88rem; color: var(--text-dim); text-align: center; }

/* ============ timeline ============ */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}
.tl-item { position: relative; margin-bottom: 2.2rem; }
.tl-marker {
  position: absolute; left: -2.2rem; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--border);
}
.tl-marker.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 16px rgba(34, 229, 140, 0.5);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px rgba(34,229,140,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34,229,140,0.06), 0 0 22px rgba(34,229,140,0.6); }
}
.tl-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem 1.8rem; transition: border-color 0.25s;
}
.tl-card:hover { border-color: rgba(34, 229, 140, 0.45); }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.tl-head h3 { color: #f1f5fb; font-size: 1.12rem; }
.tl-date {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  background: var(--accent-soft); padding: 0.25rem 0.7rem; border-radius: 999px;
}
.tl-company { font-family: var(--mono); color: var(--accent2); font-size: 0.88rem; margin: 0.3rem 0 0.9rem; }
.tl-card ul { list-style: none; }
.tl-card li {
  color: var(--text-dim); font-size: 0.93rem; padding-left: 1.3rem;
  position: relative; margin-bottom: 0.55rem;
}
.tl-card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.tl-card strong { color: var(--text); }

/* ============ impact ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-bottom: 3rem;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem 1rem; text-align: center; transition: border-color 0.25s, transform 0.25s;
}
.stat:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-num, .stat-plus {
  font-family: var(--mono); font-size: 2.1rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* alternate stat colors for a vibrant rhythm */
.stat:nth-child(2n) .stat-num, .stat:nth-child(2n) .stat-plus { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.4rem; }

.impact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }
.impact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.7rem; transition: transform 0.25s, border-color 0.25s;
}
.impact-card:hover { transform: translateY(-4px); border-color: var(--accent2); }
.ic-icon { font-size: 1.8rem; display: block; margin-bottom: 0.8rem; }
.impact-card h3 { color: #f1f5fb; font-size: 1.05rem; margin-bottom: 0.6rem; }
.impact-card p { color: var(--text-dim); font-size: 0.92rem; }
.impact-card strong { color: var(--text); }

/* ============ certs ============ */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; margin-bottom: 2.5rem; }
.cert-group {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem;
}
.cert-group h3 { font-size: 1rem; color: #f1f5fb; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px dashed var(--border); }
.cert-group ul { list-style: none; }
.cert-group li { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.65rem; line-height: 1.45; }
.cert-group li strong { color: var(--text); }
.cert-group li span {
  display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
}

.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.edu-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.6rem;
}
.edu-icon { font-size: 1.8rem; }
.edu-card h3 { font-size: 0.98rem; color: #f1f5fb; }
.edu-card p { font-size: 0.82rem; color: var(--text-dim); }
.edu-gpa {
  margin-left: auto; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent);
}
.edu-gpa small { font-size: 0.8rem; color: var(--text-dim); }

/* ============ contact ============ */
.contact-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 3rem 2.5rem; text-align: center;
  background-image: radial-gradient(ellipse at top, rgba(34, 229, 140, 0.07), transparent 60%);
}
.contact-lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2.2rem; color: var(--text); }
.contact-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.8rem; text-align: left;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1.3rem; color: var(--text); transition: all 0.25s; min-width: 220px;
}
.contact-link:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; box-shadow: 0 8px 28px rgba(34,229,140,0.12); }
.cl-icon { font-size: 1.4rem; }
.contact-link span:last-child { display: flex; flex-direction: column; font-family: var(--mono); font-size: 0.85rem; }
.contact-link small { color: var(--text-dim); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-loc { color: var(--text-dim); font-family: var(--mono); font-size: 0.85rem; }

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center;
  font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim);
}
.footer-sub { margin-top: 0.4rem; font-size: 0.72rem; opacity: 0.65; }

/* ============ reveal animation ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-terminal { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .edu-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 60px; right: 0; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-soft); border-left: 1px solid var(--border);
    height: calc(100vh - 60px); padding: 1.5rem; transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .nav-cta { margin-top: 1rem; text-align: center; }
  .term-body { font-size: 0.7rem; }
  .contact-link { min-width: 100%; }
}
/* ============ scroll progress bar ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); background-size: 100vw auto;
  z-index: 200; transition: width 0.1s linear;
}

/* ============ active nav (scroll-spy) ============ */
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background: var(--grad);
}
.nav-links a.nav-cta.active::after { display: none; }

/* ============ availability pill ============ */
.avail-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(34, 229, 140, 0.3);
  padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 229, 140, 0.6); animation: availPulse 2s infinite;
}
@keyframes availPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 229, 140, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 229, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 229, 140, 0); }
}

/* ============ frameworks & compliance band ============ */
.frameworks {
  margin-top: 1.4rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem 1.5rem; position: relative; overflow: hidden;
}
.frameworks::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
}
.fw-title { font-family: var(--mono); font-size: 0.92rem; color: #f1f5fb; margin-bottom: 0.9rem; }
.fw-tags span:hover { color: var(--accent3); border-color: var(--accent3); background: rgba(167,139,250,0.1); }

/* ============ keyboard focus visibility ============ */
a:focus-visible, button:focus-visible, .proj-card:focus-visible, .contact-link:focus-visible {
  outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-line, .logo-cursor, .type-cursor, .blink, .tl-marker.current, .avail-dot, .hero-name .accent { animation: none; }
  html { scroll-behavior: auto; }
}
