/* ============================================
   RINPOCHE SITE COMPONENTS
   Semantic component styles for index.php.
   Requires styles.css to be loaded first.
   ============================================ */

/* ============================================
   AJAX FORM FEEDBACK MESSAGES
   ============================================ */
.form-ajax-msg {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

.form-ajax-msg--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-ajax-msg--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-submit--loading,
.free-guide-submit.form-submit--loading,
.email-signup-button.form-submit--loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   SECTION BASE PADDING
   Shared padding applied to all page sections.
   ============================================ */
.hero-section,
.questions-section,
.themes-section,
.quote-section,
.synopsis-section,
.about-section,
.testimonials-section,
.free-guide-section,
.email-signup-section,
.contact-section,
.cta-banner-section {
    width: 100%;
    padding-inline: 1.5rem;
    overflow-x: clip;
}

.questions-section,
.synopsis-section,
.quote-section,
.about-section,
.testimonials-section,
.free-guide-section,
.email-signup-section,
.contact-section,
.cta-banner-section {
    padding-block: 2.5rem;
}

@media (min-width: 640px) {
    .hero-section,
    .questions-section,
    .themes-section,
    .quote-section,
    .synopsis-section,
    .about-section,
    .testimonials-section,
    .free-guide-section,
    .email-signup-section,
    .contact-section,
    .cta-banner-section {
        padding-inline: 3rem;
    }

    .questions-section,
    .synopsis-section,
    .quote-section,
    .about-section,
    .testimonials-section,
    .free-guide-section,
    .email-signup-section,
    .contact-section,
    .cta-banner-section {
        padding-block: 5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: auto;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-midnight), var(--color-burgundy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 2.5rem;
}

/* Hero video loaded state - remove background, overlay handles it */
.hero-section.video-loaded {
    background: transparent;
}

@media (min-width: 640px) {
    .hero-section {
        min-height: 100vh;
        padding-block: 3rem;
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 640px) { .hero-inner { gap: 3rem; } }
@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* hero-content animation state is managed by styles.css & JS;
   layout defined here */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-content {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-title {
    font-family: 'PapyrusCustom', var(--font-display), serif;
    font-size: clamp(2.25rem, 9vw, 3rem);
    /* override gradient from .text-gold-leaf */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--color-gold-leaf);
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.1));
    line-height: var(--leading-tight);
}

@media (min-width: 640px) { .hero-title { font-size: var(--text-7xl); } }
@media (min-width: 768px) { .hero-title { font-size: var(--text-8xl); } }

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 5vw, 1.5rem);
    color: rgba(241, 245, 249, 0.8);
    font-style: italic;
    font-weight: 300;
    letter-spacing: var(--tracking-wide);
    max-width: 100%;
    word-break: break-word;
}

@media (min-width: 640px) { .hero-subtitle { font-size: var(--text-3xl); } }

.hero-body {
    font-family: var(--font-body);
    color: rgba(244, 241, 234, 0.7);
    font-size: var(--text-lg);
    max-width: 28rem;
    line-height: var(--leading-relaxed);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) { .hero-cta { flex-direction: row; gap: 2.5rem; } }

/* book-wrapper animation state managed by styles.css & JS */
.book-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    z-index: 10;
}

.book-cover {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1.7 / 2.4;
}

@media (min-width: 480px) { .book-cover { max-width: 300px; } }
@media (min-width: 640px) { .book-cover { max-width: 350px; } }
@media (min-width: 768px) { .book-cover { max-width: 420px; } }

.book-cover > div {
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* When video is loaded, hero-bg becomes the gradient overlay */
.hero-section.video-loaded .hero-bg {
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.75), 
        rgba(74, 14, 18, 0.75));
}

