/* Custom Font */
@font-face {
  font-family: 'Rosehot';
  src: url('Rosehot.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  /* Limited Collection atmosphere: soft radials over deep base (matches projects grid) */
  background:
    radial-gradient(ellipse at 50% 55%, rgba(180, 80, 120, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(80, 40, 140, 0.05) 0%, transparent 50%),
    #0d0008;
  background-size: 100% 100%;
  background-attachment: fixed;
  animation: dreamyShift 20s ease infinite;
  color: #f9f5ff;
  overflow-x: hidden;
  cursor: none;
}

@keyframes dreamyShift {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 50%; }
  50% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 100% 50%; }
}

/* Custom Cursor - transform + no transition for instant follow, no blur to reduce lag */
.cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.85) 0%, rgba(217, 70, 239, 0.4) 70%, transparent 100%);
  border: 2px solid rgba(244, 114, 182, 0.95);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.9), inset 0 0 10px rgba(253, 244, 255, 0.6);
  will-change: transform;
}

/* Floating Status Pill */
.status-pill {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(10, 10, 16, 0.92);
  border: 1px solid rgba(236, 72, 153, 0.85);
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #fdf4ff;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(2); }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 120px 40px 120px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  margin-bottom: 30px;
  border: 3px solid rgba(129, 140, 248, 0.9);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(129, 140, 248, 0.7),
    inset 0 2px 4px rgba(15, 23, 42, 0.9);
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.8));
  transform: scale(1.2);
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(196, 181, 253, 0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-name {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.1;
  color: #fdf4ff;
  filter: drop-shadow(0 0 32px rgba(236, 72, 153, 0.95));
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: filter 0.3s ease;
  letter-spacing: 0.06em;
}

.hero-name:hover {
  filter: drop-shadow(0 0 48px rgba(244, 114, 182, 1));
}

.hero-tagline {
  font-size: 0.85rem;
  color: #f9a8ff;
  letter-spacing: 0.28em;
  margin-bottom: 72px;
  text-shadow: 0 0 14px rgba(236, 72, 153, 0.7);
  opacity: 0.95;
}

.highlight-pink {
  color: #e879f9;
  font-weight: 600;
}

.highlight-purple {
  color: #f5d0fe;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
  border-radius: 20px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.4), transparent 55%),
    linear-gradient(135deg,
      rgba(10, 10, 16, 0.95) 0%,
      rgba(3, 0, 10, 0.98) 50%,
      rgba(0, 0, 0, 1) 100%);
  border: 1.5px solid rgba(244, 114, 182, 0.95);
  color: #fdf4ff;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(236, 72, 153, 0.9),
    inset 0 1px 1px rgba(253, 244, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 1);
  transform: translateY(-2px);
}

.btn-primary:hover {
  transform: translateY(0);
  border-width: 2px;
  border-color: rgba(251, 113, 133, 0.98);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.5), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.55), transparent 55%),
    linear-gradient(135deg,
      rgba(10, 10, 16, 1) 0%,
      rgba(3, 0, 10, 1) 50%,
      rgba(0, 0, 0, 1) 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.95),
    0 0 55px rgba(236, 72, 153, 1),
    inset 0 1px 1px rgba(253, 244, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 1);
}

.btn-secondary {
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 0.95) 0%,
    rgba(0, 0, 0, 1) 100%);
  border: 1.5px solid rgba(244, 114, 182, 0.85);
  color: #f9f5ff;
  box-shadow:
    0 16px 55px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(236, 72, 153, 0.7),
    inset 0 1px 1px rgba(0, 0, 0, 1),
    inset 0 -1px 1px rgba(0, 0, 0, 1);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  transform: translateY(0);
  border-width: 2px;
  border-color: rgba(252, 165, 243, 0.95);
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 1) 0%,
    rgba(0, 0, 0, 1) 100%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(251, 113, 133, 0.9),
    inset 0 1px 1px rgba(0, 0, 0, 1),
    inset 0 -1px 1px rgba(0, 0, 0, 1);
}

