/* ===========================
   DESIGN SYSTEM & VARIABLES
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Noto+Sans+SC:wght@400;700&display=swap');

:root {
  --yellow: #F5C842;
  --green: #5BAD6F;
  --blue: #5B9FBF;
  --orange: #F5874A;
  --black: #0A0A0A;
  --white: #F5F0E8;
  --accent: #FF3B30;
  --gray: #888;
  --card-bg: #111;
  /* gradient background */
  --bg-grad: linear-gradient(135deg, #e8f5a0 0%, #F5C842 30%, #a8d8a0 60%, #c8e8b0 80%, #F5C842 100%);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Mono', monospace;
  --font-cjk: 'Noto Sans SC', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--yellow);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}

/* ===========================
   GRADIENT BACKGROUND BASE
   =========================== */
.grad-bg {
  background: linear-gradient(135deg,
    #d8f0a0 0%,
    #F5C842 25%,
    #a8e0a8 50%,
    #F5C842 65%,
    #c8ddf0 80%,
    #F5C842 100%);
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===========================
   CUSTOM CURSOR
   =========================== */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
  mix-blend-mode: multiply;
}
.cursor-follower {
  position: fixed;
  width: 40px; height: 40px;
  border: 2px solid var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
body:has(a:hover) .cursor { width: 24px; height: 24px; background: var(--accent); }
body:has(a:hover) .cursor-follower { width: 60px; height: 60px; }

/* ===========================
   PAGE TRANSITIONS
   =========================== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.entering { animation: curtain-in 0.6s var(--ease-in-out) forwards; }
.page-transition.leaving  { animation: curtain-out 0.6s var(--ease-in-out) forwards; }
@keyframes curtain-in  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes curtain-out { from { transform: translateY(0); }    to { transform: translateY(-100%); } }

/* ===========================
   NAVIGATION — slide-in sidebar
   =========================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.nav-logo {
  background: var(--black);
  color: var(--yellow);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.3s var(--ease-out);
}
.nav-logo:hover { transform: rotate(-5deg) scale(1.1); }

/* Hamburger button */
.nav-hamburger {
  background: var(--black);
  border: none;
  color: var(--yellow);
  width: 52px; height: 52px;
  border-radius: 10px;
  cursor: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  transition: transform 0.3s var(--ease-out);
  position: relative;
  z-index: 1100;
}
.nav-hamburger:hover { transform: scale(1.1); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar drawer */
.nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 100vh;
  background: var(--black);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(245,200,66,0.4);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.1;
  transition: color 0.2s, transform 0.3s var(--ease-out);
  display: block;
  margin-bottom: 20px;
}
.nav-drawer a.active,
.nav-drawer a:hover { color: var(--yellow); transform: translateX(12px); }
.nav-drawer-footer {
  position: absolute;
  bottom: 40px; left: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ===========================
   PAGES
   =========================== */
.page { min-height: 100vh; }
.hidden { display: none; }

/* ===========================
   ABOUT PAGE
   =========================== */
#page-about { }

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.about-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 40px 60px 60px;
  position: relative;
}
.about-hero-right {
  background: var(--black);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-memoji-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-memoji-wrap::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,200,66,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-memoji {
  width: 75%;
  max-width: 380px;
  object-fit: contain;
  display: block;
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  margin-bottom: -10px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6));
  transition: opacity 0.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}
.hero-location-strip {
  position: absolute;
  bottom: 0; width: 100%;
  display: flex; justify-content: space-between;
  padding: 20px 40px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,200,66,0.45);
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 13rem);
  line-height: 0.85;
}
.about-name .line { display: block; overflow: hidden; }
.about-name .line span {
  display: block;
  transform: translateY(100%);
  animation: slide-up 0.9s var(--ease-out) forwards;
}
.about-name .line:nth-child(2) span { animation-delay: 0.12s; }

