/* Héros plein écran à diaporama : images en fondu, titre, légende et barres de progression. */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: var(--night); }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.slide.is-active img { animation: kenburns 9s ease-out forwards; }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 10, 22, .82) 0%, rgba(6, 10, 22, .4) 38%, rgba(6, 10, 22, 0) 66%),
    linear-gradient(0deg, var(--night) 0%, rgba(6, 10, 22, .55) 16%, rgba(6, 10, 22, 0) 42%),
    linear-gradient(180deg, rgba(6, 10, 22, .55) 0%, rgba(6, 10, 22, 0) 16%);
}
.hero-content {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: clamp(120px, 20vh, 200px);
  max-width: 760px;
}
.hero-title {
  margin: 14px 0 16px; font-size: clamp(3rem, 8.6vw, 7.6rem); line-height: .9; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--pearl); text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.hero-title span { display: block; }
.hero-title span:first-child { font-weight: 800; }
.hero-title span:last-child { font-weight: 300; letter-spacing: .02em; }
.hero-lede { margin: 0 0 30px; max-width: 520px; font-family: var(--font-lore); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; color: #e9e3d6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.js .hero-content > * { opacity: 0; transform: translateY(18px); animation: rise-in 1.1s var(--ease) forwards; }
.js .hero-content > :nth-child(2) { animation-delay: .12s; }
.js .hero-content > :nth-child(3) { animation-delay: .3s; }
.js .hero-content > :nth-child(4) { animation-delay: .45s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

.hero-foot {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero-status { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--gold); }
.status-label { font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.status-value { font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--pearl); }
.slide-ui { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.slide-caption { margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
.cap-kind { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cap-name { font-size: .95rem; font-weight: 600; color: var(--pearl); }
.slide-dots { display: flex; gap: 8px; }
.slide-dot { position: relative; width: 46px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.slide-dot::before, .slide-dot::after { content: ''; position: absolute; left: 0; top: 8px; height: 2px; }
.slide-dot::before { right: 0; background: rgba(255, 255, 255, .25); }
.slide-dot::after { width: 0; background: var(--pearl); }
.slide-dot.is-active::after { animation: dot-fill var(--dur, 7s) linear forwards; }
.slide-dot.is-past::after { width: 100%; }
@keyframes dot-fill { to { width: 100%; } }

@media (max-width: 680px) {
  .hero-content { bottom: 120px; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 0%, rgba(6, 10, 22, .78) 34%, rgba(6, 10, 22, .3) 62%, rgba(6, 10, 22, .55) 100%); }
  .hero-status { display: none; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 14px; bottom: 22px; }
  .slide-ui { align-items: flex-start; }
  .slide-caption { align-items: flex-start; }
}
