/* ═══════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:         #050a14;
  --bg-dark:    #030710;
  --bg-card:    rgba(255,255,255,0.04);
  --bg-card-h:  rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.08);
  --border-h:   rgba(0,212,255,0.3);
  --cyan:       #00d4ff;
  --cyan-dim:   rgba(0,212,255,0.15);
  --purple:     #7c3aed;
  --purple-dim: rgba(124,58,237,0.15);
  --amber:      #f59e0b;
  --red:        #ef4444;
  --green:      #10b981;
  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:0 0 40px rgba(0,212,255,0.15);
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --nav-h:      68px;
  --trans:      0.3s ease;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-dark);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: -36px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-container .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.subsection-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--trans), box-shadow var(--trans);
}

#navbar.scrolled {
  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--trans), opacity var(--trans);
}

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

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--trans);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.25);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1000px;
  padding: 120px 24px 80px;
}

.hero-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(0,212,255,0.4);
}

.hero-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--cyan), var(--purple)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
  z-index: 1;
}

.hero-photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  z-index: 0;
}

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

.hero-greeting {
  font-size: 1rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, rgba(0,212,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-roles {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cyan);
  min-height: 1.6em;
  margin-bottom: 12px;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  opacity: 1;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-dot {
  width: 6px;
  height: 36px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-text strong { color: var(--text); }

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.stat-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Skills */
.skill-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--trans);
}

.tag:hover {
  border-color: var(--border-h);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ═══════════════════════════════════════════════
   TIMELINE / EXPERIENCE
═══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 52px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.timeline-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
}

.timeline-header {
  margin-bottom: 16px;
}

.timeline-header h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 20px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 10px;
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
  top: 2px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
}

/* ═══════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.project-icon {
  font-size: 2rem;
  line-height: 1;
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
}

.project-meta {
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tags span {
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-family: var(--font-mono);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════
   SOFTWARE ART
═══════════════════════════════════════════════ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.art-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  position: relative;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.art-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
}

.art-card canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.art-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--font-mono);
}

.art-label em {
  color: var(--text-dim);
  font-style: normal;
}

/* ═══════════════════════════════════════════════
   MARKETS
═══════════════════════════════════════════════ */
.tradingview-wrapper {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.news-widget-wrapper {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   ENCYCLOPEDIA
═══════════════════════════════════════════════ */
.encyclopedia-wrapper {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.encyclopedia-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  flex-wrap: wrap;
}

.enc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--trans);
  flex-shrink: 0;
}

.enc-btn:hover {
  border-color: var(--border-h);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.enc-btn-play {
  background: var(--cyan-dim);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}

.enc-page-info {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}

.enc-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  min-width: 80px;
}

.enc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
}

.encyclopedia-canvas-wrapper {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

#encyclopediaCanvas {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
}

.enc-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0,0,0,0.7);
}

.enc-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════
   THINKING TOOLS / POSTERS
═══════════════════════════════════════════════ */
.posters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 20px;
}

.poster-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.poster-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
}

.poster-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.poster-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.poster-label h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.poster-label p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.poster-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.poster-img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--trans);
  backdrop-filter: blur(2px);
}

.poster-link:hover .poster-overlay { opacity: 1; }
.poster-link:hover .poster-img { transform: scale(1.02); filter: brightness(0.7); }

.poster-credit {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.poster-credit a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .posters-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   QUOTES
═══════════════════════════════════════════════ */
.quotes-carousel {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote-display {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.quote-mark {
  font-size: 6rem;
  line-height: 0.5;
  color: var(--cyan);
  opacity: 0.25;
  font-family: Georgia, serif;
  position: absolute;
  top: 28px;
  left: 36px;
  user-select: none;
}

.quote-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  transition: opacity 0.4s ease;
}

.quote-author {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.quote-category {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid transparent;
  transition: all var(--trans);
  cursor: pointer;
}

.quote-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.quote-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--trans);
}

.quote-btn:hover {
  border-color: var(--border-h);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ═══════════════════════════════════════════════
   SIGN-OFFS
═══════════════════════════════════════════════ */
.signoff-carousel {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.signoff-display {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.signoff-dash {
  font-size: 3rem;
  line-height: 0.5;
  color: var(--amber);
  opacity: 0.35;
  font-family: Georgia, serif;
  position: absolute;
  top: 28px;
  left: 36px;
  user-select: none;
}

.signoff-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  position: relative;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.signoff-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .signoff-display { padding: 36px 24px; min-height: 160px; }
  .signoff-text { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════════ */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: all var(--trans);
}

.education-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow);
}

.edu-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.edu-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-school {
  color: var(--cyan);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.edu-content p:last-child {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-container {
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--trans);
  width: 100%;
  max-width: 440px;
  justify-content: center;
}

.contact-link:hover {
  border-color: var(--border-h);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects-grid,
  .market-cards { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-categories { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(5,10,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 32px;
  }

  .nav-toggle { display: flex; }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
    padding-top: 100px;
  }

  .hero-links { justify-content: center; }

  .projects-grid,
  .market-cards,
  .art-grid,
  .education-grid,
  .skill-categories { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .hero-photo { width: 160px; height: 160px; }

  .timeline { padding-left: 20px; }
  .timeline-dot { left: -27px; }

  .timeline-card { padding: 20px; }

  .quote-display { padding: 36px 24px; }

  .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-link { padding: 14px 20px; font-size: 0.85rem; }
}
