/* =============================================
   24 Altura — Index V2 Hero v3
   "Velvet Stage" theatrical slider
   ============================================= */

.page-index-v2 {
  --lux-gold: #c9a96e;
  --lux-gold-light: #edd9a8;
  --lux-dark: #050810;
  --lux-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Shell ---- */
.lux-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

/* ---- Background stages ---- */
.lux-stages {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lux-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.12) translateX(4%);
  transition: none;
}

.lux-stage.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: scale(1) translateX(0);
  transition: opacity 1.2s ease, transform 1.8s var(--lux-ease);
}

.lux-stage.is-leaving {
  z-index: 1;
  opacity: 0;
  transform: scale(1.06) translateX(-5%);
  transition: opacity 0.9s ease, transform 1.4s var(--lux-ease);
}

.lux-stage__img,
.lux-stage__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.55);
  transition: transform 0.5s ease-out;
}

.lux-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(5, 8, 16, 0.92) 0%, rgba(5, 8, 16, 0.55) 45%, rgba(5, 8, 16, 0.75) 100%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(201, 169, 110, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(201, 169, 110, 0.08) 0%, transparent 50%);
}

.lux-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lux-hero__wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  z-index: 5;
  background: linear-gradient(to bottom, transparent, var(--lux-gold-light), var(--lux-gold), transparent);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.8);
  transform: translateX(-20px);
  opacity: 0;
  pointer-events: none;
}

.lux-hero__wipe.is-running {
  animation: luxWipe 1.1s var(--lux-ease) forwards;
}

@keyframes luxWipe {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---- Content layer ---- */
.lux-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 88px 28px 24px 36px;
}

.lux-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.lux-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lux-gold-light);
}

.lux-badge::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--lux-gold);
}

.lux-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
}

.lux-counter__now {
  font-size: 28px;
  font-weight: 700;
  color: var(--lux-gold-light);
  letter-spacing: -1px;
  min-width: 36px;
}

.lux-counter__line {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Main body ---- */
.lux-hero__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.lux-copy {
  max-width: 820px;
}

.lux-copy__brand {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.lux-copy__brand em {
  font-style: normal;
  color: var(--lux-gold);
  font-weight: 600;
}

.lux-copy__viewport {
  position: relative;
  min-height: 140px;
  margin-bottom: 20px;
  overflow: hidden;
}

.lux-copy__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.7s var(--lux-ease);
  pointer-events: none;
}

.lux-copy__panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.lux-copy__panel.is-exit {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.4s ease, transform 0.5s var(--lux-ease);
}

.lux-copy__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 14px;
}

.lux-copy__title span {
  display: block;
  background: linear-gradient(135deg, #fff 30%, var(--lux-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lux-copy__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 400px;
}

.lux-copy__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 18px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}

.lux-copy__stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--lux-gold-light);
}

.lux-copy__stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lux-copy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.35s var(--lux-ease), box-shadow 0.35s ease;
}

.lux-btn--gold {
  background: linear-gradient(120deg, #e8d5a8, var(--lux-gold) 45%, #9a7844);
  color: var(--lux-dark);
  box-shadow: 0 10px 36px rgba(201, 169, 110, 0.35);
}

.lux-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(201, 169, 110, 0.45);
}

.lux-btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.lux-btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.lux-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lux-btn--ghost:hover {
  color: var(--lux-gold-light);
  border-color: rgba(201, 169, 110, 0.4);
}

/* ---- Chapter rail ---- */
.lux-chapters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.lux-chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.35s ease, transform 0.35s var(--lux-ease);
}

.lux-chapter:hover {
  color: rgba(255, 255, 255, 0.65);
  transform: translateX(4px);
}

.lux-chapter.is-active {
  color: var(--lux-gold-light);
}

.lux-chapter.is-active .lux-chapter__num {
  border-color: var(--lux-gold);
  color: var(--lux-gold);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
}

.lux-chapter__num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.lux-chapter__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lux-chapter__sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.lux-chapter.is-active .lux-chapter__sub {
  color: rgba(201, 169, 110, 0.7);
}

/* ---- Film dock ---- */
.lux-dock {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.lux-dock::-webkit-scrollbar { display: none; }

.lux-dock__item {
  flex: 0 0 auto;
  width: 120px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.35s ease, transform 0.35s var(--lux-ease), box-shadow 0.35s ease;
}

.lux-dock__item:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 110, 0.35);
}

.lux-dock__item.is-active {
  border-color: var(--lux-gold);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.25);
  transform: translateY(-4px) scale(1.04);
}

.lux-dock__thumb {
  height: 56px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.lux-dock__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 16, 0.8), transparent);
}

.lux-dock__meta {
  padding: 8px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.lux-dock__item.is-active .lux-dock__meta {
  color: var(--lux-gold-light);
}

/* ---- Trust + scroll ---- */
.lux-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.lux-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lux-trust__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
}

.lux-trust__pill svg {
  color: var(--lux-gold);
  flex-shrink: 0;
}

.lux-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.lux-scroll:hover { color: var(--lux-gold-light); }

.lux-scroll__ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: luxBounce 2s ease-in-out infinite;
}

@keyframes luxBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---- Progress bar top ---- */
.lux-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.06);
}

.lux-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lux-gold), var(--lux-gold-light));
  transition: width 0.1s linear;
}

/* ---- Entrance ---- */
.lux-rise {
  opacity: 0;
  transform: translateY(20px);
}

.lux-rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--lux-ease), transform 0.8s var(--lux-ease);
}

/* ---- Sidebar-aware ---- */
@media (min-width: 1025px) and (max-width: 1500px) {
  .page-index-v2 .lux-hero__body {
    grid-template-columns: 1fr;
  }

  .page-index-v2 .lux-chapters {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 16px;
    gap: 8px;
  }

  .page-index-v2 .lux-chapter {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
  }

  .page-index-v2 .lux-chapter__sub {
    display: none;
  }
}

@media (max-width: 1024px) {
  .lux-hero__inner {
    padding: 80px 18px 20px;
  }

  .lux-hero__body {
    grid-template-columns: 1fr;
  }

  .lux-chapters {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    padding-left: 0;
    scrollbar-width: none;
  }

  .lux-chapters::-webkit-scrollbar { display: none; }

  .lux-chapter {
    flex-shrink: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .lux-chapter__sub { display: none; }

  .lux-copy__viewport { min-height: 120px; }

  .lux-copy__actions .lux-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
  }

  .lux-btn--ghost { flex: 1 1 100% !important; }

  .lux-scroll { display: none; }

  .lux-dock__item { width: 100px; }
}

@media (max-width: 480px) {
  .lux-copy__title { font-size: 32px; }
  .lux-dock__item { width: 88px; }
  .lux-dock__thumb { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .lux-stage,
  .lux-copy__panel,
  .lux-scroll__ring,
  .lux-hero__wipe {
    animation: none !important;
    transition: none !important;
  }

  .lux-rise {
    opacity: 1;
    transform: none;
  }
}
