html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.home_page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    position: relative;
}

.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    z-index: 9999;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fade-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.bg-container {
    background-image: url('images/background_three.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-blend-mode: darken;
    background-color: rgba(0, 0, 0, 0.25);
    animation-delay: 3s;
    animation: blurEffect 15s infinite linear;
}

.nav-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.about_link {
    color: #818181;
    font-size: 24px;
    font-family: "Playfair Display", serif;
    padding: 0.5rem;
}

.about_link.active {
    border-bottom: .10rem solid transparent;
    border-bottom-color: #818181;
}

.underline {
    text-decoration: underline;
}

.landing_page {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

.first_home_button {
    transform: translateY(-100%);
}

.tagline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -200%);
    font-size: clamp(1.8rem, 16vw, 2.5rem);
    font-family: "Source Serif 4", serif;
    text-align: center;
    width: 90%;
    color: #EEEEEE;
    text-shadow: 0px 0px 3px #EEEEEE;
}

.pill-button {
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 272px;
    min-width: 272px;
    padding: 10px 24px;
    color: black;
    background-color: white;
    font-size: 16px;
    touch-action: manipulation;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    justify-content: center;
}

.pill-button .arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}

.pill-button:hover .arrow {
    transform: translateX(4px);
}

.text-center {
    position: relative;
    background-color: var(--bs-body-bg);
    z-index: 1;
    margin-top: 0;
    width: 100%;
    background-color: #1E1E1E;
}

.mvp {
    position: relative;
    z-index: 2;
    background-image: url('images/vp_one.jpg');
    background-color: rgba(0, 0, 0, 0.25);
    margin: 0 !important;
    max-width: 100% !important;
    background-blend-mode: darken;
    background-size: cover;
    background-position: center;

}

.text-center::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 2;
}

.value_prop {
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
}

.nav-container,
.landing_page,
main,
.container,
.px-4.text-center,
.container.col-xxl-8.px-4.py-5.mvp,
#myCarousel,
footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    margin-left: 0;
    margin-right: 0;
}

.px-4.text-center,
.container.col-xxl-8.px-4.py-5.mvp,
#myCarousel {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding: 3rem 1rem;
}

.italic {
    font-style: italic;
}

.mvp .row {
    --bs-gutter-x: 0;
    justify-content: center !important;
}

.mvp .text-overlay-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 3rem;
    text-align: left !important;
}

/* Hide the empty column on larger screens to center the content */
.mvp .col-10.col-sm-8.col-lg-6 {
    display: none !important;
}

/* Ensure the text container takes full width when centered */
.mvp .col-lg-6.text-overlay-container {
    max-width: 50% !important;
}

/* Carousel - Warm Sunset Vibes */

.carousel-item {
    height: 425px;
    background: linear-gradient(135deg, #E6DDD4 0%, #F0EBE3 100%) !important;
}

.carousel-item .bd-placeholder-img {
    display: none !important;
}

.carousel-caption h2.comment {
    color: #3d2914 !important;
    font-weight: 600;
    text-shadow: none;
    font-family: "Source Serif 4", serif;
}

.carousel-caption p {
    color: #8b4513 !important;
    font-weight: 500;
    margin-bottom: 0;
}

.stars {
    height: 75px;
    filter: brightness(0) saturate(100%) invert(58%) sepia(100%) saturate(1352%) hue-rotate(0deg) brightness(119%) contrast(119%);
}

.comment {
    font-family: "Source Serif 4", serif;
}

.mvp,
#myCarousel {
    position: relative;
    z-index: 1;
}

#myCarousel {
    background: linear-gradient(135deg, #E6DDD4 0%, #F0EBE3 100%) !important;
}



/* Carousel controls styling */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(15deg);
}

/* Carousel indicators */
.carousel-indicators button {
    background-color: #d35400 !important;
    opacity: 0.6;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: #e67e22 !important;
}

/* Footer */

footer {
    z-index: 1;
    background-color: #212529;
    display: flex;
    justify-content: flex-end;
}

.footer_content {
    padding-right: 1rem;
}

/* Animations */

