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

:root {
  --bg: #0e0e0e;
  --bg2: #151515;
  --surface: #1c1c1c;
  --border: #2a2a2a;
  --text: #f0ede8;
  --muted: #888;
  --accent: #c0c0c0;
  --accent2: #a0a8b8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 4rem);
  max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(14,14,14,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: padding 0.3s, background 0.4s, box-shadow 0.4s, top 0.3s;
}
nav.scrolled {
  top: 0.75rem;
  background: rgba(14,14,14,0.85);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  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.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0e0e0e;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 6vw 4rem;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6rem;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: unset;
  margin: 0;
}
.hero-name em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.hero-role {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-dot {
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}
.hero-sub {
  margin-top: 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.7;
  font-weight: 300;
  text-align: left;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-actions {
  margin-top: 0.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: flex-start;
}
.hero-right { flex-shrink: 0; margin-left: -2rem; }
.hero-photo-wrap {
  position: relative;
  width: 380px;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  background: linear-gradient(135deg, var(--accent), var(--accent2), transparent 60%);
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.4s;
}
.hero-photo-wrap:hover::before { opacity: 1; }
.hero-photo {
  width: 380px;
  height: 465px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s;
}
.hero-photo:hover { filter: grayscale(0%); }
.hero-photo-placeholder {
  display: none;
  width: 380px;
  height: 420px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: #4ade80;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}
.hero-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.7;
  font-weight: 300;
  text-align: center;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-actions {
  margin-top: 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(192,192,192,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(192,192,192,0.35); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(192,192,192,0.1); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
/* background grid */
#hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  opacity: 0.35;
}
/* ambient orbs */
#hero::before {
  content: '';
  position: absolute; z-index: -1; pointer-events: none;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,192,192,0.07) 0%, transparent 65%);
  top: -200px; right: -150px;
}
.hero-orb {
  position: absolute; z-index: -1; pointer-events: none;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(160,168,184,0.05) 0%, transparent 65%);
  bottom: -100px; left: -100px;
}

/* ── SECTION SHARED ── */
section { padding: 7rem 6vw; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted);
  max-width: 55ch;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.about-text { text-align: center; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; font-size: 1rem; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(192,192,192,0.15), 0 12px 40px rgba(192,192,192,0.07); }
.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.73rem;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECTS ── */
#projects { background: var(--bg2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: rgba(28,28,28,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(192,192,192,0.25);
  box-shadow: 0 0 0 1px rgba(192,192,192,0.1), 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.project-thumb {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #1c2a14 0%, #0d1a10 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; overflow: hidden;
}
.project-thumb--blue   { background: linear-gradient(135deg, #14202a 0%, #0d1018 100%); }
.project-thumb--purple { background: linear-gradient(135deg, #1a1420 0%, #100e18 100%); }
.project-thumb--red    { background: linear-gradient(135deg, #201414 0%, #180d0d 100%); }
.project-thumb--teal   { background: linear-gradient(135deg, #0d1a20 0%, #0a1018 100%); }
.project-thumb--olive  { background: linear-gradient(135deg, #1a200d 0%, #111800 100%); }

.project-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(192,192,192,0.15), transparent 60%);
}
.project-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.project-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; z-index: 0;
}
.project-body { padding: 1.6rem; flex: 1; }
.project-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.project-year { font-size: 0.75rem; color: var(--muted); }
.project-type {
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(192,192,192,0.1);
  border: 1px solid rgba(192,192,192,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.project-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.project-links { display: flex; gap: 1rem; padding: 1.2rem 1.6rem 1.6rem; }
.project-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.project-link:hover { color: var(--accent); }

/* ── EXPERIENCE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.35rem; top: 0.3rem;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(192,192,192,0.15);
}
.timeline-period { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.timeline-company { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.75rem; }
.timeline-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 60ch; }
.timeline-bullets { list-style: none; margin-top: 0.6rem; }
.timeline-bullets li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 60ch;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.timeline-bullets li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── CONTACT ── */
#contact { background: var(--bg2); text-align: center; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner .section-title { font-size: clamp(2.5rem, 5vw, 4rem); }
.contact-inner .section-desc { margin-left: auto; margin-right: auto; }
.contact-links {
  display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 2.5rem;
}
.contact-link {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  padding: 2rem 6vw;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-socials { display: flex; gap: 1.2rem; }
.footer-socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--accent); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, transform 0.2s;
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── AMBIENT CANVAS ── */
#ambientCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* ── TERMINAL ── */
.hero-terminal {
  background: rgba(16,16,16,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.terminal-bar {
  background: rgba(40,40,40,0.95);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }
.t-title {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-family: 'DM Sans', monospace;
}
.terminal-body {
  padding: 1.2rem 1.4rem 1.4rem;
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 0.88rem;
  min-height: 170px;
  line-height: 1.7;
}
.term-line { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.1rem; }
.term-prompt { color: var(--accent); flex-shrink: 0; }
.term-cmd { color: rgba(255,255,255,0.9); }
.term-out { color: rgba(180,190,210,0.85); padding-left: 1rem; }
.term-name { color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.term-cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  border-radius: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── CONSTELLATION ── */
.constellation-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(18,18,18,0.7);
  backdrop-filter: blur(8px);
  position: relative;
}
#constellationCanvas { display: block; width: 100%; }
.constellation-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem;
  opacity: 0.6;
}
.skills-mobile-only { display: none; }

/* ── STAGGER ANIMATIONS ── */
.projects-grid .project-card:nth-child(1) { transition-delay: 0s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.12s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.24s; }
.skills-grid .skill-card:nth-child(1) { transition-delay: 0s; }
.skills-grid .skill-card:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .skill-card:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .skill-card:nth-child(4) { transition-delay: 0.3s; }

/* ── WHACK A BUG ── */
#bugs { background: var(--bg); }
.wab-wrapper { max-width: 580px; margin: 0 auto; }

.wab-hud {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.8rem;
}
.wab-stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.wab-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wab-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1; }
.wab-lives { font-size: 1.3rem; letter-spacing: 0.05em; }

.wab-board-wrap { position: relative; border-radius: 20px; overflow: hidden; }

.wab-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
}

.wab-hole {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.wab-bug-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}
.wab-bug {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  transform: translateY(110%);
  transition: transform 0.15s cubic-bezier(0.34, 1.5, 0.64, 1);
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0 0 4px 0;
  line-height: 1;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.wab-bug.active { transform: translateY(5%); }
.wab-bug.whacked {
  transform: translateY(-20%) scale(1.4) rotate(15deg);
  transition: transform 0.08s;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255,80,80,0.7));
}
.wab-hole-pit {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 88%; height: 42%;
  background: radial-gradient(ellipse at center 30%, #111 0%, #050505 100%);
  border-radius: 50%;
  border: 2px solid #1e1e1e;
  box-shadow: inset 0 6px 16px rgba(0,0,0,0.9), 0 3px 8px rgba(0,0,0,0.6);
  z-index: 2;
  pointer-events: none;
}

/* Overlay (start + end screens) */
.wab-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  z-index: 10;
}
.wab-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}
.wab-overlay-icon { font-size: 3.5rem; animation: wabBob 1.5s ease-in-out infinite; }
@keyframes wabBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.wab-overlay-inner h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.wab-overlay-inner p { color: var(--muted); font-size: 0.9rem; max-width: 32ch; line-height: 1.6; }
.wab-final-score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.wab-end-msg {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  max-width: 34ch;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-grid { gap: 3rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-photo-wrap { width: 100%; }
  .hero-photo { width: 100%; height: 320px; }
  .hero-photo-placeholder { width: 100%; height: 320px; }
  .hero-left { align-items: center; text-align: center; }
  .hero-sub { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-role { justify-content: center; }
  nav { width: calc(100% - 2rem); border-radius: 100px; }
  .constellation-wrap { display: none; }
  .skills-mobile-only { display: grid; }
}
