:root {
    --bg: #F3F3F3;
    --navy: #233a57;
    --muted: #5d6e82;
    --line: #ded6ca;
    --copper: #b77a4a;
    --copper-strong: #9f663c;
    --card: #fbfaf8;
    
    --hero-scroll-height: 145vh;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background: var(--bg);
    color: var(--navy);
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    letter-spacing: -0.01em;
}

.site-container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.floating-header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 48px));
    z-index: 1100;
    border: 1px solid rgba(222, 214, 202, 0.95);
    border-radius: 80px;
    background: rgba(243, 243, 243, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(35, 58, 87, 0.08);
    overflow: hidden;
}

.floating-header .site-container {
    width: 100%;
}

.mobile-menu-floating {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 48px));
    z-index: 1095;
    border: 1px solid rgba(222, 214, 202, 0.95);
    border-radius: 24px;
    background: rgba(243, 243, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(35, 58, 87, 0.12);
}

main {
    padding-top: 112px;
}

.hero-video-scroll {
    position: relative;
    height: var(--hero-scroll-height);
    background: #F3F3F3;
    --hero-progress: 0;
    overflow: clip;
}

.hero-video-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 56px;
}

.hero-video-card {
    width: 100%;
    background: #F3F3F3;
    position: relative;
    overflow: hidden;
    padding: 10px 0 0;
    height: 600px;
    min-height: 600px;
}

.hero-video-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(92deg,
            #F3F3F3 0%,
            rgba(243, 243, 243, 0.96) 34%,
            rgba(243, 243, 243, 0.62) 52%,
            rgba(243, 243, 243, 0.1) 72%,
            rgba(243, 243, 243, 0) 100%);
}

.hero-video-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 590px;
    position: relative;
    z-index: 3;
    padding-top: 26px;
}

.hero-video-content .hero-tag {
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.hero-video-content .hero-title {
    font-size: clamp(1.95rem, 3.9vw, 3.6rem);
    line-height: 1.04;
    margin: 0;
    color: var(--navy);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease .08s, transform .8s ease .08s;
}

.hero-video-content .hero-subtitle {
    font-family: "Manrope", sans-serif;
    font-size: clamp(.86rem, 1.2vw, 1rem);
    line-height: 1.7;
    max-width: 500px;
    margin: 20px 0 0;
    color: var(--muted);
    font-weight: 400;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease .18s, transform .8s ease .18s;
}

.hero-video-content .hero-cta-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease .3s, transform .8s ease .3s;
}

.hero-video-content.is-visible .hero-tag,
.hero-video-content.is-visible .hero-title,
.hero-video-content.is-visible .hero-subtitle,
.hero-video-content.is-visible .hero-cta-group {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: var(--copper);
    padding: 13px 28px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #fff;
    text-decoration: none;
    transition: background .25s ease;
}

.hero-cta-primary:hover {
    background: var(--copper-strong);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 13px 28px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--navy);
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease;
}

.hero-cta-secondary:hover {
    border-color: var(--copper);
    background: #faf8f5;
}

.hero-video-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    width: 132%;
    max-width: 990px;
    z-index: 0;
}

.hero-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translate3d(calc(var(--hero-progress) * -6%), calc(var(--hero-progress) * 20px), 0) scale(calc(1 + var(--hero-progress) * 0.05));
    transform-origin: right center;
    will-change: transform;
    transition: transform .08s linear;
}

.hero-video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 24px;
}

@media (prefers-reduced-motion: reduce) {

    .hero-video-content .hero-tag,
    .hero-video-content .hero-title,
    .hero-video-content .hero-subtitle,
    .hero-video-content .hero-cta-group,
    .hero-video-overlay video {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-scroll-height: 165vh;
    }

    .site-container {
        width: calc(100% - 28px);
    }

    .floating-header {
        width: calc(100% - 28px);
        border-radius: 80px;
        background: rgba(243, 243, 243, 0.45);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-menu-floating {
        width: calc(100% - 28px);
        top: 92px;
        border-radius: 22px;
        background: rgba(243, 243, 243, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(12px);
    }

    main {
        padding-top: 98px;
    }

    .hero-video-sticky {
        padding-top: 26px;
    }

    .hero-video-card {
        display: flex;
        flex-direction: column-reverse;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 8px 0 0;
        height: auto;
        min-height: auto;
        overflow: hidden;
    }

    .hero-video-card::before {
        display: none;
        background: none;
    }

    .hero-video-content {
        z-index: 3;
        padding-top: 0;
        max-width: none;
    }

    .hero-video-content .hero-tag {
        margin-bottom: 12px;
    }

    .hero-video-content .hero-subtitle {
        margin-top: 14px;
        line-height: 1.58;
    }

    .hero-video-overlay {
        position: relative;
        right: auto;
        bottom: auto;
        aspect-ratio: 16 / 9;
        width: 140%;
        max-width: none;
        justify-self: start;
        transform: translateX(-125px);
        z-index: 0;
        overflow: visible;
        min-height: 240px;
        pointer-events: none;
    }

    .hero-video-overlay video {
        transform: translate3d(calc(var(--hero-progress) * -6%), calc(var(--hero-progress) * 10px), 0) scale(calc(1 + var(--hero-progress) * 0.03));
        pointer-events: none;
    }

    .hero-video-content .hero-cta-group {
        flex-direction: column;
        margin-top: 18px;
        gap: 10px;
    }

    .hero-legal-note {
        display: none;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        justify-content: center;
        width: 100%;
    }
}

.tag {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--copper);
}

.surface {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 0 rgba(34, 58, 87, 0.02);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
