/* ============================================================
   Design System — Dark-only premium palette
   ============================================================ */
:root {
  /* ----------------------------------------------------------
     Dark-only — premium "engineering tool" palette.
     Deep cool near-black canvas + indigo-periwinkle primary
     (trust / intelligence / innovation) + teal secondary.
     Tuned to subconsciously file this person under
     "high-quality engineering" (Linear / Vercel / Stripe lineage).
     ---------------------------------------------------------- */
  --bg:          #08090D;
  --bg-alt:      #0C0E13;
  --surface:     #11141B;
  --surface-2:   #161A23;
  --border:      #1F2430;
  --border-hi:   #2C3340;
  --text:        #ECEEF3;
  --text-muted:  #98A1B2;
  --text-faint:  #545C6E;
  --accent:      #6E7CFF;
  --accent-dim:  rgba(110, 124, 255, 0.10);
  --accent-glow: rgba(110, 124, 255, 0.34);
  --teal:        #2DE0C8;
  --green-dot:   #4ade80;
  --btn-text:    #0A0B12;
  --nav-bg:      rgba(12, 14, 19, 0.72);
  --mob-bg:      rgba(8, 9, 13, 0.97);
  --orb-1:       rgba(110, 124, 255, 0.14);
  --orb-2:       rgba(45, 224, 200, 0.08);
  --orb-3:       rgba(150, 110, 255, 0.07);
  --cursor-col:  rgba(110, 124, 255, 0.09);
  --grain-op:    0.03;
  --r:           12px;
  --r-lg:        20px;
  --nav-h:       72px;
}

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

html {
  font-size: 16px;
}

/* Lenis smooth scroll (init in main.js). When Lenis is unavailable
   or reduced-motion is on, we fall back to native smooth scrolling. */
html:not(.lenis) { scroll-behavior: smooth; }
.lenis, .lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

section[id] {
  scroll-margin-top: 0;
}

/* ============================================================
   Grain overlay
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg 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)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ============================================================
   Cursor glow — visible cursor, soft glow follows it
   ============================================================ */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cursor-col) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: opacity 0.3s;
}

@media (hover: none) { .cursor-glow { display: none; } }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Sections: 64px top so label+heading sit high, 80px bottom so the next
   section's label always peeks into view before the user has to decide to scroll */
.section     { padding: 64px 0 80px; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  opacity: 0.8;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 52px;
  line-height: 1.05;
}

.section-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: -40px;
  margin-bottom: 40px;
}
.section-hint code {
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 7px;
  border-radius: 4px;
  font-family: monospace;
}

/* ============================================================
   Tags
   ============================================================ */
.stag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color 0.18s, color 0.18s;
}
.stag:hover { border-color: var(--accent); color: var(--accent); }
.stag-sm { padding: 3px 11px; font-size: 0.7rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 999px;
  background: var(--surface);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-2);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================================
   Floating pill navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 8px 18px;
  background: var(--nav-bg);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: all;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
  flex-shrink: 0;
  margin-left: 4px;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: rotate(18deg);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  margin-left: 6px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: 6px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--mob-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transition: color 0.18s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-cta {
  margin-top: 18px;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 11px 28px;
  border-radius: 999px;
  letter-spacing: 0 !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 40px);
  /* Subtle dot grid — adds depth and professionalism */
  background-image: radial-gradient(var(--border-hi) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: drift 10s ease-in-out infinite;
}
.hero-orb-1 { width: 700px; height: 700px; background: var(--orb-1); top: -180px; left: -140px; animation-delay: 0s; }
.hero-orb-2 { width: 550px; height: 550px; background: var(--orb-2); bottom: 0; right: -100px; animation-delay: -4s; }
.hero-orb-3 { width: 350px; height: 350px; background: var(--orb-3); top: 45%; left: 55%; animation-delay: -7s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -36px) scale(1.06); }
  66%       { transform: translate(-18px, 22px) scale(0.96); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  margin-bottom: 32px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 10px var(--green-dot);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.78); }
}