.about-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem; line-height: 1.8;
  color: #333;
  max-width: 260px;
  position: absolute; top: 140px; right: 50px;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 0.5s forwards;
}

/* Memoji switcher row */
.memoji-switcher {
  display: flex; gap: 10px; margin-top: 30px;
}
.memoji-thumb {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; cursor: none;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.3s var(--ease-out);
  background: rgba(0,0,0,0.08);
}
.memoji-thumb img { width: 100%; height: 100%; object-fit: cover; }
.memoji-thumb.active { border-color: var(--black); }
.memoji-thumb:hover { transform: scale(1.15); border-color: var(--black); }

/* Bio */
.about-bio {
  background: var(--black);
  color: var(--white);
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 60px;
  align-items: start;
}
.bio-label {
  font-family: var(--font-display);
  font-size: 0.9rem; letter-spacing: 0.2em;
  color: var(--yellow);
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  padding-top: 10px;
}
.bio-text { font-size: 1.4rem; line-height: 1.75; }
.bio-text em { font-style: normal; color: var(--yellow); font-weight: 700; }
.bio-cjk { font-family: 'Noto Sans SC', sans-serif; font-size: 0.8rem; color: var(--gray); margin-top: 12px; }

/* Skills */
.about-work { padding: 100px 60px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.9; margin-bottom: 60px; overflow: hidden;
}
.section-title .cjk {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.35em; vertical-align: middle; margin-left: 16px;
  color: var(--black); opacity: 0.4;
}
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.skill-card {
  background: var(--black); color: var(--white);
  padding: 40px; position: relative; overflow: hidden;
  transition: color 0.3s; cursor: default;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out); z-index: 0;
}
.skill-card:hover::before { transform: translateY(0); }
.skill-card:hover { color: var(--black); }
.skill-card > * { position: relative; z-index: 1; }
.skill-number { font-family: var(--font-display); font-size: 4rem; color: var(--yellow); line-height: 1; transition: color 0.3s; }
.skill-card:hover .skill-number { color: var(--black); }
.skill-title { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.05em; margin: 16px 0 10px; }
.skill-desc { font-size: 0.78rem; line-height: 1.7; color: var(--gray); transition: color 0.3s; }
.skill-card:hover .skill-desc { color: #444; }

/* Q&A */
.about-qa { background: var(--white); padding: 100px 60px; }
.qa-item {
  border-top: 2px solid var(--black); padding: 40px 0;
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.qa-item.visible { opacity: 1; transform: translateY(0); }
.qa-q { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.05em; line-height: 1.3; }
.qa-a { font-size: 0.9rem; line-height: 1.8; color: #444; }

/* ===========================
   PROJECTS PAGE
   =========================== */
#page-projects { background: var(--black); color: var(--white); }
.projects-hero {
  padding: 160px 60px 80px;
  position: relative; overflow: hidden;
}
.projects-hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 18rem);
  line-height: 0.85; color: var(--yellow); position: relative; z-index: 1;
}
.projects-hero-title .small-line {
  font-size: 0.3em; color: rgba(245,200,66,0.3); display: block;
}
.projects-bg-text {
  position: absolute; font-family: var(--font-display); font-size: 30vw;
  color: rgba(255,255,255,0.02); top: 50%; left: 50%;
  transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
}
.projects-count {
  position: absolute; top: 180px; right: 60px;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray);
}

.projects-grid {
  padding: 0 60px 100px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}
.project-card {
  background: #111; position: relative; overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
  transition: transform 0.1s;
}
.project-card:nth-child(2) { grid-column: span 2; aspect-ratio: 16/6; }

.project-card-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
}
.project-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; opacity: 0.1;
  transition: opacity 0.5s, transform 0.8s var(--ease-out);
}
.project-card:hover .project-bg { opacity: 0.2; transform: scale(1.1); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}
.project-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
  position: relative; z-index: 1;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.project-card:hover .project-tags { transform: translateY(0); opacity: 1; }
