* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f7ead7;
    --red: #8b0020;
    --white: #ffffff;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--cream);
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

img {
    max-width: 100%;
    display: block;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--cream);
    color: var(--red);
    transition: opacity .45s ease, visibility .45s ease, transform .45s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
}

.site-loader__inner {
    width: min(620px, calc(100% - 48px));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid currentColor;
    padding-bottom: 18px;
}

.site-loader__brand {
    font-weight: 900;
    letter-spacing: .08em;
    font-size: clamp(14px, 2vw, 26px);
}

.site-loader__percent {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(52px, 12vw, 160px);
    line-height: .78;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    color: var(--white);
    pointer-events: none;
    transform: translateZ(0);
}

.site-logo,
.site-menu-button {
    pointer-events: auto;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.scroll-root {
    height: 500vh;
    position: relative;
}

.stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--cream);
    contain: paint;
}

body.admin-bar .stage {
    top: 32px;
    height: calc(100vh - 32px);
}

.hero-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    transform: translate3d(0, 0, 0);
    will-change: transform, width, height, left, top;
    backface-visibility: hidden;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-title {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    z-index: 40;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.hero-title div {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 11vw;
    line-height: .85;
    color: var(--white);
}

.hero-copy {
    position: absolute;
    right: 80px;
    top: 45%;
    width: 380px;
    color: var(--white);
    z-index: 40;
    line-height: 1.8;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.bg-words {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.word {
    position: absolute;
    display: flex;
    width: max-content;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 800;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.word span {
    padding-right: 80px;
}

.word1 {
    top: 12%;
    font-size: 7vw;
    color: var(--red);
}

.word2 {
    top: 42%;
    font-size: 6vw;
    color: transparent;
    -webkit-text-stroke: 2px var(--red);
}

.word3 {
    bottom: 12%;
    font-size: 6vw;
    color: var(--red);
}

.about {
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 150px 40px;
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.about h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5vw;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-loader {
        display: none;
    }

    .hero-card,
    .hero-card img,
    .hero-title,
    .hero-copy,
    .word {
        will-change: auto;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .stage {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 22px 25px;
    }

    .site-loader__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-title {
        padding-left: 25px;
    }

    .hero-title div {
        font-size: 18vw;
    }

    .hero-copy {
        width: 80%;
        left: 25px;
        right: auto;
        top: 70%;
    }

    .about h2 {
        font-size: 12vw;
    }
}