@keyframes blurEffect {
    0%, 20% {
        filter: blur(0px);
    }
    25% {
        filter: blur(0.2px);
    }
    30% {
        filter: blur(2px);
    }
    40% {
        filter: blur(10px);
    }
    45% {
        filter: blur(30px);
    }
    55% {
        filter: blur(40px);
    }
    60% {
        filter: blur(50px);
    }
    70% {
        filter: blur(40px);
    }
    80% {
        filter: blur(30px);
    }
    85% {
        filter: blur(10px);
    }
    90% {
        filter: blur(2px);
    }
    95% {
        filter: blur(0.2px);
    }
    100% {
        filter: blur(0px);
    }
}

/* Media Queries */

@media (min-width: 768px) {
    .about_link {
        font-size: 24px;
    }

    .tagline {
        transform: translate(-50%, -210%);
    }

    .footer_content {
        padding-top: 2rem;
    }
}

@media (max-width: 991.98px) {
    .mvp .col-lg-6.text-overlay-container {
        max-width: 100% !important;
    }
}

/* About Page */

/* Header */

header.about_page {
    background-color: #1A2C42;
}

.logo {
    height: 70px
}

/* "p&p" wordmark, ported from home-next.html's nav logo -- same Anton
   font and red/cyan chromatic-fringe text-shadow + slight blur, in
   place of the old logo_light.png image. Scoped to about.html only
   (the shared .logo class above is still used as an image logo on
   several other pages). */
.about-logo-text {
    margin: 0;
    font-family: "Anton", "Archivo Black", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.9rem;
    color: #F5F0E8;
    text-shadow:
        -3px 0 6px rgba(255, 60, 60, 0.55),
         3px 0 6px rgba(60, 220, 255, 0.55),
         0 0 10px rgba(245, 240, 232, 0.4);
    filter: blur(0.5px);
}

a {
    text-decoration: none;
}

.home_link {
    color: #818181;
    z-index: 10001;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    text-decoration: none;
    left: 2rem;
    padding-left: calc(var(--bs-gutter-x) * .5);
}

body {
    background-color: #1E1E1E;
}

