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

:root {
  --bg:           #07070f;
  --bg2:          #0d0d1a;
  --bg3:          #111120;
  --border:       #1c1c32;
  --border-dim:   #13132040;
  --text:         #cdc5de;
  --text-dim:     #8c82a4;
  --text-muted:   #58496e;
  --accent:       #9b78e0;
  --accent-dim:   #4d3880;
  --accent-glow:  rgba(155, 120, 224, 0.28);
  --red:          #c05a5a;
  --red-dim:      #4a1a1a;
  --green:        #3a9a70;
  --green-dim:    #102e20;
  --yellow:       #b09a4a;
  --yellow-dim:   #382a10;
  --discord:      #5865f2;
  --kick:         #53fc18;
  --white:        #f0e8ff;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Rain canvas ─────────────────────────────────────────── */
#rain {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 65%, #1a0f2e 0%, transparent 100%),
    radial-gradient(ellipse 40% 30% at 50% 40%, #0d0820 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

/* ─── Glitch title ────────────────────────────────────────── */
h1.glitch {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 20vw, 14rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 0.9;
  position: relative;
  text-shadow:
    0 0 40px rgba(124, 92, 191, 0.6),
    0 0 100px rgba(124, 92, 191, 0.25),
    0 0 200px rgba(124, 92, 191, 0.1);
  animation: glitch-idle 9s infinite;
}

h1.glitch::before,
h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
}

h1.glitch::before {
  color: #ff3355;
  animation: glitch-top 9s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}

h1.glitch::after {
  color: #3388ff;
  animation: glitch-btm 9s infinite;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
}

@keyframes glitch-idle {
  0%, 88%, 100% { text-shadow: 0 0 60px rgba(124, 92, 191, 0.55), 0 0 120px rgba(124, 92, 191, 0.2); }
  90%            { text-shadow: -8px 0 60px rgba(124, 92, 191, 0.65), 0 0 120px rgba(124, 92, 191, 0.25); }
  93%            { text-shadow:  8px 0 60px rgba(124, 92, 191, 0.65), 0 0 120px rgba(124, 92, 191, 0.25); }
  96%            { text-shadow: -4px 0 60px rgba(124, 92, 191, 0.55), 0 0 120px rgba(124, 92, 191, 0.2); }
}
@keyframes glitch-top {
  0%, 87%, 100% { opacity: 0; transform: translate(0); }
  88%           { opacity: 0.8; transform: translate(-5px, -2px); }
  90%           { opacity: 0; }
  91%           { opacity: 0.6; transform: translate(5px, 1px); }
  93%           { opacity: 0; }
}
@keyframes glitch-btm {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91%           { opacity: 0.6; transform: translate(5px, 3px); }
  93%           { opacity: 0; }
  94%           { opacity: 0.5; transform: translate(-4px, -1px); }
  96%           { opacity: 0; }
}

.hero-sub {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.hero-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.12em;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: pulse-down 2.5s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.7; transform: translateX(-50%) translateY(4px); }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-discord {
  background: rgba(88, 101, 242, 0.12);
  color: #8891f5;
  border-color: rgba(88, 101, 242, 0.28);
}
.btn-discord:hover { background: rgba(88, 101, 242, 0.22); color: #aab2f8; }

.btn-kick {
  background: rgba(83, 252, 24, 0.07);
  color: #7bde5a;
  border-color: rgba(83, 252, 24, 0.18);
}
.btn-kick:hover { background: rgba(83, 252, 24, 0.14); color: #a5e880; }

.btn-gh {
  background: rgba(184, 176, 204, 0.07);
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-gh:hover { background: rgba(184, 176, 204, 0.14); color: var(--white); }

.btn-resume {
  background: rgba(45, 122, 90, 0.1);
  color: #5ab88a;
  border-color: rgba(45, 122, 90, 0.3);
}
.btn-resume:hover { background: rgba(45, 122, 90, 0.2); color: #80d4aa; }

.btn-linkedin {
  background: rgba(10, 102, 194, 0.1);
  color: #5a9edf;
  border-color: rgba(10, 102, 194, 0.28);
}
.btn-linkedin:hover { background: rgba(10, 102, 194, 0.2); color: #88bff0; }

.btn-cta {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

.next-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ─── Sections ────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: var(--accent);
  font-size: 0.72em;
  flex-shrink: 0;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-sub {
  color: var(--text-dim);
  font-size: 1.12rem;
  margin-top: -0.75rem;
  margin-bottom: 2.75rem;
  font-style: italic;
}

/* ─── Story ───────────────────────────────────────────────── */
.story-text p {
  max-width: 680px;
  font-size: 1.13rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.story-text p > i.fa-solid {
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 0.85em;
  opacity: 0.8;
}

.story-lead {
  font-size: 1.28rem !important;
  color: var(--white) !important;
  font-weight: 500;
}

.story-cta {
  margin-top: 2rem !important;
  padding: 1.4rem 1.6rem;
  background: rgba(155, 120, 224, 0.07);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  color: var(--text-dim) !important;
}

.story-cta a {
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
}

.story-cta a:hover { color: var(--white) !important; border-color: var(--accent); }

.story-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
}

.story-text a:hover { color: var(--white); border-color: var(--accent); }

/* ─── Project grid ────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Special card variants */
.card-big {
  grid-column: 1 / -1;
  border-left: 2px solid var(--accent);
  background: linear-gradient(140deg, #0f0d1c 0%, var(--bg2) 100%);
}

.card-streamer  { border-left: 2px solid var(--red); }
.card-resume    { border-left: 2px solid var(--green); }

/* Tags */
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.18rem 0.5rem;
  margin-bottom: 0.8rem;
}

.card-tag-special {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(124, 92, 191, 0.08);
}

.tag-alive {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(45, 122, 90, 0.08);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card h3 i {
  color: var(--accent);
  font-size: 0.82em;
  flex-shrink: 0;
}

.project-card p {
  font-size: 0.98rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.card-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem !important;
}

.status-rip    { color: var(--red); }
.status-paused { color: var(--yellow); }
.status-ok     { color: var(--green); }

.card-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.card-link:hover { color: var(--white); }

.card-services {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
}

.card-services strong {
  color: var(--text-dim);
  font-weight: 600;
}

/* Phase tags */
.phase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0;
}

.phase {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  border: 1px solid;
}

.phase.done {
  color: #4a8a6a;
  border-color: #1e3a2a;
  background: rgba(45, 122, 90, 0.07);
}

.phase.wip {
  color: #8a7a3a;
  border-color: #3a3015;
  background: rgba(138, 122, 58, 0.07);
}

/* ─── Vision ──────────────────────────────────────────────── */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.vision-text p {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 1.3rem;
  max-width: 600px;
}

.vision-kicker {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  color: var(--accent) !important;
  font-style: italic;
  margin-top: 1.75rem !important;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-dim);
}

.vision-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  min-width: 200px;
}

.stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.stat:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-3px);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-rip .stat-num { color: var(--white); }

/* ─── What's next ─────────────────────────────────────────── */
.next-text p {
  max-width: 660px;
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.next-text p > i.fa-solid {
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 0.85em;
  opacity: 0.75;
}

/* ─── Find me ─────────────────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top-width: 2px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.link-discord { border-top-color: rgba(88, 101, 242, 0.45); }
.link-discord:hover { background: rgba(88, 101, 242, 0.05); border-top-color: var(--discord); }

.link-kick { border-top-color: rgba(83, 252, 24, 0.3); }
.link-kick:hover { background: rgba(83, 252, 24, 0.04); border-top-color: var(--kick); }

.link-github { border-top-color: rgba(184, 176, 204, 0.2); }
.link-github:hover { background: rgba(184, 176, 204, 0.04); border-top-color: rgba(184, 176, 204, 0.5); }

.link-resume { border-top-color: rgba(45, 122, 90, 0.4); }
.link-resume:hover { background: rgba(45, 122, 90, 0.05); border-top-color: var(--green); }

.link-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.15rem; }

.link-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.link-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Open source note */
.open-source-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.open-source-note p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.open-source-note a {
  color: var(--accent);
  text-decoration: none;
}
.open-source-note a:hover { color: var(--white); }

.repo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.repo-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim) !important;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  text-decoration: none;
  transition: all 0.15s;
}

.repo-link:hover {
  color: var(--white) !important;
  border-color: var(--accent-dim);
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(0deg, #050509 0%, transparent 100%);
}

.footer-main {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.45;
}

/* ─── Scroll fade-in ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .section { padding: 4rem 0; }

  .container { padding: 0 1.25rem; }

  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .btn {
    width: min(280px, 90vw);
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vision-stats {
    grid-template-columns: repeat(3, 1fr);
    min-width: unset;
    width: 100%;
  }

  .card-big { grid-column: unset; }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    gap: 0.5rem;
  }

  .section-title::before { width: 22px; }

  .stat-num { font-size: 2rem; }

  .next-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-cta { width: auto; }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }

  .hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.12em; }

  .hero-sub { font-size: 1.1rem; }

  .vision-stats { grid-template-columns: 1fr 1fr; }

  .links-grid { grid-template-columns: 1fr; }

  .project-card { padding: 1.25rem; }

  .story-lead { font-size: 1.15rem !important; }

  .section-sub { font-size: 1rem; }
}

/* ─── Font Awesome icon sizing ────────────────────────────── */
.btn i { font-size: 0.92em; }
.phase i { margin-right: 0.3rem; font-size: 0.8em; }
.card-status i { margin-right: 0.35rem; }
.card-link i { font-size: 0.82em; margin-left: 0.25rem; }

/* ─── Hero scanlines ──────────────────────────────────────── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 700px) {
  h1.glitch { line-height: 1; }
}

/* ─── Shoutouts section ───────────────────────────────────── */
.shoutouts { background: var(--bg2); }
.shoutouts-lead { color: var(--text-dim); text-align: center; max-width: 560px; margin: 0 auto 2.5rem; }
.shoutouts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; max-width: 780px; margin: 0 auto; }
.shoutout-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.shoutout-handle { font-family: 'Space Mono', monospace; font-size: 0.95rem; color: var(--accent); font-weight: 700; }
.shoutout-handle a { color: inherit; text-decoration: none; }
.shoutout-handle a:hover { text-decoration: underline; }
.shoutout-aka { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0.04em; margin-left: 0.4rem; }
.shoutout-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

/* ─── Navbar ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 300;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-bottom-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(7, 7, 15, 0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-skull {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-brand-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.38rem 0.6rem;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(155, 120, 224, 0.09);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(155, 120, 224, 0.07);
}

.nav-link-resume {
  color: var(--accent) !important;
  border-color: var(--accent-dim) !important;
  margin-left: 0.5rem;
}

.nav-link-resume:hover {
  background: rgba(155, 120, 224, 0.18) !important;
  border-color: var(--accent) !important;
  color: var(--white) !important;
}

/* ─── Hamburger ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Section scroll offset (fixed nav clearance) ────────── */
section[id], header[id] {
  scroll-margin-top: 64px;
}

/* ─── Emotional sob-story paragraph ──────────────────────── */
.story-raw {
  padding: 1.1rem 1.4rem !important;
  background: rgba(192, 90, 90, 0.045) !important;
  border-left: 3px solid rgba(192, 90, 90, 0.3);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text) !important;
}

/* ─── Mobile nav dropdown ─────────────────────────────────── */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 7, 15, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open { display: flex; }

  .nav-links li { display: contents; }

  .nav-link {
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
    border: none;
    border-bottom: 1px solid rgba(28, 28, 50, 0.5);
  }

  .nav-link:last-child { border-bottom: none; }

  .nav-link-resume {
    margin: 0.6rem 1.25rem 0;
    text-align: center;
    border-radius: 8px !important;
    border: 1px solid var(--accent-dim) !important;
    padding: 0.7rem 1rem;
  }
}
