* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

.hero-section {
  /* JS will set height dynamically */
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;   /* fallback */
  height: 100svh;  /* mobile: small viewport height — matches window.innerHeight */
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  width: min(1400px, 92vw);
  height: min(85vh, 820px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: clip-path, transform, opacity;
  transform: scale(1.05);
  opacity: 1;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  cursor: none; /* Hide default cursor over images */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.custom-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.custom-cursor.active {
  opacity: 1;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
  z-index: 10;
  opacity: 0;
  will-change: opacity;
}

.project-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  max-width: 600px;
}

.project-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.project-link:hover {
  border-bottom-color: rgba(255,255,255,1);
  padding-bottom: 4px;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 50;
  pointer-events: none;
  mix-blend-mode: normal;
  padding: 1rem;
}

.hero-text h1 {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

.hero-text p {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  z-index: 60;
  animation: bounce 2s infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
  .hero-content {
    width: 94vw;
    height: 78vh;
    border-radius: 18px;
  }

  .project-info {
    padding: 2rem 1.5rem;
  }

  .project-info h2 {
    margin-bottom: 0.4rem;
  }

  .project-info p {
    margin-bottom: 1rem;
  }
}

.hero-image img.about-image {
  object-fit: contain;
  object-position: center;
  transform: scale(1.0); /* Reset the default 1.15 scale */
}