/* Projects Section */
.projects {
  padding: 90px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fdf4ff;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 2px 6px rgba(196, 181, 253, 0.3));
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #f5d0fe;
  opacity: 1;
  text-shadow: 0 0 14px rgba(15, 23, 42, 0.9);
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Project Cards */
.project-card {
  position: relative;
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(244, 114, 182, 0.8);
  background: radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(251, 113, 133, 0.2), transparent 55%),
    rgba(3, 0, 10, 0.98);
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* No placement card behind prototype label + glass box */
.project-card.liquid-box {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

/* 3D Apple-style Liquid Glass Cube */
.liquid-box {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  perspective: 1200px;
  cursor: pointer;
  transform: translateY(-5px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px 20px;
}

.liquid-box:hover {
  transform: translateY(-15px) scale(1.03);
}

.liquid-box::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(129, 140, 248, 0.3) 0%,
    transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.liquid-box:hover::before {
  opacity: 1;
}

/* Cube Container */
.liquid-box-inner {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(26deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cubeFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(249, 168, 212, 0.7));
}

.liquid-box:hover .liquid-box-inner {
  transform: rotateX(-20deg) rotateY(20deg) scale(1.05);
}

@keyframes cubeFloat {
  0%, 100% { transform: rotateX(-18deg) rotateY(26deg) translateZ(0); }
  50% { transform: rotateX(-18deg) rotateY(26deg) translateZ(10px); }
}

/* Cube Faces */
.cube-face {
  position: absolute;
  width: 280px;
  height: 280px;
  background: linear-gradient(145deg,
    rgba(250, 250, 255, 0.12) 0%,
    rgba(30, 27, 45, 0.85) 65%,
    rgba(0, 0, 0, 1) 100%);
  border: 1.5px solid rgba(252, 165, 243, 0.8);
  border-radius: 24px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(252, 165, 243, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rim Lighting - Top & Left edges */
.cube-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 40%);
  border-radius: 24px;
  pointer-events: none;
  opacity: 0.85;
}

/* Fresnel Sheen - Diagonal gradient */
.cube-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%);
  border-radius: 24px;
  pointer-events: none;
  animation: fresnelShift 4s ease-in-out infinite;
}

@keyframes fresnelShift {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Face Positions */
.cube-face-front {
  transform: translateZ(140px);
  opacity: 0.98;
  background: radial-gradient(circle at 30% 20%,
    rgba(253, 244, 255, 0.35) 0%,
    rgba(30, 27, 45, 0.9) 55%,
    rgba(0, 0, 0, 1) 100%);
}

.cube-face-back {
  transform: translateZ(-140px) rotateY(180deg);
  opacity: 0.22;
}

.cube-face-right {
  transform: rotateY(90deg) translateZ(140px);
  opacity: 0.82;
  background: linear-gradient(90deg,
    rgba(15, 23, 42, 1) 0%,
    rgba(30, 27, 45, 0.9) 40%,
    rgba(0, 0, 0, 1) 100%);
}

.cube-face-left {
  transform: rotateY(-90deg) translateZ(140px);
  opacity: 0.7;
  background: linear-gradient(270deg,
    rgba(15, 23, 42, 1) 0%,
    rgba(30, 27, 45, 0.9) 40%,
    rgba(0, 0, 0, 1) 100%);
}

.cube-face-top {
  transform: rotateX(90deg) translateZ(140px);
  background: linear-gradient(135deg, 
    rgba(253, 244, 255, 0.28) 0%,
    rgba(253, 244, 255, 0.1) 100%);
  opacity: 1;
}

.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(140px);
  opacity: 0.35;
}

/* Liquid Blobs Inside Cube */
.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: all 0.5s ease;
}

.liquid-box:hover .liquid-blob {
  opacity: 1;
  filter: blur(18px);
}

.blob-1 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle,
    rgba(251, 113, 133, 1) 0%,
    rgba(248, 113, 165, 0.8) 35%,
    rgba(248, 113, 165, 0.35) 70%,
    transparent 100%);
  top: 15%;
  left: 10%;
  animation: blobFloat1 8s ease-in-out infinite;
}

