/* ============================================================
   ALEX CARPENTER — Personal Website
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #fafaf8;
  --bg-2:        #f0eeeb;
  --bg-3:        #e8e5e1;
  --surface:     #ffffff;
  --border:      rgba(0,0,0,0.10);
  --text:        #1a1817;
  --text-muted:  #6b6560;
  --text-faint:  #aaa49e;
  --accent:      #7c3aed;   /* rich purple */
  --accent-dim:  rgba(124,58,237,0.08);
  --accent-2:    #6366f1;   /* soft indigo secondary */
  --radius:      16px;
  --radius-sm:   8px;
  --nav-h:       68px;
  --max-w:       1120px;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-serif:  'Fraunces', Georgia, serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Typography ── */
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.section-heading em {
  display: block;
  color: var(--text-muted);
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.30);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

.nav.scrolled {
  background: rgba(250,250,248,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.25s var(--ease);
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) clamp(1.25rem, 5vw, 3rem) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s var(--ease) forwards;
}

.hero-name {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s var(--ease) forwards;
}

.hero-name em {
  font-size: inherit;
  color: var(--text-muted);
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s var(--ease) forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s var(--ease) forwards;
}

.hero-sub .highlight {
  color: var(--text);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s var(--ease) forwards;
}

/* Decorative rings */
.hero-deco {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
}

.deco-ring--1 {
  inset: 0;
  border-color: rgba(124,58,237,0.55);
  box-shadow:
    0 0 6px 2px rgba(124,58,237,0.30),
    0 0 20px 6px rgba(124,58,237,0.15),
    0 0 60px 14px rgba(124,58,237,0.06),
    inset 0 0 6px 2px rgba(124,58,237,0.15),
    inset 0 0 20px 6px rgba(124,58,237,0.05);
  animation: spin 30s linear infinite;
}

.deco-ring--2 {
  inset: 60px;
  border-color: rgba(99,102,241,0.50);
  box-shadow:
    0 0 6px 2px rgba(99,102,241,0.25),
    0 0 18px 5px rgba(99,102,241,0.12),
    0 0 50px 12px rgba(99,102,241,0.05),
    inset 0 0 6px 2px rgba(99,102,241,0.12),
    inset 0 0 18px 5px rgba(99,102,241,0.04);
  animation: spin 20s linear infinite reverse;
}

.deco-ring--3 {
  inset: 140px;
  border-color: rgba(124,58,237,0.45);
  box-shadow:
    0 0 5px 1px rgba(124,58,237,0.25),
    0 0 14px 4px rgba(124,58,237,0.12),
    0 0 36px 8px rgba(124,58,237,0.04),
    inset 0 0 5px 1px rgba(124,58,237,0.12),
    inset 0 0 14px 4px rgba(124,58,237,0.03);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

.scroll-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── About ── */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.1em;
}

.education-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.education-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.education-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-school {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.education-degree {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.education-meta {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.minors-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.minor-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.minor-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }

.value-number {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.value-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Skills ── */
.skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.skill-card:hover {
  border-color: rgba(124,58,237,0.20);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(124,58,237,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(124,58,237,0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ── Projects ── */
.projects { background: var(--bg-2); }

/* Screenshot slider card */
.project-card--slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.img-slider {
  position: relative;
  overflow: hidden;
  background: #080810;
  aspect-ratio: 736 / 920;
  display: flex;
  flex-direction: column;
}

.img-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  overflow: hidden;
  align-content: start;
}

.img-gallery--3col { grid-template-columns: repeat(3, 1fr); }
.img-gallery--4col { grid-template-columns: repeat(4, 1fr); }
.img-gallery--6col { grid-template-columns: repeat(6, 1fr); }

.img-gallery img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  padding: 0 1rem;
  user-select: none;
}
.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow:disabled { opacity: 0.15; cursor: default; }
.lightbox-arrow--prev { left: 0.5rem; }
.lightbox-arrow--next { right: 0.5rem; }

.img-slider-track {
  flex: 1 0 auto;
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-slider-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.25);
  background: rgba(255,255,255,0.80);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
  z-index: 2;
}
.slider-arrow--prev { left: 1rem; }
.slider-arrow--next { right: 1rem; }
.slider-arrow:hover {
  background: rgba(124,58,237,0.10);
  border-color: rgba(124,58,237,0.50);
}
.slider-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.slider-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.slider-card-info {
  padding: 2.5rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Reversed slider card: info on left, slider on right */
.project-card--slider-reverse .img-slider { order: 2; }
.project-card--slider-reverse .slider-card-info {
  order: 1;
  border-left: none;
  border-right: 1px solid var(--border);
}

@media (max-width: 900px) {
  .project-card--slider { grid-template-columns: 1fr; }
  .slider-card-info { border-left: none; border-top: 1px solid var(--border); }
  .project-card--slider-reverse .img-slider,
  .project-card--slider-reverse .slider-card-info { order: unset; }
  .project-card--slider-reverse .slider-card-info { border-right: none; }
}


/* Stacked grid card: info on top, image grid below */
.project-card--grid {
  display: flex;
  flex-direction: column;
}

.project-card--grid .project-info {
  padding: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}

.project-card:hover {
  border-color: rgba(124,58,237,0.20);
  transform: translateY(-4px);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.project-card-inner--reverse {
  direction: rtl;
}
.project-card-inner--reverse > * { direction: ltr; }

.project-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-visual--1 { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.project-visual--2 { background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%); }
.project-visual--3 { background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); }

/* Abstract art shapes for project cards */
.project-placeholder-art { position: relative; width: 200px; height: 200px; }

.art-shape { position: absolute; }

.art-shape--circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.35);
  top: 20px; left: 20px;
  animation: spin 12s linear infinite;
}

.art-shape--rect {
  width: 80px; height: 80px;
  border: 2px solid rgba(124,58,237,0.20);
  border-radius: 12px;
  bottom: 10px; right: 10px;
  transform: rotate(20deg);
  animation: spin 18s linear infinite reverse;
}

.art-shape--line {
  width: 160px; height: 2px;
  background: linear-gradient(to right, rgba(99,102,241,0.5), transparent);
  top: 50%; left: 20px;
  transform: translateY(-50%);
}

.art-shape--dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 2px solid rgba(99,102,241,0.35);
  bottom: 40px; right: 40px;
  animation: pulse 3s ease-in-out infinite;
}

.art-shape--tri {
  width: 0; height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(124,58,237,0.15);
  top: 30px; left: 50px;
  animation: spin 20s linear infinite;
}

.art-shape--circle-sm {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.25);
  bottom: 30px; right: 30px;
  animation: pulse 4s ease-in-out 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.7; }
}

.project-info {
  padding: 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.project-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-tags span::before {
  content: "·";
  margin-right: 0.35rem;
}

.project-info h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.project-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.project-link:hover { opacity: 0.8; gap: 0.6rem; }

/* ── Contact ── */
.contact { background: var(--bg); }

.contact-inner {
  max-width: 620px;
}

.contact-heading { margin-bottom: 1.25rem; }

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-link:hover { color: var(--text); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-group.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-group.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.1s; }
.reveal-group.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.2s; }
.reveal-group.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid          { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid         { grid-template-columns: 1fr; }
  .project-card-inner,
  .project-card-inner--reverse { grid-template-columns: 1fr; direction: ltr; }
  .project-visual      { min-height: 220px; }
  .hero-deco           { opacity: 0.4; right: -15%; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(250,250,248,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.4rem; }
  .nav-toggle { display: flex; }
  .hero-deco { display: none; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Selection color ── */
::selection {
  background: rgba(196,181,253,0.25);
  color: var(--text);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
