:root {
  --bg-dark: #0a0a0b;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;

  --clay-base: #18181b;
  --clay-highlight: rgba(255, 255, 255, 0.08);
  --clay-shadow: rgba(0, 0, 0, 0.9);
  --clay-inset-light: rgba(255, 255, 255, 0.04);
  --clay-inset-dark: rgba(0, 0, 0, 0.6);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* Full-width End-to-End Hero Video Banner */
.hero-video-banner {
  width: 100vw;
  height: 60vh;
  max-height: 650px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Text Section */
.hero {
  padding: 4rem 2rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  max-width: 850px;
}
.hero p {
  color: var(--text-muted);
  max-width: 550px;
}

.gallery-container {
  position: relative;
  height: 300vh;
  width: 100%;
}

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
}

.sphere {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.clay-card {
  position: absolute;
  width: 150px;
  height: 200px;
  left: -75px;
  top: -100px;
  background: var(--clay-base);
  border-radius: 24px;
  padding: 10px;
  transform-style: preserve-3d;
  backface-visibility: visible;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 8px 8px 16px var(--clay-shadow),
              -4px -4px 10px rgba(255, 255, 255, 0.02),
              inset 3px 3px 6px var(--clay-inset-light),
              inset -3px -3px 6px var(--clay-inset-dark);
  transition: filter 0.4s ease;
}

.clay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: grayscale(80%) brightness(0.5);
  transition: all 0.4s ease;
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.8);
}

.clay-card.active-card {
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
}
.clay-card.active-card img {
  filter: grayscale(0%) brightness(1);
}

.floating-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 10;
  position: sticky;
  margin-left: 8%;
}
.floating-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}
.floating-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.network-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.journey-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #111113 0%, var(--bg-dark) 70%);
}

.journey-content {
  text-align: center;
  z-index: 2;
  background: rgba(10, 10, 11, 0.6);
  padding: 3rem;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.journey-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.journey-content p {
  color: var(--text-muted);
}

.constellation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.constellation-card {
  position: absolute;
  width: 90px;
  height: 120px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .hero-video-banner {
    height: 40vh;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .floating-text {
    position: absolute;
    top: 80%;
    margin-left: 5%;
    width: 90%;
    text-align: center;
  }
  .clay-card {
    width: 110px;
    height: 150px;
    left: -55px;
    top: -75px;
  }
}