/* ============================================================
   JOSEPH MAHEMBEGA PORTFOLIO — STYLESHEET
   Dark luxury editorial × African tech futurism
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:          #04040b;
  --bg-1:        #080812;
  --bg-2:        #0d0d1a;
  --bg-3:        #121220;
  --gold:        #d4b87a;
  --gold-bright: #f0d898;
  --gold-dark:   #9a8252;
  --gold-5:      rgba(212,184,122,0.05);
  --gold-10:     rgba(212,184,122,0.10);
  --gold-20:     rgba(212,184,122,0.20);
  --gold-40:     rgba(212,184,122,0.40);
  --blue:        #4a7aff;
  --green:       #2ecc71;
  --red:         #e74c3c;
  --purple:      #a855f7;
  --text:        #f0f0fa;
  --text-2:      #bbbbd6;
  --text-3:      #7878a0;
  --border:      rgba(212,184,122,0.2);
  --border-2:    rgba(212,184,122,0.36);
  --radius:      4px;
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9000; opacity: 1;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }
button { cursor: none; border: none; background: none; font: inherit; color: inherit; }

/* ── Loader ──────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.loader-inner { text-align: center; }

.loader-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: loaderFade 0.8s ease 0.3s forwards;
}
.loader-bar-wrap {
  width: 240px; height: 1px;
  background: var(--border);
  margin: 0 auto 1.2rem;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.05s linear;
}
.loader-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.15em;
}
.loader-pct { color: var(--gold-dark); }

@keyframes loaderFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Custom Cursor ───────────────────────────────────────── */
#cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: opacity 0.2s, transform 0.1s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 44px; height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.3s, opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;
}
#cursor-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem; letter-spacing: 0.15em;
  color: var(--gold); text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s;
}
body.cursor-hover #cursor-dot   { opacity: 0; transform: translate(-50%,-50%) scale(0); }
body.cursor-hover #cursor-ring  { width: 72px; height: 72px; opacity: 0.9; }
body.cursor-hover #cursor-label { opacity: 1; }
body.cursor-link  #cursor-ring  { width: 56px; height: 56px; opacity: 0.7; border-color: var(--gold-bright); }

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

/* ── Nav ─────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}
#nav.scrolled {
  background: rgba(4,4,11,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem; font-weight: 500;
  color: var(--gold); letter-spacing: 0.2em;
}
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; color: var(--text-2);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 1px;
  background: var(--gold); transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border-2);
  padding: 0.6rem 1.4rem;
  transition: all 0.3s; display: inline-block;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: 1160px; margin: 0 auto;
  padding: 0 3rem; position: relative; z-index: 2;
}

/* ── Section Commons ─────────────────────────────────────── */
section { padding: 7rem 0; position: relative; z-index: 2; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; color: var(--gold-bright);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 18px rgba(212,184,122,0.35);
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--gold-bright);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.section-title em { color: var(--gold-bright); font-style: italic; text-shadow: 0 0 40px rgba(212,184,122,0.3); }
.section-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--text-2);
  margin-top: 0.75rem; font-style: italic;
}
.section-intro { margin-bottom: 3.5rem; }

/* ── Reveal animations ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex;
  align-items: center; padding: 0 3rem;
  position: relative; overflow: hidden;
}
.hero-content { max-width: 920px; padding-top: 5rem; position: relative; z-index: 2; }

.hero-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; color: var(--gold);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0;
}
.hero-tag::before { content: ''; width: 30px; height: 1px; background: var(--gold); }

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 300; line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  display: block; overflow: hidden;
  opacity: 0;
}
.hero-name .line-1 { display: block; }
.hero-name .line-2 { display: block; }
.hero-name em {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-title {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-2); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  opacity: 0;
}
.hero-title .divider { margin: 0 0.75rem; color: var(--gold); opacity: 0.5; }

.hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 300; color: var(--text-2);
  max-width: 560px; line-height: 1.8;
  margin-bottom: 3rem; opacity: 0;
}
.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; opacity: 0; }

.btn-gold {
  display: inline-block; padding: 0.9rem 2.4rem;
  background: var(--gold); color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  clip-path: polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));
  transition: background 0.3s, transform 0.25s;
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; padding: 0.9rem 2.4rem;
  border: 1px solid var(--border-2); color: var(--text-2);
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 3rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--text-2);
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem; align-items: start;
}
.about-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem; font-weight: 400;
  color: var(--text-2); line-height: 1.9;
  margin-bottom: 1.4rem;
}
.about-text strong { color: #ffffff; font-weight: 600; }
.about-text em { color: var(--gold-bright); font-style: italic; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border);
}
.stat-card {
  background: var(--bg-1); padding: 2rem 1.8rem;
  transition: background 0.3s;
}
.stat-card:hover { background: var(--bg-3); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem; font-weight: 300;
  color: var(--gold); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--text-2);
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: pre-line; line-height: 1.5;
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden; padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1); position: relative; z-index: 2;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  flex-shrink: 0; padding: 0 2.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; color: var(--text-2);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 2.5rem;
}
.marquee-item::after {
  content: '✦';
  color: var(--gold); font-size: 0.55rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Projects ────────────────────────────────────────────── */