/* Avatar with spinning gradient ring */
.hero-avatar-wrap {
  position: relative;
  width: 124px; height: 124px;
  margin-bottom: 32px;
  flex-shrink: 0;
}
.hero-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, var(--teal) 45%, transparent 55%, var(--teal) 75%, var(--accent) 100%);
  animation: spinRing 3.5s linear infinite;
  z-index: 0;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.hero-avatar {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  /* Premium gradient — soft white bleeding into indigo accent */
  background: linear-gradient(135deg, var(--text) 32%, var(--accent) 116%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  min-height: 2em;
}
.tw-cursor { animation: twBlink 0.85s step-end infinite; color: var(--accent); }
@keyframes twBlink { 50% { opacity: 0; } }

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* Hero CTAs slightly larger — they're the primary conversion point */
.hero .btn-primary {
  padding: 15px 34px;
  font-size: 0.97rem;
}
.hero .btn-ghost {
  padding: 14px 32px;
  font-size: 0.97rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-socials { display: flex; gap: 10px; }
.hero-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--text-faint);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Stats strip */
.stats-row {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 40px 24px 52px;
  gap: 0;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-sep {
  width: 1px; height: 44px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 8px;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  overflow: hidden;
}
.scroll-line {
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollSlide 2.2s ease-in-out infinite;
}
@keyframes scrollSlide {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   About — Bento Grid
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
}
.bento-bio      { grid-column: 1; grid-row: 1 / 3; }
.bento-status   { grid-column: 2; grid-row: 1; }
.bento-profiles { grid-column: 2; grid-row: 2; }
.bento-stack    { grid-column: 1 / -1; grid-row: 3; }

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.18s;
}
.bento-card:hover { border-color: var(--border-hi); }

.bento-tag {
  font-family: monospace;
  font-size: 0.66rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.bio-text {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 22px;
}
.bio-meta { display: flex; flex-direction: column; gap: 8px; }
.bio-meta span {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.8rem; color: var(--text-faint);
}
.bio-meta i { color: var(--accent); width: 13px; }

.status-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  margin-bottom: 10px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 10px var(--green-dot);
  animation: dotPulse 2.2s ease-in-out infinite;
}
.status-sub { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }

.profile-links { display: flex; flex-direction: column; gap: 10px; }
.profile-chip {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-muted);
  font-size: 0.86rem; font-weight: 500;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.profile-chip:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}
.profile-chip i { font-size: 1.1rem; width: 18px; }
.profile-chip span:nth-child(2) { flex: 1; }
.chip-handle { font-size: 0.7rem; color: var(--text-faint); }

.stack-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   Experience
   ============================================================ */
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}
.exp-item:first-child { border-top: 1px solid var(--border); }
.exp-item:hover { background: var(--accent-dim); border-radius: var(--r); padding-left: 12px; padding-right: 12px; }

.exp-index {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  padding-top: 5px;
  transition: color 0.18s;
}
.exp-item:hover .exp-index { color: var(--accent); }

