/* ============================================================
   THEME & VARIABLES
   ============================================================ */
:root {
  --bg:        #06070b;
  --bg-soft:   #0b0d14;
  --surface:   rgba(255, 255, 255, 0.03);
  --surface-hi:rgba(255, 255, 255, 0.06);
  --text:      #eef1f6;
  --muted:     #8b93a6;
  --border:    rgba(255, 255, 255, 0.08);
  --border-hi: rgba(110, 231, 183, 0.35);
  --accent:    #6ee7b7;
  --accent-2:  #60a5fa;
  --accent-3:  #a78bfa;
  --accent-4:  #f472b6;
  --radius:    18px;
  --nav-h:     72px;
  --max:       940px;
  --scroll-hue: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand, .stat-num, .footer-big {
  font-family: "Space Grotesk", sans-serif;
}

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #06070b;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #06070b;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

.gradient {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-dot { color: var(--accent); }

/* ============================================================
   LIVING BACKGROUND
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(96,165,250,0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(167,139,250,0.08), transparent 70%),
    var(--bg);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent 100%);
}

.auroras {
  position: absolute;
  inset: 0;
  filter: hue-rotate(calc(var(--scroll-hue) * 80deg));
  transition: filter 0.15s linear;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.28;
  will-change: transform;
}

.aurora-1 {
  width: 56vw; height: 56vw;
  background: radial-gradient(circle, #6ee7b7, transparent 65%);
  top: -18%; left: -12%;
  animation: drift1 26s ease-in-out infinite;
}
.aurora-2 {
  width: 48vw; height: 48vw;
  background: radial-gradient(circle, #60a5fa, transparent 65%);
  top: 22%; right: -16%;
  animation: drift2 32s ease-in-out infinite;
}
.aurora-3 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, #a78bfa, transparent 65%);
  bottom: -18%; left: 18%;
  animation: drift3 38s ease-in-out infinite;
}
.aurora-4 {
  width: 34vw; height: 34vw;
  background: radial-gradient(circle, #f472b6, transparent 65%);
  bottom: 8%; right: 6%;
  animation: drift4 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(12%, 8%) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-14%, 10%) scale(1.08); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(10%, -12%) scale(1.15); }
}
@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-10%, -8%) scale(1.1); }
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0,0,0,0.62) 100%);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4));
  box-shadow: 0 0 18px rgba(110, 231, 183, 0.55);
  z-index: 200;
}

/* ============================================================
   NAV & COMMAND TRIGGER
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(6, 7, 11, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: transform 0.2s ease;
}
.brand-dot { color: var(--accent); }

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cmd-trigger:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--surface-hi);
}

.cmd-trigger kbd {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 11px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.22s ease, background 0.22s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.045);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  margin-left: 6px;
  color: #06070b;
  font-weight: 600;
  background: var(--accent);
  padding: 8px 16px;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  box-shadow: 0 0 24px -6px rgba(110, 231, 183, 0.7);
}
.nav-links a.nav-cta:hover {
  background: var(--accent);
  opacity: 0.92;
}
.nav-links a.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 48px;
  position: relative;
  will-change: transform, opacity;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  max-width: 110vw; max-height: 110vw;
  left: var(--gx, 50%);
  top: var(--gy, 45%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(110,231,183,0.13), transparent 62%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  transition: left 0.5s cubic-bezier(.2,.8,.2,1), top 0.5s cubic-bezier(.2,.8,.2,1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.9s 0.1s both;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110,231,183,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(110,231,183,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,231,183,0); }
}

.hero-title {
  font-size: clamp(2.8rem, 8.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 1.05s cubic-bezier(.19, 1, .22, 1) forwards;
}
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.14s; }

@keyframes riseIn { to { transform: translateY(0); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-type {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 1.7em;
  animation: fadeUp 0.9s 0.5s both;
}
.type-word { color: var(--text); font-weight: 600; }

.caret {
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 36px;
  animation: fadeUp 0.9s 0.62s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.76s both;
}

.hero-foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--muted);
  animation: fadeUp 0.9s 0.9s both;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:active {
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px)) scale(0.96);
}

.btn-primary {
  background: var(--accent);
  color: #06070b;
  box-shadow: 0 0 32px -8px rgba(110, 231, 183, 0.75);
}
.btn-primary:hover {
  box-shadow: 0 0 40px -4px rgba(110, 231, 183, 0.95);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
}

.btn-arrow {
  transition: transform 0.22s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   SECTIONS & TYPOGRAPHY
   ============================================================ */
.section {
  padding: 96px 24px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-sub {
  max-width: 540px;
  margin-bottom: 40px;
}

/* ============================================================
   LIVE "NOW" WEEKLY STATUS BOARD
   ============================================================ */
.now-banner {
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.05), rgba(96, 165, 250, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.now-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.now-updated {
  font-size: 0.8rem;
  color: var(--muted);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.now-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.now-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   ABOUT & STATS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.lead {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 18px;
}

.about-meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
}

.meta-icon {
  font-size: 1.2rem;
  line-height: 1.4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
  --tl: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform-origin: top;
  transform: scaleY(var(--tl));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.5);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-body h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

/* ============================================================
   3D TILT CARDS (SKILLS, WORK, INTERESTS)
   ============================================================ */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(110, 231, 183, 0.11),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.tilt:hover::before { opacity: 1; }
.tilt:hover {
  border-color: var(--border-hi);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.skill-tier span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tier-green { color: var(--accent); }
.tier-green span { background: var(--accent); }
.tier-yellow { color: #fbbf24; }
.tier-yellow span { background: #fbbf24; }
.tier-blue { color: var(--accent-2); }
.tier-blue span { background: var(--accent-2); }

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.skill-list li {
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.skill-list li:last-child { border-bottom: none; padding-bottom: 0; }

.skill-note {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============================================================
   WORK & PROJECT PREVIEWS
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-preview {
  height: 132px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.preview-food    { background: linear-gradient(135deg, rgba(110, 231, 183, 0.14), rgba(16, 185, 129, 0.03)); }
.preview-roblox  { background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.03)); }
.preview-youtube { background: linear-gradient(135deg, rgba(244, 114, 182, 0.14), rgba(236, 72, 153, 0.03)); }
.preview-stem    { background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.03)); }
.preview-mpk     { background: linear-gradient(135deg, rgba(251, 191, 36, 0.13), rgba(245, 158, 11, 0.03)); }

.preview-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 7, 11, 0.65);
  border: 1px solid var(--border);
  color: var(--text);
}

.preview-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
}
.preview-visual span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.work-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.work-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.work-content p {
  font-size: 0.93rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.work-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.work-tags li {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.work-card:hover .work-link span {
  transform: translateX(4px);
}
.work-link span { transition: transform 0.2s ease; }

/* ============================================================
   VISION
   ============================================================ */
.vision {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.vision-quote {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 16px 0 48px;
}

.vision-goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.goal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.goal-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

/* ============================================================
   INTERESTS
   ============================================================ */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.interest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.interest-emoji {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.interest h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.interest p {
  font-size: 0.84rem;
}

/* ============================================================
   CONTACT & FOOTER
   ============================================================ */
.contact {
  text-align: center;
  padding-top: 110px;
  padding-bottom: 110px;
}

.contact-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.contact .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.socials a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: color 0.2s ease, transform 0.2s ease;
}
.socials a:hover { color: var(--accent); }

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  overflow: hidden;
}

.footer-big {
  text-align: center;
  font-size: clamp(3.5rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.035);
  user-select: none;
  margin-bottom: 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--text); }

/* ============================================================
   CASE STUDY MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.8);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #0c0e16;
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.modal-close:hover {
  color: var(--text);
  border-color: var(--border-hi);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.96rem;
  margin-bottom: 24px;
}

.modal-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.metric-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.modal-section h4 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.modal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.modal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================================
   COMMAND PALETTE (CTRL+K)
   ============================================================ */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(10px);
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cmd-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cmd-box {
  width: 100%;
  max-width: 520px;
  background: #0c0e16;
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.9);
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.22s ease;
}

.cmd-backdrop.open .cmd-box {
  transform: translateY(0) scale(1);
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.cmd-search-icon {
  color: var(--accent);
  font-weight: 700;
}

#cmdInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
}

.cmd-esc {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.cmd-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.cmd-item.selected,
.cmd-item:hover {
  background: rgba(110, 231, 183, 0.1);
  color: var(--text);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-item-hint {
  font-size: 0.76rem;
  color: var(--muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .about-grid,
  .now-grid,
  .skills-grid,
  .vision-goals {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6, 7, 11, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 6px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .modal-metrics {
    grid-template-columns: 1fr;
  }
  .cmd-label {
    display: none;
  }
}