#projects { padding-bottom: 0; }

.projects-header { margin-bottom: 3rem; }
.projects-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--text-2);
  letter-spacing: 0.12em; margin-top: 0.5rem;
}

.projects-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.projects-viewport::-webkit-scrollbar { display: none; }
.projects-viewport.is-dragging { cursor: grabbing; }

.projects-track {
  display: flex; gap: 2rem;
  padding: 0 3rem 2rem;
  width: max-content;
}

/* Scroll progress indicator */
.projects-scroll-bar {
  height: 1px; margin: 0 3rem 3rem;
  background: var(--border); position: relative; overflow: hidden;
}
.projects-scroll-progress {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-bright));
  transition: width 0.08s linear;
}

.project-card {
  flex-shrink: 0; width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2rem 2.2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.1s, box-shadow 0.4s;
  cursor: none;
  transform-style: preserve-3d;
}
.project-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-accent, var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: left;
}
.project-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,184,122,0.12);
}
.project-card:hover::before { transform: scaleX(1); }

.project-card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--card-glow, rgba(200,169,110,0.04)), transparent 70%);
  pointer-events: none; transition: opacity 0.4s;
  opacity: 0;
}
.project-card:hover .project-card-glow { opacity: 1; }

.project-num {
  position: absolute;
  top: 0.4rem; right: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem; font-weight: 300;
  color: rgba(212,184,122,0.08);
  line-height: 1; margin: 0;
  pointer-events: none; user-select: none;
  transition: color 0.4s;
}
.project-card:hover .project-num { color: rgba(212,184,122,0.18); }

.project-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 0.5rem;
}
.project-live {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.15em;
  color: var(--green); padding: 0.15rem 0.6rem;
  border: 1px solid rgba(46,204,113,0.3);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.4rem;
}
.project-live::before {
  content: ''; width: 5px; height: 5px;
  background: var(--green); border-radius: 50%;
  animation: blink 1.8s infinite;
}
.project-dev {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.15em;
  color: var(--text-3); padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  text-transform: uppercase;
}
.project-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; color: var(--text-3);
  letter-spacing: 0.08em;
}
.project-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.project-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--gold-bright);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.project-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-2);
  line-height: 1.75; margin-bottom: 1.3rem;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.project-tech span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem; letter-spacing: 0.05em;
  transition: color 0.25s, border-color 0.25s;
}
.project-card:hover .project-tech span {
  border-color: rgba(212,184,122,0.28);
  color: var(--text);
}
.project-arrow {
  position: absolute; bottom: 2.5rem; right: 2.5rem;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold);
  opacity: 0; transform: translateY(6px) translateX(-6px);
  transition: all 0.35s var(--ease-out);
}
.project-card:hover .project-arrow { opacity: 1; transform: translateY(0) translateX(0); }

@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ── Experience ──────────────────────────────────────────── */
#experience { background: var(--bg-2); }

.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 4rem; padding: 2.8rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.exp-item:first-child { border-top: 1px solid var(--border); }
.exp-meta { padding-top: 0.2rem; }
.exp-period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; color: var(--gold);
  letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.exp-company {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-2);
}
.exp-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 0.3rem; border: 1px solid var(--border);
  display: inline-block; padding: 0.15rem 0.5rem;
}
.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.exp-context {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-2);
  font-style: italic; margin-bottom: 1.2rem;
}
.exp-highlights { display: flex; flex-direction: column; gap: 0.55rem; }
.exp-highlights li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text);
  line-height: 1.65; padding-left: 1.3rem; position: relative;
}
.exp-highlights li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--gold-dark);
}

/* ── Infrastructure ──────────────────────────────────────── */
#infrastructure { background: var(--bg); }

.infra-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border);
}
.infra-item {
  background: var(--bg-1); padding: 2rem 1.8rem;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.infra-item:hover { background: var(--bg-2); }
.infra-item::after {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease-out);
}
.infra-item.down::after { background: var(--red); }
.infra-item:hover::after { transform: scaleY(1); }
.infra-status-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: blink 2.5s infinite;
}
.status-dot.down { background: var(--red); animation: none; }
.status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status-text.up   { color: var(--green); }
.status-text.down { color: var(--red);   }
.infra-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.4rem;
}
.infra-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; color: var(--text-2);
  letter-spacing: 0.04em; line-height: 1.5;
}

