/* =========================================================
   WISDOM NNADI — PORTFOLIO
   ========================================================= */

:root {
  --bg:         #03030d;
  --bg2:        #070714;
  --surface:    #0c0c22;
  --surface2:   #101028;
  --border:     rgba(120, 140, 255, 0.09);
  --border-hi:  rgba(0, 220, 255, 0.28);
  --cyan:       #00dcff;
  --purple:     #7c3aed;
  --green:      #10f07a;
  --text:       #e8edf8;
  --text-dim:   #8899bb;
  --text-muted: #3d4870;
  --font:       'Space Grotesk', sans-serif;
  --mono:       'Space Mono', monospace;
  --radius:     12px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--cyan); }

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.15; }
.section-desc {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--text-dim);
  font-size: 17px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 3, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--cyan) !important;
  border: 1px solid rgba(0, 220, 255, 0.35);
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: rgba(0, 220, 255, 0.1) !important;
  color: var(--cyan) !important;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 220, 255, 0.07) 0%, transparent 60%),
              var(--bg);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-content { max-width: 640px; }

/* ── HERO PHOTO ── */
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  animation: photo-float-anim 6s ease-in-out infinite;
}
@keyframes photo-float-anim {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 40%, rgba(0,220,255,0.35) 0%, rgba(124,58,237,0.25) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.8;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.05); }
}
.photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
}
.photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.photo-frame:hover .photo-img {
  filter: grayscale(0) contrast(1.05);
}
.photo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}
.photo-frame.no-photo .photo-fallback { display: flex; }
.photo-fallback span {
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.photo-fallback small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(7, 7, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.photo-badge strong { display: block; font-size: 14px; color: var(--text); line-height: 1.2; }
.photo-badge small  { font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.06em; }
.pb-dot {
  width: 9px; height: 9px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(16,240,122,0.6);
}
.photo-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 8px 13px;
  background: rgba(12, 12, 34, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.photo-float svg { color: var(--cyan); }
.photo-float-1 {
  top: 18%;
  right: -42px;
  animation: chip-bob 4.5s ease-in-out infinite;
}
.photo-float-2 {
  top: 52%;
  left: -46px;
  animation: chip-bob 4.5s ease-in-out 1.2s infinite;
}
@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 240, 122, 0.4);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 240, 122, 0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(16, 240, 122, 0); }
}

.hero-title {
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .line-1 { display: block; color: var(--text); }
.hero-title .line-2 {
  display: block;
  background: linear-gradient(120deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-socials {
  display: flex;
  gap: 20px;
}
.hero-socials a {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.hero-socials a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.scroll-hint span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
  50%       { transform: scaleY(0.6) translateY(10px); opacity: 0.4; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0088ff 100%);
  color: #03030d;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 220, 255, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 220, 255, 0.4);
}
.btn-outline:hover { background: rgba(0, 220, 255, 0.08); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 18px;
}
.about-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pill-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 220, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}
.stat-num {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.stat-num span { color: var(--cyan); font-size: 28px; }
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.platform-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.platform-pills span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* =========================================================
   MECHANICS SHOWCASE
   ========================================================= */
.mechanics {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.filter-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  border-color: var(--border-hi);
  color: var(--text);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--cyan), #0088ff);
  border-color: transparent;
  color: #03030d;
  font-weight: 600;
}

/* Grid */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.mechanic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.mechanic-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 220, 255, 0.12);
}
.mechanic-card.hidden { display: none; }

/* Video area */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.mechanic-card:hover .video-wrap img { transform: scale(1.04); }

/* Placeholder state */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0,220,255,0.06) 0%, rgba(124,58,237,0.08) 100%);
  transition: background 0.3s;
}
.video-placeholder.vp-purple {
  background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(0,220,255,0.04) 100%);
}
.video-placeholder.vp-green {
  background: linear-gradient(135deg, rgba(16,240,122,0.08) 0%, rgba(0,220,255,0.04) 100%);
}
.mechanic-card:hover .video-placeholder {
  background: linear-gradient(135deg, rgba(0,220,255,0.11) 0%, rgba(124,58,237,0.14) 100%);
}
.vp-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(0, 220, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.mechanic-card:hover .vp-icon {
  transform: scale(1.1);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 220, 255, 0.3);
}
.vp-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Card body */
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 220, 255, 0.08);
  border: 1px solid rgba(0, 220, 255, 0.18);
  padding: 4px 10px;
  border-radius: 4px;
}
.card-cat {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.card-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
}

