/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #07080c;
  --bg-2:      #0b0d13;
  --surface:   rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #f1f2f6;
  --muted:     #8b8fa3;
  --muted-2:   #5c6078;

  --accent:    #8b7cff;
  --accent-2:  #4de3c8;
  --accent-3:  #ff7ab8;
  --accent-glow: rgba(139, 124, 255, 0.35);

  --grad-primary: linear-gradient(135deg, #8b7cff 0%, #4de3c8 100%);
  --grad-secondary: linear-gradient(135deg, #ff7ab8 0%, #8b7cff 100%);
  --grad-text: linear-gradient(120deg, #a89bff 0%, #6ee7d1 50%, #a89bff 100%);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --shell: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html[data-theme="light"] {
  --bg:        #fafafb;
  --bg-2:      #f2f2f5;
  --surface:   rgba(10, 10, 20, 0.025);
  --surface-2: rgba(10, 10, 20, 0.05);
  --border:    rgba(10, 10, 20, 0.08);
  --border-2:  rgba(10, 10, 20, 0.15);
  --text:      #0d0e14;
  --muted:     #555a70;
  --muted-2:   #8b8fa3;

  --accent:    #6a55d6;
  --accent-2:  #0ea392;
  --accent-3:  #d9458b;
  --accent-glow: rgba(106, 85, 214, 0.25);

  --grad-text: linear-gradient(120deg, #6a55d6 0%, #0ea392 50%, #6a55d6 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #07080c; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   DECORATIVE BACKGROUND
   ============================================================ */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b7cff 0%, transparent 65%);
  top: -200px; left: -150px;
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #4de3c8 0%, transparent 65%);
  top: 25%; right: -220px;
  animation: drift-b 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #ff7ab8 0%, transparent 65%);
  bottom: -200px; left: 30%;
  animation: drift-c 30s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-140px, 100px) scale(1.1); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -120px) scale(1.2); }
}
html[data-theme="light"] .bg-aurora .blob { opacity: 0.35; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  opacity: 0.55;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .bg-noise { opacity: 0.06; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   SHELL & UTILITIES
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
}
.skip-link:focus {
  left: 16px; top: 16px;
  background: var(--accent);
  color: #07080c;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-block;
  margin-bottom: 16px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.55;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-primary);
  color: #07080c;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.brand-name { white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4de3c8;
  box-shadow: 0 0 0 3px rgba(77, 227, 200, 0.18);
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(77, 227, 200, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(77, 227, 200, 0.05); }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(-18deg);
}
.theme-toggle svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 120px 0 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-badge .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: status-pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 16ch;
}
.hero-title .line { display: block; }
.hero-title .line-2 { padding-left: 0.15em; }