/* ── Recognition ─────────────────────────────────────────── */
#recognition { background: var(--bg-2); }

.recognition-block {
  border: 1px solid var(--border-2);
  padding: 4rem; background: var(--bg-1);
  position: relative; overflow: hidden;
}
.recognition-block::before {
  content: 'ADLI';
  position: absolute; right: -2rem; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Cormorant Garamond', serif;
  font-size: 10rem; font-weight: 300;
  color: rgba(200,169,110,0.03);
  pointer-events: none; letter-spacing: -0.05em;
}
.recognition-orgs {
  display: flex; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.org-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.recognition-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300; line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #ffffff;
}
.recognition-title em { color: var(--gold-bright); text-shadow: 0 0 30px rgba(212,184,122,0.25); }
.recognition-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--text-2);
  line-height: 1.85; max-width: 680px;
  margin-bottom: 2rem;
}
.recognition-topics {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.recognition-topics li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; color: var(--text-2);
  letter-spacing: 0.05em; padding-left: 1.2rem;
  position: relative;
}
.recognition-topics li::before {
  content: '→'; position: absolute; left: 0; color: var(--gold);
}

/* ── Stack ───────────────────────────────────────────────── */
#stack { background: var(--bg); }

.stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border);
}
.stack-group {
  background: var(--bg-1); padding: 2.2rem;
  transition: background 0.3s;
}
.stack-group:hover { background: var(--bg-2); }
.stack-group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1.2rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--text-2);
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.stack-tag:hover { color: var(--gold-bright); border-color: var(--gold); background: var(--gold-5); }

/* ── Contact ─────────────────────────────────────────────── */
#contact {
  background: var(--bg-2);
  padding: 9rem 0; text-align: center;
  position: relative; overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}
.contact-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; color: var(--gold);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.1;
  margin-bottom: 1.2rem; letter-spacing: -0.02em;
}
.contact-title em { color: var(--gold); }
.contact-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; color: var(--text-2);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 3.5rem;
}
.contact-links {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 2.5rem;
}
.contact-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; color: var(--text-2);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  display: inline-block;
}
.contact-link:hover { color: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-3px); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2; background: var(--bg);
}
.footer-copy, .footer-right {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--text-2);
  letter-spacing: 0.08em;
}
.footer-copy span { color: var(--gold); }

/* ── Magnetic button wrapper ─────────────────────────────── */
.magnetic { display: inline-block; }

/* ── Scroll Progress ─────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-bright));
  transform-origin: left; transform: scaleX(0);
  z-index: 9001; pointer-events: none;
  will-change: transform;
}

/* ── Active Nav ──────────────────────────────────────────── */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }

/* ── Mobile Hamburger ────────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none;
  cursor: none; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Nav Overlay ──────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0;
  background: rgba(4,4,11,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 490;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-links {
  display: flex; flex-direction: column;
  align-items: center; gap: 2rem; text-align: center;
}
.mobile-nav-links li { overflow: hidden; }
.mobile-nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 300; color: var(--text-3);
  letter-spacing: -0.02em;
  transition: color 0.25s, transform 0.3s var(--ease-out);
  display: block;
}
.mobile-nav-links a:hover { color: var(--gold); transform: translateX(10px); }
.mobile-nav-footer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--text-3);
  letter-spacing: 0.1em; text-align: center;
  line-height: 2;
}
.mobile-nav-footer a { color: var(--gold); transition: opacity 0.2s; }
.mobile-nav-footer a:hover { opacity: 0.7; }

/* ── Education Block ─────────────────────────────────────── */
.education-block {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  padding: 2rem 4rem;
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s;
}
.education-block:hover { border-color: var(--border-2); background: var(--bg-1); }
.edu-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.edu-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.15rem;
}
.edu-school {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; color: var(--text-2); font-style: italic;
}
.edu-period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--text-3);
  letter-spacing: 0.1em; flex-shrink: 0;
}

/* ── Focus Visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ── Touch devices ───────────────────────────────────────── */
@media (hover: none) {
  body   { cursor: auto; }
  button { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 1.5rem; }
  #hero { padding: 0 1.5rem; }
  .hero-scroll { left: 1.5rem; }
  section { padding: 5rem 0; }
  .stack-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 1rem; }
  .recognition-block { padding: 2.5rem; }
  .education-block { padding: 1.5rem 2rem; }
  .project-card { width: 320px; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  #scroll-progress { transition: none; }
}