.exp-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.exp-company {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.exp-role { display: block; font-size: 0.86rem; color: var(--accent); font-weight: 500; }
.exp-date {
  font-family: monospace; font-size: 0.72rem;
  color: var(--text-faint); white-space: nowrap; padding-top: 4px;
}

.exp-bullets { margin-bottom: 16px; }
.exp-bullets li {
  font-size: 0.87rem; color: var(--text-muted);
  padding: 5px 0 5px 18px; position: relative; line-height: 1.62;
}
.exp-bullets li::before {
  content: '→'; position: absolute; left: 0; top: 6px;
  color: var(--accent); font-size: 0.68rem;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   Education
   ============================================================ */
.edu-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px; overflow: hidden; position: relative;
  transition: border-color 0.18s;
}
.edu-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.edu-card:hover { border-color: var(--border-hi); }

.edu-year {
  font-family: monospace; font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.06em; margin-bottom: 16px;
}
.edu-icon {
  width: 42px; height: 42px;
  background: var(--accent-dim); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 14px;
}
.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.edu-inst { font-size: 0.84rem; color: var(--text-muted); }

/* ============================================================
   Projects Grid
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.25s;
}
.proj-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at 50% -20%, var(--accent-dim), transparent 60%);
  opacity: 0; transition: opacity 0.28s; pointer-events: none;
}
.proj-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}
.proj-card:hover::after { opacity: 1; }

.proj-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem; font-weight: 800;
  color: var(--text-faint); letter-spacing: 0.12em;
}
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.proj-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.96rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.proj-gh {
  font-size: 1.1rem; color: var(--text-faint); flex-shrink: 0;
  transition: color 0.18s;
}
.proj-gh:hover { color: var(--accent); }

.proj-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.proj-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 8px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-date { font-family: monospace; font-size: 0.66rem; color: var(--text-faint); white-space: nowrap; }
.proj-lock {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; color: var(--text-faint);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px;
}

/* ============================================================
   Awards
   ============================================================ */
.awards-list { display: flex; flex-direction: column; gap: 16px; }
.award-card {
  display: grid; grid-template-columns: 300px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color 0.22s, transform 0.22s;
}
.award-card:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}
.award-visual {
  position: relative; overflow: hidden;
  background: var(--surface-2);
}
.award-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.award-card:hover .award-img { transform: scale(1.06); }
.award-fallback {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--text-faint);
}
.award-visual.img-missing .award-img { display: none; }
.award-visual.img-missing .award-fallback { display: flex; }

.award-body {
  padding: 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.award-badge {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; width: fit-content;
}
.badge-gold {
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent);
  opacity: 0.85;
}
.badge-silver {
  background: rgba(160,160,160,0.08); color: var(--text-muted);
  border: 1px solid var(--border-hi);
}
.award-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em;
}
.award-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.72; }

/* ============================================================
   Contact
   ============================================================ */
.contact-section {
  position: relative; overflow: hidden;
  background: var(--bg-alt);
  padding: 120px 0; text-align: center;
}
.contact-orb {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.contact-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800; letter-spacing: -0.045em;
  line-height: 1.02; color: var(--text); margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 460px; margin-bottom: 36px; line-height: 1.75;
}
.contact-socials {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 28px;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--border-hi); border-radius: 999px;
  font-size: 0.84rem; font-weight: 500;
  color: var(--text-muted); background: var(--surface);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.social-pill:hover {
  color: var(--accent); border-color: var(--accent); background: var(--accent-dim);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.73rem; color: var(--text-faint);
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

.bento-grid    .reveal:nth-child(2) { transition-delay: 0.09s; }
.bento-grid    .reveal:nth-child(3) { transition-delay: 0.18s; }
.bento-grid    .reveal:nth-child(4) { transition-delay: 0.27s; }
.projects-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.07s; }
.projects-grid .reveal:nth-child(5) { transition-delay: 0.14s; }
.projects-grid .reveal:nth-child(6) { transition-delay: 0.21s; }
.exp-list      .reveal:nth-child(2) { transition-delay: 0.10s; }
.exp-list      .reveal:nth-child(3) { transition-delay: 0.20s; }
.awards-list   .reveal:nth-child(2) { transition-delay: 0.10s; }
.awards-list   .reveal:nth-child(3) { transition-delay: 0.20s; }
.edu-row       .reveal:nth-child(2) { transition-delay: 0.10s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-name { font-size: clamp(2.4rem, 11vw, 4rem); }
  .stats-row { flex-wrap: wrap; gap: 28px 0; padding: 36px 24px 44px; }
  .stat-sep { display: none; }
  .stat-item { min-width: 46%; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-bio, .bento-status, .bento-profiles, .bento-stack { grid-column: 1; grid-row: auto; }

  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  .exp-index { padding-top: 0; }
  .exp-top { flex-direction: column; gap: 6px; }

  .projects-grid { grid-template-columns: 1fr; }

  .award-card { grid-template-columns: 1fr; }
  .award-visual { height: 200px; }

  .edu-row { grid-template-columns: 1fr; }

  .contact-heading { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; max-width: 300px; }
  .nav-pill { padding: 7px 10px 7px 14px; }
}

/* ============================================================
   Marquee ticker — "social proof" strip between hero and about
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 15px 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marqueeSlide 32s linear infinite;
  white-space: nowrap;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.m-item {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.18s;
}

.marquee-wrap:hover .m-item { color: var(--text-muted); }

.m-sep {
  color: var(--accent);
  font-size: 0.6rem;
  opacity: 0.7;
}

@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section navigation dots — fixed right side
   ============================================================ */
.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s;
}
.section-dots.visible { opacity: 1; }