/* =========================================================
   EXPERIENCE / TIMELINE
   ========================================================= */
.experience {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(0,220,255,0.05));
}

.tl-item {
  display: grid;
  grid-template-columns: 180px 1px 1fr;
  gap: 0 32px;
  padding-bottom: 60px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-left {
  text-align: right;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tl-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.tl-now {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(16, 240, 122, 0.1);
  border: 1px solid rgba(16, 240, 122, 0.25);
  padding: 3px 9px;
  border-radius: 4px;
}

.tl-dot {
  width: 13px;
  height: 13px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,220,255,0.15), 0 0 16px rgba(0,220,255,0.4);
  margin-top: 4px;
  justify-self: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.tl-right { padding-top: 0; }
.tl-right h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.tl-company {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.tl-right ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.tl-right li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.tl-right li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 12px;
  top: 2px;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tl-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(0,220,255,0.06);
  border: 1px solid rgba(0,220,255,0.15);
  border-radius: 5px;
  color: var(--text-dim);
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-group:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}
.skill-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-pills span {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.skill-group:hover .skill-pills span {
  border-color: rgba(120,140,255,0.18);
  color: var(--text);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 140px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 60%);
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact-desc {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 48px;
}
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.contact-extra-links {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  font-size: 14px;
}
.contact-extra-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.contact-extra-links a:hover { color: var(--cyan); }
.link-sep { color: var(--text-muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer p { font-size: 14px; color: var(--text-muted); }
.footer-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }

/* =========================================================
   STUDIO — TERKION GAMES
   ========================================================= */
.studio {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 96px;
}
.studio-text p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 18px;
}
.studio-text strong { color: var(--text); font-weight: 600; }
.studio-text .btn { margin-top: 16px; }

.studio-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.studio-flagship {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(0,220,255,0.06));
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 28px;
}
.flagship-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.studio-flagship h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.studio-flagship p { color: var(--text-dim); font-size: 14px; }

.studio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.studio-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.3s, transform 0.3s;
}
.studio-stat:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.studio-stat strong { display: block; font-size: 17px; color: var(--cyan); line-height: 1.2; }
.studio-stat small  { font-size: 12px; color: var(--text-dim); }

/* Tutorials & devlogs */
.tutorials-header { text-align: center; margin: 0 auto 40px; max-width: 640px; }
.tutorials-header h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 10px; }
.tutorials-header p  { color: var(--text-dim); font-size: 16px; }
.tutorials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 96px;
}
.tutorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.tutorial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tutorial-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tutorial-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 220, 255, 0.08);
  border: 1px solid rgba(0, 220, 255, 0.18);
  padding: 4px 10px;
  border-radius: 4px;
}
.tutorial-body h4 { font-size: 16px; font-weight: 600; line-height: 1.3; }

