/* =============================================
   TOKENS & CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-dark: #1a1a1a;
  --color-gray-body: #666666;
  --color-copper: #c26a3b;

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.18);
  --glass-bg-dim: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: 18px;

  --font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-wipe: cubic-bezier(0.7, 0, 0.3, 1);

  --cursor-size: 40px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: scroll;
}

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

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: none;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-size);
  height: var(--cursor-size);
  border-radius: 50%;
  background: var(--color-white);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  will-change: transform;
}

.cursor.is-hover {
  width: 60px;
  height: 60px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* =============================================
   PHASE A — Intro / Hero
   ============================================= */
.phase-a {
  height: 500vh;
  position: relative;
}

.intro {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-black);
}

/* Splash */
.splash {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
}

.splash__logo {
  font-size: 8vw;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-gray-dark);
  opacity: 0;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 100% 0 0);
}

.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Content */
.hero {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 5vw;
}

.hero__left {
  width: 40%;
  padding-right: 4vw;
}

.hero__heading {
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__heading .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

.hero__btn {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
}

/* Info Card */
.hero__right {
  width: 50%;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--color-white);
  color: var(--color-black);
  width: 100%;
  max-width: 520px;
  padding: 60px 50px;
  transform: translateY(100%);
  opacity: 1;
}

.card__content {
  text-align: center;
}

.card__logo {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-black);
  opacity: 0;
}

.card__rule {
  width: 60px;
  margin: 20px auto;
  border: none;
  border-top: 1.5px solid var(--color-black);
  transform: scaleX(0);
}

.card__tagline {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--color-black);
  opacity: 0;
}

.card__body {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-gray-body);
  opacity: 0;
}

/* =============================================
   PHASE B
   ============================================= */
.phase-b {
  display: none;
}

.phase-b.is-active {
  display: block;
}

/* =============================================
   SECTION 2 — Own Your Curls
   ============================================= */
.section-curls {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-curls__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-curls__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.section-curls__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-curls__heading {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(40px);
}

.section-curls__sub {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
}

.section-curls__btn {
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
}

/* =============================================
   SECTION 3 — Split Screen
   ============================================= */
.section-split {
  min-height: 100vh;
  display: flex;
}

.section-split__left {
  width: 50%;
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.section-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  clip-path: inset(0 100% 0 0);
}

.section-split__overlay {
  position: absolute;
  bottom: 8%;
  left: 8%;
  z-index: 2;
}

.section-split__line1 {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 2.2rem);
  font-weight: 700;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  clip-path: inset(0 100% 0 0);
}

.section-split__line2 {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  clip-path: inset(0 100% 0 0);
}

.section-split__right {
  width: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
}

.section-split__text {
  max-width: 480px;
}

.section-split__heading {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.section-split__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-gray-body);
  opacity: 0;
  transform: translateY(20px);
}

/* =============================================
   SECTION 4 — Products
   ============================================= */
.products-wrapper {
  height: 300vh;
  position: relative;
}

.section-products {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background layers */
.products__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.products__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 100% 0 0);
}

.products__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
}

/* Glassmorphic Cards */
.products__cards {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 48px;
  align-items: stretch;
  margin-top: -8vh;
}

.card--glass {
  width: 280px;
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;

  opacity: 0;
  transform: translateY(30px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: none;
}

.card--glass.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.card--glass.is-inactive {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.card--glass__title {
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

.card--glass__sub {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1.4;
}

.card--glass__icon {
  width: 52px;
  height: 52px;
  color: var(--color-white);
  opacity: 0.7;
  margin-top: 8px;
}

/* =============================================
   TRANSITION OVERLAY
   ============================================= */
.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-size: cover;
  background-position: center;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 5vh 5vw;
    gap: 4vh;
  }

  .hero__left {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .hero__right {
    width: 100%;
  }

  .card {
    max-width: 100%;
    padding: 40px 32px;
  }

  .section-split {
    flex-direction: column;
  }

  .section-split__left {
    width: 100%;
    height: 50vh;
  }

  .section-split__right {
    width: 100%;
    padding: 48px 32px;
  }

  .products__cards {
    gap: 16px;
  }

  .card--glass {
    width: 220px;
    padding: 28px 20px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  button {
    cursor: pointer;
  }

  .hero__heading {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .card {
    padding: 32px 24px;
  }

  .card__tagline {
    font-size: 1rem;
  }

  .section-curls__heading {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .section-split__right {
    padding: 32px 24px;
  }

  .products__cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .card--glass {
    width: 80%;
    max-width: 300px;
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