.section-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-hi);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.25s;
  flex-shrink: 0;
}
.section-dot.active {
  background: var(--accent);
  transform: scale(1.6);
}
.section-dot:hover { background: var(--accent); transform: scale(1.4); }

/* Tooltip on hover */
.section-dot::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.section-dot:hover::before { opacity: 1; }

/* Hide dots on mobile — not enough room */
@media (max-width: 768px) {
  .section-dots { display: none; }
}

/* ============================================================
   Projects — Editorial Vertical Layout
   (Replaces grid. Each project occupies its own scroll unit,
   activating serial/emotional processing rather than grid
   comparison mode. Alternating layout follows Z-pattern saccades.)
   ============================================================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
}

/* Each project is a full-viewport SCENE — only ~1 comfortably in view,
   the next one peeks at the bottom edge (Zeigarnik pull → "scroll more"). */
.proj-feature {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: center;
  position: relative;
  min-height: 88vh;
  padding: 4vh 0;
}

/* Alternate even projects: image flips to right side */
.proj-feature:nth-child(even) .proj-feat-visual { order: 2; }
.proj-feature:nth-child(even) .proj-feat-content { order: 1; }

/* Cinematic reveal — animate the inner parts (not the block) so we avoid
   double-fade. Visual and content slide up with a slight stagger. */
.proj-feature.reveal { opacity: 1; transform: none; }
.proj-feature .proj-feat-visual,
.proj-feature .proj-feat-content {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.proj-feature.visible .proj-feat-visual  { transition-delay: 0.04s; }
.proj-feature.visible .proj-feat-content { transition-delay: 0.16s; }
.proj-feature.visible .proj-feat-visual,
.proj-feature.visible .proj-feat-content {
  opacity: 1;
  transform: none;
}

.proj-feat-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.proj-feat-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}
.proj-feature:hover .proj-feat-visual img { transform: scale(1.04); }

/* Fallback when no image or image fails */
.proj-feat-visual.no-img {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-alt) 100%);
}
.proj-feat-visual.no-img::after {
  content: '{ }';
  font-family: monospace; font-size: 2.8rem;
  color: var(--accent); opacity: 0.22;
  pointer-events: none;
}

/* Live badge overlaying the image */
a.proj-live-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--accent); color: #000;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 11px; border-radius: 20px;
  letter-spacing: 0.04em; text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 2;
}
a.proj-live-badge:hover { opacity: 0.84; transform: translateY(-1px); }

/* Ghost project number — creates depth, makes each project feel monumental */
.proj-feat-content {
  position: relative;
}
.proj-feat-content::before {
  content: attr(data-num);
  position: absolute;
  top: -56px; right: -12px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(7rem, 12vw, 11rem);
  font-weight: 800;
  color: var(--text);
  opacity: 0.04;
  line-height: 1; letter-spacing: -0.06em;
  pointer-events: none; z-index: 0;
  user-select: none;
}
/* Mirror ghost number position for even (flipped) items */
.proj-feature:nth-child(even) .proj-feat-content::before {
  right: auto; left: -12px;
}

.proj-feat-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.proj-num-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.18em;
}

