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

:root {
  --bg: #fafafa;
  --text: #2d2d2d;
  --text-secondary: #777777;
  --border: rgba(0, 0, 0, 0.15);
  --border-strong: #111111;
  --font-sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-project: 'Space Grotesk', var(--font-sans);
  --page-padding: clamp(24px, 5vw, 64px);
  --transition: 0.4s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #161616;
  --text: #e0ddd8;
  --text-secondary: #7a7a7a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: #e0ddd8;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  background: var(--bg);
  color: var(--text);
  --gradient-x: 50%;
  --gradient-y: 50%;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* Cursor-reactive gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle 800px at var(--gradient-x) var(--gradient-y),
    rgba(200, 170, 240, 0.3) 0%,
    rgba(180, 160, 230, 0.18) 30%,
    rgba(200, 185, 235, 0.08) 55%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

[data-theme="dark"] body::before {
  background: radial-gradient(
    circle 800px at var(--gradient-x) var(--gradient-y),
    rgba(160, 130, 210, 0.2) 0%,
    rgba(140, 120, 200, 0.12) 30%,
    rgba(160, 145, 205, 0.05) 55%,
    transparent 70%
  );
}

a, button { cursor: none; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -3px; left: -3px;
  transition: transform 0.15s var(--ease-out);
}

.cursor-ring {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: absolute;
  top: -22px; left: -22px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}

.cursor.hovering .cursor-ring { transform: scale(1.8); opacity: 0.3; }
.cursor.hovering .cursor-dot { transform: scale(2.5); }
.cursor.clicking .cursor-ring { transform: scale(0.7); }

/* ============================================
   NOISE & TRAIL
   ============================================ */
#noise-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
}

#trail-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
}



/* ============================================
   FOLD
   ============================================ */
.fold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--page-padding);
}

.header-name {
  font-family: var(--font-project);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-name:hover { opacity: 0.5; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav .theme-toggle {
  margin-left: 8px;
}

.header-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.header-link:hover { color: var(--text); }

/* ============================================
   HERO
   ============================================ */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--page-padding);
  min-height: 60vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 100%;
}

.hero-heading .word,
.hero-heading .hero-sub-word {
  animation: word-rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.08s * var(--i) + 0.2s);
}

.hero-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  margin-right: 0.12em;
}

/* Smiley face */
.smiley {
  display: inline-block;
  width: 18px;
  height: 18px;
}

.flower {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-name:hover .flower {
  transform: rotate(45deg);
}

.accent-name {
  color: #9381c4;
}

[data-theme="dark"] .accent-name {
  color: #c4b5e8;
}

.hero-sub-word {
  max-width: 60%;
}

/* Hero tags — decorative credential pills */
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6b5b8a;
  padding: 7px 16px;
  border-radius: 100px;
  text-decoration: none;
  background: rgba(180, 160, 220, 0.06);
  position: relative;
  z-index: 0;
  transition: color 0.3s, background 0.3s;
}

.hero-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180, 140, 240, 0.5), rgba(140, 180, 240, 0.3), rgba(220, 180, 240, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.hero-tag:hover {
  color: #5a4a7a;
  background: rgba(180, 160, 220, 0.12);
}

[data-theme="dark"] .hero-tag {
  color: #b8a8d8;
  background: rgba(160, 140, 200, 0.08);
}

[data-theme="dark"] .hero-tag::before {
  background: linear-gradient(135deg, rgba(180, 140, 240, 0.4), rgba(140, 180, 240, 0.25), rgba(220, 180, 240, 0.4));
}

[data-theme="dark"] .hero-tag:hover {
  color: #d0c0f0;
  background: rgba(180, 160, 220, 0.15);
}


/* ============================================
   AWARDS — inline under typewriter
   ============================================ */
.awards {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-top: 4px;
  transition: color var(--transition);
}

.award-badge {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.award-badge:hover { color: var(--text); }
.award-icon { display: none; }

.award-sep {
  margin: 0 6px;
  color: var(--text-secondary);
  opacity: 0.3;
}

/* ============================================
   PROJECTS — Bands with company-first naming
   ============================================ */
.projects-bands {
  margin: 0 var(--page-padding);
}

.projects-header {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 24px 0 12px;
  transition: color var(--transition);
}

.project-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s var(--ease-out);
}

.project-band:hover {
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  border-color: transparent;
}

.project-band-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.35s;
}

.project-band:hover .project-desc {
  color: var(--bg);
  opacity: 0.6;
}

.project-name {
  font-family: var(--font-project);
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-year {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
  flex-shrink: 0;
}

.project-band:hover .project-year {
  color: var(--bg);
  opacity: 0.5;
}

/* ============================================
   ENTRANCE & SCROLL ANIMATIONS
   ============================================ */
.anim-in {
  opacity: 0;
  transform: translateY(20px);
  animation: anim-enter 0.8s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes anim-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px var(--page-padding) 80px;
  max-width: 620px;
}

.about-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.about-intro {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text);
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.about-link-inline {
  display: inline-block;
  color: #9381c4;
  text-decoration: none;
  transition: color 0.3s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-link-inline:hover {
  color: #7a6aab;
}

.about-links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.about-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--text-secondary);
  transition: border-color 0.3s, color 0.3s;
}

.about-links a:hover {
  color: #6b5b8a;
  border-color: #6b5b8a;
}

/* ============================================
   DARK MODE TOGGLE — in header nav
   ============================================ */
.theme-toggle {
  background: none;
  border: none;
  cursor: none;
  padding: 0;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

.toggle-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  position: absolute;
  left: 3px;
  transition: transform var(--transition), background var(--transition);
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(18px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-heading {
    font-size: clamp(28px, 9vw, 48px);
  }

  .hero { min-height: 50vh; }

  .project-name { font-size: 18px; }

  .about {
    padding: 64px var(--page-padding) 48px;
  }

  .cursor { display: none; }
  html, body, a, button { cursor: auto; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px var(--page-padding) 40px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
