/* =========================================================
   founder-video.css — Homepage hero video slot
   DEMO-133 / DEMO-135 | extends MAS-006
   ========================================================= */

/* ----------------------------------------------------------
   Section wrapper
   ---------------------------------------------------------- */
.founder-video-section {
    background: var(--color-surface-alt, #0d1425);
    padding-block: clamp(2.5rem, 6vw, 4rem);
    border-top: 1px solid rgba(29, 156, 240, 0.1);
    border-bottom: 1px solid rgba(29, 156, 240, 0.1);
}

.founder-video-section .container {
    max-width: 860px;
}

/* ----------------------------------------------------------
   Kicker / label above the video
   ---------------------------------------------------------- */
.founder-video__kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-brand, #1d9cf0);
    margin-bottom: 0.75rem;
    justify-content: center;
}

/* ----------------------------------------------------------
   Copy block (≤50 words — DEMO-133)
   ---------------------------------------------------------- */
.founder-video__copy {
    text-align: center;
    margin-bottom: 1.5rem;
}

.founder-video__copy h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text-primary, #f0f4f8);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.founder-video__copy p {
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   Aspect-ratio wrapper (16/9) — responsive
   ---------------------------------------------------------- */
.founder-video__ratio {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #060d1a;
    box-shadow:
        0 0 0 1px rgba(29, 156, 240, 0.15),
        0 24px 64px rgba(0, 0, 0, 0.45);
}

/* ----------------------------------------------------------
   Click-to-play facade (shown until user interacts)
   Covers the iframe so no third-party request fires on load.
   ---------------------------------------------------------- */
.founder-video__facade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    background: linear-gradient(135deg, #060d1a 0%, #0d1e36 50%, #060d1a 100%);
    background-size: 200% 200%;
    animation: founderPulse 3.5s ease-in-out infinite;
    border: none;
    width: 100%;
    padding: 0;
}

.founder-video__facade:focus-visible {
    outline: 3px solid var(--color-brand, #1d9cf0);
    outline-offset: 3px;
}

@keyframes founderPulse {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* Play button ring */
.founder-video__play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(29, 156, 240, 0.6);
    background: rgba(29, 156, 240, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.founder-video__facade:hover .founder-video__play,
.founder-video__facade:focus-visible .founder-video__play {
    background: rgba(29, 156, 240, 0.28);
    border-color: var(--color-brand, #1d9cf0);
    transform: scale(1.08);
}

/* Triangle inside play button */
.founder-video__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #1d9cf0;
    margin-left: 4px; /* optical centering */
}

/* Label beneath play button */
.founder-video__facade-label {
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-align: center;
    pointer-events: none;
}

.founder-video__facade-label strong {
    display: block;
    color: var(--color-text-secondary, #cbd5e1);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ----------------------------------------------------------
   Mux player iframe (hidden until user clicks play)
   ---------------------------------------------------------- */
.founder-video__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none; /* shown by JS after consent click */
    background: #000;
    z-index: 1;
}

.founder-video__player.is-active {
    display: block;
}

/* ----------------------------------------------------------
   "Placeholder" state — shown when no playback ID is set.
   This is an intentional visual artifact, not a code stub.
   ---------------------------------------------------------- */
.founder-video__ratio[data-video-ready="false"] .founder-video__facade-label::after {
    content: ' — recording pending';
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.55);
}

/* ----------------------------------------------------------
   Small-screen adjustments
   ---------------------------------------------------------- */
@media (max-width: 480px) {
    .founder-video__play {
        width: 56px;
        height: 56px;
    }

    .founder-video__play::after {
        border-width: 10px 0 10px 17px;
    }
}

/* ----------------------------------------------------------
   Reduced-motion: disable pulsing animation
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .founder-video__facade {
        animation: none;
        background-position: 0% 50%;
    }
}