.proj-feature .proj-links {
  display: flex; gap: 12px; align-items: center;
}
.proj-feature .proj-link-live {
  font-size: 1.05rem; color: var(--accent);
  transition: opacity 0.18s, transform 0.18s;
}
.proj-feature .proj-link-live:hover { opacity: 0.7; transform: translateY(-1px); }
.proj-feature .proj-gh {
  font-size: 1.15rem; color: var(--text-faint);
  transition: color 0.18s;
}
.proj-feature .proj-gh:hover { color: var(--accent); }

.proj-feature .proj-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.12;
  margin-bottom: 14px;
  position: relative; z-index: 1;
  transition: color 0.18s;
}
.proj-feature:hover .proj-title { color: var(--accent); }

.proj-feature .proj-desc {
  font-size: 0.94rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 22px;
  position: relative; z-index: 1;
}
.proj-feat-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.proj-feature .proj-date {
  font-family: monospace; font-size: 0.68rem;
  color: var(--text-faint); display: block;
  position: relative; z-index: 1;
}

/* Hidden state — toggled by JS on "Load more" click */
.proj-hidden { display: none !important; }

/* Load more row */
.proj-actions {
  display: flex; align-items: center; justify-content: center;
  margin-top: 72px;
}
.proj-load-more {
  display: inline-flex; align-items: center; gap: 10px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 13px 38px;
  border-radius: 40px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, opacity 0.4s;
}
.proj-load-more:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

/* "Selected work" footnote — scarcity + credibility signal */
.proj-selected-work {
  text-align: center; margin-top: 28px;
  font-size: 0.78rem; color: var(--text-faint); line-height: 1.7;
}
.proj-selected-work a {
  color: var(--text-muted); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.18s;
}
.proj-selected-work a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .proj-feature { grid-template-columns: 1fr 1fr; gap: 40px; }
  .projects-list { gap: 72px; }
}
@media (max-width: 768px) {
  .proj-feature {
    grid-template-columns: 1fr; gap: 20px;
  }
  .proj-feature:nth-child(even) .proj-feat-visual { order: unset; }
  .proj-feature:nth-child(even) .proj-feat-content { order: unset; }
  .proj-feat-content::before {
    font-size: 6rem; top: -40px; right: -8px;
  }
  .proj-feature:nth-child(even) .proj-feat-content::before {
    right: -8px; left: auto;
  }
  .projects-list { gap: 56px; }
}

/* ============================================================
   Project Thumbnails & Live Link Badge (legacy — unused, kept for reference)
   ============================================================ */
.proj-card {
  padding: 0;
  gap: 0;
}
.proj-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
.proj-thumb--fallback::after {
  content: '◈';
  font-size: 2.8rem; color: var(--accent);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.proj-live-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: var(--accent); color: #000;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  letter-spacing: 0.04em; text-decoration: none;
  transition: opacity 0.18s;
}
.proj-live-badge:hover { opacity: 0.82; }
[data-theme="dark"] .proj-live-badge { color: #000; }

.proj-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.proj-links { display: flex; gap: 10px; align-items: center; }
.proj-link-live { font-size: 1rem; color: var(--accent); transition: opacity 0.18s; }
.proj-link-live:hover { opacity: 0.7; }

/* "Show more" expander */
.proj-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.proj-more-toggle {
  display: block; margin: 28px auto 0;
  background: none; border: 1.5px solid var(--border);
  color: var(--text-muted); padding: 8px 26px;
  border-radius: 40px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.proj-more-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Cards inside more-grid have no thumb, so restore inner padding */
.proj-more-grid .proj-card .proj-body { padding: 22px; }

/* Responsive: more grid mirrors the main grid */
@media (max-width: 900px) {
  .proj-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .proj-more-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Categorised Tech Stack
   ============================================================ */
.stack-category { margin-bottom: 16px; }
.stack-category:last-child { margin-bottom: 0; }
.stack-label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 8px;
}
.stack-category--learning .stack-label { color: var(--accent); }
.stag--learning { border-style: dashed; opacity: 0.85; }

/* ============================================================
   Experience: compact one-liner summary
   ============================================================ */
.exp-summary {
  font-size: 0.9rem; color: var(--text-muted);
  margin: 4px 0 8px; line-height: 1.6;
}