/* Hero Video Background */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video-bg.loaded {
    opacity: 1;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(114, 28, 36, 0.15), transparent 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

/* ============================================
   SHARED SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-rule {
    display: block;
    width: 4rem;
    height: 0.25rem;
    margin-bottom: 1rem;
    margin-inline: auto;
}

.section-rule--gold     { background-color: var(--color-gold-leaf); }
.section-rule--burgundy { background-color: var(--color-burgundy); }

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    text-align: center;
    word-break: break-word;
}

@media (min-width: 480px) { .section-title { font-size: var(--text-4xl); } }
@media (min-width: 640px) { .section-title { font-size: var(--text-5xl); } }

.section-title--gold { color: var(--color-gold-leaf); }
.section-title--dark { color: var(--color-burgundy-dark); }

/* ============================================
   QUESTIONS SECTION (additions)
   ============================================ */
.questions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.questions-inner {
    max-width: 56rem;
    width: 100%;
}

.questions-inner .question-text + .question-text {
    margin-top: 2rem;
}

.questions-cta {
    margin-top: 3rem;
}

.btn-outline-burgundy {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--color-burgundy);
    color: var(--color-burgundy);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-burgundy:hover {
    background-color: var(--color-burgundy);
    color: var(--color-parchment);
}

/* ============================================
   THEMES SECTION (additions)
   ============================================ */
.themes-section {
    padding-block: 4rem;
}

@media (min-width: 640px) { .themes-section { padding-block: 6rem; } }

.themes-inner {
    max-width: 64rem;
    margin-inline: auto;
}

.themes-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) { .themes-header { margin-bottom: 5rem; } }
@media (min-width: 1024px) { .themes-header { margin-bottom: 6rem; } }

.themes-subtitle {
    font-family: var(--font-body);
    color: rgba(244, 241, 234, 0.7);
    font-size: var(--text-lg);
    margin-top: 1rem;
    max-width: 42rem;
    margin-inline: auto;
}

/* ============================================
   SYNOPSIS SECTION (additions)
   ============================================ */
.synopsis-section {
    display: flex;
    justify-content: center;
}

.synopsis-content {
    max-width: 65ch;
    width: 100%;
    padding-inline: 0.5rem;
}

@media (min-width: 480px) {
    .synopsis-content {
        padding-inline: 0;
    }
}

.synopsis-text {
    font-family: var(--font-body);
    color: var(--color-burgundy-dark);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    text-align: left;
}

@media (min-width: 480px) {
    .synopsis-text {
        font-size: var(--text-lg);
    }
}

@media (min-width: 640px) {
    .synopsis-text {
        font-size: var(--text-xl);
        text-align: left;
    }
}

.synopsis-drop-cap {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--color-burgundy);
    line-height: 1;
}

@media (min-width: 480px) {
    .synopsis-drop-cap {
        float: left;
        font-size: var(--text-5xl);
        padding-right: 0.5rem;
        margin-top: -4px;
    }
}

@media (min-width: 640px) {
    .synopsis-drop-cap {
        font-size: var(--text-6xl);
        padding-right: 0.75rem;
        margin-top: -8px;
    }
}

@media (min-width: 768px) { .synopsis-drop-cap { font-size: var(--text-7xl); } }

/* ============================================
   TIBET IMAGE SECTION (layered background)
   ============================================ */
.tibet-image-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .tibet-image-section {
    }
}

.tibet-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('/res/lkcr/images/tibetanmount_bg.webp');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05); /* prevent blur edge artifacts */
}

.tibet-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(74, 14, 18, 0.4),
        rgba(15, 23, 42, 0.5)
    );
}

.tibet-image-frame {
    position: relative;
    z-index: 10;
    max-width: 90%;
    padding: 1rem;
}

.tibet-image-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (min-width: 480px) {
    .tibet-image-frame {
        max-width: 85%;
    }
}

@media (min-width: 640px) {
    .tibet-image-frame {
        max-width: 80%;
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .tibet-image-frame {
        max-width: 75%;
    }
}

@media (min-width: 1024px) {
    .tibet-image-frame {
        max-width: 70%;
    }
}

.tibet-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-burgundy-dark), var(--color-midnight));
}