.gradient-text {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.cursor-blink {
  display: inline-block;
  color: var(--accent-2);
  animation: caret 1.1s steps(2) infinite;
}
@keyframes caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-sub em { color: var(--text); font-style: normal; font-weight: 500; }

.role-cycle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 40px;
  min-height: 52px;
}
.role-prefix { color: var(--muted-2); }
.role-text {
  color: var(--accent-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.role-caret {
  display: inline-block;
  width: 8px; height: 18px;
  background: var(--accent-2);
  animation: caret 1.1s steps(2) infinite;
  margin-left: -6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

.hero-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14.5px;
}
.hero-socials a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-socials a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Marquee */
.marquee {
  margin-top: 80px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.marquee-track span { flex-shrink: 0; }
.marquee-track .sep { color: var(--accent); font-size: 12px; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Video block */
.video-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
  margin-top: 100px;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.video-block::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.video-copy .eyebrow { color: var(--accent-2); }
.video-copy h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.video-copy p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 340px;
}
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  color: var(--muted);
}

/* UPDATED VIDEO FRAME WITH LIMITS */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  width: 100%;
  max-height: 480px; /* Height limit */
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame video { 
  width: 100%; 
  max-height: 480px; /* Height limit */
  object-fit: contain; /* Keeps video from stretching */
  display: block; 
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-stat {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section-head .lede { margin-top: 8px; }

.block-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 80px 0 28px;
}

/* Glass card */
.glass-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-main p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 640px;
}
.about-main .lede {
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
}

.portrait-wrap {
  position: relative;
  margin-top: 40px;
  width: fit-content;
}
.portrait {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border-2);
  filter: saturate(1.08) contrast(1.03);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
}
.portrait-tag {
  position: absolute;
  bottom: -14px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
}

.about-side {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* Timeline */
.timeline { list-style: none; }
.timeline li {
  position: relative;
  padding-left: 24px;
  padding-bottom: 24px;
  border-left: 1px solid var(--border-2);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.timeline .when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.timeline .what {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.timeline .where {
  font-size: 14px;
  color: var(--muted);
}

/* Focus list */
.focus-list { list-style: none; }
.focus-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.focus-list li:last-child { border-bottom: none; }
.focus-list span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* Skill grid */
.skill-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.skill-card:hover::after { opacity: 0.4; }

.skill-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.skill-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.skill-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background 0.3s ease;
}
.stat:hover { background: var(--bg-2); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-list { display: grid; gap: 88px; }

.project {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: start;
}
.project-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: sticky;
  top: 110px;
  animation: gradient-shift 8s ease infinite;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.project-head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.project-sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}
.project-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.project-desc {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 20px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  color: var(--muted);
  background: var(--surface);
}

.project-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted-2);
  margin-top: 14px;
}

.shots {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.4s ease, border-color 0.4s ease;
  cursor: zoom-in;
}
.shots img:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

/* ============================================================
   RESUME
   ============================================================ */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.deflist { display: grid; gap: 14px; }
.deflist > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.deflist > div:last-child { border-bottom: none; padding-bottom: 0; }
.deflist dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}
.deflist dd {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}

/* Certs */
.cert-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cert {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cert:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.cert-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #07080c;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cert-info { min-width: 0; }
.cert-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}
.cert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cert-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-2);
}
.cert-link svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-cta {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info { display: grid; gap: 0; }
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease;
}
.contact-block:last-child { border-bottom: none; }
a.contact-block:hover { padding-left: 10px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.4;
}
.contact-value a {
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.contact-value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.contact-value .sep {
  color: var(--muted-2);
  margin: 0 10px;
  font-weight: 400;
}

/* Form */
.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }

.contact-form label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: var(--bg-2);
}

.error {
  font-size: 12.5px;
  color: #ff8a8a;
  line-height: 1.4;
  min-height: 0;
}
html[data-theme="light"] .error { color: #c23a3a; }

.form-note {
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: left;
  line-height: 1.5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg { transform: translateX(3px); }

.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #07080c;
  box-shadow: 0 12px 40px -10px var(--accent-glow);
}

.btn-glass {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.footer-loc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-top svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-side { position: static; }
  .resume-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .video-block { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .video-copy p { max-width: none; }
  .project { grid-template-columns: 60px 1fr; gap: 24px; }
  .project-num { font-size: 52px; }
}

@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .nav-inner { height: 62px; }
  .nav-links { display: none; }
  .status-pill { display: none; }
  .brand-name { display: none; }

  .hero { padding-top: 72px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); }
  .hero-title .line-2 { padding-left: 0; }
  .hero-sub { font-size: 16px; }
  .role-cycle { font-size: 12.5px; padding: 12px 16px; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .block-title { margin-top: 56px; font-size: 22px; }

  .skill-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 22px; }
  .stat .num { font-size: 38px; }

  .project { grid-template-columns: 1fr; gap: 16px; }
  .project-num { position: static; font-size: 40px; }
  .shots { grid-template-columns: 1fr; }
  .shots img { aspect-ratio: 16 / 10; }

  .cert { grid-template-columns: 44px 1fr auto; padding: 16px; gap: 12px; }
  .cert-mark { width: 44px; height: 44px; font-size: 11px; }

  .deflist > div { grid-template-columns: 1fr; gap: 4px; }
  .deflist dt { padding-top: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-top { align-self: flex-start; }
}