.oval-image {
    width: 300px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

  footer.about_page {
    background-color: #1E1E1E;
  }

  /* Media Queries */

  @media (max-width: 768px) {
    .oval-image {
        margin-left: auto;
        margin-right: auto;
    }

    .photo_container {
        margin: auto;
    }
  }

  @media (min-width: 768px) {
    .oval-image {
        width: 600px;
        height: 700px;
    }

    .logo {
        height: 70px;
    }
}

/* Preface */

body.preface {
    background-color: #161616;
}

.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 1;
    visibility: visible;
    transition: opacity 3s ease, visibility 3s ease;
    z-index: 9999;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fade-overlay.not_active {
    opacity: 0;
    visibility: hidden;
    pointer-events: all;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.visible {
    opacity: 1;
}

/* New styles for grayed out text effect */
.grayed {
    color: #666666;
    opacity: 0.6;
    transition: color 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.lead {
    transition: color 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* Email Signup */

body.email_signup {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-color: #161616;
        }

        /* Animated gradient background - warm candlelight colors */
        .gradient-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            background: linear-gradient(
                -45deg, 
                #161616,
                #1C1A18,
                #2A1810,
                #2A1810,
                #4A2C1A,
                #4A2C1A,
                #5D3420,
                #CC8B39,
                #4A2C1A,
                #2A1810,
                #161616,
                #161616
            );
            background-size: 600% 600%;
            animation: gradientShift 25s ease infinite;
        }

        /* Warm candlelight glow overlay */
        .gradient-bg::before {
            content: '';
            position: absolute;
            top: -2%;
            left: -2%;
            width: 105%;
            height: 105%;
            background: 
                radial-gradient(circle at 15% 85%, rgba(204, 139, 57, 0.2) 0%, transparent 70%),
                radial-gradient(circle at 85% 15%, rgba(179, 118, 47, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 30% 30%, rgba(93, 52, 32, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(74, 44, 26, 0.4) 0%, transparent 65%);
            animation: subtleGlow 30s ease-in-out infinite;
            opacity: 0.6;
        }

        @keyframes subtleGlow {
            0%, 100% {
                transform: translate(0, 0) scale(1);
                opacity: 0.6;
            }
            25% {
                transform: translate(-2%, 2%) scale(1.05);
                opacity: 0.4;
            }
            50% {
                transform: translate(2%, -1%) scale(0.95);
                opacity: 0.7;
            }
            75% {
                transform: translate(-1%, -2%) scale(1.02);
                opacity: 0.5;
            }
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }
            20% {
                background-position: 15% 60%;
            }
            40% {
                background-position: 25% 70%;
            }
            60% {
                background-position: 35% 65%;
            }
            80% {
                background-position: 20% 55%;
            }
            100% {
                background-position: 0% 50%;
            }
        }

        @keyframes noiseShift {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg);
            }
            25% {
                transform: translate(-5%, 5%) rotate(1deg);
            }
            50% {
                transform: translate(5%, -5%) rotate(-1deg);
            }
            75% {
                transform: translate(-3%, -3%) rotate(0.5deg);
            }
        }

        /* Content styling */
        .nav-container {
            position: relative;
            z-index: 10;
            width: 100%;
        }

        .logo {
            height: 70px;
        }

        .about_link {
            color: #818181;
            font-size: 24px;
            font-family: "Playfair Display", serif;
            padding: 0.5rem;
            text-decoration: none;
        }

        .about_link.active {
            border-bottom: .10rem solid transparent;
            border-bottom-color: #818181;
        }

        .underline {
            text-decoration: underline;
        }

        .email_signup.landing_page {
            position: relative;
            height: 82.2vh;
            width: 100%;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            z-index: 1;
            text-align: center;
            padding: 2rem;
        }

        .final-text {
            font-size: clamp(2rem, 4vw, 2.5rem);
            font-family: "Source Serif 4", serif;
            color: #EEEEEE;
            margin-bottom: 1.5rem;
            text-shadow: 0px 0px 10px rgba(238, 238, 238, 0.5);
        }

        .email-capture {
            color: #C5C5C5;
            font-size: 1.1rem;
            margin-bottom: 2rem;
            max-width: 600px;
        }

        input[type="text"], input[type="email"] {
            width: 100%;
            max-width: 400px;
            padding: 12px 20px;
            margin: 0.5rem 0;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 16px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        input[type="text"]:focus, input[type="email"]:focus {
            outline: none;
            border-color: rgba(255, 184, 77, 0.8);
            box-shadow: 0 0 20px rgba(255, 184, 77, 0.3);
            background: rgba(255, 184, 77, 0.1);
        }

        input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .pill-button {
            text-align: center;
            text-decoration: none;
            width: 272px;
            min-width: 272px;
            padding: 12px 24px;
            color: black;
            background-color: white;
            font-size: 16px;
            border-radius: 9999px;
            font-weight: 500;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            justify-content: center;
            margin-top: 1rem;
            border: none;
            cursor: pointer;
            backdrop-filter: blur(10px);
        }

        .pill-button:hover {
            background-color: #f5f5f5;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        footer {
            z-index: 1;
            background-color: rgba(33, 37, 41, 0.8);
            display: flex;
            justify-content: flex-end;
            backdrop-filter: blur(10px);
            margin-top: auto;
        }

        .footer_content {
            padding-right: 1rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .email_signup.landing_page {
                padding: 1rem;
            }
            
            input[type="first_name"], input[type="email"] {
                max-width: 100%;
            }
            
            .pill-button {
                width: 100%;
                max-width: 300px;
                min-width: 272px;
            }
        }

        /* Enhanced visual effects */
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 2rem;
            margin: 1rem 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* Floating particles effect - warm golden tones */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: rgba(204, 139, 57, 0.8);
            border-radius: 50%;
            animation: float 25s linear infinite;
            box-shadow: 0 0 8px rgba(204, 139, 57, 0.4), 0 0 12px rgba(255, 184, 77, 0.2);
        }

        footer.email {
            z-index: 1;
            background-color: transparent;
            display: flex;
            justify-content: flex-end;
            backdrop-filter: blur(10px);
            margin-top: auto;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) translateX(100px);
                opacity: 0;
            }
        }