/* ── HERO — Fullscreen image/video carousel ───────── */
.hero {
  position: relative;
  overflow: hidden;
  /* Stretch to full viewport — sits under fixed navbar */
  height: 100vh;
  height: 100dvh; /* dynamic viewport height (handles mobile browser chrome) */
  min-height: 560px;
}

.hero__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── SLIDES ── */
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s cubic-bezier(0.22,1,0.36,1);
}
.hero__slide--active {
  opacity: 1; visibility: visible;
  /* Keep position:absolute so carousel height is set by .hero, not slide */
  position: absolute;
}

/* ── BACKGROUND WRAP ── */
.hero__bg-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden; z-index: 0;
}

/* Full-bleed image with Ken Burns zoom */
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.08);
  transition: transform 8s ease;
  display: block;
}
.hero__slide--active .hero__bg-img { transform: scale(1); }

/* Full-bleed video */
.hero__bg-video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Gradient fallback */
.hero__bg-gradient {
  position: absolute; inset: 0;
}

/* Animated mesh overlay for gradient slides */
.hero__bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(242,202,80,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(242,202,80,.04) 0%, transparent 40%);
  animation: meshPulse 6s ease infinite alternate;
}
@keyframes meshPulse {
  from { opacity: .6; }
  to   { opacity: 1; }
}

/* Cinematic overlay */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,.3) 0%,
    rgba(14,14,14,.1) 35%,
    rgba(14,14,14,.5) 75%,
    rgba(14,14,14,.9) 100%
  );
}
.hero__overlay--light {
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,.2) 0%,
    transparent 40%,
    rgba(14,14,14,.7) 100%
  );
}

/* ── CONTENT ── */
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start; text-align: left;
  padding: 180px 0 120px;
  width: 100%; max-width: 1440px; margin: 0 auto;
}

.hero__text { max-width: 680px; }

.hero__tag {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .4em; text-transform: uppercase;
  color: #f2ca50;
  border: 1px solid rgba(242,202,80,.3);
  padding: 5px 14px;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroTagIn .8s ease .3s forwards;
}
.hero__slide--active .hero__tag { animation: heroTagIn .8s ease .3s forwards; }

.hero__title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; color: #e5e2e1;
  margin-bottom: 20px;
  /* JS types characters — starts empty */
  min-height: 1.1em;
}

/* Gold accent text typed by JS */
.hero__title-accent {
  color: #f2ca50;
  position: relative;
}

/* Blinking cursor injected by typewriter JS */
.hero__cursor {
  display: inline-block;
  width: 3px; height: .82em;
  background: #f2ca50;
  margin-left: 3px;
  vertical-align: middle;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__desc {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.05rem; color: rgba(229,226,225,.7);
  line-height: 1.7; margin-bottom: 36px; max-width: 520px;
  opacity: 0;
  animation: heroFadeUp .9s ease .8s forwards;
}

.hero__actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0;
  animation: heroFadeUp .8s ease 1s forwards;
}

.hero__stats {
  display: flex; align-items: center; gap: 36px;
  opacity: 0;
  animation: heroFadeUp .8s ease 1.2s forwards;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat strong {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.6rem; font-weight: 700; color: #f2ca50; line-height: 1;
}
.hero__stat span {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #99907c;
}
.hero__stat-divider { width: 1px; height: 36px; background: rgba(153,144,124,.3); }

/* ── PROGRESS BAR ── */
.hero__progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,.1);
  z-index: 10; overflow: hidden;
}
.hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f2ca50, #d4af37);
  width: 0%;
  transition: width linear;
}

/* ── SLIDE COUNTER ── */
.hero__counter {
  position: absolute; bottom: 32px; left: 80px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; color: rgba(229,226,225,.6);
  display: flex; align-items: center; gap: 4px;
  z-index: 10;
}
.hero__counter-sep { color: rgba(242,202,80,.4); margin: 0 2px; }
#heroCurrentSlide { color: #f2ca50; }

/* ── CONTROLS ── */
.hero__prev, .hero__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(19,19,19,.55);
  border: 1px solid rgba(242,202,80,.2);
  color: #f2ca50;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all .25s ease; z-index: 10; cursor: pointer;
}
.hero__prev { left: 32px; }
.hero__next { right: 32px; }
.hero__prev:hover, .hero__next:hover {
  background: rgba(242,202,80,.12);
  border-color: rgba(242,202,80,.5);
  transform: translateY(-50%) scale(1.06);
}

/* ── DOTS ── */
.hero__dots {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero__dot {
  width: 6px; height: 6px;
  background: rgba(229,226,225,.3);
  border: none; cursor: pointer;
  transition: all .3s ease; padding: 0;
}
.hero__dot--active { width: 28px; background: #f2ca50; }

/* ── ENTRANCE KEYFRAMES ── */
@keyframes heroTagIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* heroTitleIn replaced by word-split JS animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .hero__counter { left: 40px; }
  .hero__title { font-size: clamp(2.4rem, 6vw, 4rem); }
}
@media (max-width: 768px) {
  /* Content layout */
  .hero__content {
    padding: 180px 20px 80px;
    text-align: center;
    align-items: center;
  }
  .hero__text { max-width: 100%; }

  /* Title — readable on mobile */
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.2; margin-bottom: 16px; }

  /* HIDE on mobile — arrows, counter, progress, stats, tag, description */
  .hero__prev, .hero__next { display: none !important; }
  .hero__counter  { display: none !important; }
  .hero__progress { display: none !important; }
  .hero__stats    { display: none !important; }
  .hero__tag      { display: none !important; }
  .hero__desc     { display: none !important; }

  /* Actions — stack vertically, full width */
  .hero__actions { justify-content: center; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
  .hero__actions .btn { width: 100%; max-width: 260px; text-align: center; justify-content: center; padding: 14px 24px; }

  /* Dots — centered at bottom */
  .hero__dots { bottom: 20px; justify-content: center; }
  .hero__dot { width: 6px; height: 6px; }
  .hero__dot--active { width: 18px; }
}