/* ==========================================================
   MOWA — hero: full-bleed fading slideshow + floating tickets
   ========================================================== */

:root {
  --slide-duration: 6.5s;
  --fade-duration: 1.6s;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 7.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Media / slideshow ---------- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.slides { position: absolute; inset: -6% 0 0; will-change: transform; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity var(--fade-duration) var(--ease-in-out);
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-leaving { opacity: 0; z-index: 0; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img {
  object-fit: cover;
  transform: scale(1.14) translate(var(--kb-x, 0), var(--kb-y, 0));
  transform-origin: 50% 50%;
}
.slide.is-active img, .slide.is-leaving img {
  animation: kenburns calc(var(--slide-duration) + var(--fade-duration)) linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.14) translate(var(--kb-x, 0), var(--kb-y, 0)); }
  to { transform: scale(1.02) translate(0, 0); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 13, 0.94) 0%, rgba(11, 10, 13, 0.78) 34%, rgba(11, 10, 13, 0.25) 68%, rgba(11, 10, 13, 0.1) 100%),
    linear-gradient(0deg, rgba(11, 10, 13, 0.95) 0%, rgba(11, 10, 13, 0) 32%),
    linear-gradient(180deg, rgba(11, 10, 13, 0.7) 0%, rgba(11, 10, 13, 0) 22%),
    linear-gradient(120deg, rgba(142, 85, 160, 0.28), rgba(142, 85, 160, 0) 60%);
}

/* ---------- Content ---------- */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero__eyebrow { color: var(--lilac); letter-spacing: 0.12em; }
.hero__eyebrow::before { display: none; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7ee0a1; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #7ee0a1;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero__title {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
}
.hero__title em { display: inline-block; }
.line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: inline-block; will-change: transform; }

.hero__lead { max-width: 33rem; margin: 0 0 2.6rem; color: #cfc9d4; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- Floating tickets ---------- */
.hero__visual { position: relative; width: 100%; max-width: 440px; height: 320px; justify-self: end; }
.ticket {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border-radius: 18px;
  background: rgba(20, 18, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}
.ticket small { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #bdb5c4; }
.ticket strong { font-size: 0.92rem; font-weight: 600; }
.ticket__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--purple); font-weight: 700; }
.ticket__ok { margin-left: 0.4rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #7ee0a1; color: #0b2a17; font-size: 0.75rem; font-weight: 800; }
.ticket__ok--wait { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.ticket--a { top: 8%; right: 14%; animation: float 7s ease-in-out infinite; }
.ticket--b { bottom: 8%; right: 0; animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---------- Bottom bar: dots, caption, pause ---------- */
.hero__bar {
  position: absolute;
  left: 0; right: 0; bottom: 2.2rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.hero__dots { display: flex; gap: 0.6rem; }
.hero__dot { position: relative; width: 56px; height: 24px; padding: 0; }
.hero__dot::before, .hero__dot span {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
}
.hero__dot::before { background: rgba(255, 255, 255, 0.25); transition: background 0.3s; }
.hero__dot:hover::before { background: rgba(255, 255, 255, 0.5); }
.hero__dot span { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-done span { transform: scaleX(1); }
.hero__dot.is-active span { animation: dotfill var(--slide-duration) linear forwards; }
.hero.is-paused .hero__dot.is-active span { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__caption {
  margin: 0;
  display: flex; align-items: baseline; gap: 1rem;
  font-size: 0.85rem; color: #cfc9d4; letter-spacing: 0.02em;
}
.hero__caption [data-caption] { transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.hero__caption.is-swapping [data-caption] { opacity: 0; transform: translateY(6px); }
.hero__count { font-family: var(--serif); font-size: 1.15rem; color: #fff; }

.hero__pause {
  position: relative; margin-left: auto;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.3s, background 0.3s;
}
.hero__pause:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.hero__pause span::before, .hero__pause span::after {
  content: ""; position: absolute; top: 14px; width: 3px; height: 12px; border-radius: 2px; background: #fff;
}
.hero__pause span::before { left: 15px; }
.hero__pause span::after { left: 22px; }
.hero__pause[aria-pressed="true"] span::before {
  left: 16px; top: 13px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
}
.hero__pause[aria-pressed="true"] span::after { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 7rem 0 7rem; justify-content: flex-end; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(11, 10, 13, 0.97) 0%, rgba(11, 10, 13, 0.82) 45%, rgba(11, 10, 13, 0.25) 75%, rgba(11, 10, 13, 0.55) 100%),
      linear-gradient(120deg, rgba(142, 85, 160, 0.3), rgba(142, 85, 160, 0) 60%);
  }
  .hero__visual { height: auto; max-width: none; justify-self: stretch; display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .ticket { position: static; animation: none; padding: 0.55rem 0.8rem 0.55rem 0.55rem; }
  .ticket strong { font-size: 0.8rem; }
  .ticket__icon { width: 30px; height: 30px; }
  .hero__bar { bottom: 1.6rem; gap: 1rem; }
  .hero__dot { width: 36px; }
  .hero__caption [data-caption] { display: none; }
}