.blob-2 {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle,
    rgba(249, 168, 212, 0.95) 0%,
    rgba(249, 168, 212, 0.65) 40%,
    rgba(249, 168, 212, 0.28) 70%,
    transparent 100%);
  bottom: 20%;
  right: 15%;
  animation: blobFloat2 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 85px;
  height: 85px;
  background: radial-gradient(circle,
    rgba(253, 244, 255, 1) 0%,
    rgba(252, 231, 243, 0.8) 35%,
    rgba(252, 231, 243, 0.35) 70%,
    transparent 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobPulse 6s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 15px) scale(1.15); }
  66% { transform: translate(15px, -25px) scale(0.85); }
}

@keyframes blobPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

/* Project Labels Above Cube */
.project-name-label {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #fdf4ff;
  filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.95));
  text-align: center;
  z-index: 10;
  position: relative;
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.unbox-hint {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: #f9a8ff;
  font-style: italic;
  opacity: 0.85;
  text-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 10px;
  z-index: 10;
  position: relative;
}

/* Edge Refraction Effect */
.cube-refraction {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(252, 165, 243, 0.65) 0%,
      transparent 8%, 
      transparent 92%, 
      rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(0deg,
      rgba(252, 165, 243, 0.65) 0%,
      transparent 8%, 
      transparent 92%, 
      rgba(255, 255, 255, 0.2) 100%);
  filter: blur(1px);
  opacity: 0.6;
}

.tier-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: #f9a8ff;
  padding: 12px 24px;
  background: rgba(3, 0, 10, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 114, 182, 0.9);
  border-radius: 50px;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.98),
    0 0 45px rgba(236, 72, 153, 0.9);
}

.project-card.liquid-box:hover {
  box-shadow: none;
  transform: translateY(-15px) scale(1.03);
}

/* Coming Soon Card */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(244, 114, 182, 0.85);
  cursor: default;
  min-height: 350px;
  background: rgba(3, 0, 10, 0.98);
  backdrop-filter: blur(14px);
}

.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.coming-soon .project-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(196, 181, 253, 0.4));
}

.coming-soon-text {
  font-size: 1.1rem;
  color: #f5d0fe;
  opacity: 0.9;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 0;
}

.secret-message {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  font-size: 0.85rem;
  color: #f9a8ff;
  font-style: italic;
  text-align: center;
  pointer-events: none;
  animation: fadeInMessage 0.8s ease-in-out forwards;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 0.75;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOutMessage {
  from {
    opacity: 0.75;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* About Section */
.about {
  padding: 90px 40px;
  background: #000000;
}

.specs-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.spec-card {
  padding: 40px 35px;
  border-radius: 24px;
  border: 1.5px solid rgba(244, 114, 182, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-5px);
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

.spec-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
  border-radius: 24px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.spec-card:hover {
  transform: translateY(0);
  border-width: 2px;
  border-color: currentColor;
}

.spec-pink {
  background: linear-gradient(135deg,
    rgba(24, 24, 37, 0.98) 0%,
    rgba(15, 23, 42, 1) 100%);
  color: #fdf4ff;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.98),
    0 0 38px rgba(236, 72, 153, 0.6),
    inset 0 1px 1px rgba(15, 23, 42, 1),
    inset 0 -1px 1px rgba(15, 23, 42, 1);
}

.spec-pink:hover {
  background: linear-gradient(135deg,
    rgba(24, 24, 37, 1) 0%,
    rgba(15, 23, 42, 1) 100%);
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.98),
    0 0 48px rgba(236, 72, 153, 0.9),
    inset 0 1px 1px rgba(15, 23, 42, 1),
    inset 0 -1px 1px rgba(15, 23, 42, 1);
}

.spec-purple {
  background: linear-gradient(135deg,
    rgba(17, 24, 39, 0.98) 0%,
    rgba(15, 23, 42, 1) 100%);
  color: #fdf4ff;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.98),
    0 0 38px rgba(236, 72, 153, 0.6),
    inset 0 1px 1px rgba(15, 23, 42, 1),
    inset 0 -1px 1px rgba(15, 23, 42, 1);
}

.spec-purple:hover {
  background: linear-gradient(135deg,
    rgba(17, 24, 39, 1) 0%,
    rgba(15, 23, 42, 1) 100%);
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.98),
    0 0 48px rgba(236, 72, 153, 0.9),
    inset 0 1px 1px rgba(15, 23, 42, 1),
    inset 0 -1px 1px rgba(15, 23, 42, 1);
}

.spec-peach {
  background: linear-gradient(135deg,
    rgba(24, 24, 27, 0.98) 0%,
    rgba(15, 23, 42, 1) 100%);
  color: #fdf4ff;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.98),
    0 0 34px rgba(236, 72, 153, 0.55),
    inset 0 1px 1px rgba(15, 23, 42, 1),
    inset 0 -1px 1px rgba(15, 23, 42, 1);
}

.spec-peach:hover {
  background: linear-gradient(135deg,
    rgba(24, 24, 27, 1) 0%,
    rgba(15, 23, 42, 1) 100%);
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.98),
    0 0 46px rgba(236, 72, 153, 0.9),
    inset 0 1px 1px rgba(15, 23, 42, 1),
    inset 0 -1px 1px rgba(15, 23, 42, 1);
}

.spec-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(196, 181, 253, 0.4));
  position: relative;
  z-index: 1;
}

