/* Explain: Styles for the hero section carousel animation and cinematic color grading. */
/* Hero crossfade carousel */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: heroFade 18s linear infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    animation-delay: 12s;
}

@keyframes heroFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; }
    100% { opacity: 0; }
}

/* Cinematic media treatment — neutral shadows, rich blacks, refined highlights.
   Warm orange casts are gently tamed while the white gown stays bright and detailed. */
.hero-media {
    filter: contrast(1.08) saturate(0.86) brightness(0.95);
}

/* Layered scrim — charcoal-black, stronger toward the bottom and outer edges */
.hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(9, 9, 8, 0.94) 0%,
        rgba(9, 9, 8, 0.52) 26%,
        rgba(9, 9, 8, 0.16) 56%,
        rgba(9, 9, 8, 0.32) 100%
    );
}

.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        128% 96% at 50% 40%,
        rgba(8, 8, 7, 0) 34%,
        rgba(8, 8, 7, 0.34) 76%,
        rgba(6, 6, 5, 0.62) 100%
    );
}

.hero-topline {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 32%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(9, 9, 8, 0.62), rgba(9, 9, 8, 0));
}

/* Dynamic ink — muted champagne-gold accents over refined ivory */
.hero[data-tone="amber"] {
    --hero-ink: #f4efe6;
    --hero-accent: #d8c29a;
}

.hero[data-tone="rose"] {
    --hero-ink: #f2ece4;
    --hero-accent: #dcc7a4;
}

.hero[data-tone="violet"] {
    --hero-ink: #efe9e1;
    --hero-accent: #d2bc97;
}

.hero-copy {
    color: var(--hero-ink, #f0e9de);
    text-shadow: 0 2px 30px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .45);
    transition: color 1.2s ease;
}

.hero-title {
    color: inherit;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.045em;
}

.hero-eyebrow {
    color: var(--hero-accent, var(--accent-color));
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.46em;
    transition: color 1.2s ease;
}

.hero-rule {
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 1.15rem;
    background: linear-gradient(to right, var(--hero-accent, var(--accent-color)), rgba(216, 194, 160, 0));
    transition: background 1.2s ease;
}

.hero-accent {
    color: var(--hero-accent, var(--accent-color));
    transition: color 1.2s ease;
}

.hero-lead {
    color: inherit;
    opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
    }

    .hero-slide:first-child {
        opacity: 1;
    }
}