/* Events gallery */
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-header h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 10px; }
.gallery-header p  { color: var(--text-dim); font-size: 16px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
}
.gallery-item[data-span="2"] { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(to top, rgba(3,3,13,0.9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Placeholder when an event image is missing */
.gallery-item.no-img { cursor: default; }
.gallery-item.no-img img { display: none; }
.gallery-item.no-img::before {
  content: '🖼';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.4;
}
.gallery-item.no-img::after {
  content: 'Add event photo';
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.gallery-item.no-img figcaption { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(3, 3, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; animation: lb-fade 0.25s var(--ease); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 40px;
  line-height: 1;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.lightbox-close:hover { color: var(--cyan); transform: scale(1.1); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .mechanics-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid     { grid-template-columns: 1fr; gap: 56px; }
  .studio-grid    { grid-template-columns: 1fr; gap: 40px; }
  .studio-side    { position: static; flex-direction: row; flex-wrap: wrap; }
  .studio-flagship { flex: 1 1 280px; }
  .studio-stats    { flex: 1 1 280px; }
  .tutorials-row  { grid-template-columns: 1fr 1fr; }
  .gallery        { grid-template-columns: repeat(3, 1fr); }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding-top: 110px; }
  .hero-content { max-width: 100%; }
  .hero-photo { order: -1; }
  .photo-frame { max-width: 300px; }
  .photo-float-1 { right: -20px; }
  .photo-float-2 { left: -24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(3,3,13,0.97); backdrop-filter: blur(24px); padding: 24px; gap: 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }

  .hero-title { font-size: clamp(48px, 13vw, 80px); }
  .hero-desc { font-size: 16px; }
  .hero-desc br { display: none; }

  .photo-frame { max-width: 260px; }
  .photo-float { display: none; }

  .mechanics-grid { grid-template-columns: 1fr; }
  .skills-grid    { grid-template-columns: 1fr; }

  .timeline::before { left: 0; }
  .tl-item { grid-template-columns: 0 24px 1fr; gap: 0 16px; }
  .tl-left  { display: none; }
  .tl-right h3 { font-size: 17px; }

  .about-grid { gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .tutorials-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item[data-span="2"] { grid-column: span 2; grid-row: span 1; }

  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { text-align: center; justify-content: center; }
}

/* =========================================================
   WORLD-CLASS POLISH LAYER
   ========================================================= */

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 300;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── Cursor glow (desktop only) ── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px;
  height: 520px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,220,255,0.07) 0%, rgba(124,58,237,0.05) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.cursor-active .cursor-glow { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ── Numbered section eyebrows ── */
.sec-num {
  display: inline-block;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid rgba(0,220,255,0.3);
  color: var(--text-muted);
}

/* ── Skills marquee ── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 18px 0;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  font-size: 8px;
  color: var(--cyan);
  opacity: 0.6;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero entrance choreography ── */
.hero-title { overflow: hidden; }
.hero-title .line-1,
.hero-title .line-2 {
  opacity: 0;
  transform: translateY(110%) rotate(2deg);
  animation: title-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .line-2 { animation-delay: 0.12s; }
@keyframes title-rise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero-status, .hero-tags, .hero-desc, .hero-actions, .hero-socials {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-status  { animation-delay: 0.45s; }
.hero-tags    { animation-delay: 0.55s; }
.hero-desc    { animation-delay: 0.65s; }
.hero-actions { animation-delay: 0.75s; }
.hero-socials { animation-delay: 0.85s; }
.hero-photo {
  opacity: 0;
  animation: photo-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes fade-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Button shine sweep ── */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* ── 3D tilt + mouse-tracked glow on cards ── */
.mechanic-card, .tutorial-card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition: transform 0.18s ease-out, border-color 0.3s, box-shadow 0.3s;
}
.mechanic-card:hover, .tutorial-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}
.mechanic-card::before, .tutorial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,220,255,0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.mechanic-card:hover::before, .tutorial-card:hover::before { opacity: 1; }

/* ── Scrollbar & selection ── */
::selection { background: rgba(0,220,255,0.25); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--surface2), #1a1a40);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #232355; }

/* ── Headline refinement ── */
.section-header h2, .about-text h2, .contact-inner h2 {
  letter-spacing: -0.025em;
}

/* ── Footer redesign ── */
.footer {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 40px;
  text-align: left;
}
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -2.5vw;
  transform: translateX(-50%);
  font-size: clamp(80px, 17vw, 260px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(120, 140, 255, 0.08);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.footer .footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── Back to top ── */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: rgba(12, 12, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-top:hover { box-shadow: 0 0 24px rgba(0, 220, 255, 0.35); }

/* ── Nav link underline ── */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Reduced motion: switch off the theatrics ── */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .marquee-track { animation: none; }
  .hero-title .line-1, .hero-title .line-2,
  .hero-status, .hero-tags, .hero-desc, .hero-actions, .hero-socials, .hero-photo {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .photo-frame { animation: none; }
  .photo-float-1, .photo-float-2 { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .mechanic-card, .tutorial-card { transform: none !important; }
}

/* ── Profile photo: dissolve-into-code effect ── */
.photo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  z-index: 1;
  display: block;
}
.photo-frame.fx-on .photo-img {
  opacity: 0;
  transition: opacity 0.3s;
}