.spec-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #f9fafb;
  font-weight: 700;
  position: relative;
  z-index: 1;
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.spec-card p {
  font-size: 1rem;
  color: #f5d0fe;
  opacity: 0.95;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Contact Section */
.contact {
  padding: 90px 40px 100px;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: #f5d0fe;
  opacity: 1;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 0.98) 0%,
    rgba(0, 0, 0, 1) 100%);
  border: 1.5px solid rgba(244, 114, 182, 0.85);
  border-radius: 18px;
  text-decoration: none;
  color: #fdf4ff;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.98),
    0 0 35px rgba(236, 72, 153, 0.8),
    inset 0 1px 1px rgba(0, 0, 0, 1),
    inset 0 -1px 1px rgba(0, 0, 0, 1);
  transform: translateY(-2px);
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
  border-radius: 18px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.contact-btn:hover {
  transform: translateY(0);
  border-width: 2px;
  border-color: rgba(252, 165, 243, 0.95);
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 1) 0%,
    rgba(0, 0, 0, 1) 100%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.98),
    0 0 45px rgba(236, 72, 153, 0.95),
    inset 0 1px 1px rgba(0, 0, 0, 1),
    inset 0 -1px 1px rgba(0, 0, 0, 1);
}

/* Footer */
.footer {
  padding: 60px 40px 40px;
  border-top: 1px solid rgba(30, 64, 175, 0.85);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-content p {
  color: #f5d0fe;
  opacity: 1;
  text-shadow: 0 0 14px rgba(15, 23, 42, 1);
}

.copyright {
  font-size: 0.7rem;
  color: #6b21a8;
  opacity: 0.95;
  letter-spacing: 0.2em;
}

/* Modal — below hand overlay canvas (10055); above gate (2000) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(180, 80, 120, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(80, 40, 140, 0.08) 0%, transparent 50%),
    rgba(13, 0, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 0.98) 0%,
    rgba(0, 0, 0, 1) 100%);
  border: 1px solid rgba(244, 114, 182, 0.95);
  border-radius: 24px;
  padding: 28px 32px 24px;
  animation: slideUp 0.3s ease;
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.98),
    0 0 55px rgba(236, 72, 153, 0.9);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-tier-label {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(244, 114, 182, 0.75);
  margin: 0 0 12px;
}

.modal-cta {
  opacity: 0;
  transition: opacity 0.85s ease 0.5s;
}

.modal.active .modal-cta {
  opacity: 1;
}

.modal-cta.modal-cta--pending {
  pointer-events: none;
  cursor: default;
  opacity: 0.55;
}

.modal.active .modal-cta.modal-cta--pending {
  opacity: 0.55;
}

.modal-back {
  display: block;
  margin: 20px auto 0;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(244, 114, 182, 0.85);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.modal-back:hover {
  color: #f472b6;
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.45);
}

.modal-body {
  text-align: center;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modal-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.modal-header {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.modal-tier {
  padding: 4px 10px;
  background: rgba(3, 0, 10, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid #f472b6;
  border-radius: 16px;
  font-size: 0.65rem;
  color: #f9a8ff;
  letter-spacing: 0.12em;
}

.modal-category {
  font-size: 0.8rem;
  color: #f5d0fe;
  opacity: 0.9;
  font-style: italic;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fdf4ff;
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-description {
  font-size: 0.8rem;
  color: #f9f5ff;
  opacity: 0.9;
  line-height: 1.45;
  margin-bottom: 12px;
}

.modal-description-list {
  text-align: left;
  margin: 0 auto 12px;
  padding-left: 1.25rem;
  max-width: 100%;
}

.modal-description-list li {
  margin-bottom: 0.5rem;
}

.modal-description-list li:last-child {
  margin-bottom: 0;
}

.modal-description strong {
  font-weight: 700;
  color: #f9a8ff;
}

.modal-actions {
  margin-top: 12px;
  margin-bottom: 0;
  text-align: center;
  flex-shrink: 0;
}

.modal-actions .modal-link {
  text-decoration: none;
}

.modal-status {
  padding: 40px;
  background: rgba(3, 0, 10, 0.98);
  border: 1px solid rgba(244, 114, 182, 0.9);
  border-radius: 16px;
  text-align: center;
}

.modal-status span {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.modal-status p {
  font-size: 1.1rem;
  color: #fdf4ff;
  margin-bottom: 10px;
}

.modal-status-sub {
  font-size: 0.9rem !important;
  opacity: 0.7;
  color: #f5d0fe;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 140px 20px 80px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .projects {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about,
  .contact {
    padding: 60px 20px;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 20px 24px 18px;
    max-height: calc(100vh - 32px);
  }

  .modal-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .modal-description {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .modal-actions {
    margin-top: 8px;
  }
}

/* ========== Projects page (hand-tracking experience) ========== */
/* Show default cursor until hand tracking is active (no cursor-trail on this page) */
body.page-projects {
  cursor: auto;
}

body.page-projects.hand-tracking-active {
  cursor: none;
}

/* Projects header: more breathing room from top and sides */
.header--projects {
  padding: 32px 40px 24px;
}

.header--projects .header-content {
  justify-content: flex-start;
}

.header--projects .header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header--projects .back-link {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #f9a8ff;
  text-decoration: none;
  margin-right: 24px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header--projects .back-link:hover {
  color: #f472b6;
  opacity: 0.9;
}

.header--projects .page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fdf4ff;
  margin: 0;
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
  .header--projects {
    padding: 24px 20px 20px;
  }
}

.projects-page-main {
  position: relative;
  padding: 80px 40px 40px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: transparent;
}

.projects-page-main--hidden {
  display: none;
}

.projects-page-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.projects-page-container--hidden {
  display: none;
}

.projects-page-placeholder {
  text-align: center;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.9rem;
}

/* 3D objects grid */
.projects-3d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-card-3d {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 0;
}

.project-3d-inner {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.project-blob-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
}

.project-card-3d .project-3d-header {
  position: relative;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.project-3d-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.project-3d-title {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fdf4ff;
  margin-bottom: 0;
}

.project-3d-blob {
  display: none;
}

.project-card-3d.card--grabbed .project-3d-inner {
  /* drop-shadow removed — gesture HUD provides interaction feedback */
}

.project-card-3d.card--hovered {
  outline: none;
  border: none;
}
.project-card-3d.card--hovered .project-3d-inner {
  /* drop-shadow removed — gesture HUD provides interaction feedback */
}

/* Mobile: desktop-only gate — full-screen block, no cube experience */
.mobile-desktop-only-block {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(180, 80, 120, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(80, 40, 140, 0.08) 0%, transparent 50%),
    #0d0008;
}

.mobile-desktop-only-block[hidden] {
  display: none !important;
}

.mobile-desktop-only-inner {
  max-width: 420px;
  width: 100%;
}

.mobile-desktop-only-label {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(244, 114, 182, 0.75);
  margin: 0 0 16px;
}

.mobile-desktop-only-heading {
  font-family: 'Rosehot', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fdf4ff;
  margin: 0 0 16px;
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

.mobile-desktop-only-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 208, 254, 0.88);
  margin: 0 0 36px;
}

.mobile-desktop-only-back {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(244, 114, 182, 0.9);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-desktop-only-back:hover {
  color: #fdf4ff;
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

.tutorial-reopen-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.6);
  background: rgba(10, 0, 18, 0.85);
  color: rgba(245, 208, 254, 0.7);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  cursor: pointer;
  z-index: 200;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.tutorial-reopen-btn:hover {
  border-color: rgba(139, 92, 246, 1);
  color: #fdf4ff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

/* Tutorial overlay (projects page) */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 0, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
}

.tutorial-overlay.tutorial-overlay--hidden {
  display: none;
}

.tutorial-modal {
  position: relative;
  margin: auto;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 0.98) 0%,
    rgba(3, 0, 10, 1) 50%,
    rgba(0, 0, 0, 1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(244, 114, 182, 0.9);
  border-radius: 24px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.98),
    0 0 42px rgba(236, 72, 153, 0.85);
}

.tutorial-replay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  background: rgba(10, 0, 18, 0.82);
  color: rgba(245, 208, 254, 0.78);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-replay-close:hover {
  color: #fff;
  border-color: rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.3);
}