.quote-content {
    max-width: 56rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.quote-inner {
    position: relative;
    text-align: center;
}

.quote-marks-open {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: rgba(197, 160, 89, 0.3);
    line-height: 1;
    pointer-events: none;
}

@media (min-width: 640px) { .quote-marks-open { font-size: var(--text-8xl); top: -3rem; left: -2rem; } }

.quote-marks-close {
    position: absolute;
    bottom: -2.5rem;
    right: 0;
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: rgba(197, 160, 89, 0.3);
    line-height: 1;
    transform: rotate(180deg);
    pointer-events: none;
}

@media (min-width: 640px) { .quote-marks-close { font-size: var(--text-8xl); bottom: -4rem; right: -2rem; } }

.quote-blockquote {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: rgba(244, 241, 234, 0.9);
    text-align: center;
    padding-inline: 1rem;
}

@media (min-width: 480px) { .quote-blockquote { font-size: var(--text-lg); } }
@media (min-width: 640px) { .quote-blockquote { font-size: var(--text-xl); padding-inline: 2rem; } }

.quote-highlight {
    font-style: normal;
    color: var(--color-gold-leaf);
    font-weight: 700;
    font-size: 1.15em;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.quote-attribution {
    margin-top: 3rem;
    text-align: center;
}

.quote-cite {
    font-family: var(--font-heading);
    color: var(--color-gold-leaf);
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-wide);
    font-style: normal;
}

@media (min-width: 640px) { .quote-cite { font-size: var(--text-2xl); } }

/* ============================================
   ABOUT SECTION (additions)
   ============================================ */
.about-section {
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 64rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .about-content { grid-template-columns: 1fr 2fr; }
}

.about-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) { .about-photo { align-items: flex-end; } }

.about-photo-frame {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background-color: rgba(92, 77, 69, 0.2);
    border: 4px solid rgba(197, 160, 89, 0.5);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
}

@media (min-width: 640px) { .about-photo-frame { width: 14rem; height: 14rem; } }

.about-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(114, 28, 36, 0.1), transparent);
    mix-blend-mode: overlay;
}

.about-photo-credit {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(74, 14, 18, 0.5);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

.about-text { text-align: center; }

@media (min-width: 768px) { .about-text { text-align: left; } }

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 7vw, 2.25rem);
    color: var(--color-burgundy-dark);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

@media (min-width: 640px) { .about-heading { font-size: var(--text-4xl); } }

.about-subheading {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: rgba(114, 28, 36, 0.8);
    margin-bottom: 1.5rem;
}

.about-bio {
    font-family: var(--font-body);
    color: rgba(74, 14, 18, 0.9);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.about-bio > * + * { margin-top: 1rem; }

.about-cta { padding-top: 4rem; }

/* ============================================
   TESTIMONIALS (additions)
   ============================================ */
.testimonials-inner {
    max-width: 72rem;
    margin-inline: auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-subtitle {
    font-family: var(--font-body);
    color: rgba(244, 241, 234, 0.7);
    font-size: var(--text-lg);
    margin-top: 1rem;
}

.testimonials-grid {
    padding-top: 4rem;
}

/* ============================================
   EMAIL SIGNUP (additions)
   ============================================ */
/* Explicitly keep overflow:hidden on this section — it has a 600px ::before
   decorative element that must be clipped by the parent. */
.email-signup-section {
    overflow: hidden;
}

.email-signup-card {
    max-width: 36rem;
    margin-inline: auto;
    padding-inline: 1.25rem; /* tighter horizontal padding on mobile */
}

@media (min-width: 480px) {
    .email-signup-card {
        padding-inline: 2rem; /* restore original value at wider screens */
    }
}

/* ============================================
   JOURNEY CTA SECTION
   ============================================ */
.journey-cta-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.journey-cta-bg {
    position: absolute;
    inset: 0;
}

.journey-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.1) saturate(0.8);
}

.journey-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.7));
}

.journey-cta-inner {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    width: 100%;
    text-align: center;
    padding: 4rem 1.5rem;
}

@media (min-width: 640px) { .journey-cta-inner { padding: 6rem 2rem; } }
@media (min-width: 1024px) { .journey-cta-inner { padding: 8rem 2rem; } }

.journey-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 2.25rem);
    color: #ffffff;
    line-height: var(--leading-tight);
    margin-bottom: 2rem;
}