.project-tag {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 2px;
}
.project-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 0.95; position: relative; z-index: 1;
  transition: transform 0.4s var(--ease-out);
}
.project-card:hover .project-title { transform: translateX(10px); }
.project-year { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gray); position: relative; z-index: 1; margin-top: 8px; }
.project-arrow {
  position: absolute; top: 40px; right: 40px; font-size: 2rem;
  z-index: 2; opacity: 0; transform: translate(-10px, 10px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out); color: var(--yellow);
}
.project-card:hover .project-arrow { opacity: 1; transform: translate(0,0); }
.project-featured {
  position: absolute; top: 40px; left: 40px;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); z-index: 2;
}
.project-bg-color { position: absolute; inset: 0; }
.project-memoji {
  position: absolute; bottom: -20px; right: 30px;
  width: 180px; z-index: 2;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.project-card:hover .project-memoji { opacity: 1; transform: translateY(0); }

/* ===========================
   HOBBIES PAGE
   =========================== */
#page-hobbies { }
.hobbies-hero { padding: 160px 60px 60px; position: relative; }
.hobbies-hero-title { font-family: var(--font-display); font-size: clamp(4rem, 11vw, 15rem); line-height: 0.85; }

/* === MUSIC SECTION (billchien style) === */
.music-section {
  background: var(--black);
  padding: 80px 0 100px;
}
.music-section-header {
  padding: 0 60px 50px;
  display: flex; align-items: baseline; gap: 20px;
}
.music-section-header h2 {
  font-family: var(--font-display); font-size: clamp(2.5rem,5vw,6rem);
  color: var(--yellow); line-height: 0.9;
}
.music-section-header .cjk-sub {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1.2rem; color: rgba(245,200,66,0.4); letter-spacing: 0.1em;
}

/* Horizontal scroll row */
.music-scroll-outer {
  overflow: hidden; position: relative;
  padding: 10px 0;
}
.music-scroll-outer::before,
.music-scroll-outer::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 10;
}
.music-scroll-outer::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
.music-scroll-outer::after  { right: 0; background: linear-gradient(to left, var(--black), transparent); }

.music-scroll-track {
  display: flex; gap: 20px;
  padding: 0 60px;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; user-select: none;
}
.music-scroll-track::-webkit-scrollbar { display: none; }
.music-scroll-track.dragging { cursor: grabbing; }