.tutorial-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tutorial-step.tutorial-step--active {
  display: flex;
}

.tutorial-hand-note {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #f9a8ff;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.tutorial-live-note {
  margin: 0 0 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 208, 254, 0.48);
}

.tutorial-step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f9f5ff;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.tutorial-step-detail {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #f5d0fe;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.tutorial-pose-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 114, 182, 0.8);
}

.tutorial-hand-outline {
  width: 140px;
  height: 180px;
  margin-bottom: 16px;
  color: rgba(244, 114, 182, 0.9);
}

.tutorial-hand-outline svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tutorial-hand-outline .joint {
  fill: rgba(244, 114, 182, 0.6);
  stroke: currentColor;
}

.tutorial-point-target-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px;
}

.tutorial-point-target {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(244, 114, 182, 0.55);
  box-shadow:
    0 0 0 10px rgba(244, 114, 182, 0.06),
    0 0 26px rgba(236, 72, 153, 0.22),
    inset 0 0 20px rgba(244, 114, 182, 0.08);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tutorial-point-target::before,
.tutorial-point-target::after {
  content: '';
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.tutorial-point-target::before {
  width: 10px;
  height: 10px;
  background: rgba(253, 244, 255, 0.92);
  box-shadow: 0 0 12px rgba(253, 244, 255, 0.45);
}

.tutorial-point-target::after {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 114, 182, 0.38);
}

.tutorial-point-target.tutorial-point-target--active {
  border-color: rgba(253, 244, 255, 0.92);
  transform: scale(1.04);
  box-shadow:
    0 0 0 12px rgba(244, 114, 182, 0.12),
    0 0 30px rgba(253, 244, 255, 0.16),
    inset 0 0 26px rgba(244, 114, 182, 0.1);
}

.tutorial-progress {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tutorial-progress-ring-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.tutorial-progress-ring {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
}

.tutorial-progress-track {
  stroke: rgba(244, 114, 182, 0.14);
  stroke-width: 8;
}

.tutorial-progress-arc {
  stroke: rgba(253, 244, 255, 0.95);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.08s linear;
}

.tutorial-progress-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #fdf4ff;
}

.tutorial-progress-status {
  min-height: 1.4em;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 208, 254, 0.72);
}

