
/* ============================================
   MASK ROTATION COMPONENT
   ============================================ */

/* Hero redesigned with rotating mask */
.hero-v2 {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-v2::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroGlow 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-v2-tag {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s ease forwards;
  position: relative;
  z-index: 2;
}

.mask-canvas-wrap {
  width: min(540px, 85vw);
  height: min(540px, 85vw);
  position: relative;
  margin: 0 auto 2rem;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.4s 0.6s ease forwards;
}

.mask-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  touch-action: pan-y;
}

.mask-canvas.mask-ready {
  opacity: 1;
}

.mask-hint {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 1s 2s ease forwards;
  pointer-events: none;
}

.hero-v2-content {
  text-align: center;
  max-width: 560px;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

.hero-v2 h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s 0.9s ease forwards;
}

.hero-v2 h1 em {
  font-style: italic;
  color: var(--accent-bright);
}

.hero-v2-sub {
  color: var(--text-sec);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}

.hero-v2 .btn-primary {
  opacity: 0;
  animation: fadeUp 1s 1.5s ease forwards;
}

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

/* Mid-page rotating showcase section */
.mask-showcase {
  min-height: 100vh;
  padding: 8rem 2rem;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mask-showcase::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mask-showcase-canvas-wrap {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  margin: 2rem auto 3rem;
  position: relative;
  z-index: 1;
}

.mask-showcase-tag {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.mask-showcase h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.mask-showcase h2 em {
  font-style: italic;
  color: var(--accent-bright);
}

.mask-showcase-sub {
  color: var(--text-sec);
  max-width: 440px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

/* CTA section with small rotating mask */
.cta-with-mask {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.cta-mask-wrap {
  width: min(240px, 50vw);
  height: min(240px, 50vw);
  margin: 0 auto 2.5rem;
}

@media (max-width: 768px) {
  .hero-v2 { padding: 5rem 1.5rem 3rem; }
  .mask-showcase { padding: 5rem 1.5rem; }
  .cta-with-mask { padding: 5rem 1.5rem; }
}

/* Hide original hero */
.hero.legacy-hidden { display: none; }