.music-card-new {
  flex: 0 0 200px;
  background: #181818;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-out), background 0.3s;
  text-decoration: none; color: var(--white);
  display: block;
}
.music-card-new:hover { transform: translateY(-10px) scale(1.03); background: #222; }

.music-card-art {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.music-card-art .disc-ring {
  position: absolute; width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  animation: disc-spin 8s linear infinite;
  animation-play-state: paused;
}
.music-card-new:hover .disc-ring { animation-play-state: running; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.music-card-art .disc-ring::before {
  content: ''; position: absolute;
  width: 12px; height: 12px; background: var(--yellow);
  border-radius: 50%; top: -6px; left: 50%; transform: translateX(-50%);
}

.music-card-info { padding: 16px; }
.music-card-name { font-weight: 700; font-size: 0.82rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-card-artist { font-size: 0.7rem; color: var(--gray); margin-top: 4px; }
.music-card-platform {
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-top: 8px; display: flex; align-items: center; gap: 5px;
}
.music-card-platform::before { content: '▶'; font-size: 0.5rem; }

/* Hobby Sections */
.hobby-section {
  min-height: 80vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.hobby-section:nth-child(even) { direction: rtl; }
.hobby-section:nth-child(even) > * { direction: ltr; }
.hobby-content { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.hobby-visual { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hobby-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.5; margin-bottom: 24px; }
.hobby-title { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 7rem); line-height: 0.9; margin-bottom: 32px; }
.hobby-title .cjk { font-family: 'Noto Sans SC', sans-serif; font-size: 0.35em; opacity: 0.5; display: block; margin-top: 8px; }
.hobby-desc { font-size: 0.9rem; line-height: 1.8; max-width: 360px; opacity: 0.8; }

/* Running */
.hobby-running .hobby-content { background: var(--black); color: var(--white); }
.hobby-running .hobby-visual { background: #1a1a1a; }
.hobby-running .hobby-label { color: var(--yellow); }
.run-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; }
.run-stat { background: rgba(255,255,255,0.05); padding: 30px; text-align: center; transition: background 0.3s; }
.run-stat:hover { background: rgba(245,200,66,0.1); }
.run-stat .num { font-family: var(--font-display); font-size: 3rem; color: var(--yellow); display: block; }
.run-stat .label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-top: 4px; }

/* Movies */
.hobby-movies .hobby-content { background: var(--white); }
.hobby-movies .hobby-visual { background: #111; }
.movie-list { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 40px; }
.movie-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: rgba(255,255,255,0.04); border-left: 3px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.movie-item:hover { background: rgba(245,200,66,0.08); border-color: var(--yellow); transform: translateX(8px); }
.movie-num { font-family: var(--font-display); font-size: 1.5rem; color: rgba(245,200,66,0.3); width: 32px; flex-shrink: 0; }
.movie-title { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.movie-genre { font-size: 0.65rem; color: var(--gray); margin-top: 3px; }

/* Photography */
.hobby-photo .hobby-content { background: var(--accent); color: var(--white); }
.hobby-photo .hobby-visual { background: #cc1a10; }
.photo-memoji-wrap { padding: 60px; display: flex; align-items: center; justify-content: center; }
.photo-memoji { width: 70%; max-width: 280px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); animation: float 5s ease-in-out infinite; }

/* Extra */
.extra-hobbies { padding: 80px 60px; }
.skills-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }

/* ===========================
   SHARED
   =========================== */
.marquee-wrap {
  overflow: hidden; white-space: nowrap;
  border-top: 2px solid var(--black); border-bottom: 2px solid var(--black);
  padding: 14px 0; background: var(--black);
}
.marquee-track { display: inline-block; animation: marquee 22s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--yellow); padding: 0 36px; }
.marquee-track span.dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.side-nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.side-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--black); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.side-dot.active { background: var(--black); transform: scale(1.5); }
.side-dot:hover  { background: var(--black); }

.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.stagger > * { opacity: 0; transform: translateY(40px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.1s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.2s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.3s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.4s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:0.5s; }

@keyframes slide-up  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade-in-up { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.email-btn {
  position: fixed; bottom: 30px; right: 30px;
  width: 56px; height: 56px; background: var(--black); color: var(--yellow);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: none; z-index: 800;
  transition: transform 0.3s var(--ease-out), background 0.2s;
  text-decoration: none; border: none;
}
.email-btn:hover { transform: scale(1.15) rotate(-5deg); background: var(--accent); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-right { min-height: 60vh; }
  .about-bio { grid-template-columns: 1fr; padding: 60px 30px; }
  .bio-label { writing-mode: horizontal-tb; transform: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; padding: 0 20px 60px; }
  .project-card:nth-child(2) { grid-column: span 1; aspect-ratio: 4/3; }
  .hobby-section { grid-template-columns: 1fr; }
  nav { padding: 16px 20px; }
  .about-work, .about-qa, .extra-hobbies { padding: 60px 30px; }
  .qa-item { grid-template-columns: 1fr; gap: 16px; }
  .hobbies-hero, .projects-hero { padding: 120px 30px 40px; }
  .about-hero-left { padding: 120px 30px 40px; }
  .about-tagline { position: static; max-width: 100%; margin-top: 20px; opacity: 1; animation: none; }
  .music-section-header { padding: 0 30px 40px; }
  .music-scroll-track { padding: 0 30px; }
  .skills-grid-4 { grid-template-columns: 1fr 1fr; }
}