/* Mirrored camera preview (projects page) */
.hand-preview-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 200px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 105, 180, 0.5);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.25), 0 4px 24px rgba(0, 0, 0, 0.6);
  background: #0a0008;
  /* Above artifact modal (10050) so the reference feed stays visible while a cube card is open */
  z-index: 10060;
  backdrop-filter: blur(8px);
}

.hand-preview-container[hidden] {
  display: none !important;
}

/* While artifact modal is open, preview sits above modal in z-order — disable hit-testing so Back / CTA receive clicks */
body.modal-artifact-open .hand-preview-container {
  pointer-events: none;
}

/* Hand overlay HUD (gesture label + live dot) */
.hand-overlay-hud {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 10061;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(245, 243, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(196, 181, 253, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #4c1d95;
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
}

.hand-overlay-hud-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: handHudPulse 1.5s ease-in-out infinite;
}

@keyframes handHudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

.hand-overlay-hud-label {
  text-transform: uppercase;
  font-weight: 600;
}

.hand-preview-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.hand-preview-container::after {
  content: 'You';
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Gate overlay (projects page) */
/* ── Gate overlay — full-screen cinematic container ── */
/* z-index 2000 intentionally sits BELOW the hand-overlay canvas (10055) and   */
/* preview (9990) so the skeleton + camera feed are visible during calibration. */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  /* Match Limited Collection page atmosphere + subtle scan lines */
  background-color: #0d0008;
  background-image: repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    ),
    radial-gradient(ellipse at 50% 55%, rgba(180, 80, 120, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 30%, rgba(80, 40, 140, 0.05) 0%, transparent 50%);
}

.gate-overlay.gate-overlay--hidden {
  display: none;
}

/* ── Individual gate steps ── */
.gate-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.gate-step.gate-step--hidden {
  opacity: 0;
  pointer-events: none;
}

.gate-step-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

/* ── "// INCOMING SIGNAL" label ── */
.gate-signal-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 105, 180, 0.55);
}

