/* Underskin — Hero video */

.hero-video {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, #3a2416 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, #1f1108 0%, transparent 60%),
        linear-gradient(180deg, #1a0f07 0%, #0a0603 100%);
}

/* Placeholder — shown behind video while it loads; visually rich fallback */
.hero-video__placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    opacity: 1;
    transition: opacity 600ms var(--ease-default);
}

.hero-video.is-playing .hero-video__placeholder {
    opacity: 0;
    pointer-events: none;
}

.hero-video__placeholder-ring {
    position: absolute;
    width: clamp(180px, 22vw, 320px);
    height: clamp(180px, 22vw, 320px);
    color: rgba(255, 255, 255, 0.9);
    animation: hero-placeholder-spin 30s linear infinite;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.hero-video__placeholder-text {
    fill: currentColor;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 15px;
    paint-order: stroke fill;
    stroke: rgba(0, 0, 0, 0.5);
    stroke-width: 2;
    stroke-linejoin: round;
}

.hero-video__placeholder-icon {
    width: clamp(90px, 11vw, 160px);
    height: clamp(90px, 11vw, 160px);
    object-fit: contain;
    filter: brightness(0) invert(1)
            drop-shadow(0 0 6px rgba(0, 0, 0, 0.5))
            drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
    animation: hero-placeholder-pulse 4s ease-in-out infinite;
}

@keyframes hero-placeholder-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hero-placeholder-pulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video__placeholder-ring,
    .hero-video__placeholder-icon {
        animation: none;
    }
}

.hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 600ms var(--ease-default);
}

.hero-video.is-playing .hero-video__media {
    opacity: 1;
}

.hero-video__overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--space-xl);
}

.hero-video__tagline {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: inherit;
    line-height: inherit;
    color: var(--ink);
    max-width: 40ch;
}

/* Reduced motion: placeholder already covers hero when JS removes video. */