@media (min-width: 640px) { .journey-cta-title { font-size: var(--text-5xl); margin-bottom: 3.5rem; } }
@media (min-width: 768px) { .journey-cta-title { font-size: 4rem; } }
@media (min-width: 1024px) { .journey-cta-title { font-size: var(--text-7xl); } }

.journey-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 640px) { .journey-cta-buttons { flex-direction: row; gap: 2.5rem; margin: 3.5rem 0; } }

.journey-cta-tagline {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-lg);
    font-style: italic;
    max-width: 42rem;
    margin-inline: auto;
}

/* ============================================
   BUTTON OVERFLOW GUARDS (mobile)
   ============================================ */
/* Prevent white-space:nowrap buttons from overflowing narrow containers */
.btn-gold,
.btn-gold-outline {
    max-width: 100%;
    box-sizing: border-box;
}

/* On very small screens make gold buttons fill their column */
@media (max-width: 479px) {
    .hero-cta .btn-gold,
    .hero-cta .btn-gold-outline,
    .journey-cta-buttons .btn-gold,
    .journey-cta-buttons .btn-gold-outline {
        width: 100%;
    }
}

/* ============================================
   FINAL CTA BANNER (additions)
   ============================================ */
.cta-banner-section {
    display: flex;
    justify-content: center;
}

.cta-banner-inner {
    max-width: 42rem;
    width: 100%;
    text-align: center;
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-burgundy-dark);
    margin-bottom: 1rem;
}

@media (min-width: 640px) { .cta-banner-title { font-size: var(--text-4xl); } }

.cta-banner-body {
    font-family: var(--font-body);
    color: rgba(74, 14, 18, 0.8);
    font-size: var(--text-lg);
    margin-bottom: 3rem;
}

.cta-banner-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (min-width: 640px) { .cta-banner-buttons { flex-direction: row; } }

.btn-burgundy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--color-burgundy);
    color: var(--color-parchment);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-burgundy:hover {
    background-color: var(--color-burgundy-dark);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline-burgundy-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 2px solid var(--color-burgundy);
    color: var(--color-burgundy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-burgundy-lg:hover {
    background-color: var(--color-burgundy);
    color: var(--color-parchment);
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
    width: 100%;
    padding: 2rem 1.5rem;
    background-color: var(--color-midnight);
    color: rgba(241, 245, 249, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.footer-inner {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

.footer-nav a { transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--color-gold-leaf); }

/* ============================================
   PAGE BASE
   ============================================ */
html {
    overflow-x: hidden; /* prevent any element escaping to the right */
}

html, body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

main {
    min-height: 100vh;
    overflow-x: clip;
}

/* ============================================
   MODAL EXTRAS
   ============================================ */
.book-modal-body { text-align: center; }

.book-modal-text {
    font-family: var(--font-body);
    color: rgba(74, 14, 18, 0.8);
    font-size: var(--text-lg);
    margin-bottom: 2rem;
    text-indent: 0 !important;
    font-style: normal;
}

/* ============================================
   VIDEO OVERLAY ON IMAGE SECTION
   ============================================ */
.video-overlay {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 50px 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.video-overlay.video-loaded {
    opacity: 1;
    pointer-events: auto;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* ============================================
   VIDEO QUOTE OVERLAY (typing on scroll)
   ============================================ */
.video-quote {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    pointer-events: none;
    text-align: center;
}

.video-quote-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.1rem, 3.5vw, 2rem);
    line-height: 1.5;
    color: #000;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 1),
        0 0 12px rgba(255, 255, 255, 1),
        0 0 24px rgba(255, 255, 255, 0.8),
        0 0 48px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(255, 255, 255, 1);
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.85);
    max-width: 38rem;
    min-height: 1.5em;
    padding: 0 0.5rem;
}

.video-quote-cursor {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    color: var(--color-gold-leaf);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: blink-cursor 0.7s step-end infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-quote-cursor.visible {
    opacity: 1;
}

.video-quote-cursor.done {
    animation: none;
    opacity: 0;
}

@keyframes blink-cursor {
    50% { opacity: 0; }
}

.video-quote-author {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 1.125rem);
    color: var(--color-gold-leaf);
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.video-quote-author.visible {
    opacity: 1;
}