/* ── Main heading ── */
@keyframes gateHeadingFlicker {
  0%, 95%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(255, 105, 180, 0.45); }
  96%           { opacity: 0.85; text-shadow: 0 0 60px rgba(255, 105, 180, 0.7); }
  97%           { opacity: 1;    text-shadow: 0 0 20px rgba(255, 105, 180, 0.3); }
  98%           { opacity: 0.9;  text-shadow: 0 0 55px rgba(255, 105, 180, 0.65); }
}

.gate-step-heading {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  animation: gateHeadingFlicker 6s ease-in-out infinite;
}

/* ── Body copy ── */
.gate-step-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

/* ── CTA button ── */
.gate-cta {
  min-width: 240px;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

/* ── "Return to base" link ── */
.gate-back-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.gate-back-link:hover {
  color: rgba(255, 105, 180, 0.65);
}

/* ── Calibration ring ── */
.calibrate-ring-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
}

.calibrate-ring {
  width: 148px;
  height: 148px;
  transform: rotate(-90deg); /* arc starts at 12 o'clock */
}

.calibrate-ring-track {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 3;
}

@keyframes calibrateRingGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 105, 180, 0.5)); }
  50%       { filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.9)); }
}

.calibrate-ring-arc {
  stroke: #ff69b4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 326.7;   /* 2π × 52 */
  stroke-dashoffset: 326.7;  /* starts empty; JS animates this */
  animation: calibrateRingGlow 1.8s ease-in-out infinite;
  transition: stroke-dashoffset 0.12s linear;
}

.calibrate-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 105, 180, 0.7);
}

.calibrate-status {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* Index: message when redirected from projects (hand_required=1) */
.hand-required-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg,
    rgba(10, 10, 17, 0.98),
    rgba(0, 0, 0, 1));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 114, 182, 0.9);
  border-radius: 12px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.98),
    0 0 24px rgba(236, 72, 153, 0.85);
}

.hand-required-message[hidden] {
  display: none !important;
}

.hand-required-message p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #fdf4ff;
}

.hand-required-dismiss {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1;
}

.hand-required-dismiss:hover {
  color: #374151;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO INTRO ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */

/* Full-screen Three.js canvas — sits in front of body bg, behind DOM content */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* While intro is running: lock scroll, hide hero elements */
body.intro-running {
  overflow: hidden;
}

body.intro-running .profile-picture {
  opacity: 0 !important;
  animation: none !important;
  transform: none !important;
}

body.intro-running .hero-name {
  opacity: 0 !important;
}

body.intro-running .hero-tagline {
  opacity: 0 !important;
}

body.intro-running .hero-buttons {
  opacity: 0 !important;